Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1694569ybz; Thu, 23 Apr 2020 04:04:39 -0700 (PDT) X-Google-Smtp-Source: APiQypLXVmeE5ihOpvDhr0DxVfQT+xHoUbFwfOz9EDL8OxE2s+9MGKotCjfqJidFONubpWf1thM6 X-Received: by 2002:a50:cf05:: with SMTP id c5mr2190357edk.330.1587639879561; Thu, 23 Apr 2020 04:04:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587639879; cv=none; d=google.com; s=arc-20160816; b=y1hSDIstaZb6iBX3J4FSOp098JmbEYmnUEoi1uaEnNw3hPJ/YgxLrFpbJQ3ZVRJlFb My90Odv2nQcnbX9LnQfcxlSxlXfGlgUL9IK0DuL/dZX1ubwg2hEurBHe8+kW1h04iEMc 9Jtmj7dkE+Ac/0KsVMs0SpY1rEJvD811RhOlvMw2En0S8IqVESfZR9Ew5KuJWPnPKj9P 8/1MDFcGrCnnPZyGkcTQnkUxSXd5eVjfFKLz+dwsJrhW/dgywHSMrqUKRKINRtR+Ehph bFZ/AfR19hVTGLBTGwAJl5E8DxBLLz0LXScaB7tirqZN2n/k2bXTZ+TjBgKv4m83dnjq +hGw== 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=voSW7RkoqzsrqlTVT511tKMoAKBN5xQAPJXErFMovbg=; b=oeXl+ORzMbnAPACrnDoUdw+9yycidUSJIgd5z1MxCwzko3W2x9R0/fbk6GcYgda2XY 6yRH2sWExq66/yb5aqmZjFnTGLsXkxVpZuQOdo4Ev1OUFg52OYxbeb2NPG/JmGOUpliF w07dbiid/meLOwyb/nHnGWgFG/N8WBi1I3QCKKlk67bDHyLQxOZt8XcfDmeHx1PKdgAZ +5jFtlHkSz61Ulm2TjmTlB0DmTliGahaGFmMlr07xsy3B70xBL4eV77DgqZb4RoTmhsA 0pkeMmj7Bu+HjGrugOy+/W1Rsykqr+kdzw/v5ywb6UN1qne4HC22xm5Ib1A8vGYwlmhn /qRw== 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 h20si1050426ejt.165.2020.04.23.04.04.09; Thu, 23 Apr 2020 04:04:39 -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 S1728015AbgDWLBq (ORCPT + 99 others); Thu, 23 Apr 2020 07:01:46 -0400 Received: from mx2.suse.de ([195.135.220.15]:44222 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727883AbgDWLBq (ORCPT ); Thu, 23 Apr 2020 07:01:46 -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 EB86BB0B7; Thu, 23 Apr 2020 11:01:43 +0000 (UTC) Message-ID: <1587639690.23108.2.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 13:01:30 +0200 In-Reply-To: <0000000000003cbf8e05a3d57b98@google.com> References: <0000000000003cbf8e05a3d57b98@google.com> Content-Type: multipart/mixed; boundary="=-q2m0MxcCOOFn1/lZrA+P" 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 --=-q2m0MxcCOOFn1/lZrA+P 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 --=-q2m0MxcCOOFn1/lZrA+P Content-Disposition: attachment; filename="0001-go7007-add-sanity-checking.patch" Content-Transfer-Encoding: base64 Content-Type: text/x-patch; name="0001-go7007-add-sanity-checking.patch"; charset="UTF-8" RnJvbSA1ZjFhNmJkMGJmMDEzNzkyYjg2YTAxYjU4ZjlmNmU1N2YxYzlkMDY1IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBPbGl2ZXIgTmV1a3VtIDxvbmV1a3VtQHN1c2UuY29tPgpEYXRl OiBXZWQsIDIyIEFwciAyMDIwIDEzOjQ5OjU1ICswMjAwClN1YmplY3Q6IFtQQVRDSF0gZ283MDA3 OiBhZGQgc2FuaXR5IGNoZWNraW5nCgpBIG1hbGljaW91cyBVU0IgZGV2aWNlIG1heSBsYWNrIGVu ZHBvaW50cyB0aGUgZHJpdmVyIGFzc3VtZXMgdG8gZXhpc3QKQWNjZXNzaW5nIHRoZW0gbGVhZHMg dG8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