syzbot


KMSAN: uninit-value in __run_timers (3)

Status: auto-obsoleted due to no activity on 2024/01/10 00:11
Subsystems: reiserfs
[Documentation on labels]
Reported-by: syzbot+a476a62530a631834eb0@syzkaller.appspotmail.com
First crash: 485d, last: 404d
Cause bisection: failed (error log, bisect log)
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [reiserfs?] KMSAN: uninit-value in __run_timers (3) 0 (1) 2023/07/30 21:30
Similar bugs (10)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in __run_timers (2) usb C 68 1528d 2106d 0/28 auto-closed as invalid on 2022/09/13 17:48
upstream KASAN: invalid-access Write in __run_timers kernel 8 1332d 1338d 0/28 auto-closed as invalid on 2021/05/20 13:15
android-54 KASAN: use-after-free Write in __run_timers syz 449 102d 1554d 0/2 auto-obsoleted due to no activity on 2024/09/11 00:16
android-54 KASAN: slab-out-of-bounds Write in __run_timers 4 1203d 1393d 0/2 auto-closed as invalid on 2021/10/26 12:53
upstream BUG: unable to handle kernel NULL pointer dereference in __run_timers arm 1 137d 133d 0/28 auto-obsoleted due to no activity on 2024/08/27 10:03
upstream KMSAN: uninit-value in preempt_count_add kernel C 6657 735d 735d 0/28 closed as invalid on 2022/10/10 13:29
upstream KMSAN: kernel-infoleak in _copy_to_iter (7) net C 138977 597d 949d 22/28 fixed on 2023/02/24 13:50
upstream general protection fault in __run_timers kernel 35 2581d 2602d 0/28 closed as invalid on 2017/10/22 12:45
upstream general protection fault in __run_timers (2) kernel C 5 2241d 2256d 0/28 closed as invalid on 2018/09/05 12:51
upstream general protection fault in __run_timers (3) kernel 1 1494d 1490d 0/28 auto-closed as invalid on 2020/12/09 00:33
Last patch testing requests (5)
Created Duration User Patch Repo Result
2024/01/09 22:07 2h03m retest repro linux-next OK log
2023/11/28 15:55 22m retest repro linux-next OK log
2023/10/31 21:46 15m retest repro linux-next report log
2023/09/19 10:40 14m retest repro linux-next report log
2023/08/22 21:05 13m retest repro linux-next report log

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffcc02000800c: 0000 [#1] PREEMPT SMP KASAN
KASAN: probably user-memory-access in range [0x0000060100040060-0x0000060100040067]
CPU: 1 PID: 4493 Comm: udevd Not tainted 6.5.0-next-20230905-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
RIP: 0010:lookup_object lib/debugobjects.c:195 [inline]
RIP: 0010:debug_object_deactivate lib/debugobjects.c:785 [inline]
RIP: 0010:debug_object_deactivate+0x175/0x320 lib/debugobjects.c:771
Code: da 48 c1 ea 03 80 3c 02 00 0f 85 54 01 00 00 48 8b 1b 48 85 db 0f 84 82 00 00 00 48 8d 7b 18 41 83 c4 01 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 11 01 00 00 4c 3b 7b 18 75 c4 48 8d 7b 10 48 b8
RSP: 0018:ffffc900001f0c90 EFLAGS: 00010006
RAX: dffffc0000000000 RBX: 0000060100040048 RCX: ffffffff816915ce
RDX: 000000c02000800c RSI: 0000000000000006 RDI: 0000060100040060
RBP: ffffc900001f0d78 R08: 0000000000000001 R09: fffff5200003e180
R10: 0000000000000003 R11: 0000000000000000 R12: 0000000000000004
R13: 1ffff9200003e196 R14: ffffffff8a8f19e0 R15: ffff88807bd814d8
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007efc16bbb000 CR3: 000000000c976000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 debug_timer_deactivate kernel/time/timer.c:787 [inline]
 debug_deactivate kernel/time/timer.c:831 [inline]
 detach_timer kernel/time/timer.c:878 [inline]
 expire_timers kernel/time/timer.c:1734 [inline]
 __run_timers+0x5f9/0xb10 kernel/time/timer.c:2022
 run_timer_softirq+0x58/0xd0 kernel/time/timer.c:2035
 __do_softirq+0x218/0x965 kernel/softirq.c:553
 invoke_softirq kernel/softirq.c:427 [inline]
 __irq_exit_rcu kernel/softirq.c:632 [inline]
 irq_exit_rcu+0xb7/0x120 kernel/softirq.c:644
 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1074
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
RIP: 0010:__sanitizer_cov_trace_pc+0x0/0x70 kernel/kcov.c:200
Code: 66 6f 9d 02 66 0f 1f 44 00 00 f3 0f 1e fa 48 8b be b0 01 00 00 e8 b0 ff ff ff 31 c0 c3 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 <f3> 0f 1e fa 65 8b 05 2d dc 7b 7e 89 c1 48 8b 34 24 81 e1 00 01 00
RSP: 0018:ffffc9000315f4c0 EFLAGS: 00000283
RAX: 0000000000000000 RBX: ffffc9000315f590 RCX: 0000000000000000
RDX: ffff88807cc75940 RSI: ffffffff813a56c5 RDI: 0000000000000005
RBP: ffffc9000315f908 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000001 R11: ffffffff81dda39b R12: ffffc9000315f598
R13: ffffc9000315f5a0 R14: ffffc90003158000 R15: ffffc90003160000
 on_stack arch/x86/include/asm/stacktrace.h:60 [inline]
 stack_access_ok+0x1d7/0x270 arch/x86/kernel/unwind_orc.c:393
 deref_stack_reg arch/x86/kernel/unwind_orc.c:403 [inline]
 unwind_next_frame+0x1a98/0x2390 arch/x86/kernel/unwind_orc.c:648
 arch_stack_walk+0xfa/0x170 arch/x86/kernel/stacktrace.c:25
 stack_trace_save+0x96/0xd0 kernel/stacktrace.c:122
 kasan_save_stack+0x33/0x50 mm/kasan/common.c:45
 kasan_set_track+0x25/0x30 mm/kasan/common.c:52
 kasan_save_free_info+0x2b/0x40 mm/kasan/generic.c:522
 ____kasan_slab_free mm/kasan/common.c:236 [inline]
 ____kasan_slab_free+0x15b/0x1b0 mm/kasan/common.c:200
 kasan_slab_free include/linux/kasan.h:164 [inline]
 slab_free_hook mm/slub.c:1800 [inline]
 slab_free_freelist_hook+0x114/0x1e0 mm/slub.c:1826
 slab_free mm/slub.c:3809 [inline]
 kmem_cache_free+0xf0/0x480 mm/slub.c:3831
 remove_vma+0x128/0x170 mm/mmap.c:146
 exit_mmap+0x453/0xa60 mm/mmap.c:3234
 __mmput+0x12a/0x4d0 kernel/fork.c:1349
 mmput+0x62/0x70 kernel/fork.c:1371
 exit_mm kernel/exit.c:567 [inline]
 do_exit+0x9b4/0x2a20 kernel/exit.c:861
 do_group_exit+0xd4/0x2a0 kernel/exit.c:1024
 get_signal+0x23d1/0x27b0 kernel/signal.c:2892
 arch_do_signal_or_restart+0x90/0x7f0 arch/x86/kernel/signal.c:309
 exit_to_user_mode_loop kernel/entry/common.c:168 [inline]
 exit_to_user_mode_prepare+0x11f/0x240 kernel/entry/common.c:204
 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
 syscall_exit_to_user_mode+0x1d/0x60 kernel/entry/common.c:296
 do_syscall_64+0x44/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7efc166be3cd
Code: Unable to access opcode bytes at 0x7efc166be3a3.
RSP: 002b:00007ffccc0a6b40 EFLAGS: 00000246 ORIG_RAX: 00000000000000ea
RAX: 0000000000000000 RBX: 00007efc16a93c80 RCX: 00007efc166be3cd
RDX: 0000000000000006 RSI: 000000000000118d RDI: 000000000000118d
RBP: 000000000000118d R08: 0000000000000000 R09: 0000000000000002
R10: 0000000000000008 R11: 0000000000000246 R12: 0000000000000006
R13: 00007ffccc0a6d50 R14: 0000000000001000 R15: 0000000000000000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:lookup_object lib/debugobjects.c:195 [inline]
RIP: 0010:debug_object_deactivate lib/debugobjects.c:785 [inline]
RIP: 0010:debug_object_deactivate+0x175/0x320 lib/debugobjects.c:771
Code: da 48 c1 ea 03 80 3c 02 00 0f 85 54 01 00 00 48 8b 1b 48 85 db 0f 84 82 00 00 00 48 8d 7b 18 41 83 c4 01 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 11 01 00 00 4c 3b 7b 18 75 c4 48 8d 7b 10 48 b8
RSP: 0018:ffffc900001f0c90 EFLAGS: 00010006

RAX: dffffc0000000000 RBX: 0000060100040048 RCX: ffffffff816915ce
RDX: 000000c02000800c RSI: 0000000000000006 RDI: 0000060100040060
RBP: ffffc900001f0d78 R08: 0000000000000001 R09: fffff5200003e180
R10: 0000000000000003 R11: 0000000000000000 R12: 0000000000000004
R13: 1ffff9200003e196 R14: ffffffff8a8f19e0 R15: ffff88807bd814d8
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007efc16bbb000 CR3: 000000000c976000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 1 bytes skipped:
   0:	48 c1 ea 03          	shr    $0x3,%rdx
   4:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1)
   8:	0f 85 54 01 00 00    	jne    0x162
   e:	48 8b 1b             	mov    (%rbx),%rbx
  11:	48 85 db             	test   %rbx,%rbx
  14:	0f 84 82 00 00 00    	je     0x9c
  1a:	48 8d 7b 18          	lea    0x18(%rbx),%rdi
  1e:	41 83 c4 01          	add    $0x1,%r12d
  22:	48 89 fa             	mov    %rdi,%rdx
  25:	48 c1 ea 03          	shr    $0x3,%rdx
* 29:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2d:	0f 85 11 01 00 00    	jne    0x144
  33:	4c 3b 7b 18          	cmp    0x18(%rbx),%r15
  37:	75 c4                	jne    0xfffffffd
  39:	48 8d 7b 10          	lea    0x10(%rbx),%rdi
  3d:	48                   	rex.W
  3e:	b8                   	.byte 0xb8

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/09/05 10:32 linux-next c50216cfa084 8bc9053e .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root general protection fault in __run_timers
2023/07/26 21:20 linux-next 0ba5d0720577 41fe1bae .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root general protection fault in __run_timers
2023/08/01 08:51 upstream 5d0c230f1de8 2a0d0f29 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in __run_timers
2023/06/16 11:58 https://github.com/google/kmsan.git master 7cccf3be6dcb f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in __run_timers
* Struck through repros no longer work on HEAD.