================================================================== 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+0x200/0x740 include/linux/jhash.h:82 Read of size 4 at addr ffffc90003b2f5a0 by task syz-executor.4/9289 CPU: 0 PID: 9289 Comm: syz-executor.4 Not tainted 6.8.0-syzkaller-05236-g443574b03387 #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+0x1e7/0x2e0 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:377 [inline] print_report+0x169/0x550 mm/kasan/report.c:488 kasan_report+0x143/0x180 mm/kasan/report.c:601 __get_unaligned_cpu32 include/linux/unaligned/packed_struct.h:19 [inline] jhash+0x200/0x740 include/linux/jhash.h:82 hash+0x339/0x410 kernel/bpf/bloom_filter.c:31 bloom_map_push_elem+0xcc/0x180 kernel/bpf/bloom_filter.c:61 bpf_prog_02d80071b9308953+0x47/0x4b bpf_dispatcher_nop_func include/linux/bpf.h:1234 [inline] __bpf_prog_run include/linux/filter.h:657 [inline] bpf_prog_run include/linux/filter.h:664 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2381 [inline] bpf_trace_run8+0x2ec/0x500 kernel/trace/bpf_trace.c:2426 __bpf_trace_jbd2_handle_stats+0x47/0x60 include/trace/events/jbd2.h:210 trace_jbd2_handle_stats include/trace/events/jbd2.h:210 [inline] jbd2_journal_stop+0xd3d/0xdc0 fs/jbd2/transaction.c:1869 __ext4_journal_stop+0xfd/0x1a0 fs/ext4/ext4_jbd2.c:134 ext4_create+0x2f9/0x550 fs/ext4/namei.c:2843 lookup_open fs/namei.c:3498 [inline] open_last_lookups fs/namei.c:3567 [inline] path_openat+0x1425/0x3240 fs/namei.c:3797 do_filp_open+0x235/0x490 fs/namei.c:3827 do_sys_openat2+0x13e/0x1d0 fs/open.c:1407 do_sys_open fs/open.c:1422 [inline] __do_sys_openat fs/open.c:1438 [inline] __se_sys_openat fs/open.c:1433 [inline] __x64_sys_openat+0x247/0x2a0 fs/open.c:1433 do_syscall_64+0xfb/0x240 entry_SYSCALL_64_after_hwframe+0x6d/0x75 RIP: 0033:0x7ff9fd67dea9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ff9fe4260c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007ff9fd7abf80 RCX: 00007ff9fd67dea9 RDX: 000000000000275a RSI: 0000000020000040 RDI: ffffffffffffff9c RBP: 00007ff9fd6ca4a4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007ff9fd7abf80 R15: 00007ffd8e381178 The buggy address belongs to stack of task syz-executor.4/9289 and is located at offset 0 in frame: bpf_trace_run8+0x0/0x500 This frame has 1 object: [32, 96) 'args' The buggy address belongs to the virtual mapping at [ffffc90003b28000, ffffc90003b31000) created by: copy_process+0x5d1/0x3df0 kernel/fork.c:2219 The buggy address belongs to the physical page: page:ffffea0000af5840 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2bd61 memcg:ffff88807ab01402 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff ffff88807ab01402 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x102dc2(GFP_HIGHUSER|__GFP_NOWARN|__GFP_ZERO), pid 8729, tgid 8726 (syz-executor.4), ts 202491897191, free_ts 201258932407 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1ea/0x210 mm/page_alloc.c:1533 prep_new_page mm/page_alloc.c:1540 [inline] get_page_from_freelist+0x33ea/0x3580 mm/page_alloc.c:3311 __alloc_pages+0x256/0x680 mm/page_alloc.c:4569 alloc_pages_mpol+0x3de/0x650 mm/mempolicy.c:2133 vm_area_alloc_pages mm/vmalloc.c:3135 [inline] __vmalloc_area_node mm/vmalloc.c:3211 [inline] __vmalloc_node_range+0x9a4/0x14a0 mm/vmalloc.c:3392 alloc_thread_stack_node kernel/fork.c:309 [inline] dup_task_struct+0x3e9/0x7d0 kernel/fork.c:1114 copy_process+0x5d1/0x3df0 kernel/fork.c:2219 kernel_clone+0x21e/0x8d0 kernel/fork.c:2796 __do_sys_clone kernel/fork.c:2939 [inline] __se_sys_clone kernel/fork.c:2923 [inline] __x64_sys_clone+0x258/0x2a0 kernel/fork.c:2923 do_syscall_64+0xfb/0x240 entry_SYSCALL_64_after_hwframe+0x6d/0x75 page last free pid 8688 tgid 8687 stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1140 [inline] free_unref_page_prepare+0x968/0xa90 mm/page_alloc.c:2346 free_unref_page+0x37/0x3f0 mm/page_alloc.c:2486 napi_frag_unref include/linux/skbuff.h:3535 [inline] skb_release_data+0x3e4/0x870 net/core/skbuff.c:1130 skb_release_all net/core/skbuff.c:1202 [inline] kfree_skb_add_bulk net/core/skbuff.c:1273 [inline] kfree_skb_list_reason+0x31a/0x7a0 net/core/skbuff.c:1295 skb_release_data+0x4ae/0x870 net/core/skbuff.c:1134 skb_release_all net/core/skbuff.c:1202 [inline] __kfree_skb net/core/skbuff.c:1216 [inline] kfree_skb_reason+0x195/0x390 net/core/skbuff.c:1252 kfree_skb include/linux/skbuff.h:1267 [inline] kcm_sendmsg+0x1db4/0x27c0 net/kcm/kcmsock.c:943 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg+0x221/0x270 net/socket.c:745 ____sys_sendmsg+0x525/0x7d0 net/socket.c:2584 ___sys_sendmsg net/socket.c:2638 [inline] __sys_sendmsg+0x2b0/0x3a0 net/socket.c:2667 do_syscall_64+0xfb/0x240 entry_SYSCALL_64_after_hwframe+0x6d/0x75 Memory state around the buggy address: ffffc90003b2f480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90003b2f500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc90003b2f580: 00 00 00 00 f1 f1 f1 f1 00 00 00 00 00 00 00 00 ^ ffffc90003b2f600: f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90003b2f680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================