Page MenuHomeFreeBSD

sound: Drain buffer selinfo in sndbuf_free()
ClosedPublic

Authored by christos on Mar 28 2024, 5:15 AM.
Tags
None
Referenced Files
F169533594: D44544.id136327.diff
Tue, Sep 1, 8:29 PM
F169521110: D44544.diff
Tue, Sep 1, 7:31 PM
Unknown Object (File)
Fri, Aug 28, 12:42 AM
Unknown Object (File)
Thu, Aug 27, 3:55 PM
Unknown Object (File)
Wed, Aug 26, 3:43 PM
Unknown Object (File)
Wed, Aug 26, 10:08 AM
Unknown Object (File)
Wed, Aug 26, 5:42 AM
Unknown Object (File)
Tue, Aug 25, 1:49 AM
Subscribers
None

Details

Summary

Prevent a use-after-free in kern_poll() by making sure the buffer's
selinfo is drained.

Reported by: KASAN
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks

Diff Detail

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

Event Timeline

christos created this revision.
christos retitled this revision from sound: drain buffer selinfo during sndbuf_free() to sound: Drain buffer selinfo in sndbuf_free().Mar 28 2024, 5:18 AM

In the commit message, you should note that this is only required with async detach.

This revision is now accepted and ready to land.Mar 29 2024, 2:43 PM