syzbot


BUG: unable to handle kernel paging request in __run_timers

Status: auto-closed as invalid on 2019/07/10 08:52
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+13311cb35ccb2637e228@syzkaller.appspotmail.com
First crash: 1941d, last: 1931d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-54 KASAN: use-after-free Write in __run_timers syz 385 1d20h 1383d 0/2 upstream: reported syz repro on 2020/07/11 21:22

Sample crash report:
kasan: CONFIG_KASAN_INLINE enabled
kernel tried to execute NX-protected page - exploit attempt? (uid: 0)
kasan: GPF could be caused by NULL-ptr deref or user memory access
BUG: unable to handle kernel paging request at ffff8880a8331080
#PF error: [PROT] [INSTR]
PGD c201067 P4D c201067 PUD 21ffff067 PMD 80000000a82001e3 
Oops: 0011 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 86 Comm: kworker/u4:3 Not tainted 5.0.0-rc1+ #19
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: netns cleanup_net
RIP: 0010:0xffff8880a8331080
Code: ff ff 48 11 33 a8 80 88 ff ff 91 0e 60 86 80 88 ff ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 <00> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 c0 81 e5 9a 80 88
RSP: 0018:ffff8880ae6079b0 EFLAGS: 00010206
RAX: ffff8880a8331080 RBX: ffff8880a9487928 RCX: ffffffff816f1533
RDX: 0000000000000100 RSI: ffffffff816f1025 RDI: ffff8880a9487928
RBP: ffff8880ae607b00 R08: ffff8880a906e000 R09: ffffed1015cc5b90
R10: ffffed1015cc5b8f R11: ffff8880ae62dc7b R12: ffff8880ae607ad8
R13: 0000000000000101 R14: 0000000000000000 R15: ffff8880ae623bc0
FS:  0000000000000000(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffff8880a8331080 CR3: 00000000658dc000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 expire_timers kernel/time/timer.c:1362 [inline]
 __run_timers+0x6fc/0xd50 kernel/time/timer.c:1681
 run_timer_softirq+0x52/0xb0 kernel/time/timer.c:1694
 __do_softirq+0x30b/0xb11 kernel/softirq.c:292
 invoke_softirq kernel/softirq.c:373 [inline]
 irq_exit+0x180/0x1d0 kernel/softirq.c:413
 exiting_irq arch/x86/include/asm/apic.h:536 [inline]
 smp_apic_timer_interrupt+0x1b7/0x760 arch/x86/kernel/apic/apic.c:1062
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:807
 </IRQ>
RIP: 0010:atomic_read include/asm-generic/atomic-instrumented.h:21 [inline]
RIP: 0010:rcu_dynticks_curr_cpu_in_eqs+0x8d/0x170 kernel/rcu/tree.c:305
Code: c0 e8 b7 59 24 02 89 c0 48 8d 3c c5 60 40 56 89 48 89 fa 48 c1 ea 03 42 80 3c 32 00 0f 85 c7 00 00 00 4c 03 24 c5 60 40 56 89 <be> 04 00 00 00 4d 8d b4 24 b8 00 00 00 4c 89 f7 e8 de 32 59 00 4c
RSP: 0018:ffff8880a97b7630 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000000 RBX: 1ffff110152f6ec7 RCX: ffffffff8390e07a
RDX: 1ffffffff12ac80c RSI: ffffffff8390e088 RDI: ffffffff89564060
RBP: ffff8880a97b76b8 R08: ffff8880a906e000 R09: ffff8880a906e918
R10: ffff8880a906e8f8 R11: 0000000000000001 R12: ffff8880ae62dbc0
R13: ffff8880a97b7698 R14: dffffc0000000000 R15: dffffc0000000000
 rcu_is_watching+0x10/0x30 kernel/rcu/tree.c:932
 rcu_read_lock include/linux/rcupdate.h:608 [inline]
 inet_twsk_purge+0x69a/0x870 net/ipv4/inet_timewait_sock.c:267
 dccp_v6_exit_batch+0x1a/0x20 net/dccp/ipv6.c:1116
 ops_exit_list.isra.0+0x105/0x160 net/core/net_namespace.c:156
 cleanup_net+0x51d/0xb10 net/core/net_namespace.c:551
 process_one_work+0xd0c/0x1ce0 kernel/workqueue.c:2153
 worker_thread+0x143/0x14a0 kernel/workqueue.c:2296
 kthread+0x357/0x430 kernel/kthread.c:246
 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352
Modules linked in:
CR2: ffff8880a8331080
---[ end trace bfaddb31143de5fc ]---
general protection fault: 0000 [#2] PREEMPT SMP KASAN
CPU: 1 PID: 64 Comm: ksoftirqζ 1 Tainted: G      D           5.0.0-rc1+ #19
RIP: 0010:0xffff8880a8331080
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Code: ff ff 48 11 33 a8 80 88 ff ff 91 0e 60 86 80 88 ff ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 <00> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 c0 81 e5 9a 80 88
RIP: 0010:____rb_erase_color lib/rbtree.c:280 [inline]
RIP: 0010:rb_erase+0x54f/0x3550 lib/rbtree.c:462
RSP: 0018:ffff8880ae6079b0 EFLAGS: 00010206
Code: 85 ff 74 1a 48 89 f9 48 c1 e9 03 80 3c 19 00 0f 85 2e 16 00 00 f6 07 01 0f 84 c6 0d 00 00 48 85 c0 74 1a 48 89 c1 48 c1 e9 03 <80> 3c 19 00 0f 85 9f 13 00 00 f6 00 01 0f 84 b3 0a 00 00 4c 89 f0
RAX: ffff8880a8331080 RBX: ffff8880a9487928 RCX: ffffffff816f1533
RSP: 0018:ffff8880ae707698 EFLAGS: 00010006
RDX: 0000000000000100 RSI: ffffffff816f1025 RDI: ffff8880a9487928
RAX: 0000000041b58ab3 RBX: dffffc0000000000 RCX: 000000000836b156
RBP: ffff8880ae607b00 R08: ffff8880a906e000 R09: ffffed1015cc5b90
RDX: 1ffff11015ce0edb RSI: ffffed1015ce0f07 RDI: 0000000000000000
R10: ffffed1015cc5b8f R11: ffff8880ae62dc7b R12: ffff8880ae607ad8
RBP: ffff8880ae707c00 R08: ffff88809692f8e0 R09: 0000000000000001
R10: fffffbfff16d60bd R11: ffffffff8b6b05eb R12: ffff88809692f8d8
R13: 0000000000000101 R14: 0000000000000000 R15: ffff8880ae623bc0
R13: ffff8880ae725e00 R14: ffff8880a941f460 R15: ffff8880ae707bd8
FS:  0000000000000000(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
FS:  0000000000000000(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffff8880a8331080 CR3: 00000000658dc000 CR4: 00000000001406f0
CR2: 0000000000000068 CR3: 0000000097cf3000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/01/11 08:52 upstream 1bdbe2274920 80dde172 .config console log report ci-upstream-kasan-gce-386
2018/12/31 21:20 linux-next 6a1d293238c1 3d85f48c .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.