syzbot


KMSAN: uninit-value in number

Status: fixed on 2020/02/18 14:31
Subsystems: media usb
[Documentation on labels]
Reported-by: syzbot+9d42b7773d2fecd983ab@syzkaller.appspotmail.com
Fix commit: 51d0c99b391f media: af9005: uninitialized variable printked
First crash: 1644d, last: 1531d
Discussions (9)
Title Replies (including bot) Last reply
[PATCH 5.5 00/23] 5.5.2-stable review 31 (31) 2020/02/08 16:13
[PATCH 5.4 00/90] 5.4.18-stable review 107 (107) 2020/02/05 21:21
[PATCH 4.19 00/70] 4.19.102-stable review 77 (77) 2020/02/05 14:42
[PATCH 4.14 00/89] 4.14.170-stable review 93 (93) 2020/02/04 17:19
[PATCH 4.9 00/68] 4.9.213-stable review 72 (72) 2020/02/04 17:18
Reminder: 45 active syzbot reports in usb subsystem 1 (1) 2019/11/19 04:27
[PATCH 0/5] Fix various syzbot errors 10 (10) 2019/11/12 09:53
[PATCH 1/3] media: digitv: don't continue if remote control state can't be read 3 (3) 2019/11/10 10:34
KMSAN: uninit-value in number 0 (1) 2019/11/08 13:24
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in number (4) kernel C 7189 518d 896d 0/26 closed as invalid on 2022/11/28 10:01
upstream KMSAN: uninit-value in number (2) can C 168 1142d 1521d 19/26 fixed on 2021/03/10 01:48
upstream KMSAN: uninit-value in number (3) media C 8575 896d 1140d 20/26 fixed on 2021/11/10 00:50
Last patch testing requests (1)
Created Duration User Patch Repo Result
2019/11/11 14:27 21m hverkuil@xs4all.nl patch https://github.com/google/kmsan.git master OK

Sample crash report:
usb 1-1: config 0 has no interface number 0
usb 1-1: New USB device found, idVendor=15a4, idProduct=9020, bcdDevice=ba.2a
usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
usb 1-1: config 0 descriptor??
=====================================================
BUG: KMSAN: uninit-value in number+0x32e/0x1e40 lib/vsprintf.c:436
CPU: 1 PID: 3904 Comm: kworker/1:2 Not tainted 5.4.0-rc3+ #0
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+0x128/0x220 mm/kmsan/kmsan_report.c:108
 __msan_warning+0x73/0xe0 mm/kmsan/kmsan_instr.c:245
 number+0x32e/0x1e40 lib/vsprintf.c:436
 vsnprintf+0x1e99/0x3210 lib/vsprintf.c:2576
 vscnprintf+0xc2/0x180 lib/vsprintf.c:2613
 vprintk_store+0xef/0x11e0 kernel/printk/printk.c:1921
 vprintk_emit+0x2fd/0x8d0 kernel/printk/printk.c:1984
 vprintk_default+0x90/0xa0 kernel/printk/printk.c:2029
 vprintk_func+0x635/0x810 kernel/printk/printk_safe.c:386
 printk+0x180/0x1c3 kernel/printk/printk.c:2062
 af9005_boot_packet+0xedc/0x17d0 drivers/media/usb/dvb-usb/af9005.c:607
 af9005_identify_state+0x13e/0x420 drivers/media/usb/dvb-usb/af9005.c:969
 dvb_usb_find_device drivers/media/usb/dvb-usb/dvb-usb-init.c:221 [inline]
 dvb_usb_device_init+0xb72/0x2e10 drivers/media/usb/dvb-usb/dvb-usb-init.c:258
 af9005_usb_probe+0x73/0x80 drivers/media/usb/dvb-usb/af9005.c:992
 usb_probe_interface+0xd19/0x1310 drivers/usb/core/driver.c:361
 really_probe+0xd91/0x1f90 drivers/base/dd.c:552
 driver_probe_device+0x1ba/0x510 drivers/base/dd.c:721
 __device_attach_driver+0x5b8/0x790 drivers/base/dd.c:828
 bus_for_each_drv+0x28e/0x3b0 drivers/base/bus.c:430
 __device_attach+0x489/0x750 drivers/base/dd.c:894
 device_initial_probe+0x4a/0x60 drivers/base/dd.c:941
 bus_probe_device+0x131/0x390 drivers/base/bus.c:490
 device_add+0x25b5/0x2df0 drivers/base/core.c:2201
 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+0xd91/0x1f90 drivers/base/dd.c:552
 driver_probe_device+0x1ba/0x510 drivers/base/dd.c:721
 __device_attach_driver+0x5b8/0x790 drivers/base/dd.c:828
 bus_for_each_drv+0x28e/0x3b0 drivers/base/bus.c:430
 __device_attach+0x489/0x750 drivers/base/dd.c:894
 device_initial_probe+0x4a/0x60 drivers/base/dd.c:941
 bus_probe_device+0x131/0x390 drivers/base/bus.c:490
 device_add+0x25b5/0x2df0 drivers/base/core.c:2201
 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: ----act_len@af9005_boot_packet
