syzbot


KMSAN: uninit-value in ax88772a_hw_reset
Status: fixed on 2022/03/08 16:11
Reported-by: syzbot+8d179821571093c5f928@syzkaller.appspotmail.com
Fix commit: 8035b1a2a37a asix: fix uninit-value in asix_mdio_read()
First crash: 188d, last: 95d

Sample crash report:
asix 1-1:0.0 (unnamed net_device) (uninitialized): Failed to read reg index 0x0016: -71
asix 1-1:0.0 (unnamed net_device) (uninitialized): Failed to write reg index 0x0000: -71
asix 1-1:0.0 (unnamed net_device) (uninitialized): Failed to enable hardware MII access
=====================================================
BUG: KMSAN: uninit-value in ax88772a_hw_reset+0xc55/0x12e0 drivers/net/usb/asix_devices.c:523 drivers/net/usb/asix_devices.c:523
 ax88772a_hw_reset+0xc55/0x12e0 drivers/net/usb/asix_devices.c:523 drivers/net/usb/asix_devices.c:523
 ax88772_bind+0x750/0x1770 drivers/net/usb/asix_devices.c:762 drivers/net/usb/asix_devices.c:762
 usbnet_probe+0x1284/0x4140 drivers/net/usb/usbnet.c:1747 drivers/net/usb/usbnet.c:1747
 usb_probe_interface+0xf19/0x1600 drivers/usb/core/driver.c:396 drivers/usb/core/driver.c:396
 really_probe+0x67d/0x1510 drivers/base/dd.c:596 drivers/base/dd.c:596
 __driver_probe_device+0x3e9/0x530 drivers/base/dd.c:751 drivers/base/dd.c:751
 driver_probe_device drivers/base/dd.c:781 [inline]
 driver_probe_device drivers/base/dd.c:781 [inline] drivers/base/dd.c:898
 __device_attach_driver+0x79f/0x1120 drivers/base/dd.c:898 drivers/base/dd.c:898
 bus_for_each_drv+0x2d6/0x3f0 drivers/base/bus.c:427 drivers/base/bus.c:427
 __device_attach+0x593/0x8e0 drivers/base/dd.c:969 drivers/base/dd.c:969
 device_initial_probe+0x4a/0x60 drivers/base/dd.c:1016 drivers/base/dd.c:1016
 bus_probe_device+0x17b/0x3e0 drivers/base/bus.c:487 drivers/base/bus.c:487
 device_add+0x1d3e/0x2400 drivers/base/core.c:3394 drivers/base/core.c:3394
 usb_set_configuration+0x37e9/0x3ed0 drivers/usb/core/message.c:2170 drivers/usb/core/message.c:2170
 usb_generic_driver_probe+0x13c/0x300 drivers/usb/core/generic.c:238 drivers/usb/core/generic.c:238
 usb_probe_device+0x309/0x570 drivers/usb/core/driver.c:293 drivers/usb/core/driver.c:293
 really_probe+0x67d/0x1510 drivers/base/dd.c:596 drivers/base/dd.c:596
 __driver_probe_device+0x3e9/0x530 drivers/base/dd.c:751 drivers/base/dd.c:751
 driver_probe_device drivers/base/dd.c:781 [inline]
 driver_probe_device drivers/base/dd.c:781 [inline] drivers/base/dd.c:898
 __device_attach_driver+0x79f/0x1120 drivers/base/dd.c:898 drivers/base/dd.c:898
 bus_for_each_drv+0x2d6/0x3f0 drivers/base/bus.c:427 drivers/base/bus.c:427
 __device_attach+0x593/0x8e0 drivers/base/dd.c:969 drivers/base/dd.c:969
 device_initial_probe+0x4a/0x60 drivers/base/dd.c:1016 drivers/base/dd.c:1016
 bus_probe_device+0x17b/0x3e0 drivers/base/bus.c:487 drivers/base/bus.c:487
 device_add+0x1d3e/0x2400 drivers/base/core.c:3394 drivers/base/core.c:3394
 usb_new_device+0x1b8e/0x2950 drivers/usb/core/hub.c:2563 drivers/usb/core/hub.c:2563
 hub_port_connect drivers/usb/core/hub.c:5353 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5497 [inline]
 port_event drivers/usb/core/hub.c:5643 [inline]
 hub_port_connect drivers/usb/core/hub.c:5353 [inline] drivers/usb/core/hub.c:5725
 hub_port_connect_change drivers/usb/core/hub.c:5497 [inline] drivers/usb/core/hub.c:5725
 port_event drivers/usb/core/hub.c:5643 [inline] drivers/usb/core/hub.c:5725
 hub_event+0x5ad2/0x8910 drivers/usb/core/hub.c:5725 drivers/usb/core/hub.c:5725
 process_one_work+0xdb9/0x1820 kernel/workqueue.c:2298 kernel/workqueue.c:2298
 worker_thread+0x10bc/0x21f0 kernel/workqueue.c:2445 kernel/workqueue.c:2445
 kthread+0x721/0x850 kernel/kthread.c:327 kernel/kthread.c:327
 ret_from_fork+0x1f/0x30

Local variable smsr.i created at:
 asix_mdio_read_nopm+0xb9/0xa50 drivers/net/usb/asix_common.c:574 drivers/net/usb/asix_common.c:574
 ax88772a_hw_reset+0x83c/0x12e0 drivers/net/usb/asix_devices.c:511 drivers/net/usb/asix_devices.c:511

CPU: 1 PID: 115 Comm: kworker/1:2 Not tainted 5.16.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: usb_hub_wq hub_event
=====================================================

