syzbot


BUG: unable to handle kernel NULL pointer dereference in smp_call_function_many_cond

Status: closed as invalid on 2020/06/14 11:53
Subsystems: perf
[Documentation on labels]
First crash: 1405d, last: 1405d
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 smp_call_function_many_cond (2) bpf 1 1395d 1395d 15/26 fixed on 2020/07/17 17:58

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 6502c067 P4D 6502c067 PUD 66dea067 PMD 0 
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 3 PID: 9893 Comm: syz-executor.1 Not tainted 5.7.0-syzkaller #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.12.0-59-gc9ba5276e321-prebuilt.qemu.org 04/01/2014
RIP: 0010:__read_once_size include/linux/compiler.h:252 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x43/0x60 kernel/kcov.c:202
Code: 24 74 0f 80 e6 01 74 35 8b 90 04 14 00 00 85 d2 74 2b 8b 90 e0 13 00 00 83 fa 02 75 20 48 8b 88 e8 13 00 00 8b 80 e4 13 00 00 <48> 8b 11 48 83 c2 01 48 39 d0 76 07 48 89 34 d1 48 89 11 c3 66 0f
RSP: 0018:ffffc90001d07a30 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffffe8ffadf098c0 RCX: 0000000000000000
RDX: 0000000000000002 RSI: ffffffff8169318a RDI: 0000000000000005
RBP: 0000000000000003 R08: ffff888064f480c0 R09: fffffbfff1516e6e
R10: ffffffff8a8b736b R11: fffffbfff1516e6d R12: fffff91ff5be1319
R13: 0000000000000001 R14: 0000000000000001 R15: dffffc0000000000
FS:  00007f3b5554c700(0000) GS:ffff88802d100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 0000000064a4e000 CR4: 0000000000340ee0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 rep_nop arch/x86/include/asm/vdso/processor.h:13 [inline]
 cpu_relax arch/x86/include/asm/vdso/processor.h:18 [inline]
 csd_lock_wait kernel/smp.c:108 [inline]
 smp_call_function_many_cond+0x7aa/0x980 kernel/smp.c:555
 smp_call_function_many kernel/smp.c:577 [inline]
 smp_call_function+0x40/0x80 kernel/smp.c:599
 on_each_cpu+0x2a/0x1e0 kernel/smp.c:717
 text_poke_sync arch/x86/kernel/alternative.c:942 [inline]
 text_poke_bp_batch+0x142/0x3f0 arch/x86/kernel/alternative.c:1121
 text_poke_flush arch/x86/kernel/alternative.c:1243 [inline]
 text_poke_finish+0x16/0x21 arch/x86/kernel/alternative.c:1250
 arch_jump_label_transform_apply+0x13/0x20 arch/x86/kernel/jump_label.c:126
 jump_label_update kernel/jump_label.c:808 [inline]
 jump_label_update+0x1c9/0x3b0 kernel/jump_label.c:787
 static_key_enable_cpuslocked+0x1b1/0x260 kernel/jump_label.c:177
 static_key_enable+0x16/0x20 kernel/jump_label.c:190
 account_event kernel/events/core.c:10960 [inline]
 perf_event_alloc.part.0+0x3222/0x38d0 kernel/events/core.c:11181
 perf_event_alloc kernel/events/core.c:11489 [inline]
 __do_sys_perf_event_open+0x6de/0x2900 kernel/events/core.c:11605
 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x49/0xb3
RIP: 0033:0x45c879
Code: 1d b2 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 eb b1 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f3b5554bc78 EFLAGS: 00000246 ORIG_RAX: 000000000000012a
RAX: ffffffffffffffda RBX: 000000000074bf00 RCX: 000000000045c879
RDX: ffffffffffffffff RSI: 0000000000000000 RDI: 0000000020000100
RBP: 000000000070db40 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffffffffffff R11: 0000000000000246 R12: 00007f3b5554c6d4
R13: 0000000000000835 R14: 00000000006ece00 R15: 00000000004b1ec6
Modules linked in:
CR2: 0000000000000000
---[ end trace b8544853c2401237 ]---
RIP: 0010:__read_once_size include/linux/compiler.h:252 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x43/0x60 kernel/kcov.c:202
Code: 24 74 0f 80 e6 01 74 35 8b 90 04 14 00 00 85 d2 74 2b 8b 90 e0 13 00 00 83 fa 02 75 20 48 8b 88 e8 13 00 00 8b 80 e4 13 00 00 <48> 8b 11 48 83 c2 01 48 39 d0 76 07 48 89 34 d1 48 89 11 c3 66 0f
RSP: 0018:ffffc90001d07a30 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffffe8ffadf098c0 RCX: 0000000000000000
RDX: 0000000000000002 RSI: ffffffff8169318a RDI: 0000000000000005
RBP: 0000000000000003 R08: ffff888064f480c0 R09: fffffbfff1516e6e
R10: ffffffff8a8b736b R11: fffffbfff1516e6d R12: fffff91ff5be1319
R13: 0000000000000001 R14: 0000000000000001 R15: dffffc0000000000
FS:  00007f3b5554c700(0000) GS:ffff88802d100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 0000000064a4e000 CR4: 0000000000340ee0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/06/14 11:45 upstream 435faf5c218a a61674a5 .config console log report ci-qemu-upstream
* Struck through repros no longer work on HEAD.