From: Hillf Danton Subject: Re: [PATCH] ALSA: usb-audio: Fix gpf in snd_usb_pipe_sanity_check Date: Tue, 30 Jul 2019 19:28:56 +0800 Message-ID: <20190730112856.876-1-hdanton@sina.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail3-165.sinamail.sina.com.cn (mail3-165.sinamail.sina.com.cn [202.108.3.165]) by alsa1.perex.cz (Postfix) with SMTP id B177AF800BF for ; Tue, 30 Jul 2019 13:29:13 +0200 (CEST) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" To: Takashi Iwai Cc: "alsa-devel@alsa-project.org" , "gregkh@linuxfoundation.org" , "linux-usb@vger.kernel.org" , "syzkaller-bugs@googlegroups.com" , "linux-kernel@vger.kernel.org" , Andrey Konovalov , syzbot List-Id: alsa-devel@alsa-project.org 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. > > It was introduced in commit 801ebf1043ae for checking pipe and endpoint > > types. It is fixed by adding a check of the ep pointer in question. > > > > Reported-by: syzbot > > Fixes: commit 801ebf1043ae ("ALSA: usb-audio: Sanity checks for each pipe and EP types") > > Drop "commit" word. > Yes, Sir. > > Cc: Andrey Konovalov > > Signed-off-by: Hillf Danton > > --- There is a typo, s/dhanton/hdanton/, as you pointed out in another mail. > > This is to make syzbot happy for now and in long run we can make > > snd_usb_pipe_sanity_check() available outside sound/usb by making > > usb_urb_ep_type_check() a wrapper of the former. We will revisit > > sound/usb once 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. > The same kind > of fix was already submitted from me (), > 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