Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp625041ybz; Wed, 22 Apr 2020 05:03:13 -0700 (PDT) X-Google-Smtp-Source: APiQypIM5lLQxyV4GhfLBhkQn+qk19Vmi1s1UKCLv4Gb2mUVVetz5y+kwvNbbC0xfFEDeOLsXlG4 X-Received: by 2002:a05:6402:14c8:: with SMTP id f8mr22851875edx.272.1587556992964; Wed, 22 Apr 2020 05:03:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587556992; cv=none; d=google.com; s=arc-20160816; b=tkNWAhjVTQIW8RgkIxtW2MHbBqK73z96eFyBzmj9+PYMPXnh5jboK+5WqIrl2tJ6eN IYKy6nDTzdzvLjWfN9J/Grd34odL4jCk2TzA7xvJMUZmdVlg3CS0IUMa+MezYRBFYvOK 6XfIMet9pa83fM9srnERlXNp1txc+cge6rKYV83OEgM0kd3Dq9Vbejmu1nkYm2tKGtyI DtTzcyJl9+ky3/l3+lWIUcGpHckXaLzzI2fFrbqpbOeL67EWTOfsUomrKkIxLvcGLxQt Y2AxcZNIqYpAzxCChnqlWLce9Ag+kNCHE4yWZH8MV+UkXzQWLDmyqQQ39Du9yqbPMS1Z Y7wA== 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=Gxvq7kdSGghT4aCwjOCUHjSm1GLsPlXEkAfRTRg7GZ0=; b=ZlC6H0Ed+WAY08vysJXr7QJ4qXxWttnNejGhra6TfUwuYbC+MxxS0ZutX7YFfogfhX kELHj2+tSj9KvMnYBE79uafffllvlIhTW87ZS3van9qGl6J0hBjwirMgf542iqMBLUzF HHels4i86xl04zboqVZFSQL+0ePYd67jrDXr1Nxz4EiKgAeY00OOBYxkQfACDtM34SUm bbgAL9Y5gaGyJr2gVQG9fAUCieGhMmyY+tcJsoO9VeJuU2XiDkBncLlzKmuDw8ByDWH/ PnjqG3uVavSbss0WPk5eQFTLkJenxxTr/ScDgHG68xYM4ZpHnDxgVRpby0jihFG7kyAR P7xg== 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 v21si3461583edq.326.2020.04.22.05.02.48; Wed, 22 Apr 2020 05:03:12 -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 S1728482AbgDVMAD (ORCPT + 99 others); Wed, 22 Apr 2020 08:00:03 -0400 Received: from mx2.suse.de ([195.135.220.15]:53172 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727791AbgDVMAD (ORCPT ); Wed, 22 Apr 2020 08:00:03 -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 A9C23AE79; Wed, 22 Apr 2020 12:00:00 +0000 (UTC) Message-ID: <1587556788.26476.13.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: Wed, 22 Apr 2020 13:59:48 +0200 In-Reply-To: <0000000000003cbf8e05a3d57b98@google.com> References: <0000000000003cbf8e05a3d57b98@google.com> Content-Type: multipart/mixed; boundary="=-McCpIkgPwCqlblO8/Hrv" 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 --=-McCpIkgPwCqlblO8/Hrv 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 --=-McCpIkgPwCqlblO8/Hrv 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" RnJvbSBlZjEzZjM1NWQ2MWNmODhjOTYyOWM5ZTBiMzI5OTNiMzE1MjBmMzYyIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBPbGl2ZXIgTmV1a3VtIDxvbmV1a3VtQHN1c2UuY29tPgpEYXRl OiBXZWQsIDIyIEFwciAyMDIwIDEzOjQ5OjU1ICswMjAwClN1YmplY3Q6IFtQQVRDSF0gZ283MDA3 OiBhZGQgc2FuaXR5IGNoZWNraW5nCgpBIG1hbGljaW91cyBVU0IgZGV2aWNlIG1heSBsYWNrIGVu ZHBvaW50cyB0aGUgZHJpdmVyIGFzc3VtZXMgdG8gZXhpc3QKQWNjZXNzaW5nIHRoZW0gbGVhZHMg dG8gTlVMTCB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