entry_SYSCALL_64_after_hwframe+0x5c/0xc1 ================================================================== BUG: KASAN: use-after-free in f2fs_truncate_data_blocks_range+0x81f/0xf90 fs/f2fs/file.c:562 Read of size 4 at addr ffff8881eef53000 by task syz-executor.0/414 CPU: 0 PID: 414 Comm: syz-executor.0 Not tainted 5.4.268-syzkaller-04882-g51cf29fc2bfc #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d8/0x241 lib/dump_stack.c:118 print_address_description+0x8c/0x600 mm/kasan/report.c:384 __kasan_report+0xf3/0x120 mm/kasan/report.c:516 kasan_report+0x30/0x60 mm/kasan/common.c:653 f2fs_truncate_data_blocks_range+0x81f/0xf90 fs/f2fs/file.c:562 truncate_dnode fs/f2fs/node.c:907 [inline] f2fs_truncate_inode_blocks+0x7a2/0x13d0 fs/f2fs/node.c:1119 f2fs_do_truncate_blocks+0x614/0xac0 fs/f2fs/file.c:708 f2fs_truncate_blocks fs/f2fs/file.c:736 [inline] f2fs_truncate+0x275/0x540 fs/f2fs/file.c:780 f2fs_setattr+0x9a4/0x1040 fs/f2fs/file.c:944 notify_change+0xc00/0xeb0 fs/attr.c:354 do_truncate+0x1ed/0x2d0 fs/open.c:64 handle_truncate fs/namei.c:3103 [inline] do_last fs/namei.c:3521 [inline] path_openat+0x2de2/0x3480 fs/namei.c:3634 do_filp_open+0x20b/0x450 fs/namei.c:3664 do_sys_open+0x39c/0x810 fs/open.c:1113 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 Allocated by task 414: save_stack mm/kasan/common.c:70 [inline] set_track mm/kasan/common.c:78 [inline] __kasan_kmalloc+0x171/0x210 mm/kasan/common.c:529 slab_post_alloc_hook mm/slab.h:584 [inline] slab_alloc_node mm/slub.c:2829 [inline] slab_alloc mm/slub.c:2837 [inline] kmem_cache_alloc+0xd9/0x250 mm/slub.c:2842 kmem_cache_alloc_node include/linux/slab.h:427 [inline] __alloc_skb+0x7a/0x4d0 net/core/skbuff.c:198 alloc_skb include/linux/skbuff.h:1080 [inline] alloc_skb_with_frags+0x92/0x550 net/core/skbuff.c:5827 sock_alloc_send_pskb+0x831/0x950 net/core/sock.c:2276 mld_newpack+0x1b2/0x990 net/ipv6/mcast.c:1607 add_grhead net/ipv6/mcast.c:1710 [inline] add_grec+0xec5/0x12f0 net/ipv6/mcast.c:1841 mld_send_cr net/ipv6/mcast.c:1967 [inline] mld_ifc_timer_expire+0x73d/0xc10 net/ipv6/mcast.c:2474 call_timer_fn+0x36/0x390 kernel/time/timer.c:1418 expire_timers kernel/time/timer.c:1463 [inline] __run_timers+0x879/0xbe0 kernel/time/timer.c:1787 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1800 __do_softirq+0x23b/0x6b7 kernel/softirq.c:292 Freed by task 17: save_stack mm/kasan/common.c:70 [inline] set_track mm/kasan/common.c:78 [inline] kasan_set_free_info mm/kasan/common.c:345 [inline] __kasan_slab_free+0x1b5/0x270 mm/kasan/common.c:487 slab_free_hook mm/slub.c:1455 [inline] slab_free_freelist_hook mm/slub.c:1494 [inline] slab_free mm/slub.c:3080 [inline] kmem_cache_free+0x10b/0x2c0 mm/slub.c:3096 ip6_mc_input+0x236/0x2a0 net/ipv6/ip6_input.c:550 NF_HOOK include/linux/netfilter.h:303 [inline] ipv6_rcv+0xee/0x280 net/ipv6/ip6_input.c:278 __netif_receive_skb_one_core net/core/dev.c:4972 [inline] __netif_receive_skb+0x1c6/0x530 net/core/dev.c:5086 process_backlog+0x34f/0x680 net/core/dev.c:5921 napi_poll net/core/dev.c:6367 [inline] net_rx_action+0x53f/0x1160 net/core/dev.c:6435 __do_softirq+0x23b/0x6b7 kernel/softirq.c:292 The buggy address belongs to the object at ffff8881eef53000 which belongs to the cache skbuff_head_cache of size 240 The buggy address is located 0 bytes inside of 240-byte region [ffff8881eef53000, ffff8881eef530f0) The buggy address belongs to the page: page:ffffea0007bbd4c0 refcount:1 mapcount:0 mapping:ffff8881f1cc5680 index:0x0 flags: 0x8000000000000200(slab) raw: 8000000000000200 dead000000000100 dead000000000122 ffff8881f1cc5680 raw: 0000000000000000 00000000000c000c 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x112a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_HARDWALL) set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook mm/page_alloc.c:2165 [inline] prep_new_page+0x18f/0x370 mm/page_alloc.c:2171 get_page_from_freelist+0x2d13/0x2d90 mm/page_alloc.c:3794 __alloc_pages_nodemask+0x393/0x840 mm/page_alloc.c:4891 alloc_slab_page+0x39/0x3c0 mm/slub.c:343 allocate_slab mm/slub.c:1683 [inline] new_slab+0x97/0x440 mm/slub.c:1749 new_slab_objects mm/slub.c:2505 [inline] ___slab_alloc+0x2fe/0x490 mm/slub.c:2667 __slab_alloc+0x62/0xa0 mm/slub.c:2707 slab_alloc_node mm/slub.c:2792 [inline] slab_alloc mm/slub.c:2837 [inline] kmem_cache_alloc+0x109/0x250 mm/slub.c:2842 kmem_cache_alloc_node include/linux/slab.h:427 [inline] __alloc_skb+0x7a/0x4d0 net/core/skbuff.c:198 alloc_skb include/linux/skbuff.h:1080 [inline] ndisc_alloc_skb+0xee/0x2c0 net/ipv6/ndisc.c:421 ndisc_send_ns+0x29d/0x830 net/ipv6/ndisc.c:627 addrconf_dad_work+0xb91/0x16f0 net/ipv6/addrconf.c:4179 process_one_work+0x765/0xd20 kernel/workqueue.c:2290 worker_thread+0xaef/0x1470 kernel/workqueue.c:2436 kthread+0x2da/0x360 kernel/kthread.c:288 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:354 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1176 [inline] __free_pages_ok+0x847/0x950 mm/page_alloc.c:1438 free_the_page mm/page_alloc.c:4953 [inline] __free_pages+0x91/0x140 mm/page_alloc.c:4959 __free_slab+0x221/0x2e0 mm/slub.c:1774 free_slab mm/slub.c:1789 [inline] discard_slab mm/slub.c:1795 [inline] unfreeze_partials+0x14e/0x180 mm/slub.c:2288 put_cpu_partial+0x44/0x180 mm/slub.c:2324 __slab_free+0x297/0x360 mm/slub.c:2971 qlist_free_all+0x43/0xb0 mm/kasan/quarantine.c:167 quarantine_reduce+0x1d9/0x210 mm/kasan/quarantine.c:260 __kasan_kmalloc+0x41/0x210 mm/kasan/common.c:507 slab_post_alloc_hook mm/slab.h:584 [inline] slab_alloc_node mm/slub.c:2829 [inline] slab_alloc mm/slub.c:2837 [inline] kmem_cache_alloc+0xd9/0x250 mm/slub.c:2842 ext4_alloc_inode+0x1b/0x640 fs/ext4/super.c:1084 alloc_inode fs/inode.c:231 [inline] new_inode_pseudo+0x60/0x210 fs/inode.c:927 new_inode+0x25/0x1d0 fs/inode.c:956 __ext4_new_inode+0x2ea/0x3f10 fs/ext4/ialloc.c:820 ext4_mkdir+0x408/0x1520 fs/ext4/namei.c:2927 vfs_mkdir+0x41f/0x600 fs/namei.c:3916 Memory state around the buggy address: ffff8881eef52f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881eef52f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8881eef53000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8881eef53080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc ffff8881eef53100: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ================================================================== F2FS-fs (loop0): access invalid blkaddr:3621199872 CPU: 0 PID: 414 Comm: syz-executor.0 Tainted: G B 5.4.268-syzkaller-04882-g51cf29fc2bfc #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d8/0x241 lib/dump_stack.c:118 f2fs_is_valid_blkaddr+0xc79/0x1380 fs/f2fs/checkpoint.c:203 f2fs_truncate_data_blocks_range+0x66f/0xf90 fs/f2fs/file.c:580 truncate_dnode fs/f2fs/node.c:907 [inline] f2fs_truncate_inode_blocks+0x7a2/0x13d0 fs/f2fs/node.c:1119 f2fs_do_truncate_blocks+0x614/0xac0 fs/f2fs/file.c:708 f2fs_truncate_blocks fs/f2fs/file.c:736 [inline] f2fs_truncate+0x275/0x540 fs/f2fs/file.c:780 f2fs_setattr+0x9a4/0x1040 fs/f2fs/file.c:944 notify_change+0xc00/0xeb0 fs/attr.c:354 do_truncate+0x1ed/0x2d0 fs/open.c:64 handle_truncate fs/namei.c:3103 [inline] do_last fs/namei.c:3521 [inline] path_openat+0x2de2/0x3480 fs/namei.c:3634 do_filp_open+0x20b/0x450 fs/namei.c:3664 do_sys_open+0x39c/0x810 fs/open.c:1113 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 F2FS-fs (loop0): access invalid blkaddr:4294936705 CPU: 0 PID: 414 Comm: syz-executor.0 Tainted: G B 5.4.268-syzkaller-04882-g51cf29fc2bfc #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d8/0x241 lib/dump_stack.c:118 f2fs_is_valid_blkaddr+0xc79/0x1380 fs/f2fs/checkpoint.c:203 f2fs_truncate_data_blocks_range+0x66f/0xf90 fs/f2fs/file.c:580 truncate_dnode fs/f2fs/node.c:907 [inline] f2fs_truncate_inode_blocks+0x7a2/0x13d0 fs/f2fs/node.c:1119 f2fs_do_truncate_blocks+0x614/0xac0 fs/f2fs/file.c:708 f2fs_truncate_blocks fs/f2fs/file.c:736 [inline] f2fs_truncate+0x275/0x540 fs/f2fs/file.c:780 f2fs_setattr+0x9a4/0x1040 fs/f2fs/file.c:944 notify_change+0xc00/0xeb0 fs/attr.c:354 do_truncate+0x1ed/0x2d0 fs/open.c:64 handle_truncate fs/namei.c:3103 [inline] do_last fs/namei.c:3521 [inline] path_openat+0x2de2/0x3480 fs/namei.c:3634 do_filp_open+0x20b/0x450 fs/namei.c:3664 do_sys_open+0x39c/0x810 fs/open.c:1113 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 F2FS-fs (loop0): access invalid blkaddr:3626778624 CPU: 0 PID: 414 Comm: syz-executor.0 Tainted: G B 5.4.268-syzkaller-04882-g51cf29fc2bfc #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d8/0x241 lib/dump_stack.c:118 f2fs_is_valid_blkaddr+0xc79/0x1380 fs/f2fs/checkpoint.c:203 f2fs_truncate_data_blocks_range+0x66f/0xf90 fs/f2fs/file.c:580 truncate_dnode fs/f2fs/node.c:907 [inline] f2fs_truncate_inode_blocks+0x7a2/0x13d0 fs/f2fs/node.c:1119 f2fs_do_truncate_blocks+0x614/0xac0 fs/f2fs/file.c:708 f2fs_truncate_blocks fs/f2fs/file.c:736 [inline] f2fs_truncate+0x275/0x540 fs/f2fs/file.c:780 f2fs_setattr+0x9a4/0x1040 fs/f2fs/file.c:944 notify_change+0xc00/0xeb0 fs/attr.c:354 do_truncate+0x1ed/0x2d0 fs/open.c:64 handle_truncate fs/namei.c:3103 [inline] do_last fs/namei.c:3521 [inline] path_openat+0x2de2/0x3480 fs/namei.c:3634 do_filp_open+0x20b/0x450 fs/namei.c:3664 do_sys_open+0x39c/0x810 fs/open.c:1113 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 F2FS-fs (loop0): access invalid blkaddr:4294936705 CPU: 0 PID: 414 Comm: syz-executor.0 Tainted: G B 5.4.268-syzkaller-04882-g51cf29fc2bfc #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d8/0x241 lib/dump_stack.c:118 f2fs_is_valid_blkaddr+0xc79/0x1380 fs/f2fs/checkpoint.c:203 f2fs_truncate_data_blocks_range+0x66f/0xf90 fs/f2fs/file.c:580 truncate_dnode fs/f2fs/node.c:907 [inline] f2fs_truncate_inode_blocks+0x7a2/0x13d0 fs/f2fs/node.c:1119 f2fs_do_truncate_blocks+0x614/0xac0 fs/f2fs/file.c:708 f2fs_truncate_blocks fs/f2fs/file.c:736 [inline] f2fs_truncate+0x275/0x540 fs/f2fs/file.c:780 f2fs_setattr+0x9a4/0x1040 fs/f2fs/file.c:944 notify_change+0xc00/0xeb0 fs/attr.c:354 do_truncate+0x1ed/0x2d0 fs/open.c:64 handle_truncate fs/namei.c:3103 [inline] do_last fs/namei.c:3521 [inline] path_openat+0x2de2/0x3480 fs/namei.c:3634 do_filp_open+0x20b/0x450 fs/namei.c:3664 do_sys_open+0x39c/0x810 fs/open.c:1113 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 F2FS-fs (loop0): access invalid blkaddr:43 CPU: 1 PID: 414 Comm: syz-executor.0 Tainted: G B 5.4.268-syzkaller-04882-g51cf29fc2bfc #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d8/0x241 lib/dump_stack.c:118 f2fs_is_valid_blkaddr+0xc79/0x1380 fs/f2fs/checkpoint.c:203 f2fs_truncate_data_blocks_range+0x66f/0xf90 fs/f2fs/file.c:580 truncate_dnode fs/f2fs/node.c:907 [inline] f2fs_truncate_inode_blocks+0x7a2/0x13d0 fs/f2fs/node.c:1119 f2fs_do_truncate_blocks+0x614/0xac0 fs/f2fs/file.c:708 f2fs_truncate_blocks fs/f2fs/file.c:736 [inline] f2fs_truncate+0x275/0x540 fs/f2fs/file.c:780 f2fs_setattr+0x9a4/0x1040 fs/f2fs/file.c:944 notify_change+0xc00/0xeb0 fs/attr.c:354 do_truncate+0x1ed/0x2d0 fs/open.c:64 handle_truncate fs/namei.c:3103 [inline] do_last fs/namei.c:3521 [inline] path_openat+0x2de2/0x3480 fs/namei.c:3634 do_filp_open+0x20b/0x450 fs/namei.c:3664 do_sys_open+0x39c/0x810 fs/open.c:1113 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 F2FS-fs (loop0): access invalid blkaddr:2621440 CPU: 1 PID: 414 Comm: syz-executor.0 Tainted: G B 5.4.268-syzkaller-04882-g51cf29fc2bfc #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d8/0x241 lib/dump_stack.c:118 f2fs_is_valid_blkaddr+0xc79/0x1380 fs/f2fs/checkpoint.c:203 f2fs_truncate_data_blocks_range+0x66f/0xf90 fs/f2fs/file.c:580 truncate_dnode fs/f2fs/node.c:907 [inline] f2fs_truncate_inode_blocks+0x7a2/0x13d0 fs/f2fs/node.c:1119 f2fs_do_truncate_blocks+0x614/0xac0 fs/f2fs/file.c:708 f2fs_truncate_blocks fs/f2fs/file.c:736 [inline] f2fs_truncate+0x275/0x540 fs/f2fs/file.c:780 f2fs_setattr+0x9a4/0x1040 fs/f2fs/file.c:944 notify_change+0xc00/0xeb0 fs/attr.c:354 do_truncate+0x1ed/0x2d0 fs/open.c:64 handle_truncate fs/namei.c:3103 [inline] do_last fs/namei.c:3521 [inline] path_openat+0x2de2/0x3480 fs/namei.c:3634 do_filp_open+0x20b/0x450 fs/namei.c:3664 do_sys_open+0x39c/0x810 fs/open.c:1113 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 F2FS-fs (loop0): access invalid blkaddr:40 CPU: 1 PID: 414 Comm: syz-executor.0 Tainted: G B 5.4.268-syzkaller-04882-g51cf29fc2bfc #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d8/0x241 lib/dump_stack.c:118 f2fs_is_valid_blkaddr+0xc79/0x1380 fs/f2fs/checkpoint.c:203 f2fs_truncate_data_blocks_range+0x66f/0xf90 fs/f2fs/file.c:580 truncate_dnode fs/f2fs/node.c:907 [inline] f2fs_truncate_inode_blocks+0x7a2/0x13d0 fs/f2fs/node.c:1119 f2fs_do_truncate_blocks+0x614/0xac0 fs/f2fs/file.c:708 f2fs_truncate_blocks fs/f2fs/file.c:736 [inline] f2fs_truncate+0x275/0x540 fs/f2fs/file.c:780 f2fs_setattr+0x9a4/0x1040 fs/f2fs/file.c:944 notify_change+0xc00/0xeb0 fs/attr.c:354 do_truncate+0x1ed/0x2d0 fs/open.c:64 handle_truncate fs/namei.c:3103 [inline] do_last fs/namei.c:3521 [inline] path_openat+0x2de2/0x3480 fs/namei.c:3634 do_filp_open+0x20b/0x450 fs/namei.c:3664 do_sys_open+0x39c/0x810 fs/open.c:1113 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 F2FS-fs (loop0): access invalid blkaddr:96 CPU: 1 PID: 414 Comm: syz-executor.0 Tainted: G B 5.4.268-syzkaller-04882-g51cf29fc2bfc #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d8/0x241 lib/dump_stack.c:118 f2fs_is_valid_blkaddr+0xc79/0x1380 fs/f2fs/checkpoint.c:203 f2fs_truncate_data_blocks_range+0x66f/0xf90 fs/f2fs/file.c:580 truncate_dnode fs/f2fs/node.c:907 [inline] f2fs_truncate_inode_blocks+0x7a2/0x13d0 fs/f2fs/node.c:1119 f2fs_do_truncate_blocks+0x614/0xac0 fs/f2fs/file.c:708 f2fs_truncate_blocks fs/f2fs/file.c:736 [inline] f2fs_truncate+0x275/0x540 fs/f2fs/file.c:780 f2fs_setattr+0x9a4/0x1040 fs/f2fs/file.c:944 notify_change+0xc00/0xeb0 fs/attr.c:354 do_truncate+0x1ed/0x2d0 fs/open.c:64 handle_truncate fs/namei.c:3103 [inline] do_last fs/namei.c:3521 [inline] path_openat+0x2de2/0x3480 fs/namei.c:3634 do_filp_open+0x20b/0x450 fs/namei.c:3664 do_sys_open+0x39c/0x810 fs/open.c:1113 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 F2FS-fs (loop0): access invalid blkaddr:14 CPU: 1 PID: 414 Comm: syz-executor.0 Tainted: G B 5.4.268-syzkaller-04882-g51cf29fc2bfc #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d8/0x241 lib/dump_stack.c:118 f2fs_is_valid_blkaddr+0xc79/0x1380 fs/f2fs/checkpoint.c:203 f2fs_truncate_data_blocks_range+0x66f/0xf90 fs/f2fs/file.c:580 truncate_dnode fs/f2fs/node.c:907 [inline] f2fs_truncate_inode_blocks+0x7a2/0x13d0 fs/f2fs/node.c:1119 f2fs_do_truncate_blocks+0x614/0xac0 fs/f2fs/file.c:708 f2fs_truncate_blocks fs/f2fs/file.c:736 [inline] f2fs_truncate+0x275/0x540 fs/f2fs/file.c:780 f2fs_setattr+0x9a4/0x1040 fs/f2fs/file.c:944 notify_change+0xc00/0xeb0 fs/attr.c:354 do_truncate+0x1ed/0x2d0 fs/open.c:64 handle_truncate fs/namei.c:3103 [inline] do_last fs/namei.c:3521 [inline] path_openat+0x2de2/0x3480 fs/namei.c:3634 do_filp_open+0x20b/0x450 fs/namei.c:3664 do_sys_open+0x39c/0x810 fs/open.c:1113 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 F2FS-fs (loop0): access invalid blkaddr:2 CPU: 1 PID: 414 Comm: syz-executor.0 Tainted: G B 5.4.268-syzkaller-04882-g51cf29fc2bfc #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d8/0x241 lib/dump_stack.c:118 f2fs_is_valid_blkaddr+0xc79/0x1380 fs/f2fs/checkpoint.c:203 f2fs_truncate_data_blocks_range+0x66f/0xf90 fs/f2fs/file.c:580 truncate_dnode fs/f2fs/node.c:907 [inline] f2fs_truncate_inode_blocks+0x7a2/0x13d0 fs/f2fs/node.c:1119 f2fs_do_truncate_blocks+0x614/0xac0 fs/f2fs/file.c:708 f2fs_truncate_blocks fs/f2fs/file.c:736 [inline] f2fs_truncate+0x275/0x540 fs/f2fs/file.c:780 f2fs_setattr+0x9a4/0x1040 fs/f2fs/file.c:944 notify_change+0xc00/0xeb0 fs/attr.c:354 do_truncate+0x1ed/0x2d0 fs/open.c:64 handle_truncate fs/namei.c:3103 [inline] do_last fs/namei.c:3521 [inline] path_openat+0x2de2/0x3480 fs/namei.c:3634 do_filp_open+0x20b/0x450 fs/namei.c:3664 do_sys_open+0x39c/0x810 fs/open.c:1113 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 F2FS-fs (loop0): access invalid blkaddr:43 CPU: 1 PID: 414 Comm: syz-executor.0 Tainted: G B 5.4.268-syzkaller-04882-g51cf29fc2bfc #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d8/0x241 lib/dump_stack.c:118 f2fs_is_valid_blkaddr+0xc79/0x1380 fs/f2fs/checkpoint.c:203 f2fs_truncate_data_blocks_range+0x66f/0xf90 fs/f2fs/file.c:580 truncate_dnode fs/f2fs/node.c:907 [inline] f2fs_truncate_inode_blocks+0x7a2/0x13d0 fs/f2fs/node.c:1119 f2fs_do_truncate_blocks+0x614/0xac0 fs/f2fs/file.c:708 f2fs_truncate_blocks fs/f2fs/file.c:736 [inline] f2fs_truncate+0x275/0x540 fs/f2fs/file.c:780 f2fs_setattr+0x9a4/0x1040 fs/f2fs/file.c:944 notify_change+0xc00/0xeb0 fs/attr.c:354 do_truncate+0x1ed/0x2d0 fs/open.c:64 handle_truncate fs/namei.c:3103 [inline] do_last fs/namei.c:3521 [inline] path_openat+0x2de2/0x3480 fs/namei.c:3634 do_filp_open+0x20b/0x450 fs/namei.c:3664 do_sys_open+0x39c/0x810 fs/open.c:1113 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 F2FS-fs (loop0): access invalid blkaddr:2 CPU: 1 PID: 414 Comm: syz-executor.0 Tainted: G B 5.4.268-syzkaller-04882-g51cf29fc2bfc #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d8/0x241 lib/dump_stack.c:118 f2fs_is_valid_blkaddr+0xc79/0x1380 fs/f2fs/checkpoint.c:203 f2fs_truncate_data_blocks_range+0x66f/0xf90 fs/f2fs/file.c:580 truncate_dnode fs/f2fs/node.c:907 [inline] f2fs_truncate_inode_blocks+0x7a2/0x13d0 fs/f2fs/node.c:1119 f2fs_do_truncate_blocks+0x614/0xac0 fs/f2fs/file.c:708 f2fs_truncate_blocks fs/f2fs/file.c:736 [inline] f2fs_truncate+0x275/0x540 fs/f2fs/file.c:780 f2fs_setattr+0x9a4/0x1040 fs/f2fs/file.c:944 notify_change+0xc00/0xeb0 fs/attr.c:354 do_truncate+0x1ed/0x2d0 fs/open.c:64 handle_truncate fs/namei.c:3103 [inline] do_last fs/namei.c:3521 [inline] path_openat+0x2de2/0x3480 fs/namei.c:3634 do_filp_open+0x20b/0x450 fs/namei.c:3664 do_sys_open+0x39c/0x810 fs/open.c:1113 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 F2FS-fs (loop0): access invalid blkaddr:148 CPU: 1 PID: 414 Comm: syz-executor.0 Tainted: G B 5.4.268-syzkaller-04882-g51cf29fc2bfc #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d8/0x241 lib/dump_stack.c:118 f2fs_is_valid_blkaddr+0xc79/0x1380 fs/f2fs/checkpoint.c:203 f2fs_truncate_data_blocks_range+0x66f/0xf90 fs/f2fs/file.c:580 truncate_dnode fs/f2fs/node.c:907 [inline] f2fs_truncate_inode_blocks+0x7a2/0x13d0 fs/f2fs/node.c:1119 f2fs_do_truncate_blocks+0x614/0xac0 fs/f2fs/file.c:708 f2fs_truncate_blocks fs/f2fs/file.c:736 [inline] f2fs_truncate+0x275/0x540 fs/f2fs/file.c:780 f2fs_setattr+0x9a4/0x1040 fs/f2fs/file.c:944 notify_change+0xc00/0xeb0 fs/attr.c:354 do_truncate+0x1ed/0x2d0 fs/open.c:64 handle_truncate fs/namei.c:3103 [inline] do_last fs/namei.c:3521 [inline] path_openat+0x2de2/0x3480 fs/namei.c:3634 do_filp_open+0x20b/0x450 fs/namei.c:3664 do_sys_open+0x39c/0x810 fs/open.c:1113 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 F2FS-fs (loop0): access invalid blkaddr:4251014 CPU: 1 PID: 414 Comm: syz-executor.0 Tainted: G B 5.4.268-syzkaller-04882-g51cf29fc2bfc #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d8/0x241 lib/dump_stack.c:118 f2fs_is_valid_blkaddr+0xc79/0x1380 fs/f2fs/checkpoint.c:203 f2fs_truncate_data_blocks_range+0x66f/0xf90 fs/f2fs/file.c:580 truncate_dnode fs/f2fs/node.c:907 [inline] f2fs_truncate_inode_blocks+0x7a2/0x13d0 fs/f2fs/node.c:1119 f2fs_do_truncate_blocks+0x614/0xac0 fs/f2fs/file.c:708 f2fs_truncate_blocks fs/f2fs/file.c:736 [inline] f2fs_truncate+0x275/0x540 fs/f2fs/file.c:780 f2fs_setattr+0x9a4/0x1040 fs/f2fs/file.c:944 notify_change+0xc00/0xeb0 fs/attr.c:354 do_truncate+0x1ed/0x2d0 fs/open.c:64 handle_truncate fs/namei.c:3103 [inline] do_last fs/namei.c:3521 [inline] path_openat+0x2de2/0x3480 fs/namei.c:3634 do_filp_open+0x20b/0x450 fs/namei.c:3664 do_sys_open+0x39c/0x810 fs/open.c:1113 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 F2FS-fs (loop0): access invalid blkaddr:131088 CPU: 1 PID: 414 Comm: syz-executor.0 Tainted: G B 5.4.268-syzkaller-04882-g51cf29fc2bfc #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d8/0x241 lib/dump_stack.c:118 f2fs_is_valid_blkaddr+0xc79/0x1380 fs/f2fs/checkpoint.c:203 f2fs_truncate_data_blocks_range+0x66f/0xf90 fs/f2fs/file.c:580 truncate_dnode fs/f2fs/node.c:907 [inline] f2fs_truncate_inode_blocks+0x7a2/0x13d0 fs/f2fs/node.c:1119 f2fs_do_truncate_blocks+0x614/0xac0 fs/f2fs/file.c:708 f2fs_truncate_blocks fs/f2fs/file.c:736 [inline] f2fs_truncate+0x275/0x540 fs/f2fs/file.c:780 f2fs_setattr+0x9a4/0x1040 fs/f2fs/file.c:944 notify_change+0xc00/0xeb0 fs/attr.c:354 do_truncate+0x1ed/0x2d0 fs/open.c:64 handle_truncate fs/namei.c:3103 [inline] do_last fs/namei.c:3521 [inline] path_openat+0x2de2/0x3480 fs/namei.c:3634 do_filp_open+0x20b/0x450 fs/namei.c:3664 do_sys_open+0x39c/0x810 fs/open.c:1113 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 F2FS-fs (loop0): access invalid blkaddr:112 CPU: 1 PID: 414 Comm: syz-executor.0 Tainted: G B 5.4.268-syzkaller-04882-g51cf29fc2bfc #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d8/0x241 lib/dump_stack.c:118 f2fs_is_valid_blkaddr+0xc79/0x1380 fs/f2fs/checkpoint.c:203 f2fs_truncate_data_blocks_range+0x66f/0xf90 fs/f2fs/file.c:580 truncate_dnode fs/f2fs/node.c:907 [inline] f2fs_truncate_inode_blocks+0x7a2/0x13d0 fs/f2fs/node.c:1119 f2fs_do_truncate_blocks+0x614/0xac0 fs/f2fs/file.c:708 f2fs_truncate_blocks fs/f2fs/file.c:736 [inline] f2fs_truncate+0x275/0x540 fs/f2fs/file.c:780 f2fs_setattr+0x9a4/0x1040 fs/f2fs/file.c:944 notify_change+0xc00/0xeb0 fs/attr.c:354 do_truncate+0x1ed/0x2d0 fs/open.c:64 handle_truncate fs/namei.c:3103 [inline] do_last fs/namei.c:3521 [inline] path_openat+0x2de2/0x3480 fs/namei.c:3634 do_filp_open+0x20b/0x450 fs/namei.c:3664 do_sys_open+0x39c/0x810 fs/open.c:1113 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 F2FS-fs (loop0): access invalid blkaddr:1664 CPU: 1 PID: 414 Comm: syz-executor.0 Tainted: G B 5.4.268-syzkaller-04882-g51cf29fc2bfc #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d8/0x241 lib/dump_stack.c:118 f2fs_is_valid_blkaddr+0xc79/0x1380 fs/f2fs/checkpoint.c:203 f2fs_truncate_data_blocks_range+0x66f/0xf90 fs/f2fs/file.c:580 truncate_dnode fs/f2fs/node.c:907 [inline] f2fs_truncate_inode_blocks+0x7a2/0x13d0 fs/f2fs/node.c:1119 f2fs_do_truncate_blocks+0x614/0xac0 fs/f2fs/file.c:708 f2fs_truncate_blocks fs/f2fs/file.c:736 [inline] f2fs_truncate+0x275/0x540 fs/f2fs/file.c:780 f2fs_setattr+0x9a4/0x1040 fs/f2fs/file.c:944 notify_change+0xc00/0xeb0 fs/attr.c:354 do_truncate+0x1ed/0x2d0 fs/open.c:64 handle_truncate fs/namei.c:3103 [inline] do_last fs/namei.c:3521 [inline] path_openat+0x2de2/0x3480 fs/namei.c:3634 do_filp_open+0x20b/0x450 fs/namei.c:3664 do_sys_open+0x39c/0x810 fs/open.c:1113 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 F2FS-fs (loop0): access invalid blkaddr:3621203968 CPU: 1 PID: 414 Comm: syz-executor.0 Tainted: G B 5.4.268-syzkaller-04882-g51cf29fc2bfc #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d8/0x241 lib/dump_stack.c:118 f2fs_is_valid_blkaddr+0xc79/0x1380 fs/f2fs/checkpoint.c:203 f2fs_truncate_data_blocks_range+0x66f/0xf90 fs/f2fs/file.c:580 truncate_dnode fs/f2fs/node.c:907 [inline] f2fs_truncate_inode_blocks+0x7a2/0x13d0 fs/f2fs/node.c:1119 f2fs_do_truncate_blocks+0x614/0xac0 fs/f2fs/file.c:708 f2fs_truncate_blocks fs/f2fs/file.c:736 [inline] f2fs_truncate+0x275/0x540 fs/f2fs/file.c:780 f2fs_setattr+0x9a4/0x1040 fs/f2fs/file.c:944 notify_change+0xc00/0xeb0 fs/attr.c:354 do_truncate+0x1ed/0x2d0 fs/open.c:64 handle_truncate fs/namei.c:3103 [inline] do_last fs/namei.c:3521 [inline] path_openat+0x2de2/0x3480 fs/namei.c:3634 do_filp_open+0x20b/0x450 fs/namei.c:3664 do_sys_open+0x39c/0x810 fs/open.c:1113 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 F2FS-fs (loop0): access invalid blkaddr:4294936705 CPU: 1 PID: 414 Comm: syz-executor.0 Tainted: G B 5.4.268-syzkaller-04882-g51cf29fc2bfc #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d8/0x241 lib/dump_stack.c:118 f2fs_is_valid_blkaddr+0xc79/0x1380 fs/f2fs/checkpoint.c:203 f2fs_truncate_data_blocks_range+0x66f/0xf90 fs/f2fs/file.c:580 truncate_dnode fs/f2fs/node.c:907 [inline] f2fs_truncate_inode_blocks+0x7a2/0x13d0 fs/f2fs/node.c:1119 f2fs_do_truncate_blocks+0x614/0xac0 fs/f2fs/file.c:708 f2fs_truncate_blocks fs/f2fs/file.c:736 [inline] f2fs_truncate+0x275/0x540 fs/f2fs/file.c:780 f2fs_setattr+0x9a4/0x1040 fs/f2fs/file.c:944 notify_change+0xc00/0xeb0 fs/attr.c:354 do_truncate+0x1ed/0x2d0 fs/open.c:64 handle_truncate fs/namei.c:3103 [inline] do_last fs/namei.c:3521 [inline] path_openat+0x2de2/0x3480 fs/namei.c:3634 do_filp_open+0x20b/0x450 fs/namei.c:3664 do_sys_open+0x39c/0x810 fs/open.c:1113 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 F2FS-fs (loop0): access invalid blkaddr:3621203984 CPU: 1 PID: 414 Comm: syz-executor.0 Tainted: G B 5.4.268-syzkaller-04882-g51cf29fc2bfc #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d8/0x241 lib/dump_stack.c:118 f2fs_is_valid_blkaddr+0xc79/0x1380 fs/f2fs/checkpoint.c:203 f2fs_truncate_data_blocks_range+0x66f/0xf90 fs/f2fs/file.c:580 truncate_dnode fs/f2fs/node.c:907 [inline] f2fs_truncate_inode_blocks+0x7a2/0x13d0 fs/f2fs/node.c:1119 f2fs_do_truncate_blocks+0x614/0xac0 fs/f2fs/file.c:708 f2fs_truncate_blocks fs/f2fs/file.c:736 [inline] f2fs_truncate+0x275/0x540 fs/f2fs/file.c:780 f2fs_setattr+0x9a4/0x1040 fs/f2fs/file.c:944 notify_change+0xc00/0xeb0 fs/attr.c:354 do_truncate+0x1ed/0x2d0 fs/open.c:64 handle_truncate fs/namei.c:3103 [inline] do_last fs/namei.c:3521 [inline] path_openat+0x2de2/0x3480 fs/namei.c:3634 do_filp_open+0x20b/0x450 fs/namei.c:3664 do_sys_open+0x39c/0x810 fs/open.c:1113 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 F2FS-fs (loop0): access invalid blkaddr:4294936705 CPU: 0 PID: 414 Comm: syz-executor.0 Tainted: G B 5.4.268-syzkaller-04882-g51cf29fc2bfc #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d8/0x241 lib/dump_stack.c:118 f2fs_is_valid_blkaddr+0xc79/0x1380 fs/f2fs/checkpoint.c:203 f2fs_truncate_data_blocks_range+0x66f/0xf90 fs/f2fs/file.c:580 truncate_dnode fs/f2fs/node.c:907 [inline] f2fs_truncate_inode_blocks+0x7a2/0x13d0 fs/f2fs/node.c:1119 f2fs_do_truncate_blocks+0x614/0xac0 fs/f2fs/file.c:708 f2fs_truncate_blocks fs/f2fs/file.c:736 [inline] f2fs_truncate+0x275/0x540 fs/f2fs/file.c:780 f2fs_setattr+0x9a4/0x1040 fs/f2fs/file.c:944 notify_change+0xc00/0xeb0 fs/attr.c:354 do_truncate+0x1ed/0x2d0 fs/open.c:64 handle_truncate fs/namei.c:3103 [inline] do_last fs/namei.c:3521 [inline] path_openat+0x2de2/0x3480 fs/namei.c:3634 do_filp_open+0x20b/0x450 fs/namei.c:3664 do_sys_open+0x39c/0x810 fs/open.c:1113 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 F2FS-fs (loop0): access invalid blkaddr:2304 CPU: 0 PID: 414 Comm: syz-executor.0 Tainted: G B 5.4.268-syzkaller-04882-g51cf29fc2bfc #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d8/0x241 lib/dump_stack.c:118 f2fs_is_valid_blkaddr+0xc79/0x1380 fs/f2fs/checkpoint.c:203 f2fs_truncate_data_blocks_range+0x66f/0xf90 fs/f2fs/file.c:580 truncate_dnode fs/f2fs/node.c:907 [inline] f2fs_truncate_inode_blocks+0x7a2/0x13d0 fs/f2fs/node.c:1119 f2fs_do_truncate_blocks+0x614/0xac0 fs/f2fs/file.c:708 f2fs_truncate_blocks fs/f2fs/file.c:736 [inline] f2fs_truncate+0x275/0x540 fs/f2fs/file.c:780 f2fs_setattr+0x9a4/0x1040 fs/f2fs/file.c:944 notify_change+0xc00/0xeb0 fs/attr.c:354 do_truncate+0x1ed/0x2d0 fs/open.c:64 handle_truncate fs/namei.c:3103 [inline] do_last fs/namei.c:3521 [inline] path_openat+0x2de2/0x3480 fs/namei.c:3634 do_filp_open+0x20b/0x450 fs/namei.c:3664 do_sys_open+0x39c/0x810 fs/open.c:1113 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 F2FS-fs (loop0): access invalid blkaddr:1 CPU: 1 PID: 414 Comm: syz-executor.0 Tainted: G B 5.4.268-syzkaller-04882-g51cf29fc2bfc #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d8/0x241 lib/dump_stack.c:118 f2fs_is_valid_blkaddr+0xc79/0x1380 fs/f2fs/checkpoint.c:203 f2fs_truncate_data_blocks_range+0x66f/0xf90 fs/f2fs/file.c:580 truncate_dnode fs/f2fs/node.c:907 [inline] f2fs_truncate_inode_blocks+0x7a2/0x13d0 fs/f2fs/node.c:1119 f2fs_do_truncate_blocks+0x614/0xac0 fs/f2fs/file.c:708 f2fs_truncate_blocks fs/f2fs/file.c:736 [inline] f2fs_truncate+0x275/0x540 fs/f2fs/file.c:780 f2fs_setattr+0x9a4/0x1040 fs/f2fs/file.c:944 notify_change+0xc00/0xeb0 fs/attr.c:354 do_truncate+0x1ed/0x2d0 fs/open.c:64 handle_truncate fs/namei.c:3103 [inline] do_last fs/namei.c:3521 [inline] path_openat+0x2de2/0x3480 fs/namei.c:3634 do_filp_open+0x20b/0x450 fs/namei.c:3664 do_sys_open+0x39c/0x810 fs/open.c:1113 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 F2FS-fs (loop0): access invalid blkaddr:414 CPU: 1 PID: 414 Comm: syz-executor.0 Tainted: G B 5.4.268-syzkaller-04882-g51cf29fc2bfc #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d8/0x241 lib/dump_stack.c:118 f2fs_is_valid_blkaddr+0xc79/0x1380 fs/f2fs/checkpoint.c:203 f2fs_truncate_data_blocks_range+0x66f/0xf90 fs/f2fs/file.c:580 truncate_dnode fs/f2fs/node.c:907 [inline] f2fs_truncate_inode_blocks+0x7a2/0x13d0 fs/f2fs/node.c:1119 f2fs_do_truncate_blocks+0x614/0xac0 fs/f2fs/file.c:708 f2fs_truncate_blocks fs/f2fs/file.c:736 [inline] f2fs_truncate+0x275/0x540 fs/f2fs/file.c:780 f2fs_setattr+0x9a4/0x1040 fs/f2fs/file.c:944 notify_change+0xc00/0xeb0 fs/attr.c:354 do_truncate+0x1ed/0x2d0 fs/open.c:64 handle_truncate fs/namei.c:3103 [inline] do_last fs/namei.c:3521 [inline] path_openat+0x2de2/0x3480 fs/namei.c:3634 do_filp_open+0x20b/0x450 fs/namei.c:3664 do_sys_open+0x39c/0x810 fs/open.c:1113 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 F2FS-fs (loop0): access invalid blkaddr:3906994438 CPU: 1 PID: 414 Comm: syz-executor.0 Tainted: G B 5.4.268-syzkaller-04882-g51cf29fc2bfc #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d8/0x241 lib/dump_stack.c:118 f2fs_is_valid_blkaddr+0xc79/0x1380 fs/f2fs/checkpoint.c:203 f2fs_truncate_data_blocks_range+0x66f/0xf90 fs/f2fs/file.c:580 truncate_dnode fs/f2fs/node.c:907 [inline] f2fs_truncate_inode_blocks+0x7a2/0x13d0 fs/f2fs/node.c:1119 f2fs_do_truncate_blocks+0x614/0xac0 fs/f2fs/file.c:708 f2fs_truncate_blocks fs/f2fs/file.c:736 [inline] f2fs_truncate+0x275/0x540 fs/f2fs/file.c:780 f2fs_setattr+0x9a4/0x1040 fs/f2fs/file.c:944 notify_change+0xc00/0xeb0 fs/attr.c:354 do_truncate+0x1ed/0x2d0 fs/open.c:64 handle_truncate fs/namei.c:3103 [inline] do_last fs/namei.c:3521 [inline] path_openat+0x2de2/0x3480 fs/namei.c:3634 do_filp_open+0x20b/0x450 fs/namei.c:3664 do_sys_open+0x39c/0x810 fs/open.c:1113 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 F2FS-fs (loop0): access invalid blkaddr:17 CPU: 1 PID: 414 Comm: syz-executor.0 Tainted: G B 5.4.268-syzkaller-04882-g51cf29fc2bfc #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d8/0x241 lib/dump_stack.c:118 f2fs_is_valid_blkaddr+0xc79/0x1380 fs/f2fs/checkpoint.c:203 f2fs_truncate_data_blocks_range+0x66f/0xf90 fs/f2fs/file.c:580 truncate_dnode fs/f2fs/node.c:907 [inline] f2fs_truncate_inode_blocks+0x7a2/0x13d0 fs/f2fs/node.c:1119 f2fs_do_truncate_blocks+0x614/0xac0 fs/f2fs/file.c:708 f2fs_truncate_blocks fs/f2fs/file.c:736 [inline] f2fs_truncate+0x275/0x540 fs/f2fs/file.c:780 f2fs_setattr+0x9a4/0x1040 fs/f2fs/file.c:944 notify_change+0xc00/0xeb0 fs/attr.c:354 do_truncate+0x1ed/0x2d0 fs/open.c:64 handle_truncate fs/namei.c:3103 [inline] do_last fs/namei.c:3521 [inline] path_openat+0x2de2/0x3480 fs/namei.c:3634 do_filp_open+0x20b/0x450 fs/namei.c:3664 do_sys_open+0x39c/0x810 fs/open.c:1113 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 F2FS-fs (loop0): access invalid blkaddr:2239758639 CPU: 0 PID: 414 Comm: syz-executor.0 Tainted: G B 5.4.268-syzkaller-04882-g51cf29fc2bfc #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d8/0x241 lib/dump_stack.c:118 f2fs_is_valid_blkaddr+0xc79/0x1380 fs/f2fs/checkpoint.c:203 f2fs_truncate_data_blocks_range+0x66f/0xf90 fs/f2fs/file.c:580 truncate_dnode fs/f2fs/node.c:907 [inline] f2fs_truncate_inode_blocks+0x7a2/0x13d0 fs/f2fs/node.c:1119 f2fs_do_truncate_blocks+0x614/0xac0 fs/f2fs/file.c:708 f2fs_truncate_blocks fs/f2fs/file.c:736 [inline] f2fs_truncate+0x275/0x540 fs/f2fs/file.c:780 f2fs_setattr+0x9a4/0x1040 fs/f2fs/file.c:944 notify_change+0xc00/0xeb0 fs/attr.c:354 do_truncate+0x1ed/0x2d0 fs/open.c:64 handle_truncate fs/namei.c:3103 [inline] do_last fs/namei.c:3521 [inline] path_openat+0x2de2/0x3480 fs/namei.c:3634 do_filp_open+0x20b/0x450 fs/namei.c:3664 do_sys_open+0x39c/0x810 fs/open.c:1113 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 F2FS-fs (loop0): access invalid blkaddr:3621238784 CPU: 0 PID: 414 Comm: syz-executor.0 Tainted: G B 5.4.268-syzkaller-04882-g51cf29fc2bfc #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d8/0x241 lib/dump_stack.c:118 f2fs_is_valid_blkaddr+0xc79/0x1380 fs/f2fs/checkpoint.c:203 f2fs_truncate_data_blocks_range+0x66f/0xf90 fs/f2fs/file.c:580 truncate_dnode fs/f2fs/node.c:907 [inline] f2fs_truncate_inode_blocks+0x7a2/0x13d0 fs/f2fs/node.c:1119 f2fs_do_truncate_blocks+0x614/0xac0 fs/f2fs/file.c:708 f2fs_truncate_blocks fs/f2fs/file.c:736 [inline] f2fs_truncate+0x275/0x540 fs/f2fs/file.c:780 f2fs_setattr+0x9a4/0x1040 fs/f2fs/file.c:944 notify_change+0xc00/0xeb0 fs/attr.c:354 do_truncate+0x1ed/0x2d0 fs/open.c:64 handle_truncate fs/namei.c:3103 [inline] do_last fs/namei.c:3521 [inline] path_openat+0x2de2/0x3480 fs/namei.c:3634 do_filp_open+0x20b/0x450 fs/namei.c:3664 do_sys_open+0x39c/0x810 fs/open.c:1113 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 F2FS-fs (loop0): access invalid blkaddr:4294936705 CPU: 0 PID: 414 Comm: syz-executor.0 Tainted: G B 5.4.268-syzkaller-04882-g51cf29fc2bfc #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d8/0x241 lib/dump_stack.c:118 f2fs_is_valid_blkaddr+0xc79/0x1380 fs/f2fs/checkpoint.c:203 f2fs_truncate_data_blocks_range+0x66f/0xf90 fs/f2fs/file.c:580 truncate_dnode fs/f2fs/node.c:907 [inline] f2fs_truncate_inode_blocks+0x7a2/0x13d0 fs/f2fs/node.c:1119 f2fs_do_truncate_blocks+0x614/0xac0 fs/f2fs/file.c:708 f2fs_truncate_blocks fs/f2fs/file.c:736 [inline] f2fs_truncate+0x275/0x540 fs/f2fs/file.c:780 f2fs_setattr+0x9a4/0x1040 fs/f2fs/file.c:944 notify_change+0xc00/0xeb0 fs/attr.c:354 do_truncate+0x1ed/0x2d0 fs/open.c:64 handle_truncate fs/namei.c:3103 [inline] do_last fs/namei.c:3521 [inline] path_openat+0x2de2/0x3480 fs/namei.c:3634 do_filp_open+0x20b/0x450 fs/namei.c:3664 do_sys_open+0x39c/0x810 fs/open.c:1113 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 F2FS-fs (loop0): access invalid blkaddr:4009046336 CPU: 0 PID: 414 Comm: syz-executor.0 Tainted: G B 5.4.268-syzkaller-04882-g51cf29fc2bfc #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d8/0x241 lib/dump_stack.c:118 f2fs_is_valid_blkaddr+0xc79/0x1380 fs/f2fs/checkpoint.c:203 f2fs_truncate_data_blocks_range+0x66f/0xf90 fs/f2fs/file.c:580 truncate_dnode fs/f2fs/node.c:907 [inline] f2fs_truncate_inode_blocks+0x7a2/0x13d0 fs/f2fs/node.c:1119 f2fs_do_truncate_blocks+0x614/0xac0 fs/f2fs/file.c:708 f2fs_truncate_blocks fs/f2fs/file.c:736 [inline] f2fs_truncate+0x275/0x540 fs/f2fs/file.c:780 f2fs_setattr+0x9a4/0x1040 fs/f2fs/file.c:944 notify_change+0xc00/0xeb0 fs/attr.c:354 do_truncate+0x1ed/0x2d0 fs/open.c:64 handle_truncate fs/namei.c:3103 [inline] do_last fs/namei.c:3521 [inline] path_openat+0x2de2/0x3480 fs/namei.c:3634 do_filp_open+0x20b/0x450 fs/namei.c:3664 do_sys_open+0x39c/0x810 fs/open.c:1113 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 F2FS-fs (loop0): access invalid blkaddr:4294936705 CPU: 1 PID: 414 Comm: syz-executor.0 Tainted: G B 5.4.268-syzkaller-04882-g51cf29fc2bfc #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d8/0x241 lib/dump_stack.c:118 f2fs_is_valid_blkaddr+0xc79/0x1380 fs/f2fs/checkpoint.c:203 f2fs_truncate_data_blocks_range+0x66f/0xf90 fs/f2fs/file.c:580 truncate_dnode fs/f2fs/node.c:907 [inline] f2fs_truncate_inode_blocks+0x7a2/0x13d0 fs/f2fs/node.c:1119 f2fs_do_truncate_blocks+0x614/0xac0 fs/f2fs/file.c:708 f2fs_truncate_blocks fs/f2fs/file.c:736 [inline] f2fs_truncate+0x275/0x540 fs/f2fs/file.c:780 f2fs_setattr+0x9a4/0x1040 fs/f2fs/file.c:944 notify_change+0xc00/0xeb0 fs/attr.c:354 do_truncate+0x1ed/0x2d0 fs/open.c:64 handle_truncate fs/namei.c:3103 [inline] do_last fs/namei.c:3521 [inline] path_openat+0x2de2/0x3480 fs/namei.c:3634 do_filp_open+0x20b/0x450 fs/namei.c:3664 do_sys_open+0x39c/0x810 fs/open.c:1113 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 F2FS-fs (loop0): dec_valid_node_count: inconsistent i_blocks, ino:8, iblocks:0