syzbot


general protection fault in call_timer_fn

Status: moderation: reported on 2024/10/18 23:46
Subsystems: mm rdma acpi
[Documentation on labels]
Reported-by: syzbot+b4df92fe34d5a89015d8@syzkaller.appspotmail.com
First crash: 164d, last: 49d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-54 BUG: unable to handle kernel NULL pointer dereference in call_timer_fn (3) C 533 26m 12h31m 0/2 upstream: reported C repro on 2025/03/27 18:17
android-54 BUG: unable to handle kernel NULL pointer dereference in call_timer_fn (2) 370 267d 1078d 0/2 auto-obsoleted due to no activity on 2024/09/11 07:53

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xe00006c67c30f3d6: 0000 [#1] PREEMPT SMP KASAN NOPTI
KASAN: probably user-memory-access in range [0x00005633e1879eb0-0x00005633e1879eb7]
CPU: 0 UID: 0 PID: 5838 Comm: syz-executor Not tainted 6.14.0-rc1-syzkaller-00034-g92514ef226f5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
RIP: 0010:__queue_work+0x537/0xf50 kernel/workqueue.c:2270
Code: 8f 6a 1c 00 89 c3 31 ff 89 c6 e8 c4 f0 37 00 85 db 0f 84 6e 01 00 00 e8 77 ec 37 00 eb 05 e8 70 ec 37 00 4c 89 f8 48 c1 e8 03 <42> 80 3c 30 00 74 08 4c 89 ff e8 ca 84 9e 00 49 8b 2f 48 8b 7c 24
RSP: 0018:ffffc90000007a08 EFLAGS: 00010012
RAX: 00000ac67c30f3d6 RBX: 0000000000000001 RCX: ffff888034ec0000
RDX: 0000000000000100 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffffff917c2cd0 R08: ffffffff8187719c R09: 1ffffffff285f308
R10: dffffc0000000000 R11: fffffbfff285f309 R12: ffff88801ac7ac00
R13: 0000000000000002 R14: dffffc0000000000 R15: 00005633e1879eb0
FS:  0000555578c5a500(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2db18ff8 CR3: 000000005ccd2000 CR4: 0000000000350ef0
Call Trace:
 <IRQ>
 queue_work_on+0x1c2/0x380 kernel/workqueue.c:2390
 call_timer_fn+0x189/0x650 kernel/time/timer.c:1789
 expire_timers kernel/time/timer.c:1840 [inline]
 __run_timers kernel/time/timer.c:2414 [inline]
 __run_timer_base+0x66a/0x8e0 kernel/time/timer.c:2426
 run_timer_base kernel/time/timer.c:2435 [inline]
 run_timer_softirq+0xb7/0x170 kernel/time/timer.c:2445
 handle_softirqs+0x2d6/0x9b0 kernel/softirq.c:561
 __do_softirq kernel/softirq.c:595 [inline]
 invoke_softirq kernel/softirq.c:435 [inline]
 __irq_exit_rcu+0xf7/0x220 kernel/softirq.c:662
 irq_exit_rcu+0x9/0x30 kernel/softirq.c:678
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline]
 sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1049
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:xas_move_index lib/xarray.c:159 [inline]
RIP: 0010:xas_next_offset lib/xarray.c:166 [inline]
RIP: 0010:xas_find+0x2de/0x960 lib/xarray.c:1281
Code: f5 83 fd 3f 48 89 6c 24 30 0f 87 33 06 00 00 e8 68 76 cb f5 48 c7 c3 c0 ff ff ff 89 e9 48 d3 e3 48 8b 44 24 20 42 80 3c 30 00 <48> 8b 6c 24 08 74 08 48 89 ef e8 b3 0e 32 f6 48 21 5d 00 48 8b 4c
RSP: 0018:ffffc90002e074b0 EFLAGS: 00000246
RAX: 1ffff920005c0eb9 RBX: ffffffffffffffc0 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000040
RBP: 0000000000000000 R08: ffffffff8bf3e7a5 R09: ffffffff8bf3e5eb
R10: 0000000000000002 R11: ffff888034ec0000 R12: 1ffff920005c0ebb
R13: ffffc90002e075d8 R14: dffffc0000000000 R15: fffffffffffffffe
 find_get_entry mm/filemap.c:2015 [inline]
 find_lock_entries+0x269/0xbb0 mm/filemap.c:2119
 shmem_undo_range+0x2d4/0x1820 mm/shmem.c:1094
 shmem_truncate_range mm/shmem.c:1224 [inline]
 shmem_evict_inode+0x29b/0xa80 mm/shmem.c:1352
 evict+0x4ea/0x9a0 fs/inode.c:796
 __dentry_kill+0x20d/0x630 fs/dcache.c:643
 dput+0x19f/0x2b0 fs/dcache.c:885
 __fput+0x60b/0x9f0 fs/file_table.c:456
 task_work_run+0x251/0x310 kernel/task_work.c:227
 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:114 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
 syscall_exit_to_user_mode+0x13f/0x340 kernel/entry/common.c:218
 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7faeca18e117
Code: a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 a8 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007ffd3b54f088 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 00007faeca20e08c RCX: 00007faeca18e117
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffd3b54f140
RBP: 00007ffd3b54f140 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffd3b5501d0
R13: 00007faeca20e08c R14: 000000000005de24 R15: 00007ffd3b550210
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__queue_work+0x537/0xf50 kernel/workqueue.c:2270
Code: 8f 6a 1c 00 89 c3 31 ff 89 c6 e8 c4 f0 37 00 85 db 0f 84 6e 01 00 00 e8 77 ec 37 00 eb 05 e8 70 ec 37 00 4c 89 f8 48 c1 e8 03 <42> 80 3c 30 00 74 08 4c 89 ff e8 ca 84 9e 00 49 8b 2f 48 8b 7c 24
RSP: 0018:ffffc90000007a08 EFLAGS: 00010012
RAX: 00000ac67c30f3d6 RBX: 0000000000000001 RCX: ffff888034ec0000
RDX: 0000000000000100 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffffff917c2cd0 R08: ffffffff8187719c R09: 1ffffffff285f308
R10: dffffc0000000000 R11: fffffbfff285f309 R12: ffff88801ac7ac00
R13: 0000000000000002 R14: dffffc0000000000 R15: 00005633e1879eb0
FS:  0000555578c5a500(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2db18ff8 CR3: 000000005ccd2000 CR4: 0000000000350ef0
----------------
Code disassembly (best guess), 2 bytes skipped:
   0:	1c 00                	sbb    $0x0,%al
   2:	89 c3                	mov    %eax,%ebx
   4:	31 ff                	xor    %edi,%edi
   6:	89 c6                	mov    %eax,%esi
   8:	e8 c4 f0 37 00       	call   0x37f0d1
   d:	85 db                	test   %ebx,%ebx
   f:	0f 84 6e 01 00 00    	je     0x183
  15:	e8 77 ec 37 00       	call   0x37ec91
  1a:	eb 05                	jmp    0x21
  1c:	e8 70 ec 37 00       	call   0x37ec91
  21:	4c 89 f8             	mov    %r15,%rax
  24:	48 c1 e8 03          	shr    $0x3,%rax
* 28:	42 80 3c 30 00       	cmpb   $0x0,(%rax,%r14,1) <-- trapping instruction
  2d:	74 08                	je     0x37
  2f:	4c 89 ff             	mov    %r15,%rdi
  32:	e8 ca 84 9e 00       	call   0x9e8501
  37:	49 8b 2f             	mov    (%r15),%rbp
  3a:	48                   	rex.W
  3b:	8b                   	.byte 0x8b
  3c:	7c 24                	jl     0x62

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/02/06 21:32 upstream 92514ef226f5 53657d1b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in call_timer_fn
2024/11/13 07:03 upstream 3022e9d00ebe 62026c85 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in call_timer_fn
2024/10/14 23:36 upstream eca631b8fe80 b01b6661 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in call_timer_fn
* Struck through repros no longer work on HEAD.