Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1857972ybz; Thu, 23 Apr 2020 07:14:53 -0700 (PDT) X-Google-Smtp-Source: APiQypK81HjvqaGdA7Y1x7rwGBE8Pa7otfgLi/Z1Yr1h4Iu4NaF9vUFWCITkle6audCKL7TjV8VS X-Received: by 2002:a50:ef18:: with SMTP id m24mr2751808eds.281.1587651293127; Thu, 23 Apr 2020 07:14:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587651293; cv=none; d=google.com; s=arc-20160816; b=yA5C8ivlFKQUd/fAIAFvYKjWter+8XWuOV6eRZ23Z9vPEVeVa6g9eEriVhFNF5ntpC VVEb3BFgzx7vTU16i9q92SMl9ESqumWIp1emICY7g+RQBADFPG8AH6FUZacY+RTZp/Yt i+0QhfX+XtRt1imt7km0HhHJHmvv8yZPv7geH3fzG1ixSXXr8T8UmAeaeqpNJnl/Pua/ /0FtGg+Mg7vtjvypOO7qLuTovZEfMnHwCLjr5cZPcYEK8tFfToKg0zXH1yTLhzFX44+R f8lAvu0Fr92rpimaCInFRE4E+QVFeGj9cJ25VB+sHmmW/TM79InN3azZEjg7bss5LHcA wRpA== 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=qjLVo8CvNr1Dkg6Vn8uE2w9hY0ue5c+XUmmgvAi8rfo=; b=Oo40GbQcC2tl3Zhdwol6zzMmNajAQfcr7beRFAuGbs8ClJlQaKSGJ8X9nAOWgSJ9L8 jSRBuF0brBFoN46TOo1kv0GS7Q1En5FNodvr7oxDlyRWZFmLChp2EK/XnQlAEgolnhg/ QfhSPuX50nImRZ+jm3HgDs1FEmXXRFESL7IhjkFqW8nZD0CZjfsKJrxlnKa+Q49FqEzQ zC9lsOK4TcksEVKLYqVDApxhac62wW3YNDrVTQogNc9HxhRIYAjDHXN1jkmQUjNfo9v3 gshtkcNvAvEjy2gdPWbOtFK4LL4UAyPFCGepejKeBnGdkMXdYQPHJPH9/64rBMqzZYr5 BZEA== 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 cd11si1184384ejb.435.2020.04.23.07.14.27; Thu, 23 Apr 2020 07:14:53 -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 S1728609AbgDWNsi (ORCPT + 99 others); Thu, 23 Apr 2020 09:48:38 -0400 Received: from mx2.suse.de ([195.135.220.15]:53800 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728277AbgDWNsi (ORCPT ); Thu, 23 Apr 2020 09:48:38 -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 156F4ABEC; Thu, 23 Apr 2020 13:48:36 +0000 (UTC) Message-ID: <1587649702.23108.10.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 15:48:22 +0200 In-Reply-To: <0000000000003cbf8e05a3d57b98@google.com> References: <0000000000003cbf8e05a3d57b98@google.com> Content-Type: multipart/mixed; boundary="=-iLs55rpxhBtu80GHb/g1" 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 --=-iLs55rpxhBtu80GHb/g1 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 --=-iLs55rpxhBtu80GHb/g1 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" RnJvbSBjMjEyMzI2Yzk4MmUxM2EzMGNhMzE4NzhjYzJhNWE4OGViYjBjMTA2IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBPbGl2ZXIgTmV1a3VtIDxvbmV1a3VtQHN1c2UuY29tPgpEYXRl OiBXZWQsIDIyIEFwciAyMDIwIDEzOjQ5OjU1ICswMjAwClN1YmplY3Q6IFtQQVRDSCAxLzFdIGdv NzAwNzogYWRkIG9ubHkgaW5zYW5pdHkgY2hlY2tpbmcKCkEgbWFsaWNpb3VzIFVTQiBkZXZpY2Ug bWF5IGxhY2sgZW5kcG9pbnRzIHRoZSBkcml2ZXIgYXNzdW1lcyB0byBleGlzdApBY2Nlc3Npbmcg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