syzbot


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

Status: fixed on 2020/07/17 17:58
Subsystems: net
[Documentation on labels]
Fix commit: 3021e69219e2 kcov: check kcov_softirq in kcov_remote_stop()
First crash: 1400d, last: 1392d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel NULL pointer dereference in debug_smp_processor_id usb 3 1408d 1411d 0/26 closed as invalid on 2020/06/10 12:27

Sample crash report:
BUG: kernel NULL pointer dereference, address: 0000000000000000
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 9043c067 P4D 9043c067 PUD 93ec4067 PMD 0 
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 9614 Comm: syz-executor.5 Not tainted 5.7.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__read_once_size include/linux/compiler.h:252 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x3f/0x60 kernel/kcov.c:202
Code: c2 00 01 ff 00 74 11 f7 c2 00 01 00 00 74 35 83 b9 04 14 00 00 00 74 2c 8b 91 e0 13 00 00 83 fa 02 75 21 48 8b 91 e8 13 00 00 <48> 8b 32 48 8d 7e 01 8b 89 e4 13 00 00 48 39 cf 73 08 48 89 44 f2
RSP: 0018:ffffc9000562f6d0 EFLAGS: 00010246
RAX: ffffffff839f8305 RBX: 0000000000000000 RCX: ffff88805811e180
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: 161989c702a9f510 R08: ffffffff8668158b R09: fffffbfff12d8975
R10: fffffbfff12d8975 R11: 0000000000000000 R12: ffff88809ec3aae0
R13: 1ffff11013d87571 R14: ffff88809ec3aac0 R15: dffffc0000000000
FS:  00007f8085152700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000009598f000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 debug_smp_processor_id+0x5/0x20 lib/smp_processor_id.c:56
 rcu_dynticks_curr_cpu_in_eqs kernel/rcu/tree.c:314 [inline]
 rcu_is_watching+0x1c/0xa0 kernel/rcu/tree.c:1079
 rcu_read_lock_held_common kernel/rcu/update.c:118 [inline]
 rcu_read_lock_sched_held+0x11/0xa0 kernel/rcu/update.c:133
 trace_netif_rx+0x22b/0x2c0 include/trace/events/net.h:157
 netif_rx_internal+0xb0/0x300 net/core/dev.c:4751
 netif_rx_ni+0x24/0xa0 net/core/dev.c:4815
 dev_loopback_xmit+0x21b/0x2f0 net/core/dev.c:3835
 ip_mc_finish_output+0x1f8/0x3f0 net/ipv4/ip_output.c:355
 NF_HOOK include/linux/netfilter.h:307 [inline]
 ip_mc_output+0x442/0x650 net/ipv4/ip_output.c:410
 dst_output include/net/dst.h:435 [inline]
 ip_local_out net/ipv4/ip_output.c:125 [inline]
 ip_send_skb+0x127/0x1d0 net/ipv4/ip_output.c:1560
 udp_send_skb+0x953/0x1210 net/ipv4/udp.c:894
 udp_sendmsg+0x21bc/0x2fb0 net/ipv4/udp.c:1181
 sock_sendmsg_nosec net/socket.c:652 [inline]
 sock_sendmsg net/socket.c:672 [inline]
 ____sys_sendmsg+0x519/0x800 net/socket.c:2352
 ___sys_sendmsg net/socket.c:2406 [inline]
 __sys_sendmmsg+0x45b/0x680 net/socket.c:2496
 __do_sys_sendmmsg net/socket.c:2525 [inline]
 __se_sys_sendmmsg net/socket.c:2522 [inline]
 __x64_sys_sendmmsg+0x9c/0xb0 net/socket.c:2522
 do_syscall_64+0xf3/0x1b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x49/0xb3
RIP: 0033:0x45ca59
Code: 0d b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 db b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f8085151c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 00000000004fcee0 RCX: 000000000045ca59
RDX: 04000000000001a8 RSI: 0000000020007fc0 RDI: 0000000000000006
RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000000008f4 R14: 00000000004cbc35 R15: 00007f80851526d4
Modules linked in:
CR2: 0000000000000000
---[ end trace aacc55e122228dc6 ]---
RIP: 0010:__read_once_size include/linux/compiler.h:252 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x3f/0x60 kernel/kcov.c:202
Code: c2 00 01 ff 00 74 11 f7 c2 00 01 00 00 74 35 83 b9 04 14 00 00 00 74 2c 8b 91 e0 13 00 00 83 fa 02 75 21 48 8b 91 e8 13 00 00 <48> 8b 32 48 8d 7e 01 8b 89 e4 13 00 00 48 39 cf 73 08 48 89 44 f2
RSP: 0018:ffffc9000562f6d0 EFLAGS: 00010246
RAX: ffffffff839f8305 RBX: 0000000000000000 RCX: ffff88805811e180
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: 161989c702a9f510 R08: ffffffff8668158b R09: fffffbfff12d8975
R10: fffffbfff12d8975 R11: 0000000000000000 R12: ffff88809ec3aae0
R13: 1ffff11013d87571 R14: ffff88809ec3aac0 R15: dffffc0000000000
FS:  00007f8085152700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000009598f000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/06/18 04:44 upstream 7ae77150d94d b9f3810b .config console log report ci-upstream-kasan-gce-smack-root
2020/06/18 02:16 upstream 7ae77150d94d b9f3810b .config console log report ci-upstream-kasan-gce-smack-root
2020/06/25 16:58 linux-next e7b08814b16b c7b4497a .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.