Oops: general protection fault, probably for non-canonical address 0xdffffc001ffff11a: 0000 [#1] PREEMPT SMP KASAN NOPTI
KASAN: probably user-memory-access in range [0x00000000ffff88d0-0x00000000ffff88d7]
CPU: 2 PID: 7727 Comm: syz-executor.1 Not tainted 6.10.0-rc5-syzkaller-00018-g55027e689933 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
RIP: 0010:css_tryget include/linux/cgroup_refcnt.h:44 [inline]
RIP: 0010:get_mem_cgroup_from_objcg include/linux/memcontrol.h:536 [inline]
RIP: 0010:get_memcg.isra.0+0xde/0x5a0 kernel/bpf/memalloc.c:160
Code: df 4d 89 f4 49 c1 ec 03 4d 01 ec e8 5c d2 da ff 41 80 3c 24 00 0f 85 a2 04 00 00 48 8b 6b 10 48 8d 7d 54 48 89 f8 48 c1 e8 03 <42> 0f b6 14 28 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85
RSP: 0018:ffffc90000540e58 EFLAGS: 00010003
RAX: 000000001ffff11a RBX: ffff888059749f04 RCX: ffffffff81b3be37
RDX: ffff88801b23a440 RSI: ffffffff81b3bd94 RDI: 00000000ffff88d4
RBP: 00000000ffff8880 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: ffffed100b2e93e2
R13: dffffc0000000000 R14: ffff888059749f14 R15: 1ffffd1ff5a4d68f
FS: 0000000000000000(0000) GS:ffff88802c200000(0063) knlGS:00000000f5f1ab40
CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033
CR2: 0000000000000000 CR3: 0000000059774000 CR4: 0000000000350ef0
Call Trace:
<IRQ>
alloc_bulk+0x2a2/0x600 kernel/bpf/memalloc.c:239
bpf_mem_refill+0x5dd/0x9d0 kernel/bpf/memalloc.c:442
irq_work_single+0x1bc/0x260 kernel/irq_work.c:221
irq_work_run_list+0x92/0xc0 kernel/irq_work.c:252
irq_work_run+0x58/0xd0 kernel/irq_work.c:261
__sysvec_irq_work+0x8c/0x410 arch/x86/kernel/irq_work.c:22
instr_sysvec_irq_work arch/x86/kernel/irq_work.c:17 [inline]
sysvec_irq_work+0x90/0xb0 arch/x86/kernel/irq_work.c:17
</IRQ>
<TASK>
asm_sysvec_irq_work+0x1a/0x20 arch/x86/include/asm/idtentry.h:738
RIP: 0010:htab_unlock_bucket kernel/bpf/hashtab.c:181 [inline]
RIP: 0010:__htab_percpu_map_update_elem+0x42a/0x990 kernel/bpf/hashtab.c:1319
Code: ff 4d 85 ff 0f 85 8d 01 00 00 e8 11 81 e2 ff 9c 5d 81 e5 00 02 00 00 31 ff 48 89 ee e8 2f 7c e2 ff 48 85 ed 0f 85 b8 03 00 00 <e8> f1 80 e2 ff bf 01 00 00 00 e8 37 62 b2 ff 31 ff 65 8b 2d 36 ca
RSP: 0018:ffffc90007aaf9f0 EFLAGS: 00000283
RAX: 0000000000001607 RBX: 0000000000000000 RCX: ffffc90003231000
RDX: 0000000000040000 RSI: ffffffff81ac1091 RDI: 0000000000000007
RBP: 0000000000000000 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: ffff888021883000
R13: 0000000000000007 R14: 0000000000000001 R15: 0000000000000200
bpf_percpu_hash_update+0xbb/0x240 kernel/bpf/hashtab.c:2424
bpf_map_update_value+0x3e1/0x6c0 kernel/bpf/syscall.c:181
generic_map_update_batch+0x454/0x5f0 kernel/bpf/syscall.c:1889
bpf_map_do_batch+0x615/0x6e0 kernel/bpf/syscall.c:5197
__sys_bpf+0x18cb/0x5830 kernel/bpf/syscall.c:5752
__do_sys_bpf kernel/bpf/syscall.c:5795 [inline]
__se_sys_bpf kernel/bpf/syscall.c:5793 [inline]
__ia32_sys_bpf+0x76/0xe0 kernel/bpf/syscall.c:5793
do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline]
__do_fast_syscall_32+0x73/0x120 arch/x86/entry/common.c:386
do_fast_syscall_32+0x32/0x80 arch/x86/entry/common.c:411
entry_SYSENTER_compat_after_hwframe+0x84/0x8e
RIP: 0023:0xf7349579
Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00
RSP: 002b:00000000f5f1a5ac EFLAGS: 00000292 ORIG_RAX: 0000000000000165
RAX: ffffffffffffffda RBX: 000000000000001a RCX: 0000000020000200
RDX: 0000000000000038 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000292 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:css_tryget include/linux/cgroup_refcnt.h:44 [inline]
RIP: 0010:get_mem_cgroup_from_objcg include/linux/memcontrol.h:536 [inline]
RIP: 0010:get_memcg.isra.0+0xde/0x5a0 kernel/bpf/memalloc.c:160
Code: df 4d 89 f4 49 c1 ec 03 4d 01 ec e8 5c d2 da ff 41 80 3c 24 00 0f 85 a2 04 00 00 48 8b 6b 10 48 8d 7d 54 48 89 f8 48 c1 e8 03 <42> 0f b6 14 28 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85
RSP: 0018:ffffc90000540e58 EFLAGS: 00010003
RAX: 000000001ffff11a RBX: ffff888059749f04 RCX: ffffffff81b3be37
RDX: ffff88801b23a440 RSI: ffffffff81b3bd94 RDI: 00000000ffff88d4
RBP: 00000000ffff8880 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: ffffed100b2e93e2
R13: dffffc0000000000 R14: ffff888059749f14 R15: 1ffffd1ff5a4d68f
FS: 0000000000000000(0000) GS:ffff88802c200000(0063) knlGS:00000000f5f1ab40
CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033
CR2: 0000000000000000 CR3: 0000000059774000 CR4: 0000000000350ef0
----------------
Code disassembly (best guess):
0: df 4d 89 fisttps -0x77(%rbp)
3: f4 hlt
4: 49 c1 ec 03 shr $0x3,%r12
8: 4d 01 ec add %r13,%r12
b: e8 5c d2 da ff call 0xffdad26c
10: 41 80 3c 24 00 cmpb $0x0,(%r12)
15: 0f 85 a2 04 00 00 jne 0x4bd
1b: 48 8b 6b 10 mov 0x10(%rbx),%rbp
1f: 48 8d 7d 54 lea 0x54(%rbp),%rdi
23: 48 89 f8 mov %rdi,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 42 0f b6 14 28 movzbl (%rax,%r13,1),%edx <-- trapping instruction
2f: 48 89 f8 mov %rdi,%rax
32: 83 e0 07 and $0x7,%eax
35: 83 c0 03 add $0x3,%eax
38: 38 d0 cmp %dl,%al
3a: 7c 08 jl 0x44
3c: 84 d2 test %dl,%dl
3e: 0f .byte 0xf
3f: 85 .byte 0x85