syzbot


KMSAN: uninit-value in kobject_set_name_vargs

Status: auto-closed as invalid on 2022/06/30 14:28
Subsystems: kernel
[Documentation on labels]
First crash: 1109d, last: 980d
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in asix_read_cmd usb syz 8 937d 1086d 0/28 auto-closed as invalid on 2022/09/29 13:21
upstream KMSAN: uninit-value in hid_connect kernel C 176 765d 1116d 0/28 closed as invalid on 2022/11/03 08:52
upstream KMSAN: uninit-value in number (4) kernel C 7189 744d 1122d 0/28 closed as invalid on 2022/11/28 10:01
upstream KMSAN: uninit-value in preempt_count_add kernel C 6657 789d 789d 0/28 closed as invalid on 2022/10/10 13:29
upstream KMSAN: uninit-value in usbnet_probe (2) usb syz 6 1066d 1082d 0/28 auto-closed as invalid on 2022/09/27 01:28
upstream KMSAN: uninit-value in profile_hits (3) kernel C 1529 131d 346d 27/28 fixed on 2024/08/23 02:59
upstream KMSAN: uninit-value in seq_printf (2) fs C 99 905d 1171d 0/28 auto-closed as invalid on 2022/09/30 02:43
upstream KMSAN: kernel-infoleak in _copy_to_iter (7) net C 138977 651d 1003d 22/28 fixed on 2023/02/24 13:50
upstream KMSAN: kernel-infoleak in _copy_to_iter (6) net C 748 1004d 1093d 20/28 fixed on 2022/03/08 16:11

Sample crash report:
keytouch 0003:0926:3333.0027: fixing up Keytouch IEC report descriptor
input: HID 0926:3333 as /devices/platform/dummy_hcd.3/usb4/4-1/4-1:0.0/0003:0926:3333.0027/input/input66
=====================================================
BUG: KMSAN: uninit-value in kstrdup_const+0xb9/0x260 mm/util.c:80
 kstrdup_const+0xb9/0x260 mm/util.c:80
 kvasprintf_const+0x346/0x3f0
 kobject_set_name_vargs+0x12f/0x3a0 lib/kobject.c:289
 device_create_groups_vargs drivers/base/core.c:4048 [inline]
 device_create_with_groups+0x4b5/0x710 drivers/base/core.c:4138
 led_classdev_register_ext+0x88d/0x1250 drivers/leds/led-class.c:372
 led_classdev_register include/linux/leds.h:196 [inline]
 input_leds_connect+0xa79/0xf70 drivers/input/input-leds.c:139
 input_attach_handler drivers/input/input.c:1035 [inline]
 input_register_device+0x1e3d/0x2270 drivers/input/input.c:2335
 hidinput_connect+0x39a5/0x4630 drivers/hid/hid-input.c:2010
 hid_connect+0x761/0x1b10 drivers/hid/hid-core.c:1952
 hid_hw_start+0x194/0x2a0 drivers/hid/hid-core.c:2059
 hid_device_probe+0x78d/0x7a0 drivers/hid/hid-core.c:2291
 really_probe+0x67d/0x1510 drivers/base/dd.c:596
 __driver_probe_device+0x3e9/0x530 drivers/base/dd.c:751
 driver_probe_device drivers/base/dd.c:781 [inline]
 __device_attach_driver+0x79f/0x1120 drivers/base/dd.c:898
 bus_for_each_drv+0x2d6/0x3f0 drivers/base/bus.c:427
 __device_attach+0x593/0x8e0 drivers/base/dd.c:969
 device_initial_probe+0x4a/0x60 drivers/base/dd.c:1016
 bus_probe_device+0x17b/0x3e0 drivers/base/bus.c:487
 device_add+0x1d3e/0x2400 drivers/base/core.c:3394
 hid_add_device+0x7fb/0x970 drivers/hid/hid-core.c:2437
 usbhid_probe+0x149a/0x17d0 drivers/hid/usbhid/hid-core.c:1424
 usb_probe_interface+0xf19/0x1600 drivers/usb/core/driver.c:396
 really_probe+0x67d/0x1510 drivers/base/dd.c:596
 __driver_probe_device+0x3e9/0x530 drivers/base/dd.c:751
 driver_probe_device drivers/base/dd.c:781 [inline]
 __device_attach_driver+0x79f/0x1120 drivers/base/dd.c:898
 bus_for_each_drv+0x2d6/0x3f0 drivers/base/bus.c:427
 __device_attach+0x593/0x8e0 drivers/base/dd.c:969
 device_initial_probe+0x4a/0x60 drivers/base/dd.c:1016
 bus_probe_device+0x17b/0x3e0 drivers/base/bus.c:487
 device_add+0x1d3e/0x2400 drivers/base/core.c:3394
 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+0x67d/0x1510 drivers/base/dd.c:596
 __driver_probe_device+0x3e9/0x530 drivers/base/dd.c:751
 driver_probe_device drivers/base/dd.c:781 [inline]
 __device_attach_driver+0x79f/0x1120 drivers/base/dd.c:898
 bus_for_each_drv+0x2d6/0x3f0 drivers/base/bus.c:427
 __device_attach+0x593/0x8e0 drivers/base/dd.c:969
 device_initial_probe+0x4a/0x60 drivers/base/dd.c:1016
 bus_probe_device+0x17b/0x3e0 drivers/base/bus.c:487
 device_add+0x1d3e/0x2400 drivers/base/core.c:3394
 usb_new_device+0x1b8e/0x2950 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_event+0x5ad2/0x8910 drivers/usb/core/hub.c:5725
 process_one_work+0xdb9/0x1820 kernel/workqueue.c:2298
 worker_thread+0x10bc/0x21f0 kernel/workqueue.c:2445
 kthread+0x721/0x850 kernel/kthread.c:327
 ret_from_fork+0x1f/0x30

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

CPU: 1 PID: 6213 Comm: kworker/1:0 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 (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/02/02 10:47 https://github.com/google/kmsan.git master 85cfd6e539bd 4ebb2798 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in kobject_set_name_vargs
2021/12/23 15:42 https://github.com/google/kmsan.git master 81c325bbf94e 6caa12e4 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in kobject_set_name_vargs
2021/12/21 11:06 https://github.com/google/kmsan.git master 81c325bbf94e 62bd192b .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in kobject_set_name_vargs
2021/11/23 06:37 https://github.com/google/kmsan.git master 7ca3114e5a48 545ab074 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in kobject_set_name_vargs
2022/04/01 14:18 https://github.com/google/kmsan.git master 1978a14f70af 20955a24 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in kobject_set_name_vargs
* Struck through repros no longer work on HEAD.