Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3799249yba; Tue, 23 Apr 2019 09:47:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqx6exaUND7WrdeDVglctCmekyisQx97wXapuxFC2OQUouijCtm6ZZoGJv+51xmcA5ZhR/eb X-Received: by 2002:a62:b411:: with SMTP id h17mr27631617pfn.61.1556038077564; Tue, 23 Apr 2019 09:47:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556038077; cv=none; d=google.com; s=arc-20160816; b=YUYaEa9SMrGM0E24k4CZr8XIPv5OFeYx4u8ypjUvyeC3p+k440EIZYNGVkTrLeV1qb q4Fsetfgfu2i5uN/UACKoknbxGvVm8LEHQC6AaKGAB80JJbxD7WbFBLi/IwtVS+QiiRj mQ16nnxuWslVEziGAH/SVVSoBwRcI6/qYMCuMMjTzczw1OlaxUA85Bp7TDwcxJKXHBhZ DoZJactFNVJPksoUssgNAGY1PReYRsEJzZE728W5avdKnwn/kYs48E1H7JGEgAOE7ijk FYF/vKRIXFlIBAjCPcyVKi0Jg/jEFhs2sgg+jPR58NRT2REvaOrvSwYhiUQ2slvBPZEE WWog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:in-reply-to :subject:cc:to:from:date; bh=2bh71NElJCLq4l5fNNhPmWRRXfAmgJHOb/ej+f1aNTc=; b=enXacb6SA1ER26bB9tHKIEh6bAsvQz32dt6PhzXRJf2PmVaFod1/x/gcQ7ej0tZEhW 81dEK3q7evr6ybU+QkSxTBwk3nbSThrKWY+Agx+9eqLvcQxiToahhMJD8HuCbYOb7dTZ MjJyZwvqCU3/LaEPiJVAJeYQBResUFfE1h8aQw1VINZuM0W/TgBEf4K6OWAIl/2KaOt5 kfFIHTc9sOPLE8LRPJpbDVNriK9qPbratDC7Pu06qjYsNA4NFucHaPxaI7R8hkc1V3vp LLLKBjKw1pLRdrOTIQTY9457ekjJRtblHh/hflAvNuDsWKC+0u2sZBE48ioUP2B9sb2j nLKw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a33si181126pgm.336.2019.04.23.09.47.42; Tue, 23 Apr 2019 09:47:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729277AbfDWQqt (ORCPT + 99 others); Tue, 23 Apr 2019 12:46:49 -0400 Received: from iolanthe.rowland.org ([192.131.102.54]:58380 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1727656AbfDWQqt (ORCPT ); Tue, 23 Apr 2019 12:46:49 -0400 Received: (qmail 5734 invoked by uid 2102); 23 Apr 2019 12:46:48 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 23 Apr 2019 12:46:48 -0400 Date: Tue, 23 Apr 2019 12:46:48 -0400 (EDT) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: syzbot cc: andreyknvl@google.com, , , , , , Subject: Re: general protection fault in __dev_printk In-Reply-To: <000000000000dca2f3058734c255@google.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 23 Apr 2019, syzbot wrote: > Hello, > > syzbot has tested the proposed patch and the reproducer did not trigger > crash: > > Reported-and-tested-by: > syzbot+2eb9121678bdb36e6d57@syzkaller.appspotmail.com > > Tested on: > > commit: d34f9519 usb-fuzzer: main usb gadget fuzzer driver > git tree: https://github.com/google/kasan/tree/usb-fuzzer > kernel config: https://syzkaller.appspot.com/x/.config?x=c73d1bb5aeaeae20 > compiler: gcc (GCC) 9.0.0 20181231 (experimental) > patch: https://syzkaller.appspot.com/x/patch.diff?x=15909780a00000 > > Note: testing is done by a robot and is best-effort only. Okay, here's the original patch again, with the error message #if-ed out. Maybe those messages are slowing down dummy-hcd enough that the yurex_disconnect() routine never gets a chance to run. Although to tell the truth, I don't see how that could happen. Alan Stern #syz test: https://github.com/google/kasan.git usb-fuzzer --- a/drivers/usb/misc/yurex.c +++ b/drivers/usb/misc/yurex.c @@ -143,8 +143,10 @@ static void yurex_interrupt(struct urb * /* The device is terminated, clean up */ return; default: +#if 0 dev_err(&dev->interface->dev, "%s - unknown status received: %d\n", __func__, status); +#endif goto exit; } @@ -314,6 +316,7 @@ static void yurex_disconnect(struct usb_ usb_deregister_dev(interface, &yurex_class); /* prevent more I/O from starting */ + usb_poison_urb(dev->urb); mutex_lock(&dev->io_mutex); dev->interface = NULL; mutex_unlock(&dev->io_mutex);