syzbot


WARNING in call_timer_fn

Status: upstream: reported C repro on 2023/03/08 12:11
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+954b5c22c964bef843db@syzkaller.appspotmail.com
First crash: 441d, last: 3d00h
Bug presence (2)
Date Name Commit Repro Result
2024/02/06 linux-6.1.y (ToT) f1bb70486c9c C [report] BUG: scheduling while atomic in exit_to_user_mode_loop
2024/02/06 upstream (ToT) 99bd3cb0d12e C Didn't crash
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in call_timer_fn bluetooth syz unreliable 2815 31m 553d 0/26 upstream: reported syz repro on 2022/11/16 15:25
linux-5.15 WARNING in call_timer_fn origin:lts-only syz unreliable 2 64d 92d 0/3 upstream: reported syz repro on 2024/02/21 03:34
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2024/02/10 05:05 5h27m fix candidate upstream job log (1)

Sample crash report:
------------[ cut here ]------------
timer: addrconf_rs_timer+0x0/0x610 net/ipv6/addrconf.c:6568 preempt leak: 00000103 -> 00000102
WARNING: CPU: 1 PID: 3549 at kernel/time/timer.c:1481 call_timer_fn+0x2f0/0x6b0 kernel/time/timer.c:1480
Modules linked in:
CPU: 1 PID: 3549 Comm: syz-executor369 Not tainted 6.1.76-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
RIP: 0010:call_timer_fn+0x2f0/0x6b0 kernel/time/timer.c:1480
Code: 11 00 c6 05 b8 f0 e5 0c 01 65 8b 0d c2 21 89 7e 81 e1 ff ff ff 7f 48 c7 c7 a0 d4 ed 8a 48 8b 74 24 10 44 89 fa e8 20 1b d9 ff <0f> 0b eb 05 e8 c7 1a 11 00 65 8b 0d 98 21 89 7e 89 ca 81 e2 00 00
RSP: 0018:ffffc900001e0b80 EFLAGS: 00010246
RAX: db9b514e7a87fc00 RBX: 0000000000000102 RCX: ffff88802890bb80
RDX: 0000000000000102 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc900001e0c70 R08: ffffffff81526b4e R09: fffff5200003c0d1
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 1ffff9200003c174 R14: 0000000000000001 R15: 0000000000000103
FS:  0000555555645480(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555555645788 CR3: 0000000075f9b000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 expire_timers kernel/time/timer.c:1519 [inline]
 __run_timers+0x67c/0x890 kernel/time/timer.c:1790
 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1803
 __do_softirq+0x2e9/0xa4c kernel/softirq.c:571
 invoke_softirq kernel/softirq.c:445 [inline]
 __irq_exit_rcu+0x155/0x240 kernel/softirq.c:650
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:662
 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1106
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0xd4/0x130 kernel/locking/spinlock.c:194
Code: 9c 8f 44 24 20 42 80 3c 23 00 74 08 4c 89 f7 e8 b2 54 4d f7 f6 44 24 21 02 75 4e 41 f7 c7 00 02 00 00 74 01 fb bf 01 00 00 00 <e8> 67 b0 c9 f6 65 8b 05 e8 f3 6d 75 85 c0 74 3f 48 c7 04 24 0e 36
RSP: 0018:ffffc90003b3fc40 EFLAGS: 00000206
RAX: db9b514e7a87fc00 RBX: 1ffff92000767f8c RCX: ffffffff91c88103
RDX: dffffc0000000000 RSI: ffffffff8aebebc0 RDI: 0000000000000001
RBP: ffffc90003b3fcd0 R08: dffffc0000000000 R09: fffffbfff1a310bd
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 1ffff92000767f88 R14: ffffc90003b3fc60 R15: 0000000000000246
 ____bpf_trace_printk kernel/trace/bpf_trace.c:394 [inline]
 bpf_trace_printk+0x1a3/0x200 kernel/trace/bpf_trace.c:376
 </TASK>
----------------
Code disassembly (best guess):
   0:	9c                   	pushf
   1:	8f 44 24 20          	pop    0x20(%rsp)
   5:	42 80 3c 23 00       	cmpb   $0x0,(%rbx,%r12,1)
   a:	74 08                	je     0x14
   c:	4c 89 f7             	mov    %r14,%rdi
   f:	e8 b2 54 4d f7       	call   0xf74d54c6
  14:	f6 44 24 21 02       	testb  $0x2,0x21(%rsp)
  19:	75 4e                	jne    0x69
  1b:	41 f7 c7 00 02 00 00 	test   $0x200,%r15d
  22:	74 01                	je     0x25
  24:	fb                   	sti
  25:	bf 01 00 00 00       	mov    $0x1,%edi
* 2a:	e8 67 b0 c9 f6       	call   0xf6c9b096 <-- trapping instruction
  2f:	65 8b 05 e8 f3 6d 75 	mov    %gs:0x756df3e8(%rip),%eax        # 0x756df41e
  36:	85 c0                	test   %eax,%eax
  38:	74 3f                	je     0x79
  3a:	48                   	rex.W
  3b:	c7                   	.byte 0xc7
  3c:	04 24                	add    $0x24,%al
  3e:	0e                   	(bad)
  3f:	36                   	ss

Crashes (17):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/05 17:24 linux-6.1.y e5c3b988b827 e23e8c20 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in call_timer_fn
2024/05/20 04:21 linux-6.1.y 4078fa637fcd c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in call_timer_fn
2024/05/14 04:53 linux-6.1.y 909ba1f1b414 fdb4c10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in call_timer_fn
2024/05/07 02:55 linux-6.1.y 909ba1f1b414 fa7a5cf0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in call_timer_fn
2024/05/05 00:58 linux-6.1.y 909ba1f1b414 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in call_timer_fn
2024/05/01 17:04 linux-6.1.y dcbc050cb0d3 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in call_timer_fn
2024/04/22 20:33 linux-6.1.y 6741e066ec76 36c961ad .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in call_timer_fn
2023/12/20 17:23 linux-6.1.y 4aa6747d9352 de21eb89 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in call_timer_fn
2023/11/22 18:59 linux-6.1.y 69e434a1cb21 03e12510 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in call_timer_fn
2023/11/02 20:33 linux-6.1.y 4a61839152cc c4ac074c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in call_timer_fn
2023/09/23 09:03 linux-6.1.y a356197db198 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in call_timer_fn
2023/08/04 11:39 linux-6.1.y 52a953d0934b 74621247 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in call_timer_fn
2023/05/23 23:24 linux-6.1.y fa74641fb6b9 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in call_timer_fn
2023/05/18 01:34 linux-6.1.y fa74641fb6b9 3bb7af1d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in call_timer_fn
2023/05/03 14:34 linux-6.1.y ca48fc16c493 b5918830 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in call_timer_fn
2023/03/17 22:08 linux-6.1.y 7eaef76fbc46 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in call_timer_fn
2023/03/08 12:10 linux-6.1.y 42616e0f09fb d2b00170 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in call_timer_fn
* Struck through repros no longer work on HEAD.