Oops: general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
CPU: 0 UID: 0 PID: 12 Comm: kworker/u8:0 Not tainted 6.14.0-next-20250404-syzkaller #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
Workqueue: events_unbound bpf_map_free_deferred
RIP: 0010:free_all kernel/bpf/memalloc.c:268 [inline]
RIP: 0010:drain_mem_cache+0x104/0x4b0 kernel/bpf/memalloc.c:639
Code: 00 e8 90 d5 3f 00 31 db 49 87 9e b0 00 00 00 48 85 db 75 0f e8 8d b0 d5 ff eb 67 e8 86 b0 d5 ff 4c 89 fb 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 bd d2 3f 00 4c 8b 3b 45 85 e4 74
RSP: 0018:ffffc90000117a20 EFLAGS: 00010203
RAX: 0000000000000001 RBX: 000000000000000c RCX: ffffffff81edac90
RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffe8ffffd705a8
RBP: ffffe8ffffd704f8 R08: ffffe8ffffd705af R09: 1ffffd1ffffae0b5
R10: dffffc0000000000 R11: fffff91ffffae0b6 R12: 0000000000000000
R13: dffffc0000000000 R14: ffffe8ffffd704f8 R15: 0000000000000001
FS: 0000000000000000(0000) GS:ffff888124f8f000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff2d6454290 CR3: 000000000eb38000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
bpf_mem_alloc_destroy+0x14a/0x4e0 kernel/bpf/memalloc.c:754
trie_free+0x136/0x160 kernel/bpf/lpm_trie.c:652
bpf_map_free kernel/bpf/syscall.c:861 [inline]
bpf_map_free_deferred+0xe9/0x110 kernel/bpf/syscall.c:887
process_one_work kernel/workqueue.c:3238 [inline]
process_scheduled_works+0xac3/0x18e0 kernel/workqueue.c:3319
worker_thread+0x870/0xd50 kernel/workqueue.c:3400
kthread+0x7b7/0x940 kernel/kthread.c:464
ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:153
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:free_all kernel/bpf/memalloc.c:268 [inline]
RIP: 0010:drain_mem_cache+0x104/0x4b0 kernel/bpf/memalloc.c:639
Code: 00 e8 90 d5 3f 00 31 db 49 87 9e b0 00 00 00 48 85 db 75 0f e8 8d b0 d5 ff eb 67 e8 86 b0 d5 ff 4c 89 fb 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 bd d2 3f 00 4c 8b 3b 45 85 e4 74
RSP: 0018:ffffc90000117a20 EFLAGS: 00010203
RAX: 0000000000000001 RBX: 000000000000000c RCX: ffffffff81edac90
RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffe8ffffd705a8
RBP: ffffe8ffffd704f8 R08: ffffe8ffffd705af R09: 1ffffd1ffffae0b5
R10: dffffc0000000000 R11: fffff91ffffae0b6 R12: 0000000000000000
R13: dffffc0000000000 R14: ffffe8ffffd704f8 R15: 0000000000000001
FS: 0000000000000000(0000) GS:ffff888124f8f000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000000180 CR3: 0000000065c2c000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 1 bytes skipped:
0: e8 90 d5 3f 00 call 0x3fd595
5: 31 db xor %ebx,%ebx
7: 49 87 9e b0 00 00 00 xchg %rbx,0xb0(%r14)
e: 48 85 db test %rbx,%rbx
11: 75 0f jne 0x22
13: e8 8d b0 d5 ff call 0xffd5b0a5
18: eb 67 jmp 0x81
1a: e8 86 b0 d5 ff call 0xffd5b0a5
1f: 4c 89 fb mov %r15,%rbx
22: 48 89 d8 mov %rbx,%rax
25: 48 c1 e8 03 shr $0x3,%rax
* 29: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) <-- trapping instruction
2e: 74 08 je 0x38
30: 48 89 df mov %rbx,%rdi
33: e8 bd d2 3f 00 call 0x3fd2f5
38: 4c 8b 3b mov (%rbx),%r15
3b: 45 85 e4 test %r12d,%r12d
3e: 74 .byte 0x74