Crashes (94):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kmsan-gce 2021/12/19 22:51 https://github.com/google/kmsan.git master b0a8b5053e8b 44068e19 .config log report syz C KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/02/18 17:37 https://github.com/google/kmsan.git master 85cfd6e539bd 3cd800e4 .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/02/18 10:19 https://github.com/google/kmsan.git master 85cfd6e539bd 3cd800e4 .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/02/17 16:57 https://github.com/google/kmsan.git master 85cfd6e539bd 3cd800e4 .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/02/16 20:24 https://github.com/google/kmsan.git master 85cfd6e539bd 8b9ca619 .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/02/16 03:44 https://github.com/google/kmsan.git master 85cfd6e539bd 8b9ca619 .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/02/15 22:19 https://github.com/google/kmsan.git master 85cfd6e539bd 8b9ca619 .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/02/15 16:15 https://github.com/google/kmsan.git master 85cfd6e539bd 8b9ca619 .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/02/15 05:44 https://github.com/google/kmsan.git master 85cfd6e539bd 8b9ca619 .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/02/15 02:29 https://github.com/google/kmsan.git master 85cfd6e539bd 8b9ca619 .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/02/14 22:39 https://github.com/google/kmsan.git master 85cfd6e539bd 8b9ca619 .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/02/14 21:15 https://github.com/google/kmsan.git master 85cfd6e539bd 8b9ca619 .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/02/14 17:54 https://github.com/google/kmsan.git master 85cfd6e539bd 8b9ca619 .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/02/14 11:20 https://github.com/google/kmsan.git master 85cfd6e539bd 8b9ca619 .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/02/14 10:26 https://github.com/google/kmsan.git master 85cfd6e539bd 8b9ca619 .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/02/13 20:37 https://github.com/google/kmsan.git master 85cfd6e539bd 8b9ca619 .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/02/13 06:12 https://github.com/google/kmsan.git master 85cfd6e539bd 8b9ca619 .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/02/13 02:17 https://github.com/google/kmsan.git master 85cfd6e539bd 8b9ca619 .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/02/12 18:28 https://github.com/google/kmsan.git master 85cfd6e539bd 8b9ca619 .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/02/12 14:17 https://github.com/google/kmsan.git master 85cfd6e539bd 8b9ca619 .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/02/11 11:18 https://github.com/google/kmsan.git master 85cfd6e539bd 0b33604d .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/02/09 20:56 https://github.com/google/kmsan.git master 85cfd6e539bd 0b33604d .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/02/09 09:48 https://github.com/google/kmsan.git master 85cfd6e539bd 0b33604d .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/02/08 19:54 https://github.com/google/kmsan.git master 85cfd6e539bd 0b33604d .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/02/08 00:50 https://github.com/google/kmsan.git master 85cfd6e539bd a7dab638 .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/02/07 21:47 https://github.com/google/kmsan.git master 85cfd6e539bd a7dab638 .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/02/07 08:53 https://github.com/google/kmsan.git master 85cfd6e539bd a7dab638 .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/02/06 20:35 https://github.com/google/kmsan.git master 85cfd6e539bd a7dab638 .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/02/06 08:03 https://github.com/google/kmsan.git master 85cfd6e539bd a7dab638 .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/02/04 04:53 https://github.com/google/kmsan.git master 85cfd6e539bd 30646bfe .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/02/03 18:27 https://github.com/google/kmsan.git master 85cfd6e539bd 4ebb2798 .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/02/03 14:41 https://github.com/google/kmsan.git master 85cfd6e539bd 4ebb2798 .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/02/02 23:40 https://github.com/google/kmsan.git master 85cfd6e539bd 4ebb2798 .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/02/02 15:38 https://github.com/google/kmsan.git master 85cfd6e539bd 4ebb2798 .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/02/02 08:33 https://github.com/google/kmsan.git master 85cfd6e539bd 4ebb2798 .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/01/30 08:42 https://github.com/google/kmsan.git master 85cfd6e539bd 495e00c5 .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/01/28 23:27 https://github.com/google/kmsan.git master 85cfd6e539bd 495e00c5 .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/01/28 08:36 https://github.com/google/kmsan.git master 85cfd6e539bd 495e00c5 .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/01/27 04:30 https://github.com/google/kmsan.git master 85cfd6e539bd 2cbffd88 .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/01/25 22:19 https://github.com/google/kmsan.git master 85cfd6e539bd 2cbffd88 .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/01/23 22:29 https://github.com/google/kmsan.git master 85cfd6e539bd 214351e1 .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/01/22 23:12 https://github.com/google/kmsan.git master 85cfd6e539bd 214351e1 .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/01/19 17:54 https://github.com/google/kmsan.git master fa3879a274df 0620189b .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/01/18 20:36 https://github.com/google/kmsan.git master fa3879a274df 731a2d23 .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/01/18 15:38 https://github.com/google/kmsan.git master fa3879a274df 731a2d23 .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2022/01/18 11:07 https://github.com/google/kmsan.git master fa3879a274df 731a2d23 .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2021/11/19 19:55 https://github.com/google/kmsan.git master 412af9cd936d 3a9d0024 .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2021/11/19 02:35 https://github.com/google/kmsan.git master a1ff64594c49 31a30fc0 .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce 2021/11/17 07:50 https://github.com/google/kmsan.git master beecc58f3c53 cafff8b6 .config log report info KMSAN: uninit-value in ax88772a_hw_reset
ci-upstream-kmsan-gce-386 2021/11/28 10:25 https://github.com/google/kmsan.git master a535b0caaa2f 63eeac02 .config log report info KMSAN: uninit-value in ax88772a_hw_reset