R10: 0000000008800000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f49ee7a0128 R14: 00007f49ee7a0090 R15: 00007ffc52f5c9e8 ---[ end trace aceec63272d73d03 ]--- ================================================================== BUG: KASAN: slab-out-of-bounds in __set_sit_entry_type fs/f2fs/segment.c:2257 [inline] BUG: KASAN: slab-out-of-bounds in reset_curseg+0x508/0x590 fs/f2fs/segment.c:2663 Read of size 4 at addr ffff888131ea3bc0 by task syz.2.588/2684 CPU: 1 PID: 2684 Comm: syz.2.588 Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:77 dump_stack_lvl+0x1a7/0x208 lib/dump_stack.c:118 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:435 [inline] kasan_report+0x100/0x140 mm/kasan/report.c:452 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308 __set_sit_entry_type fs/f2fs/segment.c:2257 [inline] reset_curseg+0x508/0x590 fs/f2fs/segment.c:2663 new_curseg+0x12ea/0x18d0 fs/f2fs/segment.c:2723 __allocate_new_segment+0x13d/0x810 fs/f2fs/segment.c:3039 __allocate_new_section fs/f2fs/segment.c:3047 [inline] f2fs_allocate_new_section+0x1f3/0x290 fs/f2fs/segment.c:3054 expand_inode_data+0x5e7/0x990 fs/f2fs/file.c:1761 f2fs_fallocate+0x3dd/0x750 fs/f2fs/file.c:1866 vfs_fallocate+0x4b9/0x590 fs/open.c:310 ksys_fallocate fs/open.c:333 [inline] __do_sys_fallocate fs/open.c:341 [inline] __se_sys_fallocate fs/open.c:339 [inline] __x64_sys_fallocate+0xc0/0x110 fs/open.c:339 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f49ee517e99 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f49ecf50028 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007f49ee7a0090 RCX: 00007f49ee517e99 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005 RBP: 00007f49ee5adeaf R08: 0000000000000000 R09: 0000000000000000 R10: 0000000008800000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f49ee7a0128 R14: 00007f49ee7a0090 R15: 00007ffc52f5c9e8 Allocated by task 2674: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:430 [inline] ____kasan_kmalloc mm/kasan/common.c:509 [inline] __kasan_kmalloc+0xd4/0x100 mm/kasan/common.c:518 kasan_kmalloc include/linux/kasan.h:254 [inline] __kmalloc+0x19f/0x330 mm/slub.c:4038 __kmalloc_node include/linux/slab.h:421 [inline] kmalloc_node include/linux/slab.h:578 [inline] kvmalloc_node+0x88/0x130 mm/util.c:612 kvmalloc include/linux/mm.h:833 [inline] f2fs_kvmalloc fs/f2fs/f2fs.h:3372 [inline] f2fs_kvzalloc fs/f2fs/f2fs.h:3378 [inline] build_sit_info fs/f2fs/segment.c:4395 [inline] f2fs_build_segment_manager+0xdb6/0x48c0 fs/f2fs/segment.c:5258 f2fs_fill_super+0x4a08/0x73d0 fs/f2fs/super.c:4317 mount_bdev+0x26a/0x380 fs/super.c:1442 f2fs_mount+0x34/0x40 fs/f2fs/super.c:4598 legacy_get_tree+0xed/0x190 fs/fs_context.c:593 vfs_get_tree+0x89/0x260 fs/super.c:1572 do_new_mount+0x25a/0xa30 fs/namespace.c:3006 path_mount+0x581/0xca0 fs/namespace.c:3336 do_mount fs/namespace.c:3349 [inline] __do_sys_mount fs/namespace.c:3557 [inline] __se_sys_mount+0x320/0x390 fs/namespace.c:3534 __x64_sys_mount+0xbf/0xd0 fs/namespace.c:3534 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb The buggy address belongs to the object at ffff888131ea3800 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 960 bytes inside of 1024-byte region [ffff888131ea3800, ffff888131ea3c00) The buggy address belongs to the page: page:ffffea0004c7a800 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888131ea6000 pfn:0x131ea0 head:ffffea0004c7a800 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head) raw: 4000000000010200 ffffea000466de08 ffffea00042f3408 ffff888100042f00 raw: ffff888131ea6000 000000000010000c 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 1070, ts 42962162560, free_ts 36957346772 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook mm/page_alloc.c:2456 [inline] prep_new_page+0x176/0x190 mm/page_alloc.c:2462 get_page_from_freelist+0x225f/0x23f0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x29a/0x640 mm/page_alloc.c:5384 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1813 [inline] new_slab+0x84/0x3f0 mm/slub.c:1874 new_slab_objects mm/slub.c:2632 [inline] ___slab_alloc+0x2f8/0x4c0 mm/slub.c:2796 __slab_alloc+0x63/0xa0 mm/slub.c:2836 slab_alloc_node mm/slub.c:2918 [inline] slab_alloc mm/slub.c:2960 [inline] __kmalloc_track_caller+0x1e4/0x310 mm/slub.c:4541 __kmalloc_reserve net/core/skbuff.c:144 [inline] __alloc_skb+0xdc/0x520 net/core/skbuff.c:212 alloc_skb include/linux/skbuff.h:1126 [inline] nlmsg_new include/net/netlink.h:953 [inline] rtmsg_fib+0x5fe/0xd90 net/ipv4/fib_semantics.c:520 fib_table_insert+0xee3/0x1d50 net/ipv4/fib_trie.c:1335 fib_magic net/ipv4/fib_frontend.c:1107 [inline] fib_add_ifaddr+0x360/0xf90 net/ipv4/fib_frontend.c:1129 fib_inetaddr_event+0x15d/0x310 net/ipv4/fib_frontend.c:1445 notifier_call_chain kernel/notifier.c:83 [inline] blocking_notifier_call_chain+0xba/0x140 kernel/notifier.c:337 __inet_insert_ifa+0x88e/0xa80 net/ipv4/devinet.c:567 inet_rtm_newaddr+0x8cf/0x1580 net/ipv4/devinet.c:967 rtnetlink_rcv_msg+0x9e9/0xca0 net/core/rtnetlink.c:5614 page last free stack trace: reset_page_owner include/linux/page_owner.h:28 [inline] free_pages_prepare mm/page_alloc.c:1349 [inline] free_pcp_prepare mm/page_alloc.c:1421 [inline] free_unref_page_prepare+0x2b7/0x2d0 mm/page_alloc.c:3336 free_unref_page mm/page_alloc.c:3391 [inline] free_the_page mm/page_alloc.c:5443 [inline] __free_pages+0x146/0x390 mm/page_alloc.c:5454 free_pages+0x82/0x90 mm/page_alloc.c:5465 kasan_depopulate_vmalloc_pte+0x6b/0x90 mm/kasan/shadow.c:354 apply_to_pte_range mm/memory.c:2504 [inline] apply_to_pmd_range mm/memory.c:2540 [inline] apply_to_pud_range mm/memory.c:2568 [inline] apply_to_p4d_range mm/memory.c:2596 [inline] __apply_to_page_range+0x790/0xa20 mm/memory.c:2623 apply_to_existing_page_range+0x38/0x50 mm/memory.c:2874 kasan_release_vmalloc+0x97/0xb0 mm/kasan/shadow.c:464 __purge_vmap_area_lazy+0x1326/0x1440 mm/vmalloc.c:1382 _vm_unmap_aliases+0x2ec/0x370 mm/vmalloc.c:1779 vm_unmap_aliases+0x19/0x20 mm/vmalloc.c:1802 change_page_attr_set_clr+0x317/0xc10 arch/x86/mm/pat/set_memory.c:1732 change_page_attr_clear arch/x86/mm/pat/set_memory.c:1789 [inline] set_memory_x+0xd3/0x110 arch/x86/mm/pat/set_memory.c:1922 bpf_jit_alloc_exec_page+0x78/0x180 kernel/bpf/trampoline.c:41 bpf_dispatcher_change_prog+0x101/0xc00 kernel/bpf/dispatcher.c:143 bpf_prog_change_xdp+0x24/0x30 net/core/filter.c:10438 dev_xdp_install+0x1f6/0x250 net/core/dev.c:9149 Memory state around the buggy address: ffff888131ea3a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888131ea3b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888131ea3b80: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ^ ffff888131ea3c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888131ea3c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 0 PID: 2684 Comm: syz.2.588 Tainted: G B W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026 RIP: 0010:update_sit_entry+0x3d6/0xfd0 fs/f2fs/segment.c:-1 Code: 89 45 a8 49 01 c7 41 f6 d6 41 80 e6 07 41 bd 01 00 00 00 44 89 f1 41 d3 e5 4d 89 fc 49 c1 ec 03 48 b8 00 00 00 00 00 fc ff df <41> 0f b6 04 04 84 c0 0f 85 3a 09 00 00 41 0f b6 1f 45 89 ee 41 21 RSP: 0018:ffffc90000b07678 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffff888131ea3bc8 RCX: 0000000000000007 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff888131ea3bc8 RBP: ffffc90000b076f0 R08: ffff88811a190006 R09: 1ffff11023432000 R10: dffffc0000000000 R11: ffffed1023432001 R12: 0000000000000000 R13: 0000000000000080 R14: 0000000000000007 R15: 0000000000000000 FS: 00007f49ecf506c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffe958be058 CR3: 000000012692e000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: f2fs_allocate_data_block+0x10c9/0x3880 fs/f2fs/segment.c:3481 __allocate_data_block+0x52b/0xa00 fs/f2fs/data.c:1413 f2fs_map_blocks+0xd94/0x34e0 fs/f2fs/data.c:1581 expand_inode_data+0x616/0x990 fs/f2fs/file.c:1765 f2fs_fallocate+0x3dd/0x750 fs/f2fs/file.c:1866 vfs_fallocate+0x4b9/0x590 fs/open.c:310 ksys_fallocate fs/open.c:333 [inline] __do_sys_fallocate fs/open.c:341 [inline] __se_sys_fallocate fs/open.c:339 [inline] __x64_sys_fallocate+0xc0/0x110 fs/open.c:339 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f49ee517e99 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f49ecf50028 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007f49ee7a0090 RCX: 00007f49ee517e99 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005 RBP: 00007f49ee5adeaf R08: 0000000000000000 R09: 0000000000000000 R10: 0000000008800000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f49ee7a0128 R14: 00007f49ee7a0090 R15: 00007ffc52f5c9e8 Modules linked in: ---[ end trace aceec63272d73d04 ]--- RIP: 0010:update_sit_entry+0x3d6/0xfd0 fs/f2fs/segment.c:-1 Code: 89 45 a8 49 01 c7 41 f6 d6 41 80 e6 07 41 bd 01 00 00 00 44 89 f1 41 d3 e5 4d 89 fc 49 c1 ec 03 48 b8 00 00 00 00 00 fc ff df <41> 0f b6 04 04 84 c0 0f 85 3a 09 00 00 41 0f b6 1f 45 89 ee 41 21 RSP: 0018:ffffc90000b07678 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffff888131ea3bc8 RCX: 0000000000000007 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff888131ea3bc8 RBP: ffffc90000b076f0 R08: ffff88811a190006 R09: 1ffff11023432000 R10: dffffc0000000000 R11: ffffed1023432001 R12: 0000000000000000 R13: 0000000000000080 R14: 0000000000000007 R15: 0000000000000000 FS: 00007f49ecf506c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe167ad8000 CR3: 000000012692e000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 89 45 a8 mov %eax,-0x58(%rbp) 3: 49 01 c7 add %rax,%r15 6: 41 f6 d6 not %r14b 9: 41 80 e6 07 and $0x7,%r14b d: 41 bd 01 00 00 00 mov $0x1,%r13d 13: 44 89 f1 mov %r14d,%ecx 16: 41 d3 e5 shl %cl,%r13d 19: 4d 89 fc mov %r15,%r12 1c: 49 c1 ec 03 shr $0x3,%r12 20: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 27: fc ff df * 2a: 41 0f b6 04 04 movzbl (%r12,%rax,1),%eax <-- trapping instruction 2f: 84 c0 test %al,%al 31: 0f 85 3a 09 00 00 jne 0x971 37: 41 0f b6 1f movzbl (%r15),%ebx 3b: 45 89 ee mov %r13d,%r14d 3e: 41 rex.B 3f: 21 .byte 0x21