================================================================== 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 ffffc90004aaf0c0 by task syz-executor.0/20339 CPU: 1 PID: 20339 Comm: syz-executor.0 Not tainted 6.8.0-syzkaller-05271-gf99c5f563c17 #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_peek_elem+0xb2/0x1b0 kernel/bpf/bloom_filter.c:43 bpf_prog_00798911c748094f+0x42/0x46 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_run3+0x238/0x460 kernel/trace/bpf_trace.c:2421 trace_block_bio_remap include/trace/events/block.h:507 [inline] blk_partition_remap block/blk-core.c:571 [inline] submit_bio_noacct+0x1b01/0x1c30 block/blk-core.c:762 ext4_io_submit+0xda/0x140 fs/ext4/page-io.c:378 ext4_do_writepages+0x2d79/0x3ca0 fs/ext4/inode.c:2699 ext4_writepages+0x204/0x3e0 fs/ext4/inode.c:2768 do_writepages+0x3a4/0x670 mm/page-writeback.c:2553 filemap_fdatawrite_wbc+0x125/0x180 mm/filemap.c:388 __filemap_fdatawrite_range mm/filemap.c:421 [inline] file_write_and_wait_range+0x20f/0x300 mm/filemap.c:779 ext4_sync_file+0x250/0xb50 fs/ext4/fsync.c:158 generic_write_sync include/linux/fs.h:2793 [inline] ext4_buffered_write_iter+0x286/0x350 fs/ext4/file.c:305 ext4_file_write_iter+0x1de/0x1a10 call_write_iter include/linux/fs.h:2108 [inline] new_sync_write fs/read_write.c:497 [inline] vfs_write+0xa84/0xcb0 fs/read_write.c:590 ksys_write+0x1a0/0x2c0 fs/read_write.c:643 do_syscall_64+0xfb/0x240 entry_SYSCALL_64_after_hwframe+0x6d/0x75 RIP: 0033:0x7f90b367de69 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:00007f90b44540c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f90b37abf80 RCX: 00007f90b367de69 RDX: 0000000000000009 RSI: 0000000020000000 RDI: 0000000000000005 RBP: 00007f90b36ca47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f90b37abf80 R15: 00007fff131c0328 The buggy address belongs to stack of task syz-executor.0/20339 and is located at offset 0 in frame: bpf_trace_run3+0x0/0x460 This frame has 1 object: [32, 56) 'args' The buggy address belongs to the virtual mapping at [ffffc90004aa8000, ffffc90004ab1000) created by: copy_process+0x5d1/0x3df0 kernel/fork.c:2219 The buggy address belongs to the physical page: page:ffffea0001787240 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5e1c9 memcg:ffff88801eed5082 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff ffff88801eed5082 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 11404, tgid 11404 (syz-executor.2), ts 409938304057, free_ts 409926400358 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 11404 tgid 11404 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 discard_slab mm/slub.c:2453 [inline] __put_partials+0xeb/0x130 mm/slub.c:2922 put_cpu_partial+0x17c/0x250 mm/slub.c:2997 __slab_free+0x302/0x410 mm/slub.c:4166 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x5e/0xc0 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:322 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3813 [inline] slab_alloc_node mm/slub.c:3860 [inline] kmem_cache_alloc+0x172/0x350 mm/slub.c:3867 getname_flags+0xbd/0x4f0 fs/namei.c:140 getname fs/namei.c:219 [inline] __do_sys_unlink fs/namei.c:4448 [inline] __se_sys_unlink fs/namei.c:4446 [inline] __x64_sys_unlink+0x3c/0x60 fs/namei.c:4446 do_syscall_64+0xfb/0x240 entry_SYSCALL_64_after_hwframe+0x6d/0x75 Memory state around the buggy address: ffffc90004aaef80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90004aaf000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc90004aaf080: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 00 f3 ^ ffffc90004aaf100: f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90004aaf180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================