general protection fault, probably for non-canonical address 0xdffffc0000000006: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000030-0x0000000000000037]
CPU: 0 PID: 2486 Comm: syz.0.686 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
RIP: 0010:bpf_overflow_handler+0x10c/0x3a0 kernel/events/core.c:9862
Code: 80 3c 28 00 74 08 48 89 df e8 a0 20 1a 00 4c 8b 2b 49 8d 5d 38 49 83 c5 30 4c 89 e8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 4c 89 ef e8 76 20 1a 00 4c 89 e7 48 89 de 41 ff
RSP: 0018:ffffc90000e17400 EFLAGS: 00010206
RAX: 0000000000000006 RBX: 0000000000000038 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000e17500 R08: dffffc0000000000 R09: ffffed10228b9a6a
R10: ffffed10228b9a6a R11: 1ffff110228b9a69 R12: ffffc90000e17460
R13: 0000000000000030 R14: ffff8881145cd000 R15: 1ffff920001c2e88
FS: 00007fdea56526c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000248000 CR3: 0000000111b86000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__perf_event_overflow+0x1b3/0x340 kernel/events/core.c:9086
perf_swevent_overflow kernel/events/core.c:9162 [inline]
perf_swevent_event+0x2f7/0x530 kernel/events/core.c:-1
do_perf_sw_event kernel/events/core.c:9303 [inline]
___perf_sw_event+0x377/0x470 kernel/events/core.c:9334
__perf_sw_event+0x134/0x270 kernel/events/core.c:9346
perf_sw_event include/linux/perf_event.h:1179 [inline]
do_user_addr_fault+0xc6a/0xc80 arch/x86/mm/fault.c:1255
handle_page_fault arch/x86/mm/fault.c:1428 [inline]
exc_page_fault+0x5a/0xc0 arch/x86/mm/fault.c:1484
asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:571
RIP: 0010:copy_user_enhanced_fast_string+0xe/0x40 arch/x86/lib/copy_user_64.S:206
Code: 89 d1 c1 e9 03 83 e2 07 f3 48 a5 89 d1 f3 a4 31 c0 0f 01 ca c3 90 90 90 90 90 90 90 0f 01 cb 83 fa 40 0f 82 70 ff ff ff 89 d1 <f3> a4 31 c0 0f 01 ca c3 90 90 90 90 90 90 90 90 90 90 89 d1 83 f8
RSP: 0018:ffffc90000e17a20 EFLAGS: 00050206
RAX: ffffffff82391101 RBX: 0000000000001000 RCX: 00000000000001c0
RDX: 0000000000001000 RSI: 0000200000248000 RDI: ffff88810cbb8e40
RBP: ffffc90000e17ab0 R08: dffffc0000000000 R09: ffffed1021977200
R10: 0000000000000000 R11: 0000000000000200 R12: 0000000000001000
R13: dffffc00000000ff R14: 00002000002471c0 R15: ffff88810cbb8000
pipe_write+0x914/0x1890 fs/pipe.c:529
call_write_iter include/linux/fs.h:2066 [inline]
new_sync_write fs/read_write.c:518 [inline]
vfs_write+0x725/0xd60 fs/read_write.c:605
ksys_write+0x140/0x240 fs/read_write.c:658
__do_sys_write fs/read_write.c:670 [inline]
__se_sys_write fs/read_write.c:667 [inline]
__x64_sys_write+0x7b/0x90 fs/read_write.c:667
do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fdea57e2749
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:00007fdea5652038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fdea5a38fa0 RCX: 00007fdea57e2749
RDX: 00000000fffffdef RSI: 00002000000001c0 RDI: 0000000000000000
RBP: 00007fdea5866f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fdea5a39038 R14: 00007fdea5a38fa0 R15: 00007ffd8d6b7438
Modules linked in:
---[ end trace 16d4130c3361c20b ]---
RIP: 0010:bpf_overflow_handler+0x10c/0x3a0 kernel/events/core.c:9862
Code: 80 3c 28 00 74 08 48 89 df e8 a0 20 1a 00 4c 8b 2b 49 8d 5d 38 49 83 c5 30 4c 89 e8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 4c 89 ef e8 76 20 1a 00 4c 89 e7 48 89 de 41 ff
RSP: 0018:ffffc90000e17400 EFLAGS: 00010206
RAX: 0000000000000006 RBX: 0000000000000038 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000e17500 R08: dffffc0000000000 R09: ffffed10228b9a6a
R10: ffffed10228b9a6a R11: 1ffff110228b9a69 R12: ffffc90000e17460
R13: 0000000000000030 R14: ffff8881145cd000 R15: 1ffff920001c2e88
FS: 00007fdea56526c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000248000 CR3: 0000000111b86000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 80 3c 28 00 cmpb $0x0,(%rax,%rbp,1)
4: 74 08 je 0xe
6: 48 89 df mov %rbx,%rdi
9: e8 a0 20 1a 00 call 0x1a20ae
e: 4c 8b 2b mov (%rbx),%r13
11: 49 8d 5d 38 lea 0x38(%r13),%rbx
15: 49 83 c5 30 add $0x30,%r13
19: 4c 89 e8 mov %r13,%rax
1c: 48 c1 e8 03 shr $0x3,%rax
20: 48 b9 00 00 00 00 00 movabs $0xdffffc0000000000,%rcx
27: fc ff df
* 2a: 80 3c 08 00 cmpb $0x0,(%rax,%rcx,1) <-- trapping instruction
2e: 74 08 je 0x38
30: 4c 89 ef mov %r13,%rdi
33: e8 76 20 1a 00 call 0x1a20ae
38: 4c 89 e7 mov %r12,%rdi
3b: 48 89 de mov %rbx,%rsi
3e: 41 rex.B
3f: ff .byte 0xff