syzbot


KMSAN: uninit-value in ax88179_get_mac_addr
Status: fixed on 2021/11/10 00:50
Reported-by: syzbot+4993e4a0e237f1b53747@syzkaller.appspotmail.com
Fix commit: bd78980be1a6 net: usb: ax88179_178a: initialize local variables before use
First crash: 656d, last: 318d
Patch testing requests:
Created Duration User Patch Repo Result
2021/04/01 20:40 52m phil@philpotter.co.uk patch https://github.com/google/kmsan.git master OK
2021/03/25 21:54 40m alaaemadhossney.ae@gmail.com https://github.com/google/kmsan.git master report log
2020/10/23 15:34 16m anant.thazhemadam@gmail.com patch https://github.com/google/kmsan.git master error

Sample crash report:
ax88179_178a 1-1:101.123 (unnamed net_device) (uninitialized): Failed to write reg index 0x0002: -71
ax88179_178a 1-1:101.123 (unnamed net_device) (uninitialized): Failed to write reg index 0x0002: -71
ax88179_178a 1-1:101.123 (unnamed net_device) (uninitialized): Failed to write reg index 0x0001: -71
ax88179_178a 1-1:101.123 (unnamed net_device) (uninitialized): Failed to read reg index 0x0006: -71
=====================================================
BUG: KMSAN: uninit-value in is_valid_ether_addr include/linux/etherdevice.h:195 [inline]
BUG: KMSAN: uninit-value in ax88179_get_mac_addr+0x481/0x850 drivers/net/usb/ax88179_178a.c:1310
CPU: 0 PID: 3337 Comm: kworker/0:2 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
 is_valid_ether_addr include/linux/etherdevice.h:195 [inline]
 ax88179_get_mac_addr+0x481/0x850 drivers/net/usb/ax88179_178a.c:1310
 ax88179_bind+0x3ec/0x19c0 drivers/net/usb/ax88179_178a.c:1348
 usbnet_probe+0x1152/0x3f90 drivers/net/usb/usbnet.c:1737
 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 ----mac@ax88179_get_mac_addr created at:
 ax88179_get_mac_addr+0x4d/0x850 drivers/net/usb/ax88179_178a.c:1297
 ax88179_get_mac_addr+0x4d/0x850 drivers/net/usb/ax88179_178a.c:1297
=====================================================

