Page MenuHomeFreeBSD

sound: Drain buffer selinfo in sndbuf_free()
ClosedPublic

Authored by christos on Mar 28 2024, 5:15 AM.
Tags
None
Referenced Files
F111439407: D44544.id136327.diff
Mon, Mar 3, 6:54 PM
F111418081: D44544.diff
Mon, Mar 3, 12:45 PM
Unknown Object (File)
Fri, Feb 21, 11:06 PM
Unknown Object (File)
Dec 17 2024, 3:08 PM
Unknown Object (File)
Dec 10 2024, 12:10 PM
Unknown Object (File)
Nov 28 2024, 7:33 PM
Unknown Object (File)
Nov 25 2024, 5:04 AM
Unknown Object (File)
Nov 24 2024, 4:48 PM
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 56818
Build 53706: arc lint + arc unit

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