loop0: detected capacity change from 0 to 131072 F2FS-fs (loop0): invalid crc value F2FS-fs (loop0): Mounted with checkpoint version = 48b305e4 ================================================================== BUG: KASAN: slab-out-of-bounds in data_blkaddr fs/f2fs/f2fs.h:3053 [inline] BUG: KASAN: slab-out-of-bounds in f2fs_data_blkaddr fs/f2fs/f2fs.h:3058 [inline] BUG: KASAN: slab-out-of-bounds in f2fs_get_dnode_of_data+0x19b2/0x1b50 fs/f2fs/node.c:855 Read of size 4 at addr ffff888057326048 by task syz.0.0/5355 CPU: 0 UID: 0 PID: 5355 Comm: syz.0.0 Not tainted 6.16.0-syzkaller-11129-geacf91b0c78a #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xca/0x240 mm/kasan/report.c:482 kasan_report+0x118/0x150 mm/kasan/report.c:595 data_blkaddr fs/f2fs/f2fs.h:3053 [inline] f2fs_data_blkaddr fs/f2fs/f2fs.h:3058 [inline] f2fs_get_dnode_of_data+0x19b2/0x1b50 fs/f2fs/node.c:855 prepare_write_begin fs/f2fs/data.c:3400 [inline] f2fs_write_begin+0xb38/0x21a0 fs/f2fs/data.c:3596 generic_perform_write+0x2c2/0x900 mm/filemap.c:4175 f2fs_buffered_write_iter fs/f2fs/file.c:4989 [inline] f2fs_file_write_iter+0x1ec8/0x2410 fs/f2fs/file.c:5217 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x54b/0xa90 fs/read_write.c:686 ksys_write+0x145/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f821e38eb69 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f821f1d2038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f821e5b5fa0 RCX: 00007f821e38eb69 RDX: 00000000fffffdef RSI: 00002000000000c0 RDI: 0000000000000005 RBP: 00007f821e411df1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f821e5b5fa0 R15: 00007ffccf649ad8 Allocated by task 31: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:68 unpoison_slab_object mm/kasan/common.c:319 [inline] __kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:345 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4180 [inline] slab_alloc_node mm/slub.c:4229 [inline] kmem_cache_alloc_noprof+0x1c1/0x3c0 mm/slub.c:4236 node_alloc net/ipv6/ip6_fib.c:188 [inline] fib6_add_1+0x9c1/0x1460 net/ipv6/ip6_fib.c:-1 fib6_add+0x204/0x18a0 net/ipv6/ip6_fib.c:1440 __ip6_ins_rt net/ipv6/route.c:1351 [inline] ip6_ins_rt+0xc8/0x120 net/ipv6/route.c:1361 __ipv6_ifa_notify+0x63f/0xac0 net/ipv6/addrconf.c:6283 ipv6_ifa_notify net/ipv6/addrconf.c:6322 [inline] addrconf_dad_completed+0x180/0xd60 net/ipv6/addrconf.c:4320 addrconf_dad_work+0xc36/0x14b0 net/ipv6/addrconf.c:-1 process_one_work kernel/workqueue.c:3236 [inline] process_scheduled_works+0xade/0x17b0 kernel/workqueue.c:3319 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3400 kthread+0x711/0x8a0 kernel/kthread.c:464 ret_from_fork+0x3f9/0x770 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 The buggy address belongs to the object at ffff888057326000 which belongs to the cache fib6_node of size 72 The buggy address is located 0 bytes to the right of allocated 72-byte region [ffff888057326000, ffff888057326048) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x57326 memcg:ffff8880363da201 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 04fff00000000000 ffff88803e848780 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000200020 00000000f5000000 ffff8880363da201 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x52820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 31, tgid 31 (kworker/u4:2), ts 75158676628, free_ts 0 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5148 alloc_pages_mpol+0x232/0x4a0 mm/mempolicy.c:2416 alloc_slab_page mm/slub.c:2487 [inline] allocate_slab+0x8a/0x370 mm/slub.c:2655 new_slab mm/slub.c:2709 [inline] ___slab_alloc+0xbeb/0x1410 mm/slub.c:3891 __slab_alloc mm/slub.c:3981 [inline] __slab_alloc_node mm/slub.c:4056 [inline] slab_alloc_node mm/slub.c:4217 [inline] kmem_cache_alloc_noprof+0x283/0x3c0 mm/slub.c:4236 node_alloc net/ipv6/ip6_fib.c:188 [inline] fib6_add_1+0x9c1/0x1460 net/ipv6/ip6_fib.c:-1 fib6_add+0x204/0x18a0 net/ipv6/ip6_fib.c:1440 __ip6_ins_rt net/ipv6/route.c:1351 [inline] ip6_ins_rt+0xc8/0x120 net/ipv6/route.c:1361 __ipv6_ifa_notify+0x63f/0xac0 net/ipv6/addrconf.c:6283 ipv6_ifa_notify net/ipv6/addrconf.c:6322 [inline] addrconf_dad_completed+0x180/0xd60 net/ipv6/addrconf.c:4320 addrconf_dad_work+0xc36/0x14b0 net/ipv6/addrconf.c:-1 process_one_work kernel/workqueue.c:3236 [inline] process_scheduled_works+0xade/0x17b0 kernel/workqueue.c:3319 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3400 kthread+0x711/0x8a0 kernel/kthread.c:464 page_owner free stack trace missing Memory state around the buggy address: ffff888057325f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888057325f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888057326000: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc ^ ffff888057326080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc ffff888057326100: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc ==================================================================