================================================================== BUG: KASAN: stack-out-of-bounds in __get_unaligned_cpu32 include/linux/unaligned/packed_struct.h:19 [inline] BUG: KASAN: stack-out-of-bounds in jhash include/linux/jhash.h:82 [inline] BUG: KASAN: stack-out-of-bounds in hash+0x465/0xc20 kernel/bpf/bloom_filter.c:39 Read of size 4 at addr ffffc90000187960 by task ksoftirqd/1/23 CPU: 1 PID: 23 Comm: ksoftirqd/1 Not tainted 6.1.75-syzkaller-00089-g1794308d463f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0x158/0x4e0 mm/kasan/report.c:427 kasan_report+0x13c/0x170 mm/kasan/report.c:531 __asan_report_load_n_noabort+0xf/0x20 mm/kasan/report_generic.c:361 __get_unaligned_cpu32 include/linux/unaligned/packed_struct.h:19 [inline] jhash include/linux/jhash.h:82 [inline] hash+0x465/0xc20 kernel/bpf/bloom_filter.c:39 bloom_map_peek_elem+0xac/0x1a0 kernel/bpf/bloom_filter.c:51 bpf_prog_00798911c748094f+0x3a/0x3e bpf_dispatcher_nop_func include/linux/bpf.h:987 [inline] __bpf_prog_run include/linux/filter.h:600 [inline] bpf_prog_run include/linux/filter.h:607 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2275 [inline] bpf_trace_run2+0x133/0x290 kernel/trace/bpf_trace.c:2314 __bpf_trace_kfree+0x6f/0x90 include/trace/events/kmem.h:94 trace_kfree include/trace/events/kmem.h:94 [inline] kfree+0xce/0xf0 mm/slab_common.c:996 security_cred_free+0xb3/0xf0 security/security.c:1714 put_cred_rcu+0x66/0x320 kernel/cred.c:117 rcu_do_batch+0x518/0xb70 kernel/rcu/tree.c:2264 rcu_core+0x4ee/0xf10 kernel/rcu/tree.c:2524 rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2541 __do_softirq+0x1d8/0x661 kernel/softirq.c:617 run_ksoftirqd+0x23/0x30 kernel/softirq.c:990 smpboot_thread_fn+0x466/0x8d0 kernel/smpboot.c:164 kthread+0x26d/0x300 kernel/kthread.c:386 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 The buggy address belongs to stack of task ksoftirqd/1/23 and is located at offset 0 in frame: bpf_trace_run2+0x0/0x290 This frame has 1 object: [32, 48) 'args' The buggy address belongs to the virtual mapping at [ffffc90000180000, ffffc90000189000) created by: copy_process+0x5c3/0x3530 kernel/fork.c:2199 The buggy address belongs to the physical page: page:ffffea0004028680 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x100a1a flags: 0x4000000000000000(zone=1) raw: 4000000000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x0(), pid 1, tgid 1 (swapper/0), ts 1129113069, free_ts 0 create_dummy_stack mm/page_owner.c:68 [inline] register_early_stack+0x86/0xe0 mm/page_owner.c:84 init_page_owner+0x3d/0x650 mm/page_owner.c:94 invoke_init_callbacks mm/page_ext.c:130 [inline] page_ext_init+0x3a6/0x3cb mm/page_ext.c:524 kernel_init_freeable+0x2ec/0x451 init/main.c:1620 page_owner free stack trace missing Memory state around the buggy address: ffffc90000187800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90000187880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc90000187900: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 ^ ffffc90000187980: 00 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90000187a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== BUG: unable to handle page fault for address: ffffc90000188000 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 100000067 P4D 100000067 PUD 100154067 PMD 100155067 PTE 0 Oops: 0000 [#2] PREEMPT SMP KASAN CPU: 1 PID: 23 Comm: ksoftirqd/1 Tainted: G B D 6.1.75-syzkaller-00089-g1794308d463f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 RIP: 0010:jhash include/linux/jhash.h:80 [inline] RIP: 0010:hash+0x2a4/0xc20 kernel/bpf/bloom_filter.c:39 Code: 00 00 00 fc ff df 0f b6 04 10 84 c0 0f 85 ff 00 00 00 4a 8d 7c 36 03 48 89 f8 48 c1 e8 03 0f b6 04 10 84 c0 0f 85 17 01 00 00 <46> 03 3c 36 4a 8d 7c 36 04 48 89 f8 48 c1 e8 03 0f b6 04 10 84 c0 RSP: 0018:ffffc90000187868 EFLAGS: 00010282 RAX: 0000000000000000 RBX: 00000000ab2de562 RCX: ffffffff8191d745 RDX: dffffc0000000000 RSI: ffffc90000187928 RDI: ffffc90000188003 RBP: ffffc900001878a8 R08: 00000000fffff91b R09: fffffbfff0f260fd R10: 0000000000000000 R11: dffffc0000000001 R12: 00000000b0ce5fcc R13: 00000000fffff91b R14: 00000000000006d8 R15: 00000000f870b2c7 FS: 0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffc90000188000 CR3: 0000000153fd1000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600 Call Trace: bloom_map_peek_elem+0xac/0x1a0 kernel/bpf/bloom_filter.c:51 bpf_prog_00798911c748094f+0x3a/0x3e bpf_dispatcher_nop_func include/linux/bpf.h:987 [inline] __bpf_prog_run include/linux/filter.h:600 [inline] bpf_prog_run include/linux/filter.h:607 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2275 [inline] bpf_trace_run2+0x133/0x290 kernel/trace/bpf_trace.c:2314 __bpf_trace_kfree+0x6f/0x90 include/trace/events/kmem.h:94 trace_kfree include/trace/events/kmem.h:94 [inline] kfree+0xce/0xf0 mm/slab_common.c:996 security_cred_free+0xb3/0xf0 security/security.c:1714 put_cred_rcu+0x66/0x320 kernel/cred.c:117 rcu_do_batch+0x518/0xb70 kernel/rcu/tree.c:2264 rcu_core+0x4ee/0xf10 kernel/rcu/tree.c:2524 rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2541 __do_softirq+0x1d8/0x661 kernel/softirq.c:617 run_ksoftirqd+0x23/0x30 kernel/softirq.c:990 smpboot_thread_fn+0x466/0x8d0 kernel/smpboot.c:164 kthread+0x26d/0x300 kernel/kthread.c:386 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 Modules linked in: CR2: ffffc90000188000 ---[ end trace 0000000000000000 ]--- RIP: 0010:jhash include/linux/jhash.h:81 [inline] RIP: 0010:hash+0x2d8/0xc20 kernel/bpf/bloom_filter.c:39 Code: 89 f8 48 c1 e8 03 0f b6 04 10 84 c0 0f 85 2b 01 00 00 4a 8d 7c 36 07 48 89 f8 48 c1 e8 03 0f b6 04 10 84 c0 0f 85 43 01 00 00 <42> 03 5c 36 04 4a 8d 7c 36 08 48 89 f8 48 c1 e8 03 0f b6 04 10 84 RSP: 0018:ffffc900000079a8 EFLAGS: 00010286 RAX: 0000000000000000 RBX: 000000003b5d79e9 RCX: ffffffff8191d7a5 RDX: dffffc0000000000 RSI: ffffc90000007a68 RDI: ffffc90000008003 RBP: ffffc900000079e8 R08: 00000000fffffa5f R09: 0000000000000003 R10: ffffffffffffffff R11: dffffc0000000001 R12: 000000005316b75d R13: 00000000fffffa5f R14: 0000000000000594 R15: 000000000ad85b3a FS: 0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffc90000188000 CR3: 0000000153fd1000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600 ---------------- Code disassembly (best guess), 5 bytes skipped: 0: df 0f fisttps (%rdi) 2: b6 04 mov $0x4,%dh 4: 10 84 c0 0f 85 ff 00 adc %al,0xff850f(%rax,%rax,8) b: 00 00 add %al,(%rax) d: 4a 8d 7c 36 03 lea 0x3(%rsi,%r14,1),%rdi 12: 48 89 f8 mov %rdi,%rax 15: 48 c1 e8 03 shr $0x3,%rax 19: 0f b6 04 10 movzbl (%rax,%rdx,1),%eax 1d: 84 c0 test %al,%al 1f: 0f 85 17 01 00 00 jne 0x13c * 25: 46 03 3c 36 add (%rsi,%r14,1),%r15d <-- trapping instruction 29: 4a 8d 7c 36 04 lea 0x4(%rsi,%r14,1),%rdi 2e: 48 89 f8 mov %rdi,%rax 31: 48 c1 e8 03 shr $0x3,%rax 35: 0f b6 04 10 movzbl (%rax,%rdx,1),%eax 39: 84 c0 test %al,%al