ALSA: usb-audio: Fix gpf in snd_usb_pipe_sanity_check
Quoted 6 lines · On Tue, 30 Jul 2019 18:08:02 +0800 Takashi Iwai wrote:
You don't have to copy the whole these texts at all.
In general, it'd suffice to point out the dashboard URL, and if the stack trace is mandatory, drop the useless hex numbers and just show the significant part of the stack trace.
I am used to give readers as much info as appropriate, and learning that an URL is enough in cases like this one. I will send you the pruned version next time.
Quoted 8 lines
Quoted 5 lines
It was introduced in commit
801ebf1043aefor checking pipe and endpoint types. It is fixed by adding a check of the ep pointer in question.Reported-by syzbot <[email protected]>Fixes commit 801ebf1043ae ("ALSA: usb-audio: Sanity checks for each pipe and EP types")Drop "commit" word.
Yes, Sir.
Quoted 3 lines
Quoted 3 lines
Cc Andrey Konovalov <[email protected]>Signed-off-by Hillf Danton <[email protected]>---
There is a typo, s/dhanton/hdanton/, as you pointed out in another mail.
Quoted 6 lines
Quoted 4 lines
This is to make syzbot happy for now and in long run we can make
snd_usb_pipe_sanity_check()available outsidesound/usbby makingusb_urb_ep_type_check()a wrapper of the former. We will revisitsound/usbonce when things in the usb/core get in place.Actually I expected to apply the "long-term" fix now.
There is change in usb/core included in that fix as you see, and according to the rule, one fix a patch, it is better and simpler IMO to fix the sound part first.
Quoted 5 lines
The same kind
of fix was already submitted from me (<[email protected]>), but I didn't merge it because working on the usb core helper would be a saner solution.
Feel free to merge that, Sir.
Thanks
Hillf
Quoted 4 lines · Hillf Danton
Quoted 1 line · On Tue, 30 Jul 2019 18:08:02 +0800 Takashi Iwai wrote:
Quoted 8 lines
Quoted 5 lines
You don't have to copy the whole these texts at all.
In general, it'd suffice to point out the dashboard URL, and if the stack trace is mandatory, drop the useless hex numbers and just show the significant part of the stack trace.I am used to give readers as much info as appropriate, and learning that an URL is enough in cases like this one. I will send you the pruned version next time.
That's fine, I already edited the commit message in my side.
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines
It was introduced in commit
801ebf1043aefor checking pipe and endpoint types. It is fixed by adding a check of the ep pointer in question.Reported-by syzbot <[email protected]>Fixes commit 801ebf1043ae ("ALSA: usb-audio: Sanity checks for each pipe and EP types")
Quoted 8 lines
Quoted 2 lines
Drop "commit" word.
Yes, Sir.
Quoted 3 lines
Quoted 3 lines
Cc Andrey Konovalov <[email protected]>Signed-off-by Hillf Danton <[email protected]>---
There is a typo, s/dhanton/hdanton/, as you pointed out in another mail.
Good, also corrected.
Quoted 10 lines
Quoted 6 lines
Quoted 4 lines
This is to make syzbot happy for now and in long run we can make
snd_usb_pipe_sanity_check()available outsidesound/usbby makingusb_urb_ep_type_check()a wrapper of the former. We will revisitsound/usbonce when things in the usb/core get in place.Actually I expected to apply the "long-term" fix now.
There is change in usb/core included in that fix as you see, and according to the rule, one fix a patch, it is better and simpler IMO to fix the sound part first.
Yeah, that's a right approach, too.
What I expected was a patch series, containing two changes: one to add/modify the USB core helper and another to apply it for usb-audio. But it's fine to move that direction after addressing the usb-audio problem quickly, of course.
Quoted 6 lines
Quoted 5 lines
The same kind
of fix was already submitted from me (<[email protected]>), but I didn't merge it because working on the usb core helper would be a saner solution.Feel free to merge that, Sir.
Heh, you did it right, so let's merge yours now.
Thanks!
Takashi