syzbot


BUG: unable to handle kernel NULL pointer dereference in call_timer_fn (2)

Status: upstream: reported on 2022/04/15 00:29
Reported-by: syzbot+aa458316adb49b2df9cb@syzkaller.appspotmail.com
First crash: 226d, last: 7d14h
similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel NULL pointer dereference in call_timer_fn 1 724d 724d 0/24 auto-closed as invalid on 2021/03/03 09:48
linux-4.14 BUG: unable to handle kernel NULL pointer dereference in call_timer_fn 2 918d 946d 0/1 auto-closed as invalid on 2020/09/20 01:08
android-54 BUG: unable to handle kernel NULL pointer dereference in call_timer_fn 5 677d 853d 0/2 auto-closed as invalid on 2021/05/18 23:15

Sample crash report:
BUG: kernel NULL pointer dereference, address: 0000000000000000
#PF: supervisor instruction fetch in kernel mode
#PF: error_code(0x0010) - not-present page
PGD 1a8fae067 P4D 1a8fae067 PUD 1ac368067 PMD 0 
Oops: 0010 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 10706 Comm: syz-executor.4 Not tainted 5.4.210-syzkaller-00005-ge9f865cb240f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:0x0
Code: Bad RIP value.
RSP: 0018:ffff8881f6e09cc0 EFLAGS: 00010202
RAX: ffffffff8155b109 RBX: 0000000000000101 RCX: ffff8881ab3ccec0
RDX: 0000000000000101 RSI: 0000000000000000 RDI: ffff8881e733f1c0
RBP: ffff8881e733f1e0 R08: ffffffff8155aee2 R09: 0000000000000003
R10: ffffed103edc1391 R11: 1ffff1103edc1390 R12: 0000000100007d70
R13: 1ffff1103edc92f1 R14: 0000000000000000 R15: ffff8881e733f1c0
FS:  0000000000000000(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 00000001e6c0c000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
 <IRQ>
 call_timer_fn+0x31/0x350 kernel/time/timer.c:1418
 expire_timers+0x21e/0x400 kernel/time/timer.c:1463
 __run_timers+0x5e0/0x700 kernel/time/timer.c:1787
 run_timer_softirq+0x46/0x80 kernel/time/timer.c:1800
 __do_softirq+0x23e/0x643 kernel/softirq.c:292
 invoke_softirq kernel/softirq.c:373 [inline]
 irq_exit+0x195/0x1c0 kernel/softirq.c:413
 exiting_irq arch/x86/include/asm/apic.h:538 [inline]
 smp_apic_timer_interrupt+0x113/0x440 arch/x86/kernel/apic/apic.c:1150
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:831
 </IRQ>
RIP: 0010:on_stack arch/x86/include/asm/stacktrace.h:48 [inline]
RIP: 0010:stack_access_ok arch/x86/kernel/unwind_orc.c:332 [inline]
RIP: 0010:deref_stack_reg+0xd3/0x1f0 arch/x86/kernel/unwind_orc.c:342
Code: e8 03 48 b9 00 00 00 00 00 fc ff df 8a 04 08 84 c0 0f 85 ff 00 00 00 83 3b 00 74 18 4d 39 fe 77 13 4d 39 fc 76 0e 49 8d 47 08 <4c> 39 f0 76 05 4c 39 e0 76 45 48 8d 7b 28 48 89 f8 48 c1 e8 03 48
RSP: 0018:ffff8881a9386ac0 EFLAGS: 00000216 ORIG_RAX: ffffffffffffff13
RAX: ffff8881a93873e0 RBX: ffff8881a9386ea0 RCX: dffffc0000000000
RDX: ffff8881a9386ee0 RSI: ffff8881a93873d8 RDI: ffff8881a9386eb0
RBP: ffff8881a9386b70 R08: dffffc0000000000 R09: ffff8881a9386ef0
R10: ffffed1035270de0 R11: 1ffff11035270dde R12: ffff8881a9388000
R13: 1ffff11035270d5c R14: ffff8881a9380000 R15: ffff8881a93873d8
 unwind_next_frame+0x13b1/0x1ed0 arch/x86/kernel/unwind_orc.c:574
 arch_stack_walk+0x114/0x140 arch/x86/kernel/stacktrace.c:25
 stack_trace_save+0x132/0x200 kernel/stacktrace.c:123
 save_stack mm/kasan/common.c:70 [inline]
 set_track mm/kasan/common.c:78 [inline]
 kasan_set_free_info mm/kasan/common.c:345 [inline]
 __kasan_slab_free+0x178/0x240 mm/kasan/common.c:487
 slab_free_hook mm/slub.c:1455 [inline]
 slab_free_freelist_hook+0x80/0x150 mm/slub.c:1494
 slab_free mm/slub.c:3080 [inline]
 kmem_cache_free+0xa9/0x1d0 mm/slub.c:3096
 free_buffer_head+0x42/0xa0 fs/buffer.c:3367
 try_to_free_buffers+0x305/0x390 fs/buffer.c:3282
 jbd2_journal_try_to_free_buffers+0x3ef/0x460 fs/jbd2/transaction.c:2121
 do_invalidatepage mm/truncate.c:163 [inline]
 truncate_cleanup_page+0xe4/0x1f0 mm/truncate.c:182
 truncate_inode_pages_range+0x6a3/0x1620 mm/truncate.c:362
 ext4_evict_inode+0x975/0x1b40 fs/ext4/inode.c:251
 evict+0x29b/0x6a0 fs/inode.c:576
 __dentry_kill+0x37a/0x570 fs/dcache.c:579
 dentry_kill+0xb8/0x280 fs/dcache.c:673
 dput+0x15f/0x300 fs/dcache.c:859
 __fput+0x440/0x680 fs/file_table.c:294
 task_work_run+0x186/0x1b0 kernel/task_work.c:113
 exit_task_work include/linux/task_work.h:22 [inline]
 do_exit+0xce6/0x2d30 kernel/exit.c:812
 do_group_exit+0x136/0x300 kernel/exit.c:910
 get_signal+0xd99/0x13f0 kernel/signal.c:2735
 do_signal+0xb0/0x1200 arch/x86/kernel/signal.c:809
 exit_to_usermode_loop+0xdd/0x1d0 arch/x86/entry/common.c:159
 prepare_exit_to_usermode+0x17c/0x1d0 arch/x86/entry/common.c:194
 retint_user+0x8/0x8
RIP: 0033:0x7f8473e65dc7
Code: Bad RIP value.
RSP: 002b:00007f8472bdc260 EFLAGS: 00010206
RAX: 0000000000000000 RBX: 00007f8473fea120 RCX: 00007f8473ec9639
RDX: 00007f8472bdc280 RSI: 00007f8472bdc3b0 RDI: 000000000000000b
RBP: 000000000000000b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000000
R13: 00007ffc6a5b036f R14: 00007f8472bfb300 R15: 0000000000022000
Modules linked in:
CR2: 0000000000000000
---[ end trace e15a14b1574b86c2 ]---
RIP: 0010:0x0
Code: Bad RIP value.
RSP: 0018:ffff8881f6e09cc0 EFLAGS: 00010202
RAX: ffffffff8155b109 RBX: 0000000000000101 RCX: ffff8881ab3ccec0
RDX: 0000000000000101 RSI: 0000000000000000 RDI: ffff8881e733f1c0
RBP: ffff8881e733f1e0 R08: ffffffff8155aee2 R09: 0000000000000003
R10: ffffed103edc1391 R11: 1ffff1103edc1390 R12: 0000000100007d70
R13: 1ffff1103edc92f1 R14: 0000000000000000 R15: ffff8881e733f1c0
FS:  0000000000000000(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 00000001e6c0c000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
----------------
Code disassembly (best guess), 2 bytes skipped:
   0:	48 b9 00 00 00 00 00 	movabs $0xdffffc0000000000,%rcx
   7:	fc ff df
   a:	8a 04 08             	mov    (%rax,%rcx,1),%al
   d:	84 c0                	test   %al,%al
   f:	0f 85 ff 00 00 00    	jne    0x114
  15:	83 3b 00             	cmpl   $0x0,(%rbx)
  18:	74 18                	je     0x32
  1a:	4d 39 fe             	cmp    %r15,%r14
  1d:	77 13                	ja     0x32
  1f:	4d 39 fc             	cmp    %r15,%r12
  22:	76 0e                	jbe    0x32
  24:	49 8d 47 08          	lea    0x8(%r15),%rax
* 28:	4c 39 f0             	cmp    %r14,%rax <-- trapping instruction
  2b:	76 05                	jbe    0x32
  2d:	4c 39 e0             	cmp    %r12,%rax
  30:	76 45                	jbe    0x77
  32:	48 8d 7b 28          	lea    0x28(%rbx),%rdi
  36:	48 89 f8             	mov    %rdi,%rax
  39:	48 c1 e8 03          	shr    $0x3,%rax
  3d:	48                   	rex.W

Crashes (9):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-android-5-4-perf-kasan 2022/11/20 00:25 android12-5.4 e9f865cb240f 5bb70014 .config log report info BUG: unable to handle kernel NULL pointer dereference in call_timer_fn
ci2-android-5-4-perf-kasan 2022/10/31 15:12 android12-5.4 035e4939365c 2a71366b .config log report info BUG: unable to handle kernel NULL pointer dereference in call_timer_fn
ci2-android-5-4-perf-kasan 2022/10/11 22:06 android12-5.4 35e910266d44 02b6492e .config log report info BUG: unable to handle kernel NULL pointer dereference in call_timer_fn
ci2-android-5-4-perf-kasan 2022/09/22 09:28 android12-5.4 def19b1cf16c 60af5050 .config log report info BUG: unable to handle kernel NULL pointer dereference in call_timer_fn
ci2-android-5-4-perf-kasan 2022/09/04 19:28 android12-5.4 f0306959ab7c 28811d0a .config log report info BUG: unable to handle kernel NULL pointer dereference in call_timer_fn
ci2-android-5-4-perf-kasan 2022/08/01 21:11 android12-5.4 2bde2e268ec7 fef302b1 .config log report info BUG: unable to handle kernel NULL pointer dereference in call_timer_fn
ci2-android-5-4-perf-kasan 2022/06/12 20:50 android12-5.4 77dc925ddffb 0d5abf15 .config log report info BUG: unable to handle kernel NULL pointer dereference in call_timer_fn
ci2-android-5-4-perf-kasan 2022/04/19 08:56 android12-5.4 b730087e9a5d 8bcc32a6 .config log report info BUG: unable to handle kernel NULL pointer dereference in call_timer_fn
ci2-android-5-4-perf-kasan 2022/04/15 00:29 android12-5.4 b730087e9a5d b17b2923 .config log report info BUG: unable to handle kernel NULL pointer dereference in call_timer_fn
* Struck through repros no longer work on HEAD.