Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3651736ybz; Mon, 4 May 2020 07:12:08 -0700 (PDT) X-Google-Smtp-Source: APiQypLJ/ca8lxM/jlR98rFK+sylPzm2sjXfbBLY3dTKREy2mEJe5H1XosW/W+TTAAWj9LAL0GrQ X-Received: by 2002:a17:907:361:: with SMTP id rs1mr15279100ejb.228.1588601528535; Mon, 04 May 2020 07:12:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588601528; cv=none; d=google.com; s=arc-20160816; b=sC/jn1DgRmt5gvnYg+pye2gVlh2ijAycxCdhYeHQa3XTcmqN3dUhbU0Y5+BXnBJhzT iGX9yXCez6Py1RCJk9OdNvmXO32CenppI/dT6L9nSsfr3HE9zXXvE9EnJPavjhLHF7aa L4OvA5BP4HkYIuN+plG5T1LIY7s3N4YUZrc9dNKvFKLli7VG+3s/J+kq3kCz80IdyGrR kxozxknOLt4vcb9hX40/bNvN/1OcouWuCIymC1oGwmDuFnzHVxq04nNte6J45J7V7SUo thqOr7l7YnyC4Xqe/rXxex/uuSmAYnsNT9rsY0N94R/q4NhuhGojlER1p8nioDhMF6+2 GpEQ== 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=kcPxHCIuDZRJWsjmQwggvv1YLN5eI+5NkQj8OVTbG7g=; b=l3lnIiPdspjppTF+wKh4eN3qlnf4Yd3Ewl6r6sZie1sUN3qqHxXptNein8XsiFcFVQ zeW4Qc/cYYAED7h8ykJOEJOCVIZKtpLTsIAYIBTgKM1wQ5V3oG1h168E+hH3A/DkkYtH EzqioSCGUwQ2gtNzyCfupRG5zaxzML8MkhYBgUaFJ2FQfvkHviyG+TQKNZVT6xzgAASh egDNEowzbg8EmpCq3DiIkzurZim00GD6ZKD3A4zLH5oPG3zKeyjvquGESkT4bxP4Cnom RULbzzRtrsRLEQ1iLPLjX6mTtKWOzOMYEqj92EcNPWtZob+OkdLi533nIvSqPOUnfH3C wJqw== 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 c4si6941538ejb.189.2020.05.04.07.11.46; Mon, 04 May 2020 07:12:08 -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 S1728828AbgEDOIl (ORCPT + 99 others); Mon, 4 May 2020 10:08:41 -0400 Received: from mx2.suse.de ([195.135.220.15]:49188 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726404AbgEDOIl (ORCPT ); Mon, 4 May 2020 10:08:41 -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 DCE4DAD2C; Mon, 4 May 2020 14:08:40 +0000 (UTC) Message-ID: <1588601290.13662.6.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: Mon, 04 May 2020 16:08:10 +0200 In-Reply-To: <0000000000003cbf8e05a3d57b98@google.com> References: <0000000000003cbf8e05a3d57b98@google.com> Content-Type: multipart/mixed; boundary="=-NgPzncis5hgzBhPmjfxz" 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 --=-NgPzncis5hgzBhPmjfxz 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 --=-NgPzncis5hgzBhPmjfxz Content-Disposition: attachment; filename="0001-go7007-add-sanity-checking-for-endpoints.patch" Content-Transfer-Encoding: base64 Content-Type: text/x-patch; name="0001-go7007-add-sanity-checking-for-endpoints.patch"; charset="UTF-8" RnJvbSBhNDAxYjllZjg5YzRjZmJkZWIzOTkzZDY4YjUxNDIzZTkwOGJlN2E1IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBPbGl2ZXIgTmV1a3VtIDxvbmV1a3VtQHN1c2UuY29tPgpEYXRl OiBXZWQsIDIyIEFwciAyMDIwIDEzOjQ5OjU1ICswMjAwClN1YmplY3Q6IFtQQVRDSF0gZ283MDA3 OiBhZGQgc2FuaXR5IGNoZWNraW5nIGZvciBlbmRwb2ludHMKCkEgbWFsaWNpb3VzIFVTQiBkZXZp Y2UgbWF5IGxhY2sgZW5kcG9pbnRzIHRoZSBkcml2ZXIgYXNzdW1lcyB0byBleGlzdApBY2Nlc3Np bmcgdGhlbSBsZWFkcy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