Page MenuHomeFreeBSD

altq: Clear stats structures in get_class_stats()
ClosedPublic

Authored by markj on Oct 24 2025, 8:18 PM.
Tags
None
Referenced Files
F156394640: D53342.diff
Wed, May 13, 8:19 AM
F156394616: D53342.diff
Wed, May 13, 8:19 AM
Unknown Object (File)
Tue, Apr 28, 6:10 PM
Unknown Object (File)
Mon, Apr 27, 3:32 PM
Unknown Object (File)
Sat, Apr 25, 10:51 AM
Unknown Object (File)
Tue, Apr 21, 7:42 PM
Unknown Object (File)
Sun, Apr 19, 5:25 AM
Unknown Object (File)
Wed, Apr 15, 2:42 AM

Details

Summary

These structures are copied out to userspace, and it's possible to leak
uninitialized stack bytes since these routines and their callers weren't
careful to clear them first. Add memsets to avoid this.

Reported by: Ilja Van Sprundel <ivansprundel@ioactive.com>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable