BUG: kernel NULL pointer dereference, address: 0000000000000000
#PF: supervisor instruction fetch in kernel mode
#PF: error_code(0x0010) - not-present page
PGD 1d4c16067 P4D 1d4c16067 PUD 0
Oops: 0010 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 2138 Comm: syz.1.506 Not tainted 5.4.292-syzkaller-00021-gcd8e74fa0fa3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:0x0
Code: Bad RIP value.
RSP: 0018:ffff8881f6f09cf0 EFLAGS: 00010206
RAX: ffffffff8150a590 RBX: 0000000000000100 RCX: ffff8881e900de80
RDX: 0000000000000100 RSI: 0000000000000000 RDI: ffff8881e82ff1c0
RBP: ffff8881f6f09d30 R08: 0000000000000004 R09: 0000000000000003
R10: ffffed103ede1398 R11: 1ffff1103ede1398 R12: 00000000ffffa568
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8881e82ff1c0
FS: 00007faa4d8136c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 00000001d6184000 CR4: 00000000003406a0
DR0: 0000000000000000 DR1: 0000200000000300 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
call_timer_fn+0x3c/0x380 kernel/time/timer.c:1448
expire_timers kernel/time/timer.c:1493 [inline]
__run_timers+0x81d/0xb60 kernel/time/timer.c:1817
run_timer_softirq+0x6a/0xf0 kernel/time/timer.c:1830
__do_softirq+0x236/0x660 kernel/softirq.c:292
invoke_softirq kernel/softirq.c:373 [inline]
irq_exit+0x197/0x1c0 kernel/softirq.c:413
exiting_irq arch/x86/include/asm/apic.h:539 [inline]
smp_apic_timer_interrupt+0x11d/0x490 arch/x86/kernel/apic/apic.c:1161
apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:834
RIP: 0010:qlist_free_all+0x5a/0xb0 mm/kasan/quarantine.c:167
Code: ea ff ff eb 32 48 01 f8 48 2d 00 00 00 80 48 c1 e8 06 48 83 e0 c0 4a 8b 4c 20 08 f6 c1 01 75 34 4c 01 e0 48 8b 70 18 4c 8b 2f c1 03 00 00 4c 89 ef 4d 85 ed 74 25 4c 89 f6 4d 85 f6 75 e8 4c
RSP: 0018:ffff8881ea027870 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13
RAX: ffffea00079c5e00 RBX: ffff8881ea0278a8 RCX: ffffea00079c4800
RDX: 0000000080080006 RSI: ffff8881f5c0c000 RDI: ffff8881e7178000
RBP: ffff8881ea027898 R08: ffff8881e717f000 R09: 0000000000000000
R10: ffffed103d404ed0 R11: 1ffff1103d404ed0 R12: ffffea0000000000
R13: ffff8881e99850a0 R14: 0000000000000000 R15: 0000777f80000000
quarantine_reduce+0x1a8/0x200 mm/kasan/quarantine.c:260
__kasan_kmalloc+0x42/0x200 mm/kasan/common.c:507
kasan_slab_alloc+0x12/0x20 mm/kasan/common.c:537
slab_post_alloc_hook mm/slab.h:584 [inline]
slab_alloc_node mm/slub.c:2829 [inline]
slab_alloc mm/slub.c:2837 [inline]
kmem_cache_alloc_trace+0xe6/0x290 mm/slub.c:2854
kmalloc include/linux/slab.h:556 [inline]
kzalloc include/linux/slab.h:690 [inline]
selinux_perf_event_alloc+0x51/0x140 security/selinux/hooks.c:6970
security_perf_event_alloc+0x62/0x90 security/security.c:2455
perf_event_alloc+0x13fd/0x1920 kernel/events/core.c:10739
__do_sys_perf_event_open kernel/events/core.c:11161 [inline]
__se_sys_perf_event_open+0x6ae/0x1a90 kernel/events/core.c:11053
__x64_sys_perf_event_open+0xbf/0xd0 kernel/events/core.c:11053
do_syscall_64+0xcf/0x170 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x5c/0xc1
RIP: 0033:0x7faa4f1aa969
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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007faa4d813038 EFLAGS: 00000246 ORIG_RAX: 000000000000012a
RAX: ffffffffffffffda RBX: 00007faa4f3d1fa0 RCX: 00007faa4f1aa969
RDX: 0000000000000000 RSI: 0000000000000167 RDI: 00002000000000c0
RBP: 00007faa4f22cab1 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffffffffffff R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007faa4f3d1fa0 R15: 00007ffd42252ad8
Modules linked in:
CR2: 0000000000000000
---[ end trace 786695a1e9dc0dc4 ]---
RIP: 0010:0x0
Code: Bad RIP value.
RSP: 0018:ffff8881f6f09cf0 EFLAGS: 00010206
RAX: ffffffff8150a590 RBX: 0000000000000100 RCX: ffff8881e900de80
RDX: 0000000000000100 RSI: 0000000000000000 RDI: ffff8881e82ff1c0
RBP: ffff8881f6f09d30 R08: 0000000000000004 R09: 0000000000000003
R10: ffffed103ede1398 R11: 1ffff1103ede1398 R12: 00000000ffffa568
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8881e82ff1c0
FS: 00007faa4d8136c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 00000001d6184000 CR4: 00000000003406a0
DR0: 0000000000000000 DR1: 0000200000000300 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
----------------
Code disassembly (best guess), 3 bytes skipped:
0: eb 32 jmp 0x34
2: 48 01 f8 add %rdi,%rax
5: 48 2d 00 00 00 80 sub $0xffffffff80000000,%rax
b: 48 c1 e8 06 shr $0x6,%rax
f: 48 83 e0 c0 and $0xffffffffffffffc0,%rax
13: 4a 8b 4c 20 08 mov 0x8(%rax,%r12,1),%rcx
18: f6 c1 01 test $0x1,%cl
1b: 75 34 jne 0x51
1d: 4c 01 e0 add %r12,%rax
20: 48 8b 70 18 mov 0x18(%rax),%rsi
24: 4c 8b 2f mov (%rdi),%r13
* 27: e8 c1 03 00 00 call 0x3ed <-- trapping instruction
2c: 4c 89 ef mov %r13,%rdi
2f: 4d 85 ed test %r13,%r13
32: 74 25 je 0x59
34: 4c 89 f6 mov %r14,%rsi
37: 4d 85 f6 test %r14,%r14
3a: 75 e8 jne 0x24
3c: 4c rex.WR