ci2 starts bisection 2023-12-20 22:00:39.42863579 +0000 UTC m=+23786.868604841 bisecting fixing commit since 43c801dc3325b9f07f8869e95ad87b05a9f21eb6 building syzkaller on ecca8a243762a781257ba0b65291bca940e13e9c ensuring issue is reproducible on original commit 43c801dc3325b9f07f8869e95ad87b05a9f21eb6 testing commit 43c801dc3325b9f07f8869e95ad87b05a9f21eb6 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 26fbb794d19ebfb3a601dc9da06f8361ecb7a1379664774e1af296029ded024e run #0: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range run #1: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range run #2: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range run #3: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range run #4: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range run #5: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range run #6: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range run #7: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range run #8: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range run #9: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range run #10: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range run #11: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range run #12: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range run #13: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range run #14: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range run #15: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range run #16: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range run #17: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range run #18: crashed: KASAN: slab-out-of-bounds Read in f2fs_truncate_data_blocks_range run #19: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range representative crash: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range, types: [KASAN] check whether we can drop unnecessary instrumentation disabling configs for [BUG LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing commit 43c801dc3325b9f07f8869e95ad87b05a9f21eb6 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 98325109bf0ed080bb693b89f631328b648c81ed1560064baff5818da5c29f54 all runs: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range representative crash: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range, types: [KASAN] the bug reproduces without the instrumentation disabling configs for [BUG LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed kconfig minimization: base=4789 full=6024 leaves diff=237 split chunks (needed=false): <237> split chunk #0 of len 237 into 5 parts testing without sub-chunk 1/5 disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed testing commit 43c801dc3325b9f07f8869e95ad87b05a9f21eb6 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: c254f2ce6513bd9547e6376cfe5925b648dd05cea61aae44a917bea833cb3702 run #0: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range run #1: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range run #2: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range run #3: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range run #4: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range run #5: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range run #6: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range run #7: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range run #8: crashed: KASAN: slab-out-of-bounds Read in f2fs_truncate_data_blocks_range run #9: crashed: KASAN: slab-out-of-bounds Read in f2fs_truncate_data_blocks_range representative crash: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range, types: [KASAN] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed testing commit 43c801dc3325b9f07f8869e95ad87b05a9f21eb6 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: a5cdeace40e7b413333ecbe3e3a23bb04cf947c2ca6de71903717c71db1d7af1 all runs: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range representative crash: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range, types: [KASAN] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing commit 43c801dc3325b9f07f8869e95ad87b05a9f21eb6 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 2c144d8e33b0ac1df505d6e5aae1a67218674d20f6491a08579f05d7d548465c run #0: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range run #1: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range run #2: crashed: KASAN: slab-out-of-bounds Read in f2fs_truncate_data_blocks_range run #3: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range run #4: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range run #5: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range run #6: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range run #7: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range run #8: crashed: KASAN: slab-out-of-bounds Read in f2fs_truncate_data_blocks_range run #9: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range representative crash: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range, types: [KASAN] the chunk can be dropped testing without sub-chunk 4/5 disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed testing commit 43c801dc3325b9f07f8869e95ad87b05a9f21eb6 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 494088e8525dcab018a31baf908f398396386f01dc12a194f42aab15bd1bbcaa all runs: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range representative crash: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range, types: [KASAN] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit 43c801dc3325b9f07f8869e95ad87b05a9f21eb6 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 failed building 43c801dc3325b9f07f8869e95ad87b05a9f21eb6: net/socket.c:1109: undefined reference to `wext_handle_ioctl' net/socket.c:3378: undefined reference to `compat_wext_handle_ioctl' net/core/net-procfs.c:346: undefined reference to `wext_proc_exit' net/core/net-procfs.c:330: undefined reference to `wext_proc_init' minimized to 45 configs; suspects: [HID_ZEROPLUS USB_NET_MCS7830 USB_NET_NET1080 USB_NET_PLUSB USB_NET_RNDIS_HOST USB_NET_SMSC75XX USB_NET_SMSC95XX USB_NET_SR9700 USB_NET_SR9800 USB_NET_ZAURUS USB_OHCI_HCD USB_OHCI_HCD_PCI USB_OHCI_HCD_PLATFORM USB_OTG USB_OTG_FSM USB_PRINTER USB_SERIAL USB_SERIAL_FTDI_SIO USB_SERIAL_GENERIC USB_SERIAL_PL2303 USB_STORAGE_ALAUDA USB_STORAGE_CYPRESS_ATACB USB_STORAGE_DATAFAB USB_STORAGE_FREECOM USB_STORAGE_ISD200 USB_STORAGE_JUMPSHOT USB_STORAGE_KARMA USB_STORAGE_ONETOUCH USB_STORAGE_SDDR09 USB_STORAGE_SDDR55 USB_STORAGE_USBAT USB_TRANCEVIBRATOR USB_U_AUDIO USB_U_ETHER USB_U_SERIAL USB_WDM WLAN WLAN_VENDOR_ATH WLAN_VENDOR_ATMEL WLAN_VENDOR_BROADCOM WLAN_VENDOR_INTERSIL WLAN_VENDOR_MARVELL WLAN_VENDOR_MEDIATEK WLAN_VENDOR_MICROCHIP WLAN_VENDOR_RALINK WLAN_VENDOR_REALTEK WLAN_VENDOR_RSI WLAN_VENDOR_ZYDAS X86_X32 ZEROPLUS_FF] disabling configs for [BUG LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing current HEAD f7977422e132104c98e139e0e071b2a45bc37066 testing commit f7977422e132104c98e139e0e071b2a45bc37066 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 30c169761e76ac389d0744449ccedf65ef33cb3d102d33b34ea093ca8ca10228 run #0: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range run #1: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range run #2: crashed: KASAN: slab-out-of-bounds Read in f2fs_truncate_data_blocks_range run #3: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range run #4: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range run #5: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range run #6: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range run #7: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range run #8: crashed: KASAN: slab-out-of-bounds Read in f2fs_truncate_data_blocks_range run #9: crashed: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range representative crash: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range, types: [KASAN] crash still not fixed/happens on the oldest tested release revisions tested: 7, total time: 41m8.708002899s (build: 15m16.761716294s, test: 24m16.038512192s) crash still not fixed or there were kernel test errors commit msg: Revert "psample: Require 'CAP_NET_ADMIN' when joining "packets" group" crash: KASAN: use-after-free Read in f2fs_truncate_data_blocks_range RAX: ffffffffffffffda RBX: 00007f4126638f80 RCX: 00007f4126519959 RDX: 0000000000000000 RSI: 00000000000001f8 RDI: 00000000200000c0 RBP: 00007f4126575c88 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f4126638f80 R15: 00007fff33e11618 ================================================================== BUG: KASAN: use-after-free in f2fs_truncate_data_blocks_range+0xc51/0xe90 fs/f2fs/file.c:581 Read of size 4 at addr ffff888121364000 by task syz-executor.0/340 CPU: 0 PID: 340 Comm: syz-executor.0 Not tainted 5.10.204-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack_lvl+0x81/0xac lib/dump_stack.c:118 print_address_description.constprop.0+0x24/0x160 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:435 [inline] kasan_report.cold+0x82/0xdb mm/kasan/report.c:452 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308 f2fs_truncate_data_blocks_range+0xc51/0xe90 fs/f2fs/file.c:581 f2fs_truncate_data_blocks+0x66/0x120 fs/f2fs/file.c:638 truncate_dnode+0x13a/0x1c0 fs/f2fs/node.c:943 f2fs_truncate_inode_blocks+0x23b/0xb40 fs/f2fs/node.c:1155 f2fs_do_truncate_blocks+0x396/0x9e0 fs/f2fs/file.c:727 f2fs_truncate_blocks+0x5f/0x260 fs/f2fs/file.c:755 f2fs_truncate fs/f2fs/file.c:807 [inline] f2fs_truncate+0x18d/0x360 fs/f2fs/file.c:778 f2fs_setattr+0x834/0x12b0 fs/f2fs/file.c:971 notify_change+0x7b0/0xd90 fs/attr.c:410 do_truncate+0xfc/0x1b0 fs/open.c:65 handle_truncate fs/namei.c:3060 [inline] do_open fs/namei.c:3401 [inline] path_openat+0x1fbf/0x3950 fs/namei.c:3515 do_filp_open+0x193/0x3d0 fs/namei.c:3542 do_sys_openat2+0x135/0x810 fs/open.c:1217 do_sys_open fs/open.c:1233 [inline] __do_sys_creat fs/open.c:1307 [inline] __se_sys_creat fs/open.c:1301 [inline] __x64_sys_creat+0xd4/0x130 fs/open.c:1301 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f4126519959 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:00007f412609c0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f4126638f80 RCX: 00007f4126519959 RDX: 0000000000000000 RSI: 00000000000001f8 RDI: 00000000200000c0 RBP: 00007f4126575c88 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f4126638f80 R15: 00007fff33e11618 Allocated by task 297: kasan_save_stack+0x26/0x50 mm/kasan/common.c:38 kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:430 [inline] __kasan_slab_alloc+0x94/0xc0 mm/kasan/common.c:463 kasan_slab_alloc include/linux/kasan.h:244 [inline] slab_post_alloc_hook mm/slab.h:583 [inline] slab_alloc_node mm/slub.c:2947 [inline] slab_alloc mm/slub.c:2955 [inline] kmem_cache_alloc+0x15d/0x4f0 mm/slub.c:2960 dst_alloc+0x7f/0x590 net/core/dst.c:93 ip6_dst_alloc+0x26/0xf0 net/ipv6/route.c:339 icmp6_dst_alloc+0xc6/0x6f0 net/ipv6/route.c:3160 ndisc_send_skb+0xaf3/0xe30 net/ipv6/ndisc.c:489 ndisc_send_ns+0x2c2/0x7f0 net/ipv6/ndisc.c:651 addrconf_dad_work+0xa3e/0x1220 net/ipv6/addrconf.c:4184 process_one_work+0x5f5/0xe40 kernel/workqueue.c:2301 worker_thread+0x402/0xcd0 kernel/workqueue.c:2447 kthread+0x345/0x420 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:299 Freed by task 18: kasan_save_stack+0x26/0x50 mm/kasan/common.c:38 kasan_set_track+0x25/0x30 mm/kasan/common.c:45 kasan_set_free_info+0x24/0x40 mm/kasan/generic.c:370 ____kasan_slab_free mm/kasan/common.c:362 [inline] ____kasan_slab_free mm/kasan/common.c:324 [inline] __kasan_slab_free+0x111/0x150 mm/kasan/common.c:370 kasan_slab_free include/linux/kasan.h:220 [inline] slab_free_hook mm/slub.c:1595 [inline] slab_free_freelist_hook+0x9b/0x1a0 mm/slub.c:1621 slab_free mm/slub.c:3203 [inline] kmem_cache_free+0x106/0x440 mm/slub.c:3219 dst_destroy+0x1f2/0x2d0 net/core/dst.c:129 dst_destroy_rcu+0xd/0x10 net/core/dst.c:142 rcu_do_batch+0x34e/0xb90 kernel/rcu/tree.c:2494 rcu_core+0x3fa/0xa40 kernel/rcu/tree.c:2735 rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2748 __do_softirq+0x1bc/0x5f3 kernel/softirq.c:309 Last potentially related work creation: kasan_save_stack+0x26/0x50 mm/kasan/common.c:38 __kasan_record_aux_stack+0xd8/0xf0 mm/kasan/generic.c:348 kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:358 __call_rcu kernel/rcu/tree.c:2976 [inline] call_rcu+0xe4/0x12d0 kernel/rcu/tree.c:3050 dst_release net/core/dst.c:179 [inline] dst_release+0x44/0x60 net/core/dst.c:169 refdst_drop include/net/dst.h:252 [inline] skb_dst_drop include/net/dst.h:264 [inline] __dev_queue_xmit+0x135b/0x25f0 net/core/dev.c:4138 dev_queue_xmit+0xb/0x10 net/core/dev.c:4215 neigh_connected_output+0x2a7/0x4d0 net/core/neighbour.c:1531 neigh_output include/net/neighbour.h:517 [inline] ip6_finish_output2+0x7fe/0x1c20 net/ipv6/ip6_output.c:145 __ip6_finish_output.part.0+0x272/0x7b0 net/ipv6/ip6_output.c:216 __ip6_finish_output net/ipv6/ip6_output.c:231 [inline] ip6_finish_output+0x1cb/0x340 net/ipv6/ip6_output.c:226 NF_HOOK_COND include/linux/netfilter.h:288 [inline] ip6_output+0x1c7/0x430 net/ipv6/ip6_output.c:249 dst_output include/net/dst.h:437 [inline] NF_HOOK include/linux/netfilter.h:299 [inline] ndisc_send_skb+0xa6d/0xe30 net/ipv6/ndisc.c:509 ndisc_send_ns+0x2c2/0x7f0 net/ipv6/ndisc.c:651 addrconf_dad_work+0xa3e/0x1220 net/ipv6/addrconf.c:4184 process_one_work+0x5f5/0xe40 kernel/workqueue.c:2301 worker_thread+0x402/0xcd0 kernel/workqueue.c:2447 kthread+0x345/0x420 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:299 The buggy address belongs to the object at ffff888121364000 which belongs to the cache ip6_dst_cache of size 240 The buggy address is located 0 bytes inside of 240-byte region [ffff888121364000, ffff8881213640f0) The buggy address belongs to the page: page:ffffea000484d900 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x121364 flags: 0x4000000000000200(slab) raw: 4000000000000200 dead000000000100 dead000000000122 ffff88810a9bb080 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), pid 297, ts 40785757429, 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 mm/page_alloc.c:2462 [inline] get_page_from_freelist+0x1fee/0x2ad0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x2ae/0x2360 mm/page_alloc.c:5346 __alloc_pages include/linux/gfp.h:544 [inline] __alloc_pages_node include/linux/gfp.h:557 [inline] alloc_pages_node include/linux/gfp.h:571 [inline] alloc_pages include/linux/gfp.h:590 [inline] alloc_slab_page mm/slub.c:1665 [inline] allocate_slab+0x30f/0x460 mm/slub.c:1808 new_slab mm/slub.c:1869 [inline] new_slab_objects mm/slub.c:2627 [inline] ___slab_alloc.constprop.0+0x32b/0x730 mm/slub.c:2791 __slab_alloc mm/slub.c:2831 [inline] slab_alloc_node mm/slub.c:2913 [inline] slab_alloc mm/slub.c:2955 [inline] kmem_cache_alloc+0x491/0x4f0 mm/slub.c:2960 dst_alloc+0x7f/0x590 net/core/dst.c:93 ip6_dst_alloc+0x26/0xf0 net/ipv6/route.c:339 icmp6_dst_alloc+0xc6/0x6f0 net/ipv6/route.c:3160 ndisc_send_skb+0xaf3/0xe30 net/ipv6/ndisc.c:489 ndisc_send_ns+0x2c2/0x7f0 net/ipv6/ndisc.c:651 addrconf_dad_work+0xa3e/0x1220 net/ipv6/addrconf.c:4184 process_one_work+0x5f5/0xe40 kernel/workqueue.c:2301 worker_thread+0x402/0xcd0 kernel/workqueue.c:2447 kthread+0x345/0x420 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:299 page_owner free stack trace missing Memory state around the buggy address: ffff888121363f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888121363f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888121364000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888121364080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc ffff888121364100: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb ================================================================== F2FS-fs (loop0): access invalid blkaddr:108914560 CPU: 1 PID: 340 Comm: syz-executor.0 Tainted: G B 5.10.204-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack_lvl+0x81/0xac lib/dump_stack.c:118 dump_stack+0x10/0x12 lib/dump_stack.c:135 __is_bitmap_valid fs/f2fs/checkpoint.c:166 [inline] f2fs_is_valid_blkaddr.cold+0x2a/0x47 fs/f2fs/checkpoint.c:208 f2fs_truncate_data_blocks_range+0x2b2/0xe90 fs/f2fs/file.c:599 f2fs_truncate_data_blocks+0x66/0x120 fs/f2fs/file.c:638 truncate_dnode+0x13a/0x1c0 fs/f2fs/node.c:943 f2fs_truncate_inode_blocks+0x23b/0xb40 fs/f2fs/node.c:1155 f2fs_do_truncate_blocks+0x396/0x9e0 fs/f2fs/file.c:727 f2fs_truncate_blocks+0x5f/0x260 fs/f2fs/file.c:755 f2fs_truncate fs/f2fs/file.c:807 [inline] f2fs_truncate+0x18d/0x360 fs/f2fs/file.c:778 f2fs_setattr+0x834/0x12b0 fs/f2fs/file.c:971 notify_change+0x7b0/0xd90 fs/attr.c:410 do_truncate+0xfc/0x1b0 fs/open.c:65 handle_truncate fs/namei.c:3060 [inline] do_open fs/namei.c:3401 [inline] path_openat+0x1fbf/0x3950 fs/namei.c:3515 do_filp_open+0x193/0x3d0 fs/namei.c:3542 do_sys_openat2+0x135/0x810 fs/open.c:1217 do_sys_open fs/open.c:1233 [inline] __do_sys_creat fs/open.c:1307 [inline] __se_sys_creat fs/open.c:1301 [inline] __x64_sys_creat+0xd4/0x130 fs/open.c:1301 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f4126519959 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:00007f412609c0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f4126638f80 RCX: 00007f4126519959 RDX: 0000000000000000 RSI: 00000000000001f8 RDI: 00000000200000c0 RBP: 00007f4126575c88 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f4126638f80 R15: 00007fff33e11618 F2FS-fs (loop0): access invalid blkaddr:4294936705 CPU: 0 PID: 340 Comm: syz-executor.0 Tainted: G B 5.10.204-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack_lvl+0x81/0xac lib/dump_stack.c:118 dump_stack+0x10/0x12 lib/dump_stack.c:135 __is_bitmap_valid fs/f2fs/checkpoint.c:166 [inline] f2fs_is_valid_blkaddr.cold+0x2a/0x47 fs/f2fs/checkpoint.c:208 f2fs_truncate_data_blocks_range+0x2b2/0xe90 fs/f2fs/file.c:599 f2fs_truncate_data_blocks+0x66/0x120 fs/f2fs/file.c:638 truncate_dnode+0x13a/0x1c0 fs/f2fs/node.c:943 f2fs_truncate_inode_blocks+0x23b/0xb40 fs/f2fs/node.c:1155 f2fs_do_truncate_blocks+0x396/0x9e0 fs/f2fs/file.c:727 f2fs_truncate_blocks+0x5f/0x260 fs/f2fs/file.c:755 f2fs_truncate fs/f2fs/file.c:807 [inline] f2fs_truncate+0x18d/0x360 fs/f2fs/file.c:778 f2fs_setattr+0x834/0x12b0 fs/f2fs/file.c:971 notify_change+0x7b0/0xd90 fs/attr.c:410 do_truncate+0xfc/0x1b0 fs/open.c:65 handle_truncate fs/namei.c:3060 [inline] do_open fs/namei.c:3401 [inline] path_openat+0x1fbf/0x3950 fs/namei.c:3515 do_filp_open+0x193/0x3d0 fs/namei.c:3542 do_sys_openat2+0x135/0x810 fs/open.c:1217 do_sys_open fs/open.c:1233 [inline] __do_sys_creat fs/open.c:1307 [inline] __se_sys_creat fs/open.c:1301 [inline] __x64_sys_creat+0xd4/0x130 fs/open.c:1301 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f4126519959 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:00007f412609c0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f4126638f80 RCX: 00007f4126519959 RDX: 0000000000000000 RSI: 00000000000001f8 RDI: 00000000200000c0 RBP: 00007f4126575c88 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f4126638f80 R15: 00007fff33e11618 F2FS-fs (loop0): access invalid blkaddr:18 CPU: 0 PID: 340 Comm: syz-executor.0 Tainted: G B 5.10.204-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack_lvl+0x81/0xac lib/dump_stack.c:118 dump_stack+0x10/0x12 lib/dump_stack.c:135 __is_bitmap_valid fs/f2fs/checkpoint.c:166 [inline] f2fs_is_valid_blkaddr.cold+0x2a/0x47 fs/f2fs/checkpoint.c:208 f2fs_truncate_data_blocks_range+0x2b2/0xe90 fs/f2fs/file.c:599 f2fs_truncate_data_blocks+0x66/0x120 fs/f2fs/file.c:638 truncate_dnode+0x13a/0x1c0 fs/f2fs/node.c:943 f2fs_truncate_inode_blocks+0x23b/0xb40 fs/f2fs/node.c:1155 f2fs_do_truncate_blocks+0x396/0x9e0 fs/f2fs/file.c:727 f2fs_truncate_blocks+0x5f/0x260 fs/f2fs/file.c:755 f2fs_truncate fs/f2fs/file.c:807 [inline] f2fs_truncate+0x18d/0x360 fs/f2fs/file.c:778 f2fs_setattr+0x834/0x12b0 fs/f2fs/file.c:971 notify_change+0x7b0/0xd90 fs/attr.c:410 do_truncate+0xfc/0x1b0 fs/open.c:65 handle_truncate fs/namei.c:3060 [inline] do_open fs/namei.c:3401 [inline] path_openat+0x1fbf/0x3950 fs/namei.c:3515 do_filp_open+0x193/0x3d0 fs/namei.c:3542 do_sys_openat2+0x135/0x810 fs/open.c:1217 do_sys_open fs/open.c:1233 [inline] __do_sys_creat fs/open.c:1307 [inline] __se_sys_creat fs/open.c:1301 [inline] __x64_sys_creat+0xd4/0x130 fs/open.c:1301 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f4126519959 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:00007f412609c0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f4126638f80 RCX: 00007f4126519959 RDX: 0000000000000000 RSI: 00000000000001f8 RDI: 00000000200000c0 RBP: 00007f4126575c88 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f4126638f80 R15: 00007fff33e11618 F2FS-fs (loop0): access invalid blkaddr:2623537330 CPU: 0 PID: 340 Comm: syz-executor.0 Tainted: G B 5.10.204-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack_lvl+0x81/0xac lib/dump_stack.c:118 dump_stack+0x10/0x12 lib/dump_stack.c:135 __is_bitmap_valid fs/f2fs/checkpoint.c:166 [inline] f2fs_is_valid_blkaddr.cold+0x2a/0x47 fs/f2fs/checkpoint.c:208 f2fs_truncate_data_blocks_range+0x2b2/0xe90 fs/f2fs/file.c:599 f2fs_truncate_data_blocks+0x66/0x120 fs/f2fs/file.c:638 truncate_dnode+0x13a/0x1c0 fs/f2fs/node.c:943 f2fs_truncate_inode_blocks+0x23b/0xb40 fs/f2fs/node.c:1155 f2fs_do_truncate_blocks+0x396/0x9e0 fs/f2fs/file.c:727 f2fs_truncate_blocks+0x5f/0x260 fs/f2fs/file.c:755 f2fs_truncate fs/f2fs/file.c:807 [inline] f2fs_truncate+0x18d/0x360 fs/f2fs/file.c:778 f2fs_setattr+0x834/0x12b0 fs/f2fs/file.c:971 notify_change+0x7b0/0xd90 fs/attr.c:410 do_truncate+0xfc/0x1b0 fs/open.c:65 handle_truncate fs/namei.c:3060 [inline] do_open fs/namei.c:3401 [inline] path_openat+0x1fbf/0x3950 fs/namei.c:3515 do_filp_open+0x193/0x3d0 fs/namei.c:3542 do_sys_openat2+0x135/0x810 fs/open.c:1217 do_sys_open fs/open.c:1233 [inline] __do_sys_creat fs/open.c:1307 [inline] __se_sys_creat fs/open.c:1301 [inline] __x64_sys_creat+0xd4/0x130 fs/open.c:1301 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f4126519959 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:00007f412609c0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f4126638f80 RCX: 00007f4126519959 RDX: 0000000000000000 RSI: 00000000000001f8 RDI: 00000000200000c0 RBP: 00007f4126575c88 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f4126638f80 R15: 00007fff33e11618 F2FS-fs (loop0): access invalid blkaddr:108912640 CPU: 1 PID: 340 Comm: syz-executor.0 Tainted: G B 5.10.204-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack_lvl+0x81/0xac lib/dump_stack.c:118 dump_stack+0x10/0x12 lib/dump_stack.c:135 __is_bitmap_valid fs/f2fs/checkpoint.c:166 [inline] f2fs_is_valid_blkaddr.cold+0x2a/0x47 fs/f2fs/checkpoint.c:208 f2fs_truncate_data_blocks_range+0x2b2/0xe90 fs/f2fs/file.c:599 f2fs_truncate_data_blocks+0x66/0x120 fs/f2fs/file.c:638 truncate_dnode+0x13a/0x1c0 fs/f2fs/node.c:943 f2fs_truncate_inode_blocks+0x23b/0xb40 fs/f2fs/node.c:1155 f2fs_do_truncate_blocks+0x396/0x9e0 fs/f2fs/file.c:727 f2fs_truncate_blocks+0x5f/0x260 fs/f2fs/file.c:755 f2fs_truncate fs/f2fs/file.c:807 [inline] f2fs_truncate+0x18d/0x360 fs/f2fs/file.c:778 f2fs_setattr+0x834/0x12b0 fs/f2fs/file.c:971 notify_change+0x7b0/0xd90 fs/attr.c:410 do_truncate+0xfc/0x1b0 fs/open.c:65 handle_truncate fs/namei.c:3060 [inline] do_open fs/namei.c:3401 [inline] path_openat+0x1fbf/0x3950 fs/namei.c:3515 do_filp_open+0x193/0x3d0 fs/namei.c:3542 do_sys_openat2+0x135/0x810 fs/open.c:1217 do_sys_open fs/open.c:1233 [inline] __do_sys_creat fs/open.c:1307 [inline] __se_sys_creat fs/open.c:1301 [inline] __x64_sys_creat+0xd4/0x130 fs/open.c:1301 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f4126519959 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:00007f412609c0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f4126638f80 RCX: 00007f4126519959 RDX: 0000000000000000 RSI: 00000000000001f8 RDI: 00000000200000c0 RBP: 00007f4126575c88 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f4126638f80 R15: 00007fff33e11618 F2FS-fs (loop0): access invalid blkaddr:4294936705 CPU: 1 PID: 340 Comm: syz-executor.0 Tainted: G B 5.10.204-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack_lvl+0x81/0xac lib/dump_stack.c:118 dump_stack+0x10/0x12 lib/dump_stack.c:135 __is_bitmap_valid fs/f2fs/checkpoint.c:166 [inline] f2fs_is_valid_blkaddr.cold+0x2a/0x47 fs/f2fs/checkpoint.c:208 f2fs_truncate_data_blocks_range+0x2b2/0xe90 fs/f2fs/file.c:599 f2fs_truncate_data_blocks+0x66/0x120 fs/f2fs/file.c:638 truncate_dnode+0x13a/0x1c0 fs/f2fs/node.c:943 f2fs_truncate_inode_blocks+0x23b/0xb40 fs/f2fs/node.c:1155 f2fs_do_truncate_blocks+0x396/0x9e0 fs/f2fs/file.c:727 f2fs_truncate_blocks+0x5f/0x260 fs/f2fs/file.c:755 f2fs_truncate fs/f2fs/file.c:807 [inline] f2fs_truncate+0x18d/0x360 fs/f2fs/file.c:778 f2fs_setattr+0x834/0x12b0 fs/f2fs/file.c:971 notify_change+0x7b0/0xd90 fs/attr.c:410 do_truncate+0xfc/0x1b0 fs/open.c:65 handle_truncate fs/namei.c:3060 [inline] do_open fs/namei.c:3401 [inline] path_openat+0x1fbf/0x3950 fs/namei.c:3515 do_filp_open+0x193/0x3d0 fs/namei.c:3542 do_sys_openat2+0x135/0x810 fs/open.c:1217 do_sys_open fs/open.c:1233 [inline] __do_sys_creat fs/open.c:1307 [inline] __se_sys_creat fs/open.c:1301 [inline] __x64_sys_creat+0xd4/0x130 fs/open.c:1301 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f4126519959 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:00007f412609c0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f4126638f80 RCX: 00007f4126519959 RDX: 0000000000000000 RSI: 00000000000001f8 RDI: 00000000200000c0 RBP: 00007f4126575c88 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f4126638f80 R15: 00007fff33e11618 F2FS-fs (loop0): access invalid blkaddr:2203803760 CPU: 1 PID: 340 Comm: syz-executor.0 Tainted: G B 5.10.204-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack_lvl+0x81/0xac lib/dump_stack.c:118 dump_stack+0x10/0x12 lib/dump_stack.c:135 __is_bitmap_valid fs/f2fs/checkpoint.c:166 [inline] f2fs_is_valid_blkaddr.cold+0x2a/0x47 fs/f2fs/checkpoint.c:208 f2fs_truncate_data_blocks_range+0x2b2/0xe90 fs/f2fs/file.c:599 f2fs_truncate_data_blocks+0x66/0x120 fs/f2fs/file.c:638 truncate_dnode+0x13a/0x1c0 fs/f2fs/node.c:943 f2fs_truncate_inode_blocks+0x23b/0xb40 fs/f2fs/node.c:1155 f2fs_do_truncate_blocks+0x396/0x9e0 fs/f2fs/file.c:727 f2fs_truncate_blocks+0x5f/0x260 fs/f2fs/file.c:755 f2fs_truncate fs/f2fs/file.c:807 [inline] f2fs_truncate+0x18d/0x360 fs/f2fs/file.c:778 f2fs_setattr+0x834/0x12b0 fs/f2fs/file.c:971 notify_change+0x7b0/0xd90 fs/attr.c:410 do_truncate+0xfc/0x1b0 fs/open.c:65 handle_truncate fs/namei.c:3060 [inline] do_open fs/namei.c:3401 [inline] path_openat+0x1fbf/0x3950 fs/namei.c:3515 do_filp_open+0x193/0x3d0 fs/namei.c:3542 do_sys_openat2+0x135/0x810 fs/open.c:1217 do_sys_open fs/open.c:1233 [inline] __do_sys_creat fs/open.c:1307 [inline] __se_sys_creat fs/open.c:1301 [inline] __x64_sys_creat+0xd4/0x130 fs/open.c:1301 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f4126519959 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:00007f412609c0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f4126638f80 RCX: 00007f4126519959 RDX: 0000000000000000 RSI: 00000000000001f8 RDI: 00000000200000c0 RBP: 00007f4126575c88 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f4126638f80 R15: 00007fff33e11618 F2FS-fs (loop0): access invalid blkaddr:2203775008 CPU: 1 PID: 340 Comm: syz-executor.0 Tainted: G B 5.10.204-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack_lvl+0x81/0xac lib/dump_stack.c:118 dump_stack+0x10/0x12 lib/dump_stack.c:135 __is_bitmap_valid fs/f2fs/checkpoint.c:166 [inline] f2fs_is_valid_blkaddr.cold+0x2a/0x47 fs/f2fs/checkpoint.c:208 f2fs_truncate_data_blocks_range+0x2b2/0xe90 fs/f2fs/file.c:599 f2fs_truncate_data_blocks+0x66/0x120 fs/f2fs/file.c:638 truncate_dnode+0x13a/0x1c0 fs/f2fs/node.c:943 f2fs_truncate_inode_blocks+0x23b/0xb40 fs/f2fs/node.c:1155 f2fs_do_truncate_blocks+0x396/0x9e0 fs/f2fs/file.c:727 f2fs_truncate_blocks+0x5f/0x260 fs/f2fs/file.c:755 f2fs_truncate fs/f2fs/file.c:807 [inline] f2fs_truncate+0x18d/0x360 fs/f2fs/file.c:778 f2fs_setattr+0x834/0x12b0 fs/f2fs/file.c:971 notify_change+0x7b0/0xd90 fs/attr.c:410 do_truncate+0xfc/0x1b0 fs/open.c:65 handle_truncate fs/namei.c:3060 [inline] do_open fs/namei.c:3401 [inline] path_openat+0x1fbf/0x3950 fs/namei.c:3515 do_filp_open+0x193/0x3d0 fs/namei.c:3542 do_sys_openat2+0x135/0x810 fs/open.c:1217 do_sys_open fs/open.c:1233 [inline] __do_sys_creat fs/open.c:1307 [inline] __se_sys_creat fs/open.c:1301 [inline] __x64_sys_creat+0xd4/0x130 fs/open.c:1301 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f4126519959 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:00007f412609c0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f4126638f80 RCX: 00007f4126519959 RDX: 0000000000000000 RSI: 00000000000001f8 RDI: 00000000200000c0 RBP: 00007f4126575c88 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f4126638f80 R15: 00007fff33e11618 F2FS-fs (loop0): access invalid blkaddr:4294901760 CPU: 0 PID: 340 Comm: syz-executor.0 Tainted: G B 5.10.204-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack_lvl+0x81/0xac lib/dump_stack.c:118 dump_stack+0x10/0x12 lib/dump_stack.c:135 __is_bitmap_valid fs/f2fs/checkpoint.c:166 [inline] f2fs_is_valid_blkaddr.cold+0x2a/0x47 fs/f2fs/checkpoint.c:208 f2fs_truncate_data_blocks_range+0x2b2/0xe90 fs/f2fs/file.c:599 f2fs_truncate_data_blocks+0x66/0x120 fs/f2fs/file.c:638 truncate_dnode+0x13a/0x1c0 fs/f2fs/node.c:943 f2fs_truncate_inode_blocks+0x23b/0xb40 fs/f2fs/node.c:1155 f2fs_do_truncate_blocks+0x396/0x9e0 fs/f2fs/file.c:727 f2fs_truncate_blocks+0x5f/0x260 fs/f2fs/file.c:755 f2fs_truncate fs/f2fs/file.c:807 [inline] f2fs_truncate+0x18d/0x360 fs/f2fs/file.c:778 f2fs_setattr+0x834/0x12b0 fs/f2fs/file.c:971 notify_change+0x7b0/0xd90 fs/attr.c:410 do_truncate+0xfc/0x1b0 fs/open.c:65 handle_truncate fs/namei.c:3060 [inline] do_open fs/namei.c:3401 [inline] path_openat+0x1fbf/0x3950 fs/namei.c:3515 do_filp_open+0x193/0x3d0 fs/namei.c:3542 do_sys_openat2+0x135/0x810 fs/open.c:1217 do_sys_open fs/open.c:1233 [inline] __do_sys_creat fs/open.c:1307 [inline] __se_sys_creat fs/open.c:1301 [inline] __x64_sys_creat+0xd4/0x130 fs/open.c:1301 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f4126519959 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:00007f412609c0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f4126638f80 RCX: 00007f4126519959 RDX: 0000000000000000 RSI: 00000000000001f8 RDI: 00000000200000c0 RBP: 00007f4126575c88 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f4126638f80 R15: 00007fff33e11618 F2FS-fs (loop0): access invalid blkaddr:4294941290 CPU: 1 PID: 340 Comm: syz-executor.0 Tainted: G B 5.10.204-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack_lvl+0x81/0xac lib/dump_stack.c:118 dump_stack+0x10/0x12 lib/dump_stack.c:135 __is_bitmap_valid fs/f2fs/checkpoint.c:166 [inline] f2fs_is_valid_blkaddr.cold+0x2a/0x47 fs/f2fs/checkpoint.c:208 f2fs_truncate_data_blocks_range+0x2b2/0xe90 fs/f2fs/file.c:599 f2fs_truncate_data_blocks+0x66/0x120 fs/f2fs/file.c:638 truncate_dnode+0x13a/0x1c0 fs/f2fs/node.c:943 f2fs_truncate_inode_blocks+0x23b/0xb40 fs/f2fs/node.c:1155 f2fs_do_truncate_blocks+0x396/0x9e0 fs/f2fs/file.c:727 f2fs_truncate_blocks+0x5f/0x260 fs/f2fs/file.c:755 f2fs_truncate fs/f2fs/file.c:807 [inline] f2fs_truncate+0x18d/0x360 fs/f2fs/file.c:778 f2fs_setattr+0x834/0x12b0 fs/f2fs/file.c:971 notify_change+0x7b0/0xd90 fs/attr.c:410 do_truncate+0xfc/0x1b0 fs/open.c:65 handle_truncate fs/namei.c:3060 [inline] do_open fs/namei.c:3401 [inline] path_openat+0x1fbf/0x3950 fs/namei.c:3515 do_filp_open+0x193/0x3d0 fs/namei.c:3542 do_sys_openat2+0x135/0x810 fs/open.c:1217 do_sys_open fs/open.c:1233 [inline] __do_sys_creat fs/open.c:1307 [inline] __se_sys_creat fs/open.c:1301 [inline] __x64_sys_creat+0xd4/0x130 fs/open.c:1301 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f4126519959 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:00007f412609c0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f4126638f80 RCX: 00007f4126519959 RDX: 0000000000000000 RSI: 00000000000001f8 RDI: 00000000200000c0 RBP: 00007f4126575c88 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f4126638f80 R15: 00007fff33e11618 F2FS-fs (loop0): access invalid blkaddr:557204504 CPU: 1 PID: 340 Comm: syz-executor.0 Tainted: G B 5.10.204-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack_lvl+0x81/0xac lib/dump_stack.c:118 dump_stack+0x10/0x12 lib/dump_stack.c:135 __is_bitmap_valid fs/f2fs/checkpoint.c:166 [inline] f2fs_is_valid_blkaddr.cold+0x2a/0x47 fs/f2fs/checkpoint.c:208 f2fs_truncate_data_blocks_range+0x2b2/0xe90 fs/f2fs/file.c:599 f2fs_truncate_data_blocks+0x66/0x120 fs/f2fs/file.c:638 truncate_dnode+0x13a/0x1c0 fs/f2fs/node.c:943 f2fs_truncate_inode_blocks+0x23b/0xb40 fs/f2fs/node.c:1155 f2fs_do_truncate_blocks+0x396/0x9e0 fs/f2fs/file.c:727 f2fs_truncate_blocks+0x5f/0x260 fs/f2fs/file.c:755 f2fs_truncate fs/f2fs/file.c:807 [inline] f2fs_truncate+0x18d/0x360 fs/f2fs/file.c:778 f2fs_setattr+0x834/0x12b0 fs/f2fs/file.c:971 notify_change+0x7b0/0xd90 fs/attr.c:410 do_truncate+0xfc/0x1b0 fs/open.c:65 handle_truncate fs/namei.c:3060 [inline] do_open fs/namei.c:3401 [inline] path_openat+0x1fbf/0x3950 fs/namei.c:3515 do_filp_open+0x193/0x3d0 fs/namei.c:3542 do_sys_openat2+0x135/0x810 fs/open.c:1217 do_sys_open fs/open.c:1233 [inline] __do_sys_creat fs/open.c:1307 [inline] __se_sys_creat fs/open.c:1301 [inline] __x64_sys_creat+0xd4/0x130 fs/open.c:1301 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f4126519959 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:00007f412609c0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f4126638f80 RCX: 00007f4126519959 RDX: 0000000000000000 RSI: 00000000000001f8 RDI: 00000000200000c0 RBP: 00007f4126575c88 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f4126638f80 R15: 00007fff33e11618 F2FS-fs (loop0): access invalid blkaddr:4294936705 CPU: 1 PID: 340 Comm: syz-executor.0 Tainted: G B 5.10.204-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack_lvl+0x81/0xac lib/dump_stack.c:118 dump_stack+0x10/0x12 lib/dump_stack.c:135 __is_bitmap_valid fs/f2fs/checkpoint.c:166 [inline] f2fs_is_valid_blkaddr.cold+0x2a/0x47 fs/f2fs/checkpoint.c:208 f2fs_truncate_data_blocks_range+0x2b2/0xe90 fs/f2fs/file.c:599 f2fs_truncate_data_blocks+0x66/0x120 fs/f2fs/file.c:638 truncate_dnode+0x13a/0x1c0 fs/f2fs/node.c:943 f2fs_truncate_inode_blocks+0x23b/0xb40 fs/f2fs/node.c:1155 f2fs_do_truncate_blocks+0x396/0x9e0 fs/f2fs/file.c:727 f2fs_truncate_blocks+0x5f/0x260 fs/f2fs/file.c:755 f2fs_truncate fs/f2fs/file.c:807 [inline] f2fs_truncate+0x18d/0x360 fs/f2fs/file.c:778 f2fs_setattr+0x834/0x12b0 fs/f2fs/file.c:971 notify_change+0x7b0/0xd90 fs/attr.c:410 do_truncate+0xfc/0x1b0 fs/open.c:65 handle_truncate fs/namei.c:3060 [inline] do_open fs/namei.c:3401 [inline] path_openat+0x1fbf/0x3950 fs/namei.c:3515 do_filp_open+0x193/0x3d0 fs/namei.c:3542 do_sys_openat2+0x135/0x810 fs/open.c:1217 do_sys_open fs/open.c:1233 [inline] __do_sys_creat fs/open.c:1307 [inline] __se_sys_creat fs/open.c:1301 [inline] __x64_sys_creat+0xd4/0x130 fs/open.c:1301 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f4126519959 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:00007f412609c0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f4126638f80 RCX: 00007f4126519959 RDX: 0000000000000000 RSI: 00000000000001f8 RDI: 00000000200000c0 RBP: 00007f4126575c88 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f4126638f80 R15: 00007fff33e11618 F2FS-fs (loop0): access invalid blkaddr:767 CPU: 1 PID: 340 Comm: syz-executor.0 Tainted: G B 5.10.204-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack_lvl+0x81/0xac lib/dump_stack.c:118 dump_stack+0x10/0x12 lib/dump_stack.c:135 __is_bitmap_valid fs/f2fs/checkpoint.c:166 [inline] f2fs_is_valid_blkaddr.cold+0x2a/0x47 fs/f2fs/checkpoint.c:208 f2fs_truncate_data_blocks_range+0x2b2/0xe90 fs/f2fs/file.c:599 f2fs_truncate_data_blocks+0x66/0x120 fs/f2fs/file.c:638 truncate_dnode+0x13a/0x1c0 fs/f2fs/node.c:943 f2fs_truncate_inode_blocks+0x23b/0xb40 fs/f2fs/node.c:1155 f2fs_do_truncate_blocks+0x396/0x9e0 fs/f2fs/file.c:727 f2fs_truncate_blocks+0x5f/0x260 fs/f2fs/file.c:755 f2fs_truncate fs/f2fs/file.c:807 [inline] f2fs_truncate+0x18d/0x360 fs/f2fs/file.c:778 f2fs_setattr+0x834/0x12b0 fs/f2fs/file.c:971 notify_change+0x7b0/0xd90 fs/attr.c:410 do_truncate+0xfc/0x1b0 fs/open.c:65 handle_truncate fs/namei.c:3060 [inline] do_open fs/namei.c:3401 [inline] path_openat+0x1fbf/0x3950 fs/namei.c:3515 do_filp_open+0x193/0x3d0 fs/namei.c:3542 do_sys_openat2+0x135/0x810 fs/open.c:1217 do_sys_open fs/open.c:1233 [inline] __do_sys_creat fs/open.c:1307 [inline] __se_sys_creat fs/open.c:1301 [inline] __x64_sys_creat+0xd4/0x130 fs/open.c:1301 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f4126519959 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:00007f412609c0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f4126638f80 RCX: 00007f4126519959 RDX: 0000000000000000 RSI: 00000000000001f8 RDI: 00000000200000c0 RBP: 00007f4126575c88 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f4126638f80 R15: 00007fff33e11618 F2FS-fs (loop0): access invalid blkaddr:16777216 CPU: 0 PID: 340 Comm: syz-executor.0 Tainted: G B 5.10.204-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack_lvl+0x81/0xac lib/dump_stack.c:118 dump_stack+0x10/0x12 lib/dump_stack.c:135 __is_bitmap_valid fs/f2fs/checkpoint.c:166 [inline] f2fs_is_valid_blkaddr.cold+0x2a/0x47 fs/f2fs/checkpoint.c:208 f2fs_truncate_data_blocks_range+0x2b2/0xe90 fs/f2fs/file.c:599 f2fs_truncate_data_blocks+0x66/0x120 fs/f2fs/file.c:638 truncate_dnode+0x13a/0x1c0 fs/f2fs/node.c:943 f2fs_truncate_inode_blocks+0x23b/0xb40 fs/f2fs/node.c:1155 f2fs_do_truncate_blocks+0x396/0x9e0 fs/f2fs/file.c:727 f2fs_truncate_blocks+0x5f/0x260 fs/f2fs/file.c:755 f2fs_truncate fs/f2fs/file.c:807 [inline] f2fs_truncate+0x18d/0x360 fs/f2fs/file.c:778 f2fs_setattr+0x834/0x12b0 fs/f2fs/file.c:971 notify_change+0x7b0/0xd90 fs/attr.c:410 do_truncate+0xfc/0x1b0 fs/open.c:65 handle_truncate fs/namei.c:3060 [inline] do_open fs/namei.c:3401 [inline] path_openat+0x1fbf/0x3950 fs/namei.c:3515 do_filp_open+0x193/0x3d0 fs/namei.c:3542 do_sys_openat2+0x135/0x810 fs/open.c:1217 do_sys_open fs/open.c:1233 [inline] __do_sys_creat fs/open.c:1307 [inline] __se_sys_creat fs/open.c:1301 [inline] __x64_sys_creat+0xd4/0x130 fs/open.c:1301 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f4126519959 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:00007f412609c0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f4126638f80 RCX: 00007f4126519959 RDX: 0000000000000000 RSI: 00000000000001f8 RDI: 00000000200000c0 RBP: 00007f4126575c88 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f4126638f80 R15: 00007fff33e11618 F2FS-fs (loop0): access invalid blkaddr:816491263 CPU: 1 PID: 340 Comm: syz-executor.0 Tainted: G B 5.10.204-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack_lvl+0x81/0xac lib/dump_stack.c:118 dump_stack+0x10/0x12 lib/dump_stack.c:135 __is_bitmap_valid fs/f2fs/checkpoint.c:166 [inline] f2fs_is_valid_blkaddr.cold+0x2a/0x47 fs/f2fs/checkpoint.c:208 f2fs_truncate_data_blocks_range+0x2b2/0xe90 fs/f2fs/file.c:599 f2fs_truncate_data_blocks+0x66/0x120 fs/f2fs/file.c:638 truncate_dnode+0x13a/0x1c0 fs/f2fs/node.c:943 f2fs_truncate_inode_blocks+0x23b/0xb40 fs/f2fs/node.c:1155 f2fs_do_truncate_blocks+0x396/0x9e0 fs/f2fs/file.c:727 f2fs_truncate_blocks+0x5f/0x260 fs/f2fs/file.c:755 f2fs_truncate fs/f2fs/file.c:807 [inline] f2fs_truncate+0x18d/0x360 fs/f2fs/file.c:778 f2fs_setattr+0x834/0x12b0 fs/f2fs/file.c:971 notify_change+0x7b0/0xd90 fs/attr.c:410 do_truncate+0xfc/0x1b0 fs/open.c:65 handle_truncate fs/namei.c:3060 [inline] do_open fs/namei.c:3401 [inline] path_openat+0x1fbf/0x3950 fs/namei.c:3515 do_filp_open+0x193/0x3d0 fs/namei.c:3542 do_sys_openat2+0x135/0x810 fs/open.c:1217 do_sys_open fs/open.c:1233 [inline] __do_sys_creat fs/open.c:1307 [inline] __se_sys_creat fs/open.c:1301 [inline] __x64_sys_creat+0xd4/0x130 fs/open.c:1301 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f4126519959 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:00007f412609c0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f4126638f80 RCX: 00007f4126519959 RDX: 0000000000000000 RSI: 00000000000001f8 RDI: 00000000200000c0 RBP: 00007f4126575c88 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f4126638f80 R15: 00007fff33e11618 F2FS-fs (loop0): access invalid blkaddr:128 CPU: 1 PID: 340 Comm: syz-executor.0 Tainted: G B 5.10.204-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack_lvl+0x81/0xac lib/dump_stack.c:118 dump_stack+0x10/0x12 lib/dump_stack.c:135 __is_bitmap_valid fs/f2fs/checkpoint.c:166 [inline] f2fs_is_valid_blkaddr.cold+0x2a/0x47 fs/f2fs/checkpoint.c:208 f2fs_truncate_data_blocks_range+0x2b2/0xe90 fs/f2fs/file.c:599 f2fs_truncate_data_blocks+0x66/0x120 fs/f2fs/file.c:638 truncate_dnode+0x13a/0x1c0 fs/f2fs/node.c:943 f2fs_truncate_inode_blocks+0x23b/0xb40 fs/f2fs/node.c:1155 f2fs_do_truncate_blocks+0x396/0x9e0 fs/f2fs/file.c:727 f2fs_truncate_blocks+0x5f/0x260 fs/f2fs/file.c:755 f2fs_truncate fs/f2fs/file.c:807 [inline] f2fs_truncate+0x18d/0x360 fs/f2fs/file.c:778 f2fs_setattr+0x834/0x12b0 fs/f2fs/file.c:971 notify_change+0x7b0/0xd90 fs/attr.c:410 do_truncate+0xfc/0x1b0 fs/open.c:65 handle_truncate fs/namei.c:3060 [inline] do_open fs/namei.c:3401 [inline] path_openat+0x1fbf/0x3950 fs/namei.c:3515 do_filp_open+0x193/0x3d0 fs/namei.c:3542 do_sys_openat2+0x135/0x810 fs/open.c:1217 do_sys_open fs/open.c:1233 [inline] __do_sys_creat fs/open.c:1307 [inline] __se_sys_creat fs/open.c:1301 [inline] __x64_sys_creat+0xd4/0x130 fs/open.c:1301 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f4126519959 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:00007f412609c0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f4126638f80 RCX: 00007f4126519959 RDX: 0000000000000000 RSI: 00000000000001f8 RDI: 00000000200000c0 RBP: 00007f4126575c88 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f4126638f80 R15: 00007fff33e11618 F2FS-fs (loop0): access invalid blkaddr:767 CPU: 1 PID: 340 Comm: syz-executor.0 Tainted: G B 5.10.204-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack_lvl+0x81/0xac lib/dump_stack.c:118 dump_stack+0x10/0x12 lib/dump_stack.c:135 __is_bitmap_valid fs/f2fs/checkpoint.c:166 [inline] f2fs_is_valid_blkaddr.cold+0x2a/0x47 fs/f2fs/checkpoint.c:208 f2fs_truncate_data_blocks_range+0x2b2/0xe90 fs/f2fs/file.c:599 f2fs_truncate_data_blocks+0x66/0x120 fs/f2fs/file.c:638 truncate_dnode+0x13a/0x1c0 fs/f2fs/node.c:943 f2fs_truncate_inode_blocks+0x23b/0xb40 fs/f2fs/node.c:1155 f2fs_do_truncate_blocks+0x396/0x9e0 fs/f2fs/file.c:727 f2fs_truncate_blocks+0x5f/0x260 fs/f2fs/file.c:755 f2fs_truncate fs/f2fs/file.c:807 [inline] f2fs_truncate+0x18d/0x360 fs/f2fs/file.c:778 f2fs_setattr+0x834/0x12b0 fs/f2fs/file.c:971 notify_change+0x7b0/0xd90 fs/attr.c:410 do_truncate+0xfc/0x1b0 fs/open.c:65 handle_truncate fs/namei.c:3060 [inline] do_open fs/namei.c:3401 [inline] path_openat+0x1fbf/0x3950 fs/namei.c:3515 do_filp_open+0x193/0x3d0 fs/namei.c:3542 do_sys_openat2+0x135/0x810 fs/open.c:1217 do_sys_open fs/open.c:1233 [inline] __do_sys_creat fs/open.c:1307 [inline] __se_sys_creat fs/open.c:1301 [inline] __x64_sys_creat+0xd4/0x130 fs/open.c:1301 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f4126519959 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:00007f412609c0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f4126638f80 RCX: 00007f4126519959 RDX: 0000000000000000 RSI: 00000000000001f8 RDI: 00000000200000c0 RBP: 00007f4126575c88 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f4126638f80 R15: 00007fff33e11618 F2FS-fs (loop0): access invalid blkaddr:16777216 CPU: 1 PID: 340 Comm: syz-executor.0 Tainted: G B 5.10.204-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack_lvl+0x81/0xac lib/dump_stack.c:118 dump_stack+0x10/0x12 lib/dump_stack.c:135 __is_bitmap_valid fs/f2fs/checkpoint.c:166 [inline] f2fs_is_valid_blkaddr.cold+0x2a/0x47 fs/f2fs/checkpoint.c:208 f2fs_truncate_data_blocks_range+0x2b2/0xe90 fs/f2fs/file.c:599 f2fs_truncate_data_blocks+0x66/0x120 fs/f2fs/file.c:638 truncate_dnode+0x13a/0x1c0 fs/f2fs/node.c:943 f2fs_truncate_inode_blocks+0x23b/0xb40 fs/f2fs/node.c:1155 f2fs_do_truncate_blocks+0x396/0x9e0 fs/f2fs/file.c:727 f2fs_truncate_blocks+0x5f/0x260 fs/f2fs/file.c:755 f2fs_truncate fs/f2fs/file.c:807 [inline] f2fs_truncate+0x18d/0x360 fs/f2fs/file.c:778 f2fs_setattr+0x834/0x12b0 fs/f2fs/file.c:971 notify_change+0x7b0/0xd90 fs/attr.c:410 do_truncate+0xfc/0x1b0 fs/open.c:65 handle_truncate fs/namei.c:3060 [inline] do_open fs/namei.c:3401 [inline] path_openat+0x1fbf/0x3950 fs/namei.c:3515 do_filp_open+0x193/0x3d0 fs/namei.c:3542 do_sys_openat2+0x135/0x810 fs/open.c:1217 do_sys_open fs/open.c:1233 [inline] __do_sys_creat fs/open.c:1307 [inline] __se_sys_creat fs/open.c:1301 [inline] __x64_sys_creat+0xd4/0x130 fs/open.c:1301 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f4126519959 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:00007f412609c0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f4126638f80 RCX: 00007f4126519959 RDX: 0000000000000000 RSI: 00000000000001f8 RDI: 00000000200000c0 RBP: 00007f4126575c88 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f4126638f80 R15: 00007fff33e11618 F2FS-fs (loop0): access invalid blkaddr:816491263 CPU: 1 PID: 340 Comm: syz-executor.0 Tainted: G B 5.10.204-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack_lvl+0x81/0xac lib/dump_stack.c:118 dump_stack+0x10/0x12 lib/dump_stack.c:135 __is_bitmap_valid fs/f2fs/checkpoint.c:166 [inline] f2fs_is_valid_blkaddr.cold+0x2a/0x47 fs/f2fs/checkpoint.c:208 f2fs_truncate_data_blocks_range+0x2b2/0xe90 fs/f2fs/file.c:599 f2fs_truncate_data_blocks+0x66/0x120 fs/f2fs/file.c:638 truncate_dnode+0x13a/0x1c0 fs/f2fs/node.c:943 f2fs_truncate_inode_blocks+0x23b/0xb40 fs/f2fs/node.c:1155 f2fs_do_truncate_blocks+0x396/0x9e0 fs/f2fs/file.c:727 f2fs_truncate_blocks+0x5f/0x260 fs/f2fs/file.c:755 f2fs_truncate fs/f2fs/file.c:807 [inline] f2fs_truncate+0x18d/0x360 fs/f2fs/file.c:778 f2fs_setattr+0x834/0x12b0 fs/f2fs/file.c:971 notify_change+0x7b0/0xd90 fs/attr.c:410 do_truncate+0xfc/0x1b0 fs/open.c:65 handle_truncate fs/namei.c:3060 [inline] do_open fs/namei.c:3401 [inline] path_openat+0x1fbf/0x3950 fs/namei.c:3515 do_filp_open+0x193/0x3d0 fs/namei.c:3542 do_sys_openat2+0x135/0x810 fs/open.c:1217 do_sys_open fs/open.c:1233 [inline] __do_sys_creat fs/open.c:1307 [inline] __se_sys_creat fs/open.c:1301 [inline] __x64_sys_creat+0xd4/0x130 fs/open.c:1301 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f4126519959 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:00007f412609c0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f4126638f80 RCX: 00007f4126519959 RDX: 0000000000000000 RSI: 00000000000001f8 RDI: 00000000200000c0 RBP: 00007f4126575c88 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f4126638f80 R15: 00007fff33e11618 F2FS-fs (loop0): access invalid blkaddr:256 CPU: 1 PID: 340 Comm: syz-executor.0 Tainted: G B 5.10.204-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack_lvl+0x81/0xac lib/dump_stack.c:118 dump_stack+0x10/0x12 lib/dump_stack.c:135 __is_bitmap_valid fs/f2fs/checkpoint.c:166 [inline] f2fs_is_valid_blkaddr.cold+0x2a/0x47 fs/f2fs/checkpoint.c:208 f2fs_truncate_data_blocks_range+0x2b2/0xe90 fs/f2fs/file.c:599 f2fs_truncate_data_blocks+0x66/0x120 fs/f2fs/file.c:638 truncate_dnode+0x13a/0x1c0 fs/f2fs/node.c:943 f2fs_truncate_inode_blocks+0x23b/0xb40 fs/f2fs/node.c:1155 f2fs_do_truncate_blocks+0x396/0x9e0 fs/f2fs/file.c:727 f2fs_truncate_blocks+0x5f/0x260 fs/f2fs/file.c:755 f2fs_truncate fs/f2fs/file.c:807 [inline] f2fs_truncate+0x18d/0x360 fs/f2fs/file.c:778 f2fs_setattr+0x834/0x12b0 fs/f2fs/file.c:971 notify_change+0x7b0/0xd90 fs/attr.c:410 do_truncate+0xfc/0x1b0 fs/open.c:65 handle_truncate fs/namei.c:3060 [inline] do_open fs/namei.c:3401 [inline] path_openat+0x1fbf/0x3950 fs/namei.c:3515 do_filp_open+0x193/0x3d0 fs/namei.c:3542 do_sys_openat2+0x135/0x810 fs/open.c:1217 do_sys_open fs/open.c:1233 [inline] __do_sys_creat fs/open.c:1307 [inline] __se_sys_creat fs/open.c:1301 [inline] __x64_sys_creat+0xd4/0x130 fs/open.c:1301 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f4126519959 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:00007f412609c0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f4126638f80 RCX: 00007f4126519959 RDX: 0000000000000000 RSI: 00000000000001f8 RDI: 00000000200000c0 RBP: 00007f4126575c88 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f4126638f80 R15: 00007fff33e11618 F2FS-fs (loop0): access invalid blkaddr:3735879680 CPU: 0 PID: 340 Comm: syz-executor.0 Tainted: G B 5.10.204-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack_lvl+0x81/0xac lib/dump_stack.c:118 dump_stack+0x10/0x12 lib/dump_stack.c:135 __is_bitmap_valid fs/f2fs/checkpoint.c:166 [inline] f2fs_is_valid_blkaddr.cold+0x2a/0x47 fs/f2fs/checkpoint.c:208 f2fs_truncate_data_blocks_range+0x2b2/0xe90 fs/f2fs/file.c:599 f2fs_truncate_data_blocks+0x66/0x120 fs/f2fs/file.c:638 truncate_dnode+0x13a/0x1c0 fs/f2fs/node.c:943 f2fs_truncate_inode_blocks+0x23b/0xb40 fs/f2fs/node.c:1155 f2fs_do_truncate_blocks+0x396/0x9e0 fs/f2fs/file.c:727 f2fs_truncate_blocks+0x5f/0x260 fs/f2fs/file.c:755 f2fs_truncate fs/f2fs/file.c:807 [inline] f2fs_truncate+0x18d/0x360 fs/f2fs/file.c:778 f2fs_setattr+0x834/0x12b0 fs/f2fs/file.c:971 notify_change+0x7b0/0xd90 fs/attr.c:410 do_truncate+0xfc/0x1b0 fs/open.c:65 handle_truncate fs/namei.c:3060 [inline] do_open fs/namei.c:3401 [inline] path_openat+0x1fbf/0x3950 fs/namei.c:3515 do_filp_open+0x193/0x3d0 fs/namei.c:3542 do_sys_openat2+0x135/0x810 fs/open.c:1217 do_sys_open fs/open.c:1233 [inline] __do_sys_creat fs/open.c:1307 [inline] __se_sys_creat fs/open.c:1301 [inline] __x64_sys_creat+0xd4/0x130 fs/open.c:1301 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f4126519959 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:00007f412609c0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f4126638f80 RCX: 00007f4126519959 RDX: 0000000000000000 RSI: 00000000000001f8 RDI: 00000000200000c0 RBP: 00007f4126575c88 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f4126638f80 R15: 00007fff33e11618 F2FS-fs (loop0): access invalid blkaddr:290 CPU: 0 PID: 340 Comm: syz-executor.0 Tainted: G B 5.10.204-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack_lvl+0x81/0xac lib/dump_stack.c:118 dump_stack+0x10/0x12 lib/dump_stack.c:135 __is_bitmap_valid fs/f2fs/checkpoint.c:166 [inline] f2fs_is_valid_blkaddr.cold+0x2a/0x47 fs/f2fs/checkpoint.c:208 f2fs_truncate_data_blocks_range+0x2b2/0xe90 fs/f2fs/file.c:599 f2fs_truncate_data_blocks+0x66/0x120 fs/f2fs/file.c:638 truncate_dnode+0x13a/0x1c0 fs/f2fs/node.c:943 f2fs_truncate_inode_blocks+0x23b/0xb40 fs/f2fs/node.c:1155 f2fs_do_truncate_blocks+0x396/0x9e0 fs/f2fs/file.c:727 f2fs_truncate_blocks+0x5f/0x260 fs/f2fs/file.c:755 f2fs_truncate fs/f2fs/file.c:807 [inline] f2fs_truncate+0x18d/0x360 fs/f2fs/file.c:778 f2fs_setattr+0x834/0x12b0 fs/f2fs/file.c:971 notify_change+0x7b0/0xd90 fs/attr.c:410 do_truncate+0xfc/0x1b0 fs/open.c:65 handle_truncate fs/namei.c:3060 [inline] do_open fs/namei.c:3401 [inline] path_openat+0x1fbf/0x3950 fs/namei.c:3515 do_filp_open+0x193/0x3d0 fs/namei.c:3542 do_sys_openat2+0x135/0x810 fs/open.c:1217 do_sys_open fs/open.c:1233 [inline] __do_sys_creat fs/open.c:1307 [inline] __se_sys_creat fs/open.c:1301 [inline] __x64_sys_creat+0xd4/0x130 fs/open.c:1301 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f4126519959 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:00007f412609c0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f4126638f80 RCX: 00007f4126519959 RDX: 0000000000000000 RSI: 00000000000001f8 RDI: 00000000200000c0 RBP: 00007f4126575c88 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f4126638f80 R15: 00007fff33e11618 F2FS-fs (loop0): access invalid blkaddr:3735879680 CPU: 0 PID: 340 Comm: syz-executor.0 Tainted: G B 5.10.204-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack_lvl+0x81/0xac lib/dump_stack.c:118 dump_stack+0x10/0x12 lib/dump_stack.c:135 __is_bitmap_valid fs/f2fs/checkpoint.c:166 [inline] f2fs_is_valid_blkaddr.cold+0x2a/0x47 fs/f2fs/checkpoint.c:208 f2fs_truncate_data_blocks_range+0x2b2/0xe90 fs/f2fs/file.c:599 f2fs_truncate_data_blocks+0x66/0x120 fs/f2fs/file.c:638 truncate_dnode+0x13a/0x1c0 fs/f2fs/node.c:943 f2fs_truncate_inode_blocks+0x23b/0xb40 fs/f2fs/node.c:1155 f2fs_do_truncate_blocks+0x396/0x9e0 fs/f2fs/file.c:727 f2fs_truncate_blocks+0x5f/0x260 fs/f2fs/file.c:755 f2fs_truncate fs/f2fs/file.c:807 [inline] f2fs_truncate+0x18d/0x360 fs/f2fs/file.c:778 f2fs_setattr+0x834/0x12b0 fs/f2fs/file.c:971 notify_change+0x7b0/0xd90 fs/attr.c:410 do_truncate+0xfc/0x1b0 fs/open.c:65 handle_truncate fs/namei.c:3060 [inline] do_open fs/namei.c:3401 [inline] path_openat+0x1fbf/0x3950 fs/namei.c:3515 do_filp_open+0x193/0x3d0 fs/namei.c:3542 do_sys_openat2+0x135/0x810 fs/open.c:1217 do_sys_open fs/open.c:1233 [inline] __do_sys_creat fs/open.c:1307 [inline] __se_sys_creat fs/open.c:1301 [inline] __x64_sys_creat+0xd4/0x130 fs/open.c:1301 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f4126519959 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:00007f412609c0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f4126638f80 RCX: 00007f4126519959 RDX: 0000000000000000 RSI: 00000000000001f8 RDI: 00000000200000c0 RBP: 00007f4126575c88 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f4126638f80 R15: 00007fff33e11618 F2FS-fs (loop0): access invalid blkaddr:4149574400 CPU: 0 PID: 340 Comm: syz-executor.0 Tainted: G B 5.10.204-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack_lvl+0x81/0xac lib/dump_stack.c:118 dump_stack+0x10/0x12 lib/dump_stack.c:135 __is_bitmap_valid fs/f2fs/checkpoint.c:166 [inline] f2fs_is_valid_blkaddr.cold+0x2a/0x47 fs/f2fs/checkpoint.c:208 f2fs_truncate_data_blocks_range+0x2b2/0xe90 fs/f2fs/file.c:599 f2fs_truncate_data_blocks+0x66/0x120 fs/f2fs/file.c:638 truncate_dnode+0x13a/0x1c0 fs/f2fs/node.c:943 f2fs_truncate_inode_blocks+0x23b/0xb40 fs/f2fs/node.c:1155 f2fs_do_truncate_blocks+0x396/0x9e0 fs/f2fs/file.c:727 f2fs_truncate_blocks+0x5f/0x260 fs/f2fs/file.c:755 f2fs_truncate fs/f2fs/file.c:807 [inline] f2fs_truncate+0x18d/0x360 fs/f2fs/file.c:778 f2fs_setattr+0x834/0x12b0 fs/f2fs/file.c:971 notify_change+0x7b0/0xd90 fs/attr.c:410 do_truncate+0xfc/0x1b0 fs/open.c:65 handle_truncate fs/namei.c:3060 [inline] do_open fs/namei.c:3401 [inline] path_openat+0x1fbf/0x3950 fs/namei.c:3515 do_filp_open+0x193/0x3d0 fs/namei.c:3542 do_sys_openat2+0x135/0x810 fs/open.c:1217 do_sys_open fs/open.c:1233 [inline] __do_sys_creat fs/open.c:1307 [inline] __se_sys_creat fs/open.c:1301 [inline] __x64_sys_creat+0xd4/0x130 fs/open.c:1301 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f4126519959 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:00007f412609c0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f4126638f80 RCX: 00007f4126519959 RDX: 0000000000000000 RSI: 00000000000001f8 RDI: 00000000200000c0 RBP: 00007f4126575c88 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f4126638f80 R15: 00007fff33e11618 F2FS-fs (loop0): access invalid blkaddr:4294936705 CPU: 1 PID: 340 Comm: syz-executor.0 Tainted: G B 5.10.204-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack_lvl+0x81/0xac lib/dump_stack.c:118 dump_stack+0x10/0x12 lib/dump_stack.c:135 __is_bitmap_valid fs/f2fs/checkpoint.c:166 [inline] f2fs_is_valid_blkaddr.cold+0x2a/0x47 fs/f2fs/checkpoint.c:208 f2fs_truncate_data_blocks_range+0x2b2/0xe90 fs/f2fs/file.c:599 f2fs_truncate_data_blocks+0x66/0x120 fs/f2fs/file.c:638 truncate_dnode+0x13a/0x1c0 fs/f2fs/node.c:943 f2fs_truncate_inode_blocks+0x23b/0xb40 fs/f2fs/node.c:1155 f2fs_do_truncate_blocks+0x396/0x9e0 fs/f2fs/file.c:727 f2fs_truncate_blocks+0x5f/0x260 fs/f2fs/file.c:755 f2fs_truncate fs/f2fs/file.c:807 [inline] f2fs_truncate+0x18d/0x360 fs/f2fs/file.c:778 f2fs_setattr+0x834/0x12b0 fs/f2fs/file.c:971 notify_change+0x7b0/0xd90 fs/attr.c:410 do_truncate+0xfc/0x1b0 fs/open.c:65 handle_truncate fs/namei.c:3060 [inline] do_open fs/namei.c:3401 [inline] path_openat+0x1fbf/0x3950 fs/namei.c:3515 do_filp_open+0x193/0x3d0 fs/namei.c:3542 do_sys_openat2+0x135/0x810 fs/open.c:1217 do_sys_open fs/open.c:1233 [inline] __do_sys_creat fs/open.c:1307 [inline] __se_sys_creat fs/open.c:1301 [inline] __x64_sys_creat+0xd4/0x130 fs/open.c:1301 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f4126519959 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:00007f412609c0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f4126638f80 RCX: 00007f4126519959 RDX: 0000000000000000 RSI: 00000000000001f8 RDI: 00000000200000c0 RBP: 00007f4126575c88 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f4126638f80 R15: 00007fff33e11618 F2FS-fs (loop0): access invalid blkaddr:297 CPU: 1 PID: 340 Comm: syz-executor.0 Tainted: G B 5.10.204-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack_lvl+0x81/0xac lib/dump_stack.c:118 dump_stack+0x10/0x12 lib/dump_stack.c:135 __is_bitmap_valid fs/f2fs/checkpoint.c:166 [inline] f2fs_is_valid_blkaddr.cold+0x2a/0x47 fs/f2fs/checkpoint.c:208 f2fs_truncate_data_blocks_range+0x2b2/0xe90 fs/f2fs/file.c:599 f2fs_truncate_data_blocks+0x66/0x120 fs/f2fs/file.c:638 truncate_dnode+0x13a/0x1c0 fs/f2fs/node.c:943 f2fs_truncate_inode_blocks+0x23b/0xb40 fs/f2fs/node.c:1155 f2fs_do_truncate_blocks+0x396/0x9e0 fs/f2fs/file.c:727 f2fs_truncate_blocks+0x5f/0x260 fs/f2fs/file.c:755 f2fs_truncate fs/f2fs/file.c:807 [inline] f2fs_truncate+0x18d/0x360 fs/f2fs/file.c:778 f2fs_setattr+0x834/0x12b0 fs/f2fs/file.c:971 notify_change+0x7b0/0xd90 fs/attr.c:410 do_truncate+0xfc/0x1b0 fs/open.c:65 handle_truncate fs/namei.c:3060 [inline] do_open fs/namei.c:3401 [inline] path_openat+0x1fbf/0x3950 fs/namei.c:3515 do_filp_open+0x193/0x3d0 fs/namei.c:3542 do_sys_openat2+0x135/0x810 fs/open.c:1217 do_sys_open fs/open.c:1233 [inline] __do_sys_creat fs/open.c:1307 [inline] __se_sys_creat fs/open.c:1301 [inline] __x64_sys_creat+0xd4/0x130 fs/open.c:1301 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f4126519959 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:00007f412609c0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f4126638f80 RCX: 00007f4126519959 RDX: 0000000000000000 RSI: 00000000000001f8 RDI: 00000000200000c0 RBP: 00007f4126575c88 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f4126638f80 R15: 00007fff33e11618 F2FS-fs (loop0): access invalid blkaddr:2812281010 CPU: 1 PID: 340 Comm: syz-executor.0 Tainted: G B 5.10.204-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack_lvl+0x81/0xac lib/dump_stack.c:118 dump_stack+0x10/0x12 lib/dump_stack.c:135 __is_bitmap_valid fs/f2fs/checkpoint.c:166 [inline] f2fs_is_valid_blkaddr.cold+0x2a/0x47 fs/f2fs/checkpoint.c:208 f2fs_truncate_data_blocks_range+0x2b2/0xe90 fs/f2fs/file.c:599 f2fs_truncate_data_blocks+0x66/0x120 fs/f2fs/file.c:638 truncate_dnode+0x13a/0x1c0 fs/f2fs/node.c:943 f2fs_truncate_inode_blocks+0x23b/0xb40 fs/f2fs/node.c:1155 f2fs_do_truncate_blocks+0x396/0x9e0 fs/f2fs/file.c:727 f2fs_truncate_blocks+0x5f/0x260 fs/f2fs/file.c:755 f2fs_truncate fs/f2fs/file.c:807 [inline] f2fs_truncate+0x18d/0x360 fs/f2fs/file.c:778 f2fs_setattr+0x834/0x12b0 fs/f2fs/file.c:971 notify_change+0x7b0/0xd90 fs/attr.c:410 do_truncate+0xfc/0x1b0 fs/open.c:65 handle_truncate fs/namei.c:3060 [inline] do_open fs/namei.c:3401 [inline] path_openat+0x1fbf/0x3950 fs/namei.c:3515 do_filp_open+0x193/0x3d0 fs/namei.c:3542 do_sys_openat2+0x135/0x810 fs/open.c:1217 do_sys_open fs/open.c:1233 [inline] __do_sys_creat fs/open.c:1307 [inline] __se_sys_creat fs/open.c:1301 [inline] __x64_sys_creat+0xd4/0x130 fs/open.c:1301 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f4126519959 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:00007f412609c0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f4126638f80 RCX: 00007f4126519959 RDX: 0000000000000000 RSI: 00000000000001f8 RDI: 00000000200000c0 RBP: 00007f4126575c88 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f4126638f80 R15: 00007fff33e11618 F2FS-fs (loop0): access invalid blkaddr:2550137051 CPU: 1 PID: 340 Comm: syz-executor.0 Tainted: G B 5.10.204-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack_lvl+0x81/0xac lib/dump_stack.c:118 dump_stack+0x10/0x12 lib/dump_stack.c:135 __is_bitmap_valid fs/f2fs/checkpoint.c:166 [inline] f2fs_is_valid_blkaddr.cold+0x2a/0x47 fs/f2fs/checkpoint.c:208 f2fs_truncate_data_blocks_range+0x2b2/0xe90 fs/f2fs/file.c:599 f2fs_truncate_data_blocks+0x66/0x120 fs/f2fs/file.c:638 truncate_dnode+0x13a/0x1c0 fs/f2fs/node.c:943 f2fs_truncate_inode_blocks+0x23b/0xb40 fs/f2fs/node.c:1155 f2fs_do_truncate_blocks+0x396/0x9e0 fs/f2fs/file.c:727 f2fs_truncate_blocks+0x5f/0x260 fs/f2fs/file.c:755 f2fs_truncate fs/f2fs/file.c:807 [inline] f2fs_truncate+0x18d/0x360 fs/f2fs/file.c:778 f2fs_setattr+0x834/0x12b0 fs/f2fs/file.c:971 notify_change+0x7b0/0xd90 fs/attr.c:410 do_truncate+0xfc/0x1b0 fs/open.c:65 handle_truncate fs/namei.c:3060 [inline] do_open fs/namei.c:3401 [inline] path_openat+0x1fbf/0x3950 fs/namei.c:3515 do_filp_open+0x193/0x3d0 fs/namei.c:3542 do_sys_openat2+0x135/0x810 fs/open.c:1217 do_sys_open fs/open.c:1233 [inline] __do_sys_creat fs/open.c:1307 [inline] __se_sys_creat fs/open.c:1301 [inline] __x64_sys_creat+0xd4/0x130 fs/open.c:1301 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f4126519959 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:00007f412609c0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f4126638f80 RCX: 00007f4126519959 RDX: 0000000000000000 RSI: 00000000000001f8 RDI: 00000000200000c0 RBP: 00007f4126575c88 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f4126638f80 R15: 00007fff33e11618 F2FS-fs (loop0): access invalid blkaddr:108913536 CPU: 1 PID: 340 Comm: syz-executor.0 Tainted: G B 5.10.204-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack_lvl+0x81/0xac lib/dump_stack.c:118 dump_stack+0x10/0x12 lib/dump_stack.c:135 __is_bitmap_valid fs/f2fs/checkpoint.c:166 [inline] f2fs_is_valid_blkaddr.cold+0x2a/0x47 fs/f2fs/checkpoint.c:208 f2fs_truncate_data_blocks_range+0x2b2/0xe90 fs/f2fs/file.c:599 f2fs_truncate_data_blocks+0x66/0x120 fs/f2fs/file.c:638 truncate_dnode+0x13a/0x1c0 fs/f2fs/node.c:943 f2fs_truncate_inode_blocks+0x23b/0xb40 fs/f2fs/node.c:1155 f2fs_do_truncate_blocks+0x396/0x9e0 fs/f2fs/file.c:727 f2fs_truncate_blocks+0x5f/0x260 fs/f2fs/file.c:755 f2fs_truncate fs/f2fs/file.c:807 [inline] f2fs_truncate+0x18d/0x360 fs/f2fs/file.c:778 f2fs_setattr+0x834/0x12b0 fs/f2fs/file.c:971 notify_change+0x7b0/0xd90 fs/attr.c:410 do_truncate+0xfc/0x1b0 fs/open.c:65 handle_truncate fs/namei.c:3060 [inline] do_open fs/namei.c:3401 [inline] path_openat+0x1fbf/0x3950 fs/namei.c:3515 do_filp_open+0x193/0x3d0 fs/namei.c:3542 do_sys_openat2+0x135/0x810 fs/open.c:1217