Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1823367ybz; Thu, 30 Apr 2020 06:12:21 -0700 (PDT) X-Google-Smtp-Source: APiQypLye50DwVGszeDfi8XiYkTB6A4ZsRuzygq04scXN+TPftVcIbrHRP0o3qcGlEnquAyOX42b X-Received: by 2002:a17:906:b217:: with SMTP id p23mr2516957ejz.136.1588252341448; Thu, 30 Apr 2020 06:12:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588252341; cv=none; d=google.com; s=arc-20160816; b=WO2bwPZ34iA0X4dp9ADil6ySa1Amm/i6dSEjquHHsOU/qM0W3DGHlCLFVIXGI+cw48 UozY7vKLnRIAWQly428QPVmCNcwvE3D0IpYrjeDB/SWgPjaqi//h6EqPm3+MJalEcV6A aaQC9QY+M0U1KApCDfzaoHKdNpAcLyeyxhMS88Wm7uKOaD077ZPqzbFoCPKhSnMcBWIg CkgeZXmNcEEXKYW3D0JXrePoAdqrtjjVQW43EtIjEg9fmcYaqL5146ADQxttzs8en07U gfTTH9qFJAC1P6+SvoDpnD7DBX9pCr2b1tTx7EDOBt42SwFDtI8LC39NkB6T9JSBi4vP XlUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to:date :to:from:subject:message-id; bh=LknGCQNM9Ym1MZWKyh7/MdDjtbJXy++mamDS7FPW9ck=; b=uhY1NzduAt6mtFPv2mOZ/W5vNxPkHYYII7JM3KuRx9KDXH2qIiWyMy16wXHYSN2Uz6 4Uch5G8kGBKADqk59NGGxLP7u4BWz83CHgnG1KxlaYy2KqR+GG/h84uWHT15ZFG+XW4F 9qNtZAg99r+hwCNSdj9ms+TvuNCAw30scwjB9IJf2meWeb4QP6kIGqKP0w/a0ioEQZ6O Fclzzaoko4x6WgR3A+DnBpATElqmjGlz4jyTclRBfAR4drJmGBoCc8gRxRr19PoKISZ3 XAJXk77uTk+Ei9WdQYZESb3Ru8jfnZ0owkQMj2zvyEMqAQEgdQSH//RDK/lRbZ9ph6Qt gn5g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dj13si5406158edb.342.2020.04.30.06.11.56; Thu, 30 Apr 2020 06:12:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726793AbgD3NKR (ORCPT + 99 others); Thu, 30 Apr 2020 09:10:17 -0400 Received: from mx2.suse.de ([195.135.220.15]:53122 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726520AbgD3NKQ (ORCPT ); Thu, 30 Apr 2020 09:10:16 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 19F2BAB3D; Thu, 30 Apr 2020 13:10:14 +0000 (UTC) Message-ID: <1588252185.16510.12.camel@suse.com> Subject: Re: general protection fault in go7007_usb_probe From: Oliver Neukum To: syzbot , andreyknvl@google.com, hverkuil-cisco@xs4all.nl, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-usb@vger.kernel.org, mchehab@kernel.org, syzkaller-bugs@googlegroups.com Date: Thu, 30 Apr 2020 15:09:45 +0200 In-Reply-To: <0000000000003cbf8e05a3d57b98@google.com> References: <0000000000003cbf8e05a3d57b98@google.com> Content-Type: multipart/mixed; boundary="=-+D+L3gse/YsCAM2iZJV0" X-Mailer: Evolution 3.26.6 Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-+D+L3gse/YsCAM2iZJV0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Am Dienstag, den 21.04.2020, 16:36 -0700 schrieb syzbot: > Hello, > > syzbot found the following crash on: > > HEAD commit: e9010320 usb: cdns3: gadget: make a bunch of functions sta.. > git tree: https://github.com/google/kasan.git usb-fuzzer > console output: https://syzkaller.appspot.com/x/log.txt?x=1263a930100000 > kernel config: https://syzkaller.appspot.com/x/.config?x=bd14feb44652cfaf > dashboard link: https://syzkaller.appspot.com/bug?extid=cabfa4b5b05ff6be4ef0 > compiler: gcc (GCC) 9.0.0 20181231 (experimental) > > Unfortunately, I don't have any reproducer for this crash yet. > > IMPORTANT: if you fix the bug, please add the following tag to the commit: > Reported-by: syzbot+cabfa4b5b05ff6be4ef0@syzkaller.appspotmail.com #syz test: https://github.com/google/kasan.git e9010320 --=-+D+L3gse/YsCAM2iZJV0 Content-Disposition: attachment; filename="0001-go7007-add-only-insanity-checking.patch" Content-Transfer-Encoding: base64 Content-Type: text/x-patch; name="0001-go7007-add-only-insanity-checking.patch"; charset="UTF-8" RnJvbSBhMDA2YTcyNDg4MWJmYjU5MmRiNjFiYTE3ZGIxZTIxN2I5NjE1Y2M0IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBPbGl2ZXIgTmV1a3VtIDxvbmV1a3VtQHN1c2UuY29tPgpEYXRl OiBXZWQsIDIyIEFwciAyMDIwIDEzOjQ5OjU1ICswMjAwClN1YmplY3Q6IFtQQVRDSF0gZ283MDA3 OiBhZGQgb25seSBpbnNhbml0eSBjaGVja2luZwoKQSBtYWxpY2lvdXMgVVNCIGRldmljZSBtYXkg bGFjayBlbmRwb2ludHMgdGhlIGRyaXZlciBhc3N1bWVzIHRvIGV4aXN0CkFjY2Vzc2luZyB0aGVt IGxlYWRzIH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