syzbot


KMSAN: uninit-value in ax88179_get_mac_addr

Status: fixed on 2021/11/10 00:50
Subsystems: usb
[Documentation on labels]
Reported-by: syzbot+4993e4a0e237f1b53747@syzkaller.appspotmail.com
Fix commit: bd78980be1a6 net: usb: ax88179_178a: initialize local variables before use
First crash: 1554d, last: 1216d
Discussions (13)
Title Replies (including bot) Last reply
[PATCH 4.9 000/240] 4.9.269-rc1 review 245 (245) 2021/05/21 16:52
[PATCH 4.14 000/323] 4.14.233-rc1 review 326 (326) 2021/05/21 05:55
[PATCH 4.4 000/190] 4.4.269-rc1 review 196 (196) 2021/05/20 21:46
[PATCH AUTOSEL 5.12 001/116] ath11k: fix thermal temperature read 119 (119) 2021/05/14 13:04
[PATCH 4.19 00/15] 4.19.190-rc1 review 24 (24) 2021/05/07 01:06
[PATCH 5.4 00/21] 5.4.117-rc1 review 32 (32) 2021/05/06 10:09
[PATCH 5.10 00/29] 5.10.35-rc1 review 40 (40) 2021/05/06 10:07
[PATCH 5.11 00/31] 5.11.19-rc1 review 36 (36) 2021/05/06 07:14
[PATCH 5.12 00/17] 5.12.2-rc1 review 22 (22) 2021/05/06 01:59
[PATCH AUTOSEL 5.11 001/104] ath11k: fix thermal temperature read 106 (106) 2021/05/06 00:14
[PATCH AUTOSEL 5.10 01/85] ath11k: fix thermal temperature read 85 (85) 2021/05/05 16:36
[PATCH] net: usb: ax88179_178a: initialize local variables before use 2 (2) 2021/04/01 23:20
KMSAN: uninit-value in ax88179_get_mac_addr 0 (1) 2020/10/23 08:07
Last patch testing requests (3)
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):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/08/22 08:07 https://github.com/google/kmsan.git master ce8056d1f79e 6436ce4b .config console log report syz C ci-upstream-kmsan-gce
2020/08/15 17:30 https://github.com/google/kmsan.git master ce8056d1f79e 424dd8e7 .config console log report syz C ci-upstream-kmsan-gce
2021/07/14 21:57 https://github.com/google/kmsan.git master 57b5797c8013 94e0b707 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ax88179_get_mac_addr
2021/07/07 02:03 https://github.com/google/kmsan.git master 57b5797c8013 cca78469 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ax88179_get_mac_addr
2021/07/05 15:12 https://github.com/google/kmsan.git master 57b5797c8013 55aa55c2 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ax88179_get_mac_addr
2021/06/28 13:35 https://github.com/google/kmsan.git master 57b5797c8013 9d2ab5df .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ax88179_get_mac_addr
2021/06/01 15:00 https://github.com/google/kmsan.git master 6099c9da2f7d 032639db .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ax88179_get_mac_addr
2021/05/30 20:10 https://github.com/google/kmsan.git master 6099c9da2f7d 325a8dab .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ax88179_get_mac_addr
2021/05/29 08:03 https://github.com/google/kmsan.git master 6099c9da2f7d 858ea628 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ax88179_get_mac_addr
2021/05/20 21:12 https://github.com/google/kmsan.git master 6099c9da2f7d c560a65d .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ax88179_get_mac_addr
2021/05/20 00:28 https://github.com/google/kmsan.git master 6099c9da2f7d a343ba6b .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ax88179_get_mac_addr
2021/05/08 02:25 https://github.com/google/kmsan.git master 4ebaab5fb428 bc5434be .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ax88179_get_mac_addr
2021/04/30 03:28 https://github.com/google/kmsan.git master 4ebaab5fb428 77e2b668 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ax88179_get_mac_addr
2021/04/29 01:25 https://github.com/google/kmsan.git master 4ebaab5fb428 77e2b668 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ax88179_get_mac_addr
2021/04/28 04:56 https://github.com/google/kmsan.git master 4ebaab5fb428 805b5003 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ax88179_get_mac_addr
2021/04/20 18:15 https://github.com/google/kmsan.git master 4ebaab5fb428 c0ced557 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ax88179_get_mac_addr
2021/04/17 23:25 https://github.com/google/kmsan.git master 4ebaab5fb428 7e2b734b .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ax88179_get_mac_addr
2021/04/17 05:35 https://github.com/google/kmsan.git master 4ebaab5fb428 7e2b734b .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ax88179_get_mac_addr
2021/04/12 05:02 https://github.com/google/kmsan.git master 4ebaab5fb428 bfeda1b1 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ax88179_get_mac_addr
2021/04/09 17:14 https://github.com/google/kmsan.git master 29ad81a1074a 6a81331a .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ax88179_get_mac_addr
2021/04/09 07:07 https://github.com/google/kmsan.git master 29ad81a1074a 6a81331a .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ax88179_get_mac_addr
2021/04/08 00:07 https://github.com/google/kmsan.git master 29ad81a1074a 6a81331a .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ax88179_get_mac_addr
2021/04/06 16:49 https://github.com/google/kmsan.git master 29ad81a1074a 6a81331a .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ax88179_get_mac_addr
2021/04/06 11:31 https://github.com/google/kmsan.git master 29ad81a1074a 6a81331a .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ax88179_get_mac_addr
2021/04/04 02:41 https://github.com/google/kmsan.git master 29ad81a1074a 6a81331a .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ax88179_get_mac_addr
2021/04/03 06:43 https://github.com/google/kmsan.git master 29ad81a1074a 6a81331a .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ax88179_get_mac_addr
2021/04/01 08:17 https://github.com/google/kmsan.git master 29ad81a1074a 6a81331a .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ax88179_get_mac_addr
2021/03/27 15:11 https://github.com/google/kmsan.git master 29ad81a1074a a8529b82 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ax88179_get_mac_addr
2021/03/21 17:13 https://github.com/google/kmsan.git master 29ad81a1074a 17810eae .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ax88179_get_mac_addr
2021/03/20 11:33 https://github.com/google/kmsan.git master 29ad81a1074a 3d01c4de .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ax88179_get_mac_addr
2021/03/18 22:12 https://github.com/google/kmsan.git master 29ad81a1074a 7216542e .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ax88179_get_mac_addr
2021/03/17 14:43 https://github.com/google/kmsan.git master 29ad81a1074a fdb2bb2c .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ax88179_get_mac_addr
2021/03/12 13:45 https://github.com/google/kmsan.git master 29ad81a1074a 429d8a6b .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ax88179_get_mac_addr
2021/03/11 00:32 https://github.com/google/kmsan.git master 29ad81a1074a 764067f3 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ax88179_get_mac_addr
2021/03/06 22:45 https://github.com/google/kmsan.git master 29ad81a1074a e4b4d570 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ax88179_get_mac_addr
2021/02/26 23:30 https://github.com/google/kmsan.git master 29ad81a1074a 4c37c133 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in ax88179_get_mac_addr
2021/06/01 15:06 https://github.com/google/kmsan.git master 6099c9da2f7d 032639db .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ax88179_get_mac_addr
2021/05/22 17:35 https://github.com/google/kmsan.git master 6099c9da2f7d 3c7fef33 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ax88179_get_mac_addr
2021/05/20 21:13 https://github.com/google/kmsan.git master 6099c9da2f7d c560a65d .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ax88179_get_mac_addr
2021/05/02 04:55 https://github.com/google/kmsan.git master 4ebaab5fb428 77e2b668 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ax88179_get_mac_addr
2021/04/29 19:16 https://github.com/google/kmsan.git master 4ebaab5fb428 77e2b668 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ax88179_get_mac_addr
2021/04/24 22:58 https://github.com/google/kmsan.git master 4ebaab5fb428 17f0b706 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ax88179_get_mac_addr
2021/04/23 17:51 https://github.com/google/kmsan.git master 4ebaab5fb428 17f0b706 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ax88179_get_mac_addr
2021/04/20 19:15 https://github.com/google/kmsan.git master 4ebaab5fb428 c0ced557 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ax88179_get_mac_addr
2021/04/10 03:33 https://github.com/google/kmsan.git master 4ebaab5fb428 6a81331a .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ax88179_get_mac_addr
2021/04/06 12:42 https://github.com/google/kmsan.git master 29ad81a1074a 6a81331a .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ax88179_get_mac_addr
2021/04/01 08:15 https://github.com/google/kmsan.git master 29ad81a1074a 6a81331a .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ax88179_get_mac_addr
2021/03/31 08:52 https://github.com/google/kmsan.git master 29ad81a1074a 6a81331a .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ax88179_get_mac_addr
2021/03/10 06:21 https://github.com/google/kmsan.git master 29ad81a1074a 26967e35 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in ax88179_get_mac_addr
2021/01/15 22:53 https://github.com/google/kmsan.git master 73d62e81b476 65a7a854 .config console log report info ci-upstream-kmsan-gce
2020/08/10 08:58 https://github.com/google/kmsan.git master ce8056d1f79e 70301872 .config console log report ci-upstream-kmsan-gce-386
* Struck through repros no longer work on HEAD.