From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.4 required=3.0 tests=FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A025FC31E40 for ; Mon, 12 Aug 2019 12:08:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 74F6020651 for ; Mon, 12 Aug 2019 12:08:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728675AbfHLMIQ (ORCPT ); Mon, 12 Aug 2019 08:08:16 -0400 Received: from mail-ot1-f71.google.com ([209.85.210.71]:44817 "EHLO mail-ot1-f71.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728587AbfHLMII (ORCPT ); Mon, 12 Aug 2019 08:08:08 -0400 Received: by mail-ot1-f71.google.com with SMTP id q16so83986893otn.11 for ; Mon, 12 Aug 2019 05:08:07 -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:message-id:subject:from:to; bh=Ywj85VvT42ExBz1omSPQeO7VLLMCmBGtLJt3+nZQbNo=; b=I+0JE36/Hbobe0qKtrxQheh8zVCyh12EI9mL/Ly3TqqO6mR/2HU080ZwGqGckfiH5s kIXKI80JOeuXXiacp5fng2WPwgEdeW7eV6xrwu9lvwbIjGW6nYNAVCP1k6WCnpajdUaI K60w1y3hUm0NN/qwuo4YPqpgmGM+nbD0kPLRrTgvUyS3F/a17kxEMn7Pu0Y5aNjCash8 VaKL0NZLi1TcR8yzJ7GZkRJYaDK+gLUMCjbzFp64PZp4Sqw79mlMm1Zn+JhfcF5X7bOp QGJvPlewVJMjeEPpJwHx4mySHLQ/DvnHEsedHcAMPSX3NBo9yPU9BwT33fYeUVNEkjpF 0z/w== X-Gm-Message-State: APjAAAWtaJWgus449yX7gSqbrPM5bkHiHr+sosXkE+QOo3qGRoGPkEqt ESB1dN0tcNy1pJrdAXFS6i2m0I4C5I/qFFl7plql90B622KQ X-Google-Smtp-Source: APXvYqw57Z0WD+ihkt6puj9Q98EY0wy6sFf1kTwmhhtxdW9KPPfqxuVsgwRXQa90DCSpwlbWwlKgaveug83sQqr4/eEstXeWMz/M MIME-Version: 1.0 X-Received: by 2002:a6b:7909:: with SMTP id i9mr33373116iop.8.1565611687290; Mon, 12 Aug 2019 05:08:07 -0700 (PDT) Date: Mon, 12 Aug 2019 05:08:07 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000007a3d3b058fea6016@google.com> Subject: KMSAN: uninit-value in gtco_probe From: syzbot To: dmitry.torokhov@gmail.com, glider@google.com, granthernandez@google.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot found the following crash on: HEAD commit: 61ccdad1 Revert "drm/bochs: Use shadow buffer for bochs fr.. git tree: kmsan console output: https://syzkaller.appspot.com/x/log.txt?x=15e29b26600000 kernel config: https://syzkaller.appspot.com/x/.config?x=27abc558ecb16a3b dashboard link: https://syzkaller.appspot.com/bug?extid=bb54195a43a54b1e5e5e compiler: clang version 9.0.0 (/home/glider/llvm/clang 80fee25776c2fb61e74c1ecb1a523375c2500b69) 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+bb54195a43a54b1e5e5e@syzkaller.appspotmail.com usb 6-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 usb 6-1: config 0 descriptor?? gtco 6-1:0.219: Collection level already at zero ================================================================== BUG: KMSAN: uninit-value in parse_hid_report_descriptor drivers/input/tablet/gtco.c:297 [inline] BUG: KMSAN: uninit-value in gtco_probe+0x18c7/0x3520 drivers/input/tablet/gtco.c:938 CPU: 1 PID: 12046 Comm: kworker/1:0 Not tainted 5.3.0-rc3+ #17 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: usb_hub_wq hub_event Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x191/0x1f0 lib/dump_stack.c:113 kmsan_report+0x162/0x2d0 mm/kmsan/kmsan_report.c:109 __msan_warning+0x75/0xe0 mm/kmsan/kmsan_instr.c:294 parse_hid_report_descriptor drivers/input/tablet/gtco.c:297 [inline] gtco_probe+0x18c7/0x3520 drivers/input/tablet/gtco.c:938 usb_probe_interface+0xd19/0x1310 drivers/usb/core/driver.c:361 really_probe+0x1373/0x1dc0 drivers/base/dd.c:552 driver_probe_device+0x1ba/0x510 drivers/base/dd.c:709 __device_attach_driver+0x5b8/0x790 drivers/base/dd.c:816 bus_for_each_drv+0x28e/0x3b0 drivers/base/bus.c:454 __device_attach+0x489/0x750 drivers/base/dd.c:882 device_initial_probe+0x4a/0x60 drivers/base/dd.c:929 bus_probe_device+0x131/0x390 drivers/base/bus.c:514 device_add+0x25b5/0x2df0 drivers/base/core.c:2114 usb_set_configuration+0x309f/0x3710 drivers/usb/core/message.c:2027 generic_probe+0xe7/0x280 drivers/usb/core/generic.c:210 usb_probe_device+0x146/0x200 drivers/usb/core/driver.c:266 really_probe+0x1373/0x1dc0 drivers/base/dd.c:552 driver_probe_device+0x1ba/0x510 drivers/base/dd.c:709 __device_attach_driver+0x5b8/0x790 drivers/base/dd.c:816 bus_for_each_drv+0x28e/0x3b0 drivers/base/bus.c:454 __device_attach+0x489/0x750 drivers/base/dd.c:882 device_initial_probe+0x4a/0x60 drivers/base/dd.c:929 bus_probe_device+0x131/0x390 drivers/base/bus.c:514 device_add+0x25b5/0x2df0 drivers/base/core.c:2114 usb_new_device+0x23e5/0x2fb0 drivers/usb/core/hub.c:2536 hub_port_connect drivers/usb/core/hub.c:5098 [inline] hub_port_connect_change drivers/usb/core/hub.c:5213 [inline] port_event drivers/usb/core/hub.c:5359 [inline] hub_event+0x581d/0x72f0 drivers/usb/core/hub.c:5441 process_one_work+0x1572/0x1ef0 kernel/workqueue.c:2269 worker_thread+0x111b/0x2460 kernel/workqueue.c:2415 kthread+0x4b5/0x4f0 kernel/kthread.c:256 ret_from_fork+0x35/0x40 arch/x86/entry/entry_64.S:355 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:187 [inline] kmsan_internal_chain_origin+0xcc/0x150 mm/kmsan/kmsan.c:345 __msan_chain_origin+0x6b/0xe0 mm/kmsan/kmsan_instr.c:190 parse_hid_report_descriptor drivers/input/tablet/gtco.c:298 [inline] gtco_probe+0x1a7c/0x3520 drivers/input/tablet/gtco.c:938 usb_probe_interface+0xd19/0x1310 drivers/usb/core/driver.c:361 really_probe+0x1373/0x1dc0 drivers/base/dd.c:552 driver_probe_device+0x1ba/0x510 drivers/base/dd.c:709 __device_attach_driver+0x5b8/0x790 drivers/base/dd.c:816 bus_for_each_drv+0x28e/0x3b0 drivers/base/bus.c:454 __device_attach+0x489/0x750 drivers/base/dd.c:882 device_initial_probe+0x4a/0x60 drivers/base/dd.c:929 bus_probe_device+0x131/0x390 drivers/base/bus.c:514 device_add+0x25b5/0x2df0 drivers/base/core.c:2114 usb_set_configuration+0x309f/0x3710 drivers/usb/core/message.c:2027 generic_probe+0xe7/0x280 drivers/usb/core/generic.c:210 usb_probe_device+0x146/0x200 drivers/usb/core/driver.c:266 really_probe+0x1373/0x1dc0 drivers/base/dd.c:552 driver_probe_device+0x1ba/0x510 drivers/base/dd.c:709 __device_attach_driver+0x5b8/0x790 drivers/base/dd.c:816 bus_for_each_drv+0x28e/0x3b0 drivers/base/bus.c:454 __device_attach+0x489/0x750 drivers/base/dd.c:882 device_initial_probe+0x4a/0x60 drivers/base/dd.c:929 bus_probe_device+0x131/0x390 drivers/base/bus.c:514 device_add+0x25b5/0x2df0 drivers/base/core.c:2114 usb_new_device+0x23e5/0x2fb0 drivers/usb/core/hub.c:2536 hub_port_connect drivers/usb/core/hub.c:5098 [inline] hub_port_connect_change drivers/usb/core/hub.c:5213 [inline] port_event drivers/usb/core/hub.c:5359 [inline] hub_event+0x581d/0x72f0 drivers/usb/core/hub.c:5441 process_one_work+0x1572/0x1ef0 kernel/workqueue.c:2269 worker_thread+0x111b/0x2460 kernel/workqueue.c:2415 kthread+0x4b5/0x4f0 kernel/kthread.c:256 ret_from_fork+0x35/0x40 arch/x86/entry/entry_64.S:355 Local variable description: ----globalval.i@gtco_probe Variable was created at: parse_hid_report_descriptor drivers/input/tablet/gtco.c:221 [inline] gtco_probe+0xcd6/0x3520 drivers/input/tablet/gtco.c:938 usb_probe_interface+0xd19/0x1310 drivers/usb/core/driver.c:361 ================================================================== --- This bug is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this bug report. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot.