NetBSD/sys/dev/audio
riastradh e7c9fe41a3 audio(4): Fix bug in detaching audio16 and beyond.
The minor numbers have only four bits for the unit number, so unit
numbers past 15 can't be represented as is.  Attempting to revoke
them was once harmless, when the system made no attempt to avoid
open/detach races; now it crashes because vdevgone assumes that the
minor number can be mapped back to an autoconf device, but it's the
wrong one.  With this change, we stop trying to revoke units beyond
15, because they can't be opened anyway (which may be a bug in its
own right, requiring expansion of the minor number encoding!).

Reported-by: syzbot+6634ffd48997ae9b1eb0@syzkaller.appspotmail.com
https://syzkaller.appspot.com/bug?id=db40a795a0b078f9b3b9fa0d3b7a9addcd2534de

Reported-by: syzbot+d2df39bb3f72975c0a97@syzkaller.appspotmail.com
https://syzkaller.appspot.com/bug?id=cbdd598287529cff9a8c4230263f7414df88db4b

Reported-by: syzbot+1404969f68424f8f6e4b@syzkaller.appspotmail.com
https://syzkaller.appspot.com/bug?id=6e4782408d0351769215fe433986f1844a546774

Reported-by: syzbot+2a4174a65609b3a00abb@syzkaller.appspotmail.com
https://syzkaller.appspot.com/bug?id=886bbee544c2337683e24c801f9b632630a24681

Reported-by: syzbot+c0d9e49f22e571650736@syzkaller.appspotmail.com
https://syzkaller.appspot.com/bug?id=7fb2e5576ebae731e859283f85c97747d2824f35

Reported-by: syzbot+583ba2cdb8aa6e59a4bf@syzkaller.appspotmail.com
https://syzkaller.appspot.com/bug?id=2af44f5245eba572ebfb222070b9fd1378854303
2022-08-25 11:16:33 +00:00
..
alaw.c need <sys/param.h> for COHERENCY_UNIT 2021-07-21 06:35:44 +00:00
audio.c audio(4): Fix bug in detaching audio16 and beyond. 2022-08-25 11:16:33 +00:00
audio_dai.h
audio_if.h Support audio descriptor for fstat(1). 2020-09-13 04:14:48 +00:00
audiobell.c need <sys/param.h> for COHERENCY_UNIT 2021-07-21 06:35:44 +00:00
audiobellvar.h
audiodef.h audio: Rework about usrbuf allocation. 2022-08-13 06:47:41 +00:00
audiofil.h
audiovar.h Fix suspend/resume. 2020-05-29 03:09:14 +00:00
linear.c need <sys/param.h> for COHERENCY_UNIT 2021-07-21 06:35:44 +00:00
linear.h
mulaw.c need <sys/param.h> for COHERENCY_UNIT 2021-07-21 06:35:44 +00:00
mulaw.h