RAX: ffffffffffffffda RBX: 00007f1c81e2d180 RCX: 00007f1c81bb3819 RDX: 00002000000000c0 RSI: 0000000040305828 RDI: 0000000000000006 RBP: 00007f1c81c49c91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f1c81e2d218 R14: 00007f1c81e2d180 R15: 00007ffceda29ec8 ---[ end trace e5be1a65b3e08a49 ]--- ================================================================== 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+0x4dd/0x560 fs/f2fs/segment.c:2663 Read of size 4 at addr ffff88811dfb9bc0 by task syz.7.295/1381 CPU: 0 PID: 1381 Comm: syz.7.295 Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/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+0xe2/0x130 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+0x4dd/0x560 fs/f2fs/segment.c:2663 new_curseg+0x12e8/0x1880 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+0x5f7/0x9a0 fs/f2fs/file.c:1761 f2fs_fallocate+0x42b/0x7e0 fs/f2fs/file.c:1866 vfs_fallocate+0x4b4/0x590 fs/open.c:310 ioctl_preallocate fs/ioctl.c:494 [inline] file_ioctl fs/ioctl.c:534 [inline] do_vfs_ioctl+0x1154/0x14c0 fs/ioctl.c:732 __do_sys_ioctl fs/ioctl.c:751 [inline] __se_sys_ioctl+0x9f/0x1a0 fs/ioctl.c:739 __x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:739 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f1c81bb3819 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:00007f1c805cc028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f1c81e2d180 RCX: 00007f1c81bb3819 RDX: 00002000000000c0 RSI: 0000000040305828 RDI: 0000000000000006 RBP: 00007f1c81c49c91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f1c81e2d218 R14: 00007f1c81e2d180 R15: 00007ffceda29ec8 Allocated by task 1376: 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+0xda/0x110 mm/kasan/common.c:518 kasan_kmalloc include/linux/kasan.h:254 [inline] __kmalloc+0x1a4/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+0xdba/0x4900 fs/f2fs/segment.c:5258 f2fs_fill_super+0x4a3a/0x73f0 fs/f2fs/super.c:4317 mount_bdev+0x28b/0x3a0 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/0xa20 fs/namespace.c:3006 path_mount+0x585/0xc90 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 Last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:38 __kasan_record_aux_stack+0xd2/0x100 mm/kasan/generic.c:348 kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:358 insert_work+0x52/0x310 kernel/workqueue.c:1352 __queue_work+0x923/0xca0 kernel/workqueue.c:1518 queue_work_on+0xe6/0x140 kernel/workqueue.c:1545 queue_work include/linux/workqueue.h:515 [inline] schedule_work include/linux/workqueue.h:576 [inline] queue_release_one_tty drivers/tty/tty_io.c:1562 [inline] kref_put include/linux/kref.h:65 [inline] tty_kref_put drivers/tty/tty_io.c:1576 [inline] release_tty+0x70c/0x820 drivers/tty/tty_io.c:1611 tty_release_struct+0xbf/0xe0 drivers/tty/tty_io.c:1710 tty_release+0xcad/0x1320 drivers/tty/tty_io.c:1870 __fput+0x2fb/0x770 fs/file_table.c:281 ____fput+0x15/0x20 fs/file_table.c:314 task_work_run+0x127/0x190 kernel/task_work.c:189 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_user_mode_loop+0xcb/0xe0 kernel/entry/common.c:172 exit_to_user_mode_prepare+0x76/0xa0 kernel/entry/common.c:199 syscall_exit_to_user_mode+0x1d/0x40 kernel/entry/common.c:274 do_syscall_64+0x3d/0x40 arch/x86/entry/common.c:56 entry_SYSCALL_64_after_hwframe+0x61/0xcb The buggy address belongs to the object at ffff88811dfb9800 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 960 bytes inside of 1024-byte region [ffff88811dfb9800, ffff88811dfb9c00) The buggy address belongs to the page: page:ffffea000477ee00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11dfb8 head:ffffea000477ee00 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head) raw: 4000000000010200 0000000000000000 0000000500000001 ffff888100042f00 raw: 0000000000000000 0000000000100010 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 267, ts 19495964774, free_ts 0 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook mm/page_alloc.c:2456 [inline] prep_new_page+0x179/0x180 mm/page_alloc.c:2462 get_page_from_freelist+0x223b/0x23d0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x290/0x620 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+0x2a6/0x450 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+0x1fe/0x330 mm/slub.c:4034 kmalloc include/linux/slab.h:560 [inline] load_elf_phdrs fs/binfmt_elf.c:480 [inline] load_elf_binary+0x271/0x28e0 fs/binfmt_elf.c:860 search_binary_handler fs/exec.c:1726 [inline] exec_binprm fs/exec.c:1767 [inline] bprm_execve+0x88b/0x15f0 fs/exec.c:1843 do_execveat_common+0x918/0xaa0 fs/exec.c:1954 do_execve fs/exec.c:2024 [inline] __do_sys_execve fs/exec.c:2100 [inline] __se_sys_execve fs/exec.c:2095 [inline] __x64_sys_execve+0x92/0xb0 fs/exec.c:2095 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb page_owner free stack trace missing Memory state around the buggy address: ffff88811dfb9a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88811dfb9b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88811dfb9b80: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ^ ffff88811dfb9c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88811dfb9c80: 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: 1381 Comm: syz.7.295 Tainted: G B W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 RIP: 0010:update_sit_entry+0x3eb/0xf50 fs/f2fs/segment.c:-1 Code: 89 45 a8 49 01 c5 41 f6 d7 41 80 e7 07 44 89 f9 41 bf 01 00 00 00 41 d3 e7 4d 89 ee 49 c1 ee 03 48 b8 00 00 00 00 00 fc ff df <41> 0f b6 04 06 84 c0 0f 85 a5 08 00 00 41 0f b6 5d 00 44 89 f8 41 RSP: 0018:ffffc90000d9f330 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffff88811dfb9bc8 RCX: 0000000000000007 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff88811dfb9bc8 RBP: ffffc90000d9f3b0 R08: ffff8881279e2780 R09: 0000000000000003 R10: 00000000ffffffff R11: 0000000000000000 R12: 0000000000004000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000080 FS: 00007f1c805cc6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f31bdfa82f8 CR3: 000000011d5a6000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: f2fs_allocate_data_block+0x159c/0x3a20 fs/f2fs/segment.c:3481 __allocate_data_block+0x553/0x9d0 fs/f2fs/data.c:1413 f2fs_map_blocks+0xda4/0x35a0 fs/f2fs/data.c:1581 expand_inode_data+0x626/0x9a0 fs/f2fs/file.c:1765 f2fs_fallocate+0x42b/0x7e0 fs/f2fs/file.c:1866 vfs_fallocate+0x4b4/0x590 fs/open.c:310 ioctl_preallocate fs/ioctl.c:494 [inline] file_ioctl fs/ioctl.c:534 [inline] do_vfs_ioctl+0x1154/0x14c0 fs/ioctl.c:732 __do_sys_ioctl fs/ioctl.c:751 [inline] __se_sys_ioctl+0x9f/0x1a0 fs/ioctl.c:739 __x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:739 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f1c81bb3819 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:00007f1c805cc028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f1c81e2d180 RCX: 00007f1c81bb3819 RDX: 00002000000000c0 RSI: 0000000040305828 RDI: 0000000000000006 RBP: 00007f1c81c49c91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f1c81e2d218 R14: 00007f1c81e2d180 R15: 00007ffceda29ec8 Modules linked in: ---[ end trace e5be1a65b3e08a4a ]--- RIP: 0010:update_sit_entry+0x3eb/0xf50 fs/f2fs/segment.c:-1 Code: 89 45 a8 49 01 c5 41 f6 d7 41 80 e7 07 44 89 f9 41 bf 01 00 00 00 41 d3 e7 4d 89 ee 49 c1 ee 03 48 b8 00 00 00 00 00 fc ff df <41> 0f b6 04 06 84 c0 0f 85 a5 08 00 00 41 0f b6 5d 00 44 89 f8 41 RSP: 0018:ffffc90000d9f330 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffff88811dfb9bc8 RCX: 0000000000000007 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff88811dfb9bc8 RBP: ffffc90000d9f3b0 R08: ffff8881279e2780 R09: 0000000000000003 R10: 00000000ffffffff R11: 0000000000000000 R12: 0000000000004000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000080 FS: 00007f1c805cc6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000011d5a6000 CR4: 00000000003506a0 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 c5 add %rax,%r13 6: 41 f6 d7 not %r15b 9: 41 80 e7 07 and $0x7,%r15b d: 44 89 f9 mov %r15d,%ecx 10: 41 bf 01 00 00 00 mov $0x1,%r15d 16: 41 d3 e7 shl %cl,%r15d 19: 4d 89 ee mov %r13,%r14 1c: 49 c1 ee 03 shr $0x3,%r14 20: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 27: fc ff df * 2a: 41 0f b6 04 06 movzbl (%r14,%rax,1),%eax <-- trapping instruction 2f: 84 c0 test %al,%al 31: 0f 85 a5 08 00 00 jne 0x8dc 37: 41 0f b6 5d 00 movzbl 0x0(%r13),%ebx 3c: 44 89 f8 mov %r15d,%eax 3f: 41 rex.B