syzbot


KMSAN: uninit-value in asix_read_cmd

Status: auto-closed as invalid on 2022/09/29 13:21
Subsystems: usb
[Documentation on labels]
First crash: 896d, last: 746d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in kobject_set_name_vargs kernel 5 790d 919d 0/26 auto-closed as invalid on 2022/06/30 14:28
upstream KMSAN: uninit-value in hid_connect kernel C 176 575d 925d 0/26 closed as invalid on 2022/11/03 08:52
upstream KMSAN: uninit-value in number (4) kernel C 7189 554d 932d 0/26 closed as invalid on 2022/11/28 10:01
upstream KMSAN: uninit-value in preempt_count_add kernel C 6657 599d 599d 0/26 closed as invalid on 2022/10/10 13:29
upstream KMSAN: uninit-value in usbnet_probe (2) usb syz 6 875d 891d 0/26 auto-closed as invalid on 2022/09/27 01:28
upstream KMSAN: uninit-value in profile_hits (3) kernel C 982 8h54m 155d 0/26 upstream: reported C repro on 2023/12/26 15:59
Last patch testing requests (4)
Created Duration User Patch Repo Result
2022/09/29 11:30 19m retest repro https://github.com/google/kmsan.git master OK log
2022/09/29 08:30 19m retest repro https://github.com/google/kmsan.git master OK log
2022/09/29 06:30 19m retest repro https://github.com/google/kmsan.git master OK log
2022/09/29 04:30 18m retest repro https://github.com/google/kmsan.git master OK log

Sample crash report:
usb 2-1: config 0 descriptor??
=====================================================
BUG: KMSAN: uninit-value in check_pointer lib/vsprintf.c:705 [inline]
BUG: KMSAN: uninit-value in string+0x3cf/0x6f0 lib/vsprintf.c:717
 check_pointer lib/vsprintf.c:705 [inline]
 string+0x3cf/0x6f0 lib/vsprintf.c:717
 vsnprintf+0x2222/0x3650 lib/vsprintf.c:2795
 vprintk_store+0x537/0x2150 kernel/printk/printk.c:2135
 vprintk_emit+0x25c/0x950 kernel/printk/printk.c:2229
 dev_vprintk_emit+0x5ef/0x6d0 drivers/base/core.c:4604
 dev_printk_emit+0x1dd/0x21f drivers/base/core.c:4615
 __netdev_printk+0x7e9/0xae0 net/core/dev.c:10782
 netdev_warn+0x1ea/0x22f net/core/dev.c:10835
 asix_read_cmd+0x2a7/0x2c0 drivers/net/usb/asix_common.c:31
 ax88772_bind+0xa28/0x1770 drivers/net/usb/asix_devices.c:726
 usbnet_probe+0x1251/0x4160 drivers/net/usb/usbnet.c:1747
 usb_probe_interface+0xf19/0x1600 drivers/usb/core/driver.c:396
 really_probe+0x653/0x14b0 drivers/base/dd.c:596
 __driver_probe_device+0x3e9/0x530 drivers/base/dd.c:752
 driver_probe_device drivers/base/dd.c:782 [inline]
 __device_attach_driver+0x79f/0x1120 drivers/base/dd.c:899
 bus_for_each_drv+0x2d6/0x3f0 drivers/base/bus.c:427
 __device_attach+0x593/0x8e0 drivers/base/dd.c:970
 device_initial_probe+0x4a/0x60 drivers/base/dd.c:1017
 bus_probe_device+0x17b/0x3e0 drivers/base/bus.c:487
 device_add+0x1fff/0x26e0 drivers/base/core.c:3405
 usb_set_configuration+0x37e9/0x3ed0 drivers/usb/core/message.c:2170
 usb_generic_driver_probe+0x13c/0x300 drivers/usb/core/generic.c:238
 usb_probe_device+0x309/0x570 drivers/usb/core/driver.c:293
 really_probe+0x653/0x14b0 drivers/base/dd.c:596
 __driver_probe_device+0x3e9/0x530 drivers/base/dd.c:752
 driver_probe_device drivers/base/dd.c:782 [inline]
 __device_attach_driver+0x79f/0x1120 drivers/base/dd.c:899
 bus_for_each_drv+0x2d6/0x3f0 drivers/base/bus.c:427
 __device_attach+0x593/0x8e0 drivers/base/dd.c:970
 device_initial_probe+0x4a/0x60 drivers/base/dd.c:1017
 bus_probe_device+0x17b/0x3e0 drivers/base/bus.c:487
 device_add+0x1fff/0x26e0 drivers/base/core.c:3405
 usb_new_device+0x1b8e/0x2950 drivers/usb/core/hub.c:2566
 hub_port_connect drivers/usb/core/hub.c:5358 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5502 [inline]
 port_event drivers/usb/core/hub.c:5660 [inline]
 hub_event+0x58e3/0x89e0 drivers/usb/core/hub.c:5742
 process_one_work+0xdb6/0x1820 kernel/workqueue.c:2307
 worker_thread+0x10b3/0x21e0 kernel/workqueue.c:2454
 kthread+0x3c7/0x500 kernel/kthread.c:377
 ret_from_fork+0x1f/0x30

Local variable tmp created at:
 number+0xad/0x23d0 lib/vsprintf.c:453
 vsnprintf+0x1f0d/0x3650 lib/vsprintf.c:2861

CPU: 1 PID: 1744 Comm: kworker/1:3 Not tainted 5.17.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: usb_hub_wq hub_event
=====================================================

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/03/09 05:08 https://github.com/google/kmsan.git master 724946410067 9e8eaa75 .config console log report syz ci-upstream-kmsan-gce KMSAN: uninit-value in asix_read_cmd
2021/12/18 09:31 https://github.com/google/kmsan.git master b0a8b5053e8b 44068e19 .config console log report syz ci-upstream-kmsan-gce KMSAN: uninit-value in asix_read_cmd
2021/12/18 00:56 https://github.com/google/kmsan.git master b0a8b5053e8b 44068e19 .config console log report syz ci-upstream-kmsan-gce KMSAN: uninit-value in asix_read_cmd
2021/12/16 07:19 https://github.com/google/kmsan.git master cc9a49821cdb 572bcb40 .config console log report syz ci-upstream-kmsan-gce KMSAN: uninit-value in asix_read_cmd
2022/05/14 23:03 https://github.com/google/kmsan.git master d6e2c8c7eb40 744a39e2 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in asix_read_cmd
2022/03/18 18:06 https://github.com/google/kmsan.git master 97c7732c2bb6 e2d91b1d .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in asix_read_cmd
2022/03/11 13:53 https://github.com/google/kmsan.git master 724946410067 9e8eaa75 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in asix_read_cmd
2022/03/26 16:03 https://github.com/google/kmsan.git master 97c7732c2bb6 89bc8608 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in asix_sw_reset
* Struck through repros no longer work on HEAD.