syzbot


BUG: unable to handle kernel paging request in expire_timers (2)

Status: upstream: reported on 2022/05/16 06:02
Reported-by: syzbot+ae973cb74675ac1f75b1@syzkaller.appspotmail.com
First crash: 207d, last: 114d
similar bugs (6):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-54 BUG: unable to handle kernel paging request in expire_timers 3 609d 701d 0/2 auto-closed as invalid on 2021/08/07 04:23
upstream KASAN: use-after-free Write in expire_timers 1 18d 17d 0/24 upstream: reported on 2022/11/21 18:35
upstream KMSAN: uninit-value in expire_timers (2) 2 620d 657d 0/24 auto-closed as invalid on 2021/06/26 09:57
upstream KMSAN: uninit-value in expire_timers (3) 1 522d 522d 0/24 auto-closed as invalid on 2021/10/02 12:28
upstream KMSAN: uninit-value in expire_timers (4) 1 393d 393d 0/24 auto-closed as invalid on 2022/02/08 07:20
android-54 general protection fault in expire_timers 1 616d 616d 0/2 auto-closed as invalid on 2021/07/30 19:44

Sample crash report:
BUG: unable to handle page fault for address: ffffffff8361eafb
#PF: supervisor write access in kernel mode
#PF: error_code(0x0003) - permissions violation
PGD 580f067 P4D 580f067 PUD 5810063 PMD 36001e1 
Oops: 0003 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 17071 Comm: syz-executor.3 Not tainted 5.4.197-syzkaller-00009-g2bf0b614f0fb #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
RIP: 0010:__hlist_del include/linux/list.h:773 [inline]
RIP: 0010:detach_timer kernel/time/timer.c:824 [inline]
RIP: 0010:expire_timers+0x155/0x400 kernel/time/timer.c:1452
Code: 1f 3b 00 4d 89 3e 4d 85 ff 74 2a e8 15 b6 0e 00 49 83 c7 08 4c 89 f8 48 c1 e8 03 42 80 3c 28 00 74 08 4c 89 ff e8 bb 1f 3b 00 <4d> 89 37 eb 0b 66 0f 1f 44 00 00 e8 eb b5 0e 00 4d 89 ef 42 80 7c
RSP: 0018:ffff8881f6f09dd8 EFLAGS: 00010046
RAX: 1ffffffff06c3d5f RBX: ffff8881e60cb1c0 RCX: ffff8881e4600fc0
RDX: 0000000000000103 RSI: ffff8881e60cb1c0 RDI: 0000000000000000
RBP: 1ffff1103cc19639 R08: ffffffff81519c11 R09: ffffed103ede92f7
R10: ffffed103ede92f7 R11: 1ffff1103ede92f6 R12: ffff8881e60cb1c8
R13: dffffc0000000000 R14: ffff8881f6f09ec0 R15: ffffffff8361eafb
FS:  00007f737db16700(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffff8361eafb CR3: 00000001eece5000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 __run_timers+0x5b0/0x6b0 kernel/time/timer.c:1787
 run_timer_softirq+0x46/0x80 kernel/time/timer.c:1800
 __do_softirq+0x23e/0x643 kernel/softirq.c:292
 do_softirq_own_stack+0x2a/0x40 arch/x86/entry/entry_64.S:1083
 </IRQ>
 do_softirq+0xdc/0x110 kernel/softirq.c:337
 __local_bh_enable_ip+0x6a/0x70 kernel/softirq.c:189
 rcu_read_unlock_bh include/linux/rcupdate.h:690 [inline]
 __dev_queue_xmit+0x1593/0x2840 net/core/dev.c:3816
 __bpf_tx_skb net/core/filter.c:2063 [inline]
 __bpf_redirect_no_mac net/core/filter.c:2088 [inline]
 __bpf_redirect+0x6f2/0xcc0 net/core/filter.c:2111
 ____bpf_clone_redirect net/core/filter.c:2142 [inline]
 bpf_clone_redirect+0x243/0x350 net/core/filter.c:2114
 bpf_prog_6493cbec178e154d+0x61a/0x1000
 bpf_call_func include/linux/filter.h:623 [inline]
 bpf_test_run+0x260/0x640 net/bpf/test_run.c:44
 bpf_prog_test_run_skb+0x7a2/0xf00 net/bpf/test_run.c:310
 bpf_prog_test_run kernel/bpf/syscall.c:2124 [inline]
 __do_sys_bpf kernel/bpf/syscall.c:2907 [inline]
 __se_sys_bpf+0x2b7b/0xb990 kernel/bpf/syscall.c:2847
 do_syscall_64+0xcb/0x1c0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7f737e9a0279
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f737db16168 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007f737eab2f80 RCX: 00007f737e9a0279
RDX: 0000000000000028 RSI: 0000000020000140 RDI: 000000000000000a
RBP: 00007f737e9fa189 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd5578123f R14: 00007f737db16300 R15: 0000000000022000
Modules linked in:
CR2: ffffffff8361eafb
---[ end trace 6ebed53368263cd4 ]---
RIP: 0010:__hlist_del include/linux/list.h:773 [inline]
RIP: 0010:detach_timer kernel/time/timer.c:824 [inline]
RIP: 0010:expire_timers+0x155/0x400 kernel/time/timer.c:1452
Code: 1f 3b 00 4d 89 3e 4d 85 ff 74 2a e8 15 b6 0e 00 49 83 c7 08 4c 89 f8 48 c1 e8 03 42 80 3c 28 00 74 08 4c 89 ff e8 bb 1f 3b 00 <4d> 89 37 eb 0b 66 0f 1f 44 00 00 e8 eb b5 0e 00 4d 89 ef 42 80 7c
RSP: 0018:ffff8881f6f09dd8 EFLAGS: 00010046
RAX: 1ffffffff06c3d5f RBX: ffff8881e60cb1c0 RCX: ffff8881e4600fc0
RDX: 0000000000000103 RSI: ffff8881e60cb1c0 RDI: 0000000000000000
RBP: 1ffff1103cc19639 R08: ffffffff81519c11 R09: ffffed103ede92f7
R10: ffffed103ede92f7 R11: 1ffff1103ede92f6 R12: ffff8881e60cb1c8
R13: dffffc0000000000 R14: ffff8881f6f09ec0 R15: ffffffff8361eafb
FS:  00007f737db16700(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffff8361eafb CR3: 00000001eece5000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 1 bytes skipped:
   0:	3b 00                	cmp    (%rax),%eax
   2:	4d 89 3e             	mov    %r15,(%r14)
   5:	4d 85 ff             	test   %r15,%r15
   8:	74 2a                	je     0x34
   a:	e8 15 b6 0e 00       	callq  0xeb624
   f:	49 83 c7 08          	add    $0x8,%r15
  13:	4c 89 f8             	mov    %r15,%rax
  16:	48 c1 e8 03          	shr    $0x3,%rax
  1a:	42 80 3c 28 00       	cmpb   $0x0,(%rax,%r13,1)
  1f:	74 08                	je     0x29
  21:	4c 89 ff             	mov    %r15,%rdi
  24:	e8 bb 1f 3b 00       	callq  0x3b1fe4
* 29:	4d 89 37             	mov    %r14,(%r15) <-- trapping instruction
  2c:	eb 0b                	jmp    0x39
  2e:	66 0f 1f 44 00 00    	nopw   0x0(%rax,%rax,1)
  34:	e8 eb b5 0e 00       	callq  0xeb624
  39:	4d 89 ef             	mov    %r13,%r15
  3c:	42                   	rex.X
  3d:	80                   	.byte 0x80
  3e:	7c                   	.byte 0x7c

Crashes (4):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-android-5-4-perf-kasan 2022/08/16 22:52 android12-5.4 2bf0b614f0fb 9e4b39c2 .config log report info BUG: unable to handle kernel paging request in expire_timers
ci2-android-5-4-perf-kasan 2022/06/25 23:39 android12-5.4 9ce4508d6de9 a371c43c .config log report info BUG: unable to handle kernel paging request in expire_timers
ci2-android-5-4-perf-kasan 2022/05/16 06:02 android12-5.4 ee52e8cb3015 744a39e2 .config log report info BUG: unable to handle kernel paging request in expire_timers
ci2-android-5-4-perf-kasan 2022/08/04 04:24 android12-5.4 ea07addb2369 1c9013ac .config log report info KASAN: use-after-free Write in expire_timers
* Struck through repros no longer work on HEAD.