Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1780559ybz; Thu, 23 Apr 2020 05:51:49 -0700 (PDT) X-Google-Smtp-Source: APiQypLXK3mLCsVQ9dj7OTNfLE1Z4dEveN1BHt9hOzdFuTP5zTGFmUdo68/tvNj53vlWFXQb5nsH X-Received: by 2002:a05:6402:688:: with SMTP id f8mr2488466edy.233.1587646309547; Thu, 23 Apr 2020 05:51:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587646309; cv=none; d=google.com; s=arc-20160816; b=Ug22VWtmqLzLb0LC4lY4bIuzJ4BknKEK4YinWae7Bc91Yge6QLswzgwCPvDVoHY4zU +NgtstDkU5izFDjaU8wR4Ia/3HTXdWZUEBoyHJZ+LbLAnf3VJ09bg3xNpf7VcAzvYriz SV8HZMo9xnSH6pMiNAdm3n7hhHAYvhfVp/COo2e6xOwE2iOU7Nv9CRTXvECyN9FMRaw8 AXIL4w/uNUovwp7ddOMSZIs5TcZuUCdppAhyyPzBXuylbQSMwQc1XVdZqBusFtS8jLZY ee5qnolfBSaRPw3csbRMWgQCYu59Rg5T1I5m183P1k6JCG1EUciVJ6NiN0ewKTDaLJJg Esrg== 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=m6shO91dMMWCI1v5VwNIO5U01Gp5+JHXDobl1W0RI1E=; b=Gi/xhCITxMXoIJM3CCYgDxXC0pwq5WDewgJeO5hgsHAbFAnYOIQPRKlgAD/qcwohqS 0L9yU6PlP3VYLai7DO7XhCxE9hoFY9/8eqskSDzn2NuHky/7hA4uBxhNQJG/V0PnCjuU atS+1AB52zgXrB5NPKiGDPiBbddISTCTdHR1MyuqnIr1Z8+4RHwyPtX+ohN+g8bXeam+ DGqt3dXkA39ewx2daHg75X3KXUouc/V1V0zGPixGreGTJb6EXQTr5cwN180LY4ptcoOG OpRx/8ZbeSLTXnz8T/qRPwiLDV8j4eJp+/QZGiWXEc8FIeIDyccH6ilebGwkaqM7Lzr3 9lgQ== 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 w15si1043398edi.597.2020.04.23.05.51.25; Thu, 23 Apr 2020 05:51:49 -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 S1728390AbgDWMqy (ORCPT + 99 others); Thu, 23 Apr 2020 08:46:54 -0400 Received: from mx2.suse.de ([195.135.220.15]:42052 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728340AbgDWMqx (ORCPT ); Thu, 23 Apr 2020 08:46:53 -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 393FCAC50; Thu, 23 Apr 2020 12:46:51 +0000 (UTC) Message-ID: <1587645997.23108.9.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, 23 Apr 2020 14:46:37 +0200 In-Reply-To: <0000000000003cbf8e05a3d57b98@google.com> References: <0000000000003cbf8e05a3d57b98@google.com> Content-Type: multipart/mixed; boundary="=-Rm6ymNblYIvvzcF60Ug/" 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 --=-Rm6ymNblYIvvzcF60Ug/ 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 --=-Rm6ymNblYIvvzcF60Ug/ Content-Disposition: attachment; filename="0001-go7007-add-sanity-checking-and-insanity-checking.patch" Content-Transfer-Encoding: base64 Content-Type: text/x-patch; name="0001-go7007-add-sanity-checking-and-insanity-checking.patch"; charset="UTF-8" RnJvbSAxYzNiM2Y1ODYwOGUyYzc1ZTAyNjRhMWI3ZWFlMjEyNDVkNDQ2ZDc4IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBPbGl2ZXIgTmV1a3VtIDxvbmV1a3VtQHN1c2UuY29tPgpEYXRl OiBXZWQsIDIyIEFwciAyMDIwIDEzOjQ5OjU1ICswMjAwClN1YmplY3Q6IFtQQVRDSF0gZ283MDA3 OiBhZGQgc2FuaXR5IGNoZWNraW5nIGFuZCBpbnNhbml0eSBjaGVja2luZwoKQSBtYWxpY2lvdXMg VVNCIGRldmljZSBtYXkgbGFjayBlbmRwb2ludHMgdGhlIGRyaXZlciBhc3N1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