syzbot


KMSAN: uninit-value in asix_mdio_read

Status: fixed on 2021/11/10 00:50
Reported-by: syzbot+a631ec9e717fb0423053@syzkaller.appspotmail.com
Fix commit: a786e3195d6a net: asix: fix uninit value bugs
First crash: 1135d, last: 422d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in asix_mdio_read (2) C 1075 203d 283d 22/24 fixed on 2022/03/08 16:11
upstream KMSAN: uninit-value in asix_mdio_read (3) C 1582 133d 198d 23/24 upstream: reported C repro on 2022/03/13 07:35
Patch testing requests:
Created Duration User Patch Repo Result
2021/08/13 14:55 35m paskripkin@gmail.com patch https://github.com/google/kmsan.git master OK
2020/09/26 02:45 19m anant.thazhemadam@gmail.com https://github.com/google/kmsan.git master OK
2020/09/26 00:24 19m anant.thazhemadam@gmail.com patch https://github.com/google/kmsan.git master report log

Sample crash report:
asix 1-1:0.78 (unnamed net_device) (uninitialized): Failed to write reg index 0x0000: -71
asix 1-1:0.78 (unnamed net_device) (uninitialized): Failed to send software reset: ffffffb9
asix 1-1:0.78 (unnamed net_device) (uninitialized): Failed to write reg index 0x0000: -71
asix 1-1:0.78 (unnamed net_device) (uninitialized): Failed to enable software MII access
asix 1-1:0.78 (unnamed net_device) (uninitialized): Failed to read reg index 0x0000: -71
=====================================================
BUG: KMSAN: uninit-value in asix_mdio_bus_read+0xbc/0xe0 drivers/net/usb/ax88172a.c:31
CPU: 0 PID: 2919 Comm: kworker/0:2 Not tainted 5.3.0-rc7+ #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+0x13a/0x2b0 mm/kmsan/kmsan_report.c:108
 __msan_warning+0x73/0xe0 mm/kmsan/kmsan_instr.c:250
 asix_mdio_read+0x3e9/0x8f0 drivers/net/usb/asix_common.c:461
 asix_mdio_bus_read+0xbc/0xe0 drivers/net/usb/ax88172a.c:31
 __mdiobus_read+0x106/0x3d0 drivers/net/phy/mdio_bus.c:563
 mdiobus_read+0xbd/0x110 drivers/net/phy/mdio_bus.c:640
 get_phy_id drivers/net/phy/phy_device.c:785 [inline]
 get_phy_device+0x331/0x8a0 drivers/net/phy/phy_device.c:819
 mdiobus_scan+0x91/0x760 drivers/net/phy/mdio_bus.c:527
 __mdiobus_register+0x86d/0xca0 drivers/net/phy/mdio_bus.c:426
 ax88172a_init_mdio drivers/net/usb/ax88172a.c:105 [inline]
 ax88172a_bind+0xcc5/0xf80 drivers/net/usb/ax88172a.c:243
 usbnet_probe+0x10ae/0x3960 drivers/net/usb/usbnet.c:1722
 usb_probe_interface+0xd19/0x1310 drivers/usb/core/driver.c:361
 really_probe+0x1373/0x1dc0 drivers/base/dd.c:552
 driver_probe_device+0x1ba/0x510 drivers/base/dd.c:709
 __device_attach_driver+0x5b8/0x790 drivers/base/dd.c:816
 bus_for_each_drv+0x28e/0x3b0 drivers/base/bus.c:454
 __device_attach+0x489/0x750 drivers/base/dd.c:882
 device_initial_probe+0x4a/0x60 drivers/base/dd.c:929
 bus_probe_device+0x131/0x390 drivers/base/bus.c:514
 device_add+0x25b5/0x2df0 drivers/base/core.c:2165
 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+0x1373/0x1dc0 drivers/base/dd.c:552
 driver_probe_device+0x1ba/0x510 drivers/base/dd.c:709
 __device_attach_driver+0x5b8/0x790 drivers/base/dd.c:816
 bus_for_each_drv+0x28e/0x3b0 drivers/base/bus.c:454
 __device_attach+0x489/0x750 drivers/base/dd.c:882
 device_initial_probe+0x4a/0x60 drivers/base/dd.c:929
 bus_probe_device+0x131/0x390 drivers/base/bus.c:514
 device_add+0x25b5/0x2df0 drivers/base/core.c:2165
 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: ----smsr@asix_mdio_read
Variable was created at:
 asix_mdio_read+0xa0/0x8f0 include/linux/netdevice.h:2180
 asix_mdio_bus_read+0xbc/0xe0 drivers/net/usb/ax88172a.c:31
=====================================================