Variable was created at:
 af9005_boot_packet+0x98/0x17d0 drivers/media/usb/dvb-usb/af9005.c:559
 af9005_boot_packet+0x98/0x17d0 drivers/media/usb/dvb-usb/af9005.c:559
=====================================================

Crashes (190):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/10/24 01:59 https://github.com/google/kmsan.git master ba606e9df216 b602d64b .config console log report syz C ci-upstream-kmsan-gce
2020/02/14 07:26 https://github.com/google/kmsan.git master 686a4f77cb0c 5d7b90f1 .config console log report ci-upstream-kmsan-gce
2020/02/13 18:47 https://github.com/google/kmsan.git master 686a4f77cb0c c5ed587f .config console log report ci-upstream-kmsan-gce
2019/12/26 01:21 https://github.com/google/kmsan.git master 997a8b55bc92 be5c2c81 .config console log report ci-upstream-kmsan-gce
2019/12/10 01:35 https://github.com/google/kmsan.git master f8f75f037ea5 b31eda3d .config console log report ci-upstream-kmsan-gce
2019/12/07 22:38 https://github.com/google/kmsan.git master f8f75f037ea5 1508f453 .config console log report ci-upstream-kmsan-gce
2019/12/05 04:26 https://github.com/google/kmsan.git master 141b13f7780f b2088328 .config console log report ci-upstream-kmsan-gce
2019/11/29 18:17 https://github.com/google/kmsan.git master e2027b2c33b7 d29b9e84 .config console log report ci-upstream-kmsan-gce
2019/11/27 19:35 https://github.com/google/kmsan.git master c543ab669ab8 0d63f89c .config console log report ci-upstream-kmsan-gce
2019/11/26 23:09 https://github.com/google/kmsan.git master df335139222b 1048481f .config console log report ci-upstream-kmsan-gce
2019/11/18 23:25 https://github.com/google/kmsan.git master 9c6a71628ab9 1daed50a .config console log report ci-upstream-kmsan-gce
2019/11/17 17:34 https://github.com/google/kmsan.git master 9c6a71628ab9 d5696d51 .config console log report ci-upstream-kmsan-gce
2019/11/07 13:27 https://github.com/google/kmsan.git master 10459ed9b198 d797d201 .config console log report ci-upstream-kmsan-gce
2019/11/04 14:47 https://github.com/google/kmsan.git master 6f88939b3fa3 18e12644 .config console log report ci-upstream-kmsan-gce
2019/11/04 02:47 https://github.com/google/kmsan.git master 6f88939b3fa3 b35fad31 .config console log report ci-upstream-kmsan-gce
2019/11/03 22:21 https://github.com/google/kmsan.git master 6f88939b3fa3 c9610487 .config console log report ci-upstream-kmsan-gce
2019/11/03 14:36 https://github.com/google/kmsan.git master 6f88939b3fa3 c9610487 .config console log report ci-upstream-kmsan-gce
2019/11/03 09:42 https://github.com/google/kmsan.git master 6f88939b3fa3 a41ca8fa .config console log report ci-upstream-kmsan-gce
2019/11/03 08:10 https://github.com/google/kmsan.git master 6f88939b3fa3 a41ca8fa .config console log report ci-upstream-kmsan-gce
2019/11/03 00:08 https://github.com/google/kmsan.git master 6f88939b3fa3 a41ca8fa .config console log report ci-upstream-kmsan-gce
2019/11/02 23:06 https://github.com/google/kmsan.git master 6f88939b3fa3 a41ca8fa .config console log report ci-upstream-kmsan-gce
2019/10/31 07:45 https://github.com/google/kmsan.git master 6f88939b3fa3 a41ca8fa .config console log report ci-upstream-kmsan-gce
2019/10/31 06:37 https://github.com/google/kmsan.git master 6f88939b3fa3 a41ca8fa .config console log report ci-upstream-kmsan-gce
2019/10/31 02:05 https://github.com/google/kmsan.git master 6f88939b3fa3 a41ca8fa .config console log report ci-upstream-kmsan-gce
2019/10/30 22:29 https://github.com/google/kmsan.git master 6f88939b3fa3 a41ca8fa .config console log report ci-upstream-kmsan-gce
2019/10/30 14:57 https://github.com/google/kmsan.git master 6f88939b3fa3 5ea87a66 .config console log report ci-upstream-kmsan-gce
2019/10/30 03:25 https://github.com/google/kmsan.git master 96c6c3194b1b 5ea87a66 .config console log report ci-upstream-kmsan-gce
2019/10/29 20:40 https://github.com/google/kmsan.git master 96c6c3194b1b 5ea87a66 .config console log report ci-upstream-kmsan-gce
2019/10/29 19:42 https://github.com/google/kmsan.git master 96c6c3194b1b 5ea87a66 .config console log report ci-upstream-kmsan-gce
2019/10/29 07:09 https://github.com/google/kmsan.git master 96c6c3194b1b 5ea87a66 .config console log report ci-upstream-kmsan-gce
2019/10/29 04:28 https://github.com/google/kmsan.git master 96c6c3194b1b 439d7b14 .config console log report ci-upstream-kmsan-gce
2019/10/29 04:11 https://github.com/google/kmsan.git master 96c6c3194b1b 439d7b14 .config console log report ci-upstream-kmsan-gce
2019/10/28 21:36 https://github.com/google/kmsan.git master 96c6c3194b1b 439d7b14 .config console log report ci-upstream-kmsan-gce
2019/10/28 19:00 https://github.com/google/kmsan.git master 96c6c3194b1b 439d7b14 .config console log report ci-upstream-kmsan-gce
2019/10/28 14:55 https://github.com/google/kmsan.git master d86c15562d02 25bb509e .config console log report ci-upstream-kmsan-gce
2019/10/28 13:24 https://github.com/google/kmsan.git master d86c15562d02 25bb509e .config console log report ci-upstream-kmsan-gce
2019/10/28 10:54 https://github.com/google/kmsan.git master d86c15562d02 25bb509e .config console log report ci-upstream-kmsan-gce
2019/10/28 09:37 https://github.com/google/kmsan.git master d86c15562d02 25bb509e .config console log report ci-upstream-kmsan-gce
2019/10/28 08:02 https://github.com/google/kmsan.git master d86c15562d02 25bb509e .config console log report ci-upstream-kmsan-gce
2019/10/28 03:21 https://github.com/google/kmsan.git master d86c15562d02 25bb509e .config console log report ci-upstream-kmsan-gce
2019/10/27 23:59 https://github.com/google/kmsan.git master d86c15562d02 25bb509e .config console log report ci-upstream-kmsan-gce
2019/10/27 21:48 https://github.com/google/kmsan.git master d86c15562d02 25bb509e .config console log report ci-upstream-kmsan-gce
2019/10/27 18:35 https://github.com/google/kmsan.git master d86c15562d02 25bb509e .config console log report ci-upstream-kmsan-gce
2019/10/27 17:29 https://github.com/google/kmsan.git master d86c15562d02 25bb509e .config console log report ci-upstream-kmsan-gce
2019/10/27 16:24 https://github.com/google/kmsan.git master d86c15562d02 25bb509e .config console log report ci-upstream-kmsan-gce
2019/10/27 12:09 https://github.com/google/kmsan.git master d86c15562d02 25bb509e .config console log report ci-upstream-kmsan-gce
2019/10/27 08:08 https://github.com/google/kmsan.git master d86c15562d02 25bb509e .config console log report ci-upstream-kmsan-gce
2019/10/27 04:22 https://github.com/google/kmsan.git master d86c15562d02 25bb509e .config console log report ci-upstream-kmsan-gce
2019/10/23 23:21 https://github.com/google/kmsan.git master ba606e9df216 b602d64b .config console log report ci-upstream-kmsan-gce
* Struck through repros no longer work on HEAD.