HomeFreeBSD

sound: Drain buffer selinfo in sndbuf_free()

Description

sound: Drain buffer selinfo in sndbuf_free()

Prevent a use-after-free in kern_poll() by making sure the buffer's
selinfo is drained. This is required for a subsequent patch that
implements asynchronous audio device detach.

Reported by: KASAN
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D44544

(cherry picked from commit fba54d0179aabb3d94211ca80f94fe5b98ac6d3b)

Details

Provenance
christosAuthored on Mar 29 2024, 3:29 PM
Reviewer
markj
Differential Revision
D44544: sound: Drain buffer selinfo in sndbuf_free()
Parents
rGb556c37f83b0: pam_xdg: Close the dir after removal
Branches
Unknown
Tags
Unknown