Crashes (915):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kmsan-gce 2019/10/05 05:36 https://github.com/google/kmsan.git master 1e76a3e537c3 f3f7d9c8 .config log report syz C
ci-upstream-kmsan-gce 2021/08/01 00:18 https://github.com/google/kmsan.git master dfab4dc3af38 6c236867 .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce 2021/07/29 07:41 https://github.com/google/kmsan.git master 981c4ec7b5ad 9a4781d4 .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce 2021/07/26 05:36 https://github.com/google/kmsan.git master a43e029dee89 4d1b57d4 .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce 2021/07/25 12:18 https://github.com/google/kmsan.git master a43e029dee89 4d1b57d4 .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce 2021/07/22 10:06 https://github.com/google/kmsan.git master aeb985b98bde 29c3f20f .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce 2021/07/20 23:49 https://github.com/google/kmsan.git master b9c8f24b368d 1b201b48 .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce 2021/07/19 04:53 https://github.com/google/kmsan.git master a0f3a2c4404f f115ae98 .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce 2021/07/18 18:33 https://github.com/google/kmsan.git master a0f3a2c4404f f115ae98 .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce 2021/07/18 16:57 https://github.com/google/kmsan.git master a0f3a2c4404f f115ae98 .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce 2021/07/18 09:58 https://github.com/google/kmsan.git master a0f3a2c4404f f115ae98 .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce 2021/07/13 09:00 https://github.com/google/kmsan.git master 57b5797c8013 f415556d .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce 2021/07/10 20:15 https://github.com/google/kmsan.git master 57b5797c8013 8f5a7b8c .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce 2021/07/06 16:07 https://github.com/google/kmsan.git master 57b5797c8013 6c4484eb .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce 2021/07/06 01:53 https://github.com/google/kmsan.git master 57b5797c8013 55aa55c2 .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce 2021/07/05 18:28 https://github.com/google/kmsan.git master 57b5797c8013 55aa55c2 .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce 2021/07/05 14:28 https://github.com/google/kmsan.git master 57b5797c8013 55aa55c2 .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce 2021/07/04 23:52 https://github.com/google/kmsan.git master 57b5797c8013 55aa55c2 .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce 2021/07/04 21:32 https://github.com/google/kmsan.git master 57b5797c8013 55aa55c2 .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce 2021/06/29 12:49 https://github.com/google/kmsan.git master 57b5797c8013 9d2ab5df .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce 2021/06/28 14:42 https://github.com/google/kmsan.git master 57b5797c8013 9d2ab5df .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce 2021/06/28 09:18 https://github.com/google/kmsan.git master 57b5797c8013 9d2ab5df .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce 2021/06/26 20:05 https://github.com/google/kmsan.git master 57b5797c8013 9d2ab5df .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce 2021/06/22 14:56 https://github.com/google/kmsan.git master 6a6a67f21dec aba2b2fb .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce 2021/06/15 08:07 https://github.com/google/kmsan.git master 6099c9da2f7d 1ba81399 .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce 2021/06/14 00:48 https://github.com/google/kmsan.git master 6099c9da2f7d 1ba81399 .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce 2021/06/13 21:34 https://github.com/google/kmsan.git master 6099c9da2f7d 1ba81399 .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce 2021/06/09 16:00 https://github.com/google/kmsan.git master 6099c9da2f7d 84fe5d96 .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce 2021/05/29 09:25 https://github.com/google/kmsan.git master 6099c9da2f7d 858ea628 .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce 2021/05/29 03:58 https://github.com/google/kmsan.git master 6099c9da2f7d 858ea628 .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce 2021/05/25 07:23 https://github.com/google/kmsan.git master 6099c9da2f7d 3c7fef33 .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce 2021/05/22 14:35 https://github.com/google/kmsan.git master 6099c9da2f7d 3c7fef33 .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce 2021/05/22 09:59 https://github.com/google/kmsan.git master 6099c9da2f7d 3c7fef33 .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce 2021/05/18 08:59 https://github.com/google/kmsan.git master bdefec9ab855 a343ba6b .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce 2021/05/18 04:39 https://github.com/google/kmsan.git master bdefec9ab855 a343ba6b .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce 2021/05/17 18:18 https://github.com/google/kmsan.git master bdefec9ab855 a2eb125d .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce 2021/05/17 15:03 https://github.com/google/kmsan.git master bdefec9ab855 a2eb125d .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce 2021/05/17 05:33 https://github.com/google/kmsan.git master bdefec9ab855 f54a5c09 .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce 2021/05/16 12:23 https://github.com/google/kmsan.git master bdefec9ab855 f54a5c09 .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce 2021/05/16 04:47 https://github.com/google/kmsan.git master bdefec9ab855 f54a5c09 .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce-386 2021/05/20 11:01 https://github.com/google/kmsan.git master 6099c9da2f7d a343ba6b .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce-386 2021/05/19 19:46 https://github.com/google/kmsan.git master 6099c9da2f7d a343ba6b .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce-386 2021/05/19 05:51 https://github.com/google/kmsan.git master 6099c9da2f7d a343ba6b .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce-386 2021/05/19 01:27 https://github.com/google/kmsan.git master 6099c9da2f7d a343ba6b .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce-386 2021/05/18 06:56 https://github.com/google/kmsan.git master bdefec9ab855 a343ba6b .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce-386 2021/05/17 08:34 https://github.com/google/kmsan.git master bdefec9ab855 f54a5c09 .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce-386 2021/05/17 07:17 https://github.com/google/kmsan.git master bdefec9ab855 f54a5c09 .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce-386 2021/05/16 18:52 https://github.com/google/kmsan.git master bdefec9ab855 f54a5c09 .config log report info KMSAN: uninit-value in asix_mdio_read
ci-upstream-kmsan-gce 2021/01/17 10:49 https://github.com/google/kmsan.git master 73d62e81b476 65a7a854 .config log report info
ci-upstream-kmsan-gce 2019/08/19 01:39 https://github.com/google/kmsan.git master 61ccdad1fcdf 55bf8926 .config log report
* Struck through repros no longer work on HEAD.