Crashes (149):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kmsan-gce 2020/08/22 08:07 https://github.com/google/kmsan.git master ce8056d1f79e 6436ce4b .config log report syz C
ci-upstream-kmsan-gce 2020/08/15 17:30 https://github.com/google/kmsan.git master ce8056d1f79e 424dd8e7 .config log report syz C
ci-upstream-kmsan-gce 2021/07/14 21:57 https://github.com/google/kmsan.git master 57b5797c8013 94e0b707 .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce 2021/07/07 02:03 https://github.com/google/kmsan.git master 57b5797c8013 cca78469 .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce 2021/07/05 15:12 https://github.com/google/kmsan.git master 57b5797c8013 55aa55c2 .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce 2021/06/28 13:35 https://github.com/google/kmsan.git master 57b5797c8013 9d2ab5df .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce 2021/06/01 15:00 https://github.com/google/kmsan.git master 6099c9da2f7d 032639db .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce 2021/05/30 20:10 https://github.com/google/kmsan.git master 6099c9da2f7d 325a8dab .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce 2021/05/29 08:03 https://github.com/google/kmsan.git master 6099c9da2f7d 858ea628 .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce 2021/05/20 21:12 https://github.com/google/kmsan.git master 6099c9da2f7d c560a65d .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce 2021/05/20 00:28 https://github.com/google/kmsan.git master 6099c9da2f7d a343ba6b .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce 2021/05/08 02:25 https://github.com/google/kmsan.git master 4ebaab5fb428 bc5434be .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce 2021/04/30 03:28 https://github.com/google/kmsan.git master 4ebaab5fb428 77e2b668 .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce 2021/04/29 01:25 https://github.com/google/kmsan.git master 4ebaab5fb428 77e2b668 .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce 2021/04/28 04:56 https://github.com/google/kmsan.git master 4ebaab5fb428 805b5003 .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce 2021/04/20 18:15 https://github.com/google/kmsan.git master 4ebaab5fb428 c0ced557 .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce 2021/04/17 23:25 https://github.com/google/kmsan.git master 4ebaab5fb428 7e2b734b .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce 2021/04/17 05:35 https://github.com/google/kmsan.git master 4ebaab5fb428 7e2b734b .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce 2021/04/12 05:02 https://github.com/google/kmsan.git master 4ebaab5fb428 bfeda1b1 .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce 2021/04/09 17:14 https://github.com/google/kmsan.git master 29ad81a1074a 6a81331a .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce 2021/04/09 07:07 https://github.com/google/kmsan.git master 29ad81a1074a 6a81331a .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce 2021/04/08 00:07 https://github.com/google/kmsan.git master 29ad81a1074a 6a81331a .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce 2021/04/06 16:49 https://github.com/google/kmsan.git master 29ad81a1074a 6a81331a .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce 2021/04/06 11:31 https://github.com/google/kmsan.git master 29ad81a1074a 6a81331a .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce 2021/04/04 02:41 https://github.com/google/kmsan.git master 29ad81a1074a 6a81331a .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce 2021/04/03 06:43 https://github.com/google/kmsan.git master 29ad81a1074a 6a81331a .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce 2021/04/01 08:17 https://github.com/google/kmsan.git master 29ad81a1074a 6a81331a .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce 2021/03/27 15:11 https://github.com/google/kmsan.git master 29ad81a1074a a8529b82 .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce 2021/03/21 17:13 https://github.com/google/kmsan.git master 29ad81a1074a 17810eae .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce 2021/03/20 11:33 https://github.com/google/kmsan.git master 29ad81a1074a 3d01c4de .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce 2021/03/18 22:12 https://github.com/google/kmsan.git master 29ad81a1074a 7216542e .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce 2021/03/17 14:43 https://github.com/google/kmsan.git master 29ad81a1074a fdb2bb2c .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce 2021/03/12 13:45 https://github.com/google/kmsan.git master 29ad81a1074a 429d8a6b .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce 2021/03/11 00:32 https://github.com/google/kmsan.git master 29ad81a1074a 764067f3 .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce 2021/03/06 22:45 https://github.com/google/kmsan.git master 29ad81a1074a e4b4d570 .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce 2021/02/26 23:30 https://github.com/google/kmsan.git master 29ad81a1074a 4c37c133 .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce-386 2021/06/01 15:06 https://github.com/google/kmsan.git master 6099c9da2f7d 032639db .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce-386 2021/05/22 17:35 https://github.com/google/kmsan.git master 6099c9da2f7d 3c7fef33 .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce-386 2021/05/20 21:13 https://github.com/google/kmsan.git master 6099c9da2f7d c560a65d .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce-386 2021/05/02 04:55 https://github.com/google/kmsan.git master 4ebaab5fb428 77e2b668 .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce-386 2021/04/29 19:16 https://github.com/google/kmsan.git master 4ebaab5fb428 77e2b668 .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce-386 2021/04/24 22:58 https://github.com/google/kmsan.git master 4ebaab5fb428 17f0b706 .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce-386 2021/04/23 17:51 https://github.com/google/kmsan.git master 4ebaab5fb428 17f0b706 .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce-386 2021/04/20 19:15 https://github.com/google/kmsan.git master 4ebaab5fb428 c0ced557 .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce-386 2021/04/10 03:33 https://github.com/google/kmsan.git master 4ebaab5fb428 6a81331a .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce-386 2021/04/06 12:42 https://github.com/google/kmsan.git master 29ad81a1074a 6a81331a .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce-386 2021/04/01 08:15 https://github.com/google/kmsan.git master 29ad81a1074a 6a81331a .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce-386 2021/03/31 08:52 https://github.com/google/kmsan.git master 29ad81a1074a 6a81331a .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce-386 2021/03/10 06:21 https://github.com/google/kmsan.git master 29ad81a1074a 26967e35 .config log report info KMSAN: uninit-value in ax88179_get_mac_addr
ci-upstream-kmsan-gce 2021/01/15 22:53 https://github.com/google/kmsan.git master 73d62e81b476 65a7a854 .config log report info
ci-upstream-kmsan-gce-386 2020/08/10 08:58 https://github.com/google/kmsan.git master ce8056d1f79e 70301872 .config log report