syzbot


KMSAN: uninit-value in rb_next

Status: closed as invalid on 2018/06/28 12:38
Subsystems: kernel
[Documentation on labels]
First crash: 2471d, last: 2432d

Sample crash report:
==================================================================
BUG: KMSAN: uninit-value in rb_next+0x23e/0x2d0 lib/rbtree.c:541
CPU: 0 PID: 4577 Comm: syz-executor1 Not tainted 4.17.0-rc5+ #103
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x185/0x1d0 lib/dump_stack.c:113
 kmsan_report+0x149/0x260 mm/kmsan/kmsan.c:1084
 __msan_warning_32+0x6e/0xc0 mm/kmsan/kmsan_instr.c:686
 rb_next+0x23e/0x2d0 lib/rbtree.c:541
 timerqueue_del+0x11d/0x270 lib/timerqueue.c:83
 __remove_hrtimer kernel/time/hrtimer.c:984 [inline]
 __run_hrtimer kernel/time/hrtimer.c:1380 [inline]
 __hrtimer_run_queues+0x89a/0x15d0 kernel/time/hrtimer.c:1460
 hrtimer_interrupt+0x451/0x13c0 kernel/time/hrtimer.c:1518
 local_apic_timer_interrupt+0x66/0x230 arch/x86/kernel/apic/apic.c:1025
 smp_apic_timer_interrupt+0x5a/0x90 arch/x86/kernel/apic/apic.c:1053
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:863
 </IRQ>
RIP: 0010:my_phys_addr_valid mm/kmsan/kmsan_instr.c:103 [inline]
RIP: 0010:my_virt_addr_valid mm/kmsan/kmsan_instr.c:125 [inline]
RIP: 0010:msan_get_shadow_origin_ptr+0xac/0x230 mm/kmsan/kmsan_instr.c:256
RSP: 0018:ffff88013c65fd10 EFLAGS: 00000207 ORIG_RAX: ffffffffffffff13
RAX: ffff8801bc65fe80 RBX: ffffffff8b588000 RCX: 000000000000002e
RDX: 000000013c65fe80 RSI: 0000000000000008 RDI: 000000013c65fe80
RBP: ffff88013c65fd40 R08: 0000000001080001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffffffffffffffff
R13: 0000000000000000 R14: ffffffff8b587000 R15: ffff88013c65fe80
 __msan_metadata_ptr_for_load_8+0x10/0x20 mm/kmsan/kmsan_instr.c:321
 ktime_get_ts64+0x4ba/0x820 kernel/time/timekeeping.c:883
 posix_ktime_get_ts+0x38/0x60 kernel/time/posix-timers.c:222
 __do_sys_clock_gettime kernel/time/posix-timers.c:1067 [inline]
 __se_sys_clock_gettime kernel/time/posix-timers.c:1057 [inline]
 __x64_sys_clock_gettime+0x290/0x370 kernel/time/posix-timers.c:1057
 do_syscall_64+0x152/0x230 arch/x86/entry/common.c:287
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45882a
RSP: 002b:0000000000a3ea88 EFLAGS: 00000246 ORIG_RAX: 00000000000000e4
RAX: ffffffffffffffda RBX: 0000000000000084 RCX: 000000000045882a
RDX: 0000000000000000 RSI: 0000000000a3ea90 RDI: 0000000000000001
RBP: 000000000002bd0e R08: 0000000000000001 R09: 0000000001ee0940
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000005 R14: 0000000000000292 R15: 000000000002bcc8

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:279 [inline]
 kmsan_save_stack mm/kmsan/kmsan.c:294 [inline]
 kmsan_internal_chain_origin+0x12b/0x210 mm/kmsan/kmsan.c:685
 __msan_chain_origin+0x69/0xc0 mm/kmsan/kmsan_instr.c:529
 rb_link_node include/linux/rbtree.h:111 [inline]
 timerqueue_add+0x3fe/0x4f0 lib/timerqueue.c:57
 enqueue_hrtimer kernel/time/hrtimer.c:960 [inline]
 __run_hrtimer kernel/time/hrtimer.c:1413 [inline]
 __hrtimer_run_queues+0x1228/0x15d0 kernel/time/hrtimer.c:1460
 hrtimer_interrupt+0x451/0x13c0 kernel/time/hrtimer.c:1518
 local_apic_timer_interrupt+0x66/0x230 arch/x86/kernel/apic/apic.c:1025
 smp_apic_timer_interrupt+0x5a/0x90 arch/x86/kernel/apic/apic.c:1053
Local variable description: ----flags.i.i.i.i@_raw_spin_lock_irqsave
Variable was created at:
 _raw_spin_lock_irqsave+0x45/0xf0 kernel/locking/spinlock.c:150
 hrtimer_interrupt+0x107/0x13c0 kernel/time/hrtimer.c:1499
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/06/02 21:40 https://github.com/google/kmsan.git master 8fc8ecd1c58a 2f93b54f .config console log report ci-upstream-kmsan-gce
2018/04/24 02:24 https://github.com/google/kmsan.git master d2d741e5d189 0d8e591c .config console log report ci-upstream-kmsan-gce
* Struck through repros no longer work on HEAD.