syzbot


KMSAN: uninit-value in tda8083_attach
Status: upstream: reported C repro on 2020/08/11 16:56
Reported-by: syzbot+909a91e75919efd2b557@syzkaller.appspotmail.com
First crash: 655d, last: 645d
Patch testing requests:
Created Duration User Patch Repo Result
2020/09/04 06:16 13m dragonjetli@gmail.com patch https://github.com/google/kmsan.git master report log
2020/09/04 05:42 0m dragonjetli@gmail.com patch https://github.com/google/kmsan.git master error
2020/09/03 15:32 19m dragonjetli@gmail.com patch https://github.com/google/kmsan.git master report log
2020/09/02 23:49 13m dragonjetli@gmail.com https://github.com/google/kmsan.git master report log

Sample crash report:
usb 1-1: config 0 descriptor??
usb 1-1: selecting invalid altsetting 1
ttusb_init_controller: error
dvbdev: DVB: registering new adapter (Technotrend/Hauppauge Nova-USB)
=====================================================
BUG: KMSAN: uninit-value in tda8083_attach+0x55a/0x6d0 drivers/media/dvb-frontends/tda8083.c:428
CPU: 1 PID: 28 Comm: kworker/1:1 Not tainted 5.8.0-rc5-syzkaller #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+0x21c/0x280 lib/dump_stack.c:118
 kmsan_report+0xf7/0x1e0 mm/kmsan/kmsan_report.c:121
 __msan_warning+0x58/0xa0 mm/kmsan/kmsan_instr.c:215
 tda8083_attach+0x55a/0x6d0 drivers/media/dvb-frontends/tda8083.c:428
 frontend_init drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c:1574 [inline]
 ttusb_probe+0x4238/0x5040 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c:1739
 usb_probe_interface+0xece/0x1550 drivers/usb/core/driver.c:374
 really_probe+0xf20/0x20b0 drivers/base/dd.c:529
 driver_probe_device+0x293/0x390 drivers/base/dd.c:701
 __device_attach_driver+0x63f/0x830 drivers/base/dd.c:807
 bus_for_each_drv+0x2ca/0x3f0 drivers/base/bus.c:431
 __device_attach+0x4e2/0x7f0 drivers/base/dd.c:873
 device_initial_probe+0x4a/0x60 drivers/base/dd.c:920
 bus_probe_device+0x177/0x3d0 drivers/base/bus.c:491
 device_add+0x3b0e/0x40d0 drivers/base/core.c:2680
 usb_set_configuration+0x380f/0x3f10 drivers/usb/core/message.c:2032
 usb_generic_driver_probe+0x138/0x300 drivers/usb/core/generic.c:241
 usb_probe_device+0x311/0x490 drivers/usb/core/driver.c:272
 really_probe+0xf20/0x20b0 drivers/base/dd.c:529
 driver_probe_device+0x293/0x390 drivers/base/dd.c:701
 __device_attach_driver+0x63f/0x830 drivers/base/dd.c:807
 bus_for_each_drv+0x2ca/0x3f0 drivers/base/bus.c:431
 __device_attach+0x4e2/0x7f0 drivers/base/dd.c:873
 device_initial_probe+0x4a/0x60 drivers/base/dd.c:920
 bus_probe_device+0x177/0x3d0 drivers/base/bus.c:491
 device_add+0x3b0e/0x40d0 drivers/base/core.c:2680
 usb_new_device+0x1bd4/0x2a30 drivers/usb/core/hub.c:2554
 hub_port_connect drivers/usb/core/hub.c:5208 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5348 [inline]
 port_event drivers/usb/core/hub.c:5494 [inline]
 hub_event+0x5e7b/0x8a70 drivers/usb/core/hub.c:5576
 process_one_work+0x1688/0x2140 kernel/workqueue.c:2269
 worker_thread+0x10bc/0x2730 kernel/workqueue.c:2415
 kthread+0x551/0x590 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:293

Local variable ----reg1.addr.i.i@tda8083_attach created at:
 tda8083_readregs drivers/media/dvb-frontends/tda8083.c:425 [inline]
 tda8083_readreg drivers/media/dvb-frontends/tda8083.c:83 [inline]
 tda8083_attach+0x1af/0x6d0 drivers/media/dvb-frontends/tda8083.c:428
 tda8083_readregs drivers/media/dvb-frontends/tda8083.c:425 [inline]
 tda8083_readreg drivers/media/dvb-frontends/tda8083.c:83 [inline]
 tda8083_attach+0x1af/0x6d0 drivers/media/dvb-frontends/tda8083.c:428
=====================================================

Crashes (8):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kmsan-gce 2020/08/21 06:57 https://github.com/google/kmsan.git master ce8056d1f79e 1d75fe45 .config log report syz C
ci-upstream-kmsan-gce 2020/08/14 00:46 https://github.com/google/kmsan.git master ce8056d1f79e 54ce1ed6 .config log report syz C
ci-upstream-kmsan-gce 2020/08/17 16:58 https://github.com/google/kmsan.git master ce8056d1f79e 424dd8e7 .config log report
ci-upstream-kmsan-gce 2020/08/14 11:53 https://github.com/google/kmsan.git master ce8056d1f79e 424dd8e7 .config log report
ci-upstream-kmsan-gce 2020/08/14 00:07 https://github.com/google/kmsan.git master ce8056d1f79e 54ce1ed6 .config log report
ci-upstream-kmsan-gce-386 2020/08/15 19:19 https://github.com/google/kmsan.git master ce8056d1f79e 424dd8e7 .config log report
ci-upstream-kmsan-gce-386 2020/08/12 00:03 https://github.com/google/kmsan.git master ce8056d1f79e bacaf5fa .config log report
ci-upstream-kmsan-gce-386 2020/08/10 23:20 https://github.com/google/kmsan.git master ce8056d1f79e 7adc7b65 .config log report