syzbot


KMSAN: uninit-value in timerqueue_add (2)

Status: upstream: reported on 2024/12/10 18:20
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+8974d7bf41172a2b0729@syzkaller.appspotmail.com
First crash: 14d, last: 14d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [kernel?] KMSAN: uninit-value in timerqueue_add (2) 0 (1) 2024/12/10 18:20
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in timerqueue_add (4) reiserfs C error done 4 415d 664d 0/28 auto-obsoleted due to no activity on 2024/03/05 08:46
upstream BUG: unable to handle kernel paging request in timerqueue_add kernel 2 206d 207d 0/28 auto-obsoleted due to no activity on 2024/08/27 09:44

Sample crash report:
ffff88813fd05fc0: ffff888031cf2978 (0xffff888031cf2978)
ffff88813fd05fc8: 0000000000000000 ...
ffff88813fd05fe8: ffff888031cf2968 (0xffff888031cf2968)
ffff88813fd05ff0: ffffffff8fe8d40e (instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline])
ffff88813fd05ff0: ffffffff8fe8d40e (sysvec_apic_timer_interrupt+0x7e/0x90 arch/x86/kernel/apic/apic.c:1049)
ffff88813fd05ff8: ffff888031cf2958 (0xffff888031cf2958)
BUG: KMSAN: uninit-value in rb_add_cached include/linux/rbtree.h:172 [inline]
BUG: KMSAN: uninit-value in timerqueue_add+0x20b/0x3d0 lib/timerqueue.c:40
 rb_add_cached include/linux/rbtree.h:172 [inline]
 timerqueue_add+0x20b/0x3d0 lib/timerqueue.c:40
 enqueue_hrtimer+0x189/0x3a0 kernel/time/hrtimer.c:1084
 __run_hrtimer kernel/time/hrtimer.c:1756 [inline]
 __hrtimer_run_queues+0x64d/0xe40 kernel/time/hrtimer.c:1803
 hrtimer_interrupt+0x41b/0xb10 kernel/time/hrtimer.c:1865
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1038 [inline]
 __sysvec_apic_timer_interrupt+0xa7/0x420 arch/x86/kernel/apic/apic.c:1055
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline]
 sysvec_apic_timer_interrupt+0x7e/0x90 arch/x86/kernel/apic/apic.c:1049

Uninit was created at:
 __alloc_pages_noprof+0x9a7/0xe00 mm/page_alloc.c:4774
 alloc_pages_mpol_noprof+0x299/0x990 mm/mempolicy.c:2265
 alloc_pages_noprof+0x1bf/0x1e0 mm/mempolicy.c:2344
 alloc_slab_page mm/slub.c:2408 [inline]
 allocate_slab+0x320/0x12e0 mm/slub.c:2574
 new_slab mm/slub.c:2627 [inline]
 ___slab_alloc+0x12ef/0x35e0 mm/slub.c:3815
 __slab_alloc mm/slub.c:3905 [inline]
 __slab_alloc_node mm/slub.c:3980 [inline]
 slab_alloc_node mm/slub.c:4141 [inline]
 kmem_cache_alloc_node_noprof+0x84a/0xe00 mm/slub.c:4205
 __alloc_skb+0x1e9/0x7b0 net/core/skbuff.c:668
 alloc_skb include/linux/skbuff.h:1323 [inline]
 new_skb+0x46/0x560 drivers/block/aoe/aoecmd.c:66
 aoecmd_cfg_pkts drivers/block/aoe/aoecmd.c:430 [inline]
 aoecmd_cfg+0x2c0/0xac0 drivers/block/aoe/aoecmd.c:1370
 discover_timer+0x62/0x80 drivers/block/aoe/aoemain.c:25
 call_timer_fn+0x49/0x580 kernel/time/timer.c:1793
 expire_timers kernel/time/timer.c:1844 [inline]
 __run_timers kernel/time/timer.c:2418 [inline]
 __run_timer_base+0x84e/0xe90 kernel/time/timer.c:2430
 run_timer_base kernel/time/timer.c:2439 [inline]
 run_timer_softirq+0x3a/0x70 kernel/time/timer.c:2449
 handle_softirqs+0x1a0/0x7c0 kernel/softirq.c:554
 __do_softirq+0x14/0x1a kernel/softirq.c:588

CPU: 1 UID: 0 PID: 8505 Comm: syz.1.784 Not tainted 6.13.0-rc1-syzkaller-00182-gb8f52214c61a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
=====================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/06 18:10 upstream b8f52214c61a 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in timerqueue_add
* Struck through repros no longer work on HEAD.