syzbot


general protection fault in detach_timer

Status: auto-obsoleted due to no activity on 2023/08/03 11:53
Subsystems: mm tomoyo batman
[Documentation on labels]
Reported-by: syzbot+a7dcbf7cb8f2231890e3@syzkaller.appspotmail.com
First crash: 379d, last: 370d

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc03fffffff9: 0000 [#1] PREEMPT SMP KASAN
KASAN: probably user-memory-access in range [0x0000001fffffffc8-0x0000001fffffffcf]
CPU: 1 PID: 5262 Comm: syz-executor.3 Not tainted 6.3.0-syzkaller-07919-g6e98b09da931 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
RIP: 0010:__hlist_del include/linux/list.h:901 [inline]
RIP: 0010:detach_timer+0x13f/0x2f0 kernel/time/timer.c:880
Code: 89 ef e8 64 c5 67 00 48 89 5d 00 48 85 db 74 5a e8 76 fb 10 00 48 83 c3 08 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 33 c5 67 00 48 89 2b 80 7c 24 04 00
RSP: 0000:ffffc9000509fbc0 EFLAGS: 00010006
RAX: 00000003fffffff9 RBX: 0000001fffffffc8 RCX: dffffc0000000000
RDX: 0000000000000101 RSI: ffffffff8b380380 RDI: ffffffff8b380340
RBP: ffffc9000509fcb0 R08: ffffffff817a0e34 R09: fffffbfff1ca8ab6
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff110096a8aa0
R13: ffff88804b545500 R14: ffff88804b5454f8 R15: 1ffff110096a8a9f
FS:  0000555556a38400(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b33721000 CR3: 0000000018a64000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 expire_timers kernel/time/timer.c:1734 [inline]
 __run_timers+0x5d4/0x860 kernel/time/timer.c:2022
 run_timer_softirq+0x67/0xf0 kernel/time/timer.c:2035
 __do_softirq+0x2ab/0x908 kernel/softirq.c:571
 invoke_softirq kernel/softirq.c:445 [inline]
 __irq_exit_rcu+0x159/0x240 kernel/softirq.c:650
 irq_exit_rcu+0x9/0x20 kernel/softirq.c:662
 sysvec_apic_timer_interrupt+0x47/0xb0 arch/x86/kernel/apic/apic.c:1106
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
RIP: 0033:0x7f185a239499
Code: 31 c5 c1 e8 0f 31 c5 80 3d 2c c2 c9 00 00 75 81 44 0f b6 6c 24 0f 44 8d 4d 04 89 e8 41 89 c0 41 81 e0 ff 1f 00 00 43 8b 14 84 <39> d5 0f 84 70 ff ff ff 85 d2 0f 84 67 01 00 00 83 c0 01 41 39 c1
RSP: 002b:00007ffc91782730 EFLAGS: 00000202
RAX: 00000000562289dc RBX: 00007f185a3ac018 RCX: 0000001b33720000
RDX: 00000000562289dc RSI: 0000001b33720018 RDI: 000000000a500564
RBP: 00000000562289dc R08: 00000000000009dc R09: 00000000562289e0
R10: 00007ffc917828f0 R11: 0000000000000246 R12: 00007f185a3a0000
R13: 0000000000000001 R14: 0000000000001e80 R15: ffffffff841d01c2
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__hlist_del include/linux/list.h:901 [inline]
RIP: 0010:detach_timer+0x13f/0x2f0 kernel/time/timer.c:880
Code: 89 ef e8 64 c5 67 00 48 89 5d 00 48 85 db 74 5a e8 76 fb 10 00 48 83 c3 08 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 33 c5 67 00 48 89 2b 80 7c 24 04 00
RSP: 0000:ffffc9000509fbc0 EFLAGS: 00010006
RAX: 00000003fffffff9 RBX: 0000001fffffffc8 RCX: dffffc0000000000
RDX: 0000000000000101 RSI: ffffffff8b380380 RDI: ffffffff8b380340
RBP: ffffc9000509fcb0 R08: ffffffff817a0e34 R09: fffffbfff1ca8ab6
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff110096a8aa0
R13: ffff88804b545500 R14: ffff88804b5454f8 R15: 1ffff110096a8a9f
FS:  0000555556a38400(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b33721000 CR3: 0000000018a64000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	89 ef                	mov    %ebp,%edi
   2:	e8 64 c5 67 00       	callq  0x67c56b
   7:	48 89 5d 00          	mov    %rbx,0x0(%rbp)
   b:	48 85 db             	test   %rbx,%rbx
   e:	74 5a                	je     0x6a
  10:	e8 76 fb 10 00       	callq  0x10fb8b
  15:	48 83 c3 08          	add    $0x8,%rbx
  19:	48 89 d8             	mov    %rbx,%rax
  1c:	48 c1 e8 03          	shr    $0x3,%rax
  20:	48 b9 00 00 00 00 00 	movabs $0xdffffc0000000000,%rcx
  27:	fc ff df
* 2a:	80 3c 08 00          	cmpb   $0x0,(%rax,%rcx,1) <-- trapping instruction
  2e:	74 08                	je     0x38
  30:	48 89 df             	mov    %rbx,%rdi
  33:	e8 33 c5 67 00       	callq  0x67c56b
  38:	48 89 2b             	mov    %rbp,(%rbx)
  3b:	80 7c 24 04 00       	cmpb   $0x0,0x4(%rsp)

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/04/27 05:26 upstream 6e98b09da931 19a3dabe .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in detach_timer
2023/05/05 11:52 upstream 3c4aa4434377 518a39a6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-use-after-free Write in detach_timer
2023/05/05 06:53 upstream 3c4aa4434377 518a39a6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-use-after-free Write in detach_timer
2023/04/29 12:32 upstream 89d77f71f493 62df2017 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root KASAN: slab-use-after-free Write in detach_timer
* Struck through repros no longer work on HEAD.