syzbot


KMSAN: uninit-value in rpm_resume
Status: upstream: reported C repro on 2019/09/30 22:39
Reported-by: syzbot+f29321f9d6534937db3a@syzkaller.appspotmail.com
First crash: 1021d, last: 964d

Sample crash report:
=====================================================
BUG: KMSAN: uninit-value in __pm_runtime_resume+0x116/0x190 drivers/base/power/runtime.c:1076
CPU: 1 PID: 12011 Comm: syz-executor265 Not tainted 5.3.0-rc7+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x191/0x1f0 lib/dump_stack.c:113
 kmsan_report+0x13a/0x2b0 mm/kmsan/kmsan_report.c:108
 __msan_warning+0x73/0xe0 mm/kmsan/kmsan_instr.c:250
 rpm_resume+0x3e8/0x2bb0 drivers/base/power/runtime.c:715
 __pm_runtime_resume+0x116/0x190 drivers/base/power/runtime.c:1076
 pm_runtime_get_sync include/linux/pm_runtime.h:226 [inline]
 usb_autopm_get_interface+0x5f/0x100 drivers/usb/core/driver.c:1707
 usbhid_power+0xb7/0x170 drivers/hid/usbhid/hid-core.c:1234
 hid_hw_power include/linux/hid.h:1038 [inline]
 hidraw_open+0x459/0xc10 drivers/hid/hidraw.c:282
 chrdev_open+0xc58/0xe00 fs/char_dev.c:414
 do_dentry_open+0xda7/0x1810 fs/open.c:797
 vfs_open+0xaf/0xe0 fs/open.c:906
 do_last fs/namei.c:3416 [inline]
 path_openat+0x17f4/0x6bb0 fs/namei.c:3533
 do_filp_open+0x2b8/0x710 fs/namei.c:3563
 do_sys_open+0x642/0xa30 fs/open.c:1089
 __do_sys_open fs/open.c:1107 [inline]
 __se_sys_open+0xad/0xc0 fs/open.c:1102
 __x64_sys_open+0x4a/0x70 fs/open.c:1102
 do_syscall_64+0xbc/0xf0 arch/x86/entry/common.c:297
 entry_SYSCALL_64_after_hwframe+0x63/0xe7
RIP: 0033:0x401a70
Code: 01 f0 ff ff 0f 83 c0 0b 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 83 3d 5d 5c 2d 00 00 75 14 b8 02 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 94 0b 00 00 c3 48 83 ec 08 e8 fa 00 00 00
RSP: 002b:00007ffd4f1bc598 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000401a70
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007ffd4f1bc5a0
RBP: 6666666666666667 R08: 000000000000000f R09: 00000000004002e0
R10: 0000000000004000 R11: 0000000000000246 R12: 0000000000402a90
R13: 0000000000402b20 R14: 0000000000000000 R15: 0000000000000000
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:150 [inline]
 kmsan_internal_poison_shadow+0x53/0x100 mm/kmsan/kmsan.c:134
 kmsan_slab_free+0x8d/0x100 mm/kmsan/kmsan_hooks.c:123
 slab_free_freelist_hook mm/slub.c:1472 [inline]
 slab_free mm/slub.c:3038 [inline]
 kfree+0x4c1/0x2db0 mm/slub.c:3980
 usb_release_interface+0x105/0x120 drivers/usb/core/message.c:1633
 device_release+0xe2/0x380 drivers/base/core.c:1060
 kobject_cleanup lib/kobject.c:693 [inline]
 kobject_release lib/kobject.c:722 [inline]
 kref_put include/linux/kref.h:65 [inline]
 kobject_put+0x38d/0x480 lib/kobject.c:739
 put_device+0x51/0x70 drivers/base/core.c:2264
 usb_disable_device+0x69a/0x1150 drivers/usb/core/message.c:1248
 usb_disconnect+0x51e/0xd60 drivers/usb/core/hub.c:2199
 hub_port_connect drivers/usb/core/hub.c:4949 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5213 [inline]
 port_event drivers/usb/core/hub.c:5359 [inline]
 hub_event+0x3fd0/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
=====================================================

Crashes (18):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kmsan-gce 2019/10/05 17:07 https://github.com/google/kmsan.git master 1e76a3e537c3 f3f7d9c8 .config log report syz C
ci-upstream-kmsan-gce 2019/09/28 09:42 https://github.com/google/kmsan.git master 124037e07586 d8074e0b .config log report syz C
ci-upstream-kmsan-gce 2019/09/19 17:22 https://github.com/google/kmsan.git master cebbfdbcf2b7 eb940044 .config log report syz C
ci-upstream-kmsan-gce 2019/09/16 01:50 https://github.com/google/kmsan.git master cebbfdbcf2b7 32d59357 .config log report syz C
ci-upstream-kmsan-gce 2019/09/15 21:45 https://github.com/google/kmsan.git master cebbfdbcf2b7 32d59357 .config log report syz C
ci-upstream-kmsan-gce 2019/09/15 09:01 https://github.com/google/kmsan.git master cebbfdbcf2b7 32d59357 .config log report syz C
ci-upstream-kmsan-gce 2019/09/15 07:18 https://github.com/google/kmsan.git master cebbfdbcf2b7 32d59357 .config log report syz C
ci-upstream-kmsan-gce 2019/09/14 21:35 https://github.com/google/kmsan.git master cebbfdbcf2b7 32d59357 .config log report syz C
ci-upstream-kmsan-gce 2019/09/14 19:52 https://github.com/google/kmsan.git master cebbfdbcf2b7 32d59357 .config log report syz C
ci-upstream-kmsan-gce 2019/09/14 18:17 https://github.com/google/kmsan.git master cebbfdbcf2b7 32d59357 .config log report syz C
ci-upstream-kmsan-gce 2019/09/10 16:41 https://github.com/google/kmsan.git master 014077b5cd62 a60cb4cd .config log report syz C
ci-upstream-kmsan-gce 2019/09/09 20:30 https://github.com/google/kmsan.git master 014077b5cd62 a60cb4cd .config log report syz C
ci-upstream-kmsan-gce 2019/09/07 20:22 https://github.com/google/kmsan.git master 014077b5cd62 a60cb4cd .config log report syz C
ci-upstream-kmsan-gce 2019/09/01 19:27 https://github.com/google/kmsan.git master e88bfb817dca bad3cce2 .config log report syz C
ci-upstream-kmsan-gce 2019/08/26 17:59 https://github.com/google/kmsan.git master 61ccdad1fcdf d21c5d9d .config log report syz C
ci-upstream-kmsan-gce 2019/08/13 12:24 https://github.com/google/kmsan.git master 61ccdad1fcdf 8620c2c2 .config log report syz C
ci-upstream-kmsan-gce 2019/08/08 18:27 https://github.com/google/kmsan.git master 61ccdad1fcdf e6ebef88 .config log report syz C
ci-upstream-kmsan-gce 2019/10/05 03:15 https://github.com/google/kmsan.git master 1e76a3e537c3 f3f7d9c8 .config log report