Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp653441ybz; Wed, 22 Apr 2020 05:33:28 -0700 (PDT) X-Google-Smtp-Source: APiQypI9gTExvtJusRCe8RgxgZNhdpU4w9x5qqgL/8WFXsPIh1f2yxQeIuzCTf/jEVZ9F1Mw8xNQ X-Received: by 2002:aa7:d4cd:: with SMTP id t13mr17355236edr.30.1587558808309; Wed, 22 Apr 2020 05:33:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587558808; cv=none; d=google.com; s=arc-20160816; b=qhrcgU5uIL1Wsims4BPQe/1Qp4sslBuzcV8fSLKMaYkMnPRrDyc/90pirdyUFHsFh7 cLaDTh4hWFFyqawbxW8r8CH8FSUe3Y2bzLWdK06Q6zSP29buq25pEdRiLDYjbBmHse5+ J6Bv25flYJxZEdyVHYqoqO8OEQijGj87VF1Zn9yuY6TaLhu/lnPzROH5xcihNMPMBeVC 79IXH9Mk7Zn5PMSZqRCfv60pd/e29XysYF3Gk4WbS77mzP/40j+Xep7H3oc5pczz0Vnu dsb0eBRHJMubWSjYp4cQr2zyqHHV6hF20YPTj+ggejFN2vXd4nQexb3cLFFp9KACU8cJ ZHlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:from:subject:message-id:in-reply-to :date:mime-version; bh=tzmc/J6pdYWcPHC/FRUpW2ZreqYOzWhKdSOcplGNH/E=; b=uOugJB6er2+xT7wOe7ZanLMhajwcvknFJSvN8aAVCvfLAYquDYRPnibLkh57A7GR4z bWN5NIbcN5hhRjUaOzOwAotETLbx8+n9Pi8yXtA8uGoxSfmAqyjKX1/qIos2cV0iZMEA k5cItG1hNnx731Bo61TUCL/8xqjpLW4MqKE4yChv42gyJnTqZgEfj0PA3KpMuby93gad HDahXLJIFfOL1sbWEX1P04l7z0q2nJ/tYzysoCv5TkA5Pk1RJ0WrMR+G7b4hhaF21pH0 +vvIkbba8aGL7ycBL4fADaVqYJ8fuo8ohU47ZECI/IsARDdKs2D0Nkl+ffWfsc9yDPXj RIjA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k14si3522297ejg.168.2020.04.22.05.33.05; Wed, 22 Apr 2020 05:33:28 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726664AbgDVMcJ (ORCPT + 99 others); Wed, 22 Apr 2020 08:32:09 -0400 Received: from mail-il1-f198.google.com ([209.85.166.198]:37899 "EHLO mail-il1-f198.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726372AbgDVMcG (ORCPT ); Wed, 22 Apr 2020 08:32:06 -0400 Received: by mail-il1-f198.google.com with SMTP id u11so1670525ilg.5 for ; Wed, 22 Apr 2020 05:32:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:in-reply-to:message-id:subject :from:to; bh=tzmc/J6pdYWcPHC/FRUpW2ZreqYOzWhKdSOcplGNH/E=; b=om5GJ4GplYaRLgnoDTGORA7041I7xB43H3NNVxTh29p5YX9wzwp8KCz3rRb9JCPUJE WT/AEnYZUQ2T2hmMbDyZ4fDbJ2FdiNyMtBNT3OtNblZiIMRkQHZroVUgT9PI0/ctwEk/ Jxl+ucpmGiqMFVKF7SVPtvaKL82hTRIbfnYuKwfhqJ4ccA5cvM46B3ut9Hu+zIQ+Vz+9 2UPDOZdTVBVNnJWOYhO1aFPPXsvlwOcHwzPjHWCFAYzWuL0Wg4tBR7aioqngjwp1i1Ch lTo4QROrBKUuZuEDjd2pGYE/KdIYX486svniNhUJIViPVbwrrRPgQ7gjLwF4CdmwD+Z7 fkDA== X-Gm-Message-State: AGi0PuY7CQiAQiwIxBgPUZVg04CouT39I2lioZLvrVVFvjPjy8leJIQt 5xNC0yiCFaPwHTUk2v7ahBVMuqGN25UcBCOQgJWAXPpLxiyc MIME-Version: 1.0 X-Received: by 2002:a92:794f:: with SMTP id u76mr12148187ilc.269.1587558725080; Wed, 22 Apr 2020 05:32:05 -0700 (PDT) Date: Wed, 22 Apr 2020 05:32:05 -0700 In-Reply-To: <1587556788.26476.13.camel@suse.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000de5eaa05a3e05173@google.com> Subject: Re: general protection fault in go7007_usb_probe From: syzbot To: 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, oneukum@suse.com, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot has tested the proposed patch but the reproducer still triggered crash: general protection fault in go7007_usb_probe usb 2-1: string descriptor 0 read error: -71 general protection fault, probably for non-canonical address 0xdffffc00000000bd: 0000 [#1] SMP KASAN KASAN: null-ptr-deref in range [0x00000000000005e8-0x00000000000005ef] CPU: 1 PID: 83 Comm: kworker/1:2 Not tainted 5.7.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: usb_hub_wq hub_event RIP: 0010:go7007_usb_probe+0x1e0/0x1dc5 drivers/media/usb/go7007/go7007-usb.c:1125 Code: 03 80 3c 02 00 0f 85 df 18 00 00 4d 8b ae 98 00 00 00 48 b8 00 00 00 00 00 fc ff df 49 8d bd e8 05 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 ac 18 00 00 4d 8b ad e8 05 00 00 4d 85 ed 0f 84 RSP: 0018:ffff8881d8aff190 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: ffff8881d8caf000 RCX: 1ffffffff126c284 RDX: 00000000000000bd RSI: ffffffff8454389a RDI: 00000000000005e8 RBP: ffff8881d7270000 R08: 0000000000000001 R09: fffffbfff1268ad6 R10: ffffffff893456af R11: fffffbfff1268ad5 R12: ffffffff86785360 R13: 0000000000000000 R14: ffff8881cf6dc400 R15: ffff8881d9741000 FS: 0000000000000000(0000) GS:ffff8881db300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055a840964160 CR3: 00000001d2972000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: usb_probe_interface+0x310/0x800 drivers/usb/core/driver.c:374 really_probe+0x290/0xac0 drivers/base/dd.c:527 driver_probe_device+0x223/0x350 drivers/base/dd.c:701 __device_attach_driver+0x1d1/0x290 drivers/base/dd.c:808 bus_for_each_drv+0x162/0x1e0 drivers/base/bus.c:431 __device_attach+0x21a/0x390 drivers/base/dd.c:874 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:491 device_add+0x1367/0x1c20 drivers/base/core.c:2533 usb_set_configuration+0xed4/0x1850 drivers/usb/core/message.c:2025 usb_generic_driver_probe+0x9d/0xe0 drivers/usb/core/generic.c:241 usb_probe_device+0xd9/0x230 drivers/usb/core/driver.c:272 really_probe+0x290/0xac0 drivers/base/dd.c:527 driver_probe_device+0x223/0x350 drivers/base/dd.c:701 __device_attach_driver+0x1d1/0x290 drivers/base/dd.c:808 bus_for_each_drv+0x162/0x1e0 drivers/base/bus.c:431 __device_attach+0x21a/0x390 drivers/base/dd.c:874 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:491 device_add+0x1367/0x1c20 drivers/base/core.c:2533 usb_new_device.cold+0x540/0xcd0 drivers/usb/core/hub.c:2548 hub_port_connect drivers/usb/core/hub.c:5195 [inline] hub_port_connect_change drivers/usb/core/hub.c:5335 [inline] port_event drivers/usb/core/hub.c:5481 [inline] hub_event+0x21cb/0x4300 drivers/usb/core/hub.c:5563 process_one_work+0x965/0x1630 kernel/workqueue.c:2268 worker_thread+0x96/0xe20 kernel/workqueue.c:2414 kthread+0x326/0x430 kernel/kthread.c:268 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 Modules linked in: ---[ end trace 67047f68f48827d5 ]--- RIP: 0010:go7007_usb_probe+0x1e0/0x1dc5 drivers/media/usb/go7007/go7007-usb.c:1125 Code: 03 80 3c 02 00 0f 85 df 18 00 00 4d 8b ae 98 00 00 00 48 b8 00 00 00 00 00 fc ff df 49 8d bd e8 05 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 ac 18 00 00 4d 8b ad e8 05 00 00 4d 85 ed 0f 84 RSP: 0018:ffff8881d8aff190 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: ffff8881d8caf000 RCX: 1ffffffff126c284 RDX: 00000000000000bd RSI: ffffffff8454389a RDI: 00000000000005e8 RBP: ffff8881d7270000 R08: 0000000000000001 R09: fffffbfff1268ad6 R10: ffffffff893456af R11: fffffbfff1268ad5 R12: ffffffff86785360 R13: 0000000000000000 R14: ffff8881cf6dc400 R15: ffff8881d9741000 FS: 0000000000000000(0000) GS:ffff8881db300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055a840964160 CR3: 00000001d2972000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Tested on: commit: e9010320 usb: cdns3: gadget: make a bunch of functions sta.. git tree: https://github.com/google/kasan.git console output: https://syzkaller.appspot.com/x/log.txt?x=11ef7dbfe00000 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) patch: https://syzkaller.appspot.com/x/patch.diff?x=1155b758100000