syzbot


KMSAN: uninit-value in read_descriptors (2)

Status: auto-obsoleted due to no activity on 2023/06/10 07:49
Subsystems: usb
[Documentation on labels]
First crash: 417d, last: 417d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in read_descriptors usb 1 785d 785d 0/26 auto-closed as invalid on 2022/06/06 09:45
upstream KASAN: slab-out-of-bounds Read in read_descriptors (3) usb C error 7 290d 317d 23/26 fixed on 2023/10/12 12:48
linux-6.1 KASAN: slab-out-of-bounds Read in read_descriptors origin:upstream C error 1 275d 320d 0/3 auto-obsoleted due to no activity on 2023/11/08 10:43
linux-5.15 KASAN: slab-out-of-bounds Read in read_descriptors origin:upstream missing-backport C error 2 229d 320d 0/3 upstream: reported C repro on 2023/06/17 08:07

Sample crash report:
=====================================================
BUG: KMSAN: uninit-value in read_descriptors+0x4c1/0x560 drivers/usb/core/sysfs.c:887
 read_descriptors+0x4c1/0x560 drivers/usb/core/sysfs.c:887
 sysfs_kf_bin_read+0x33d/0x400 fs/sysfs/file.c:97
 kernfs_file_read_iter fs/kernfs/file.c:251 [inline]
 kernfs_fop_read_iter+0x45b/0x970 fs/kernfs/file.c:280
 call_read_iter include/linux/fs.h:1845 [inline]
 new_sync_read fs/read_write.c:389 [inline]
 vfs_read+0x8cd/0xf40 fs/read_write.c:470
 ksys_read+0x21f/0x4f0 fs/read_write.c:613
 __do_sys_read fs/read_write.c:623 [inline]
 __se_sys_read fs/read_write.c:621 [inline]
 __x64_sys_read+0x93/0xd0 fs/read_write.c:621
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

Uninit was created at:
 slab_post_alloc_hook+0x12d/0xb60 mm/slab.h:774
 slab_alloc_node mm/slub.c:3452 [inline]
 __kmem_cache_alloc_node+0x518/0x920 mm/slub.c:3491
 __do_kmalloc_node mm/slab_common.c:966 [inline]
 __kmalloc_node_track_caller+0x118/0x3c0 mm/slab_common.c:987
 kmalloc_reserve+0x25c/0x3e0 net/core/skbuff.c:539
 __alloc_skb+0x3a7/0x850 net/core/skbuff.c:608
 __netdev_alloc_skb+0x12f/0x7e0 net/core/skbuff.c:672
 __netdev_alloc_skb_ip_align include/linux/skbuff.h:3203 [inline]
 netdev_alloc_skb_ip_align include/linux/skbuff.h:3213 [inline]
 batadv_iv_ogm_aggregate_new net/batman-adv/bat_iv_ogm.c:558 [inline]
 batadv_iv_ogm_queue_add+0x1079/0x1890 net/batman-adv/bat_iv_ogm.c:670
 batadv_iv_ogm_schedule_buff net/batman-adv/bat_iv_ogm.c:833 [inline]
 batadv_iv_ogm_schedule+0xce8/0x1500 net/batman-adv/bat_iv_ogm.c:868
 batadv_iv_send_outstanding_bat_ogm_packet+0xcd8/0xe50 net/batman-adv/bat_iv_ogm.c:1712
 process_one_work+0xb0d/0x1410 kernel/workqueue.c:2390
 worker_thread+0x107e/0x1d60 kernel/workqueue.c:2537
 kthread+0x31f/0x430 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308

CPU: 0 PID: 679 Comm: udevd Not tainted 6.3.0-rc1-syzkaller-ge61893130d87 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
=====================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/03/12 07:43 https://github.com/google/kmsan.git master e61893130d87 5205ef30 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in read_descriptors
* Struck through repros no longer work on HEAD.