syzbot


KASAN: use-after-free Read in f2fs_truncate_data_blocks_range

Status: upstream: reported C repro on 2023/05/12 11:37
Reported-by: syzbot+b1633bc1a581a3e45133@syzkaller.appspotmail.com
First crash: 559d, last: 55d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-10 KASAN: use-after-free Read in f2fs_truncate_data_blocks_range C error error 1 33d 558d 0/2 upstream: reported C repro on 2023/05/12 18:24
android-6-1 KASAN: use-after-free Read in f2fs_truncate_data_blocks_range origin:upstream missing-backport C error 2 12d 559d 0/2 upstream: reported C repro on 2023/05/12 15:50
upstream KASAN: slab-use-after-free Read in f2fs_truncate_data_blocks_range f2fs C error 1 518d 514d 23/28 fixed on 2023/10/12 12:47
Last patch testing requests (7)
Created Duration User Patch Repo Result
2024/09/27 10:10 21m retest repro android12-5.4 report log
2024/07/18 19:32 5m retest repro android12-5.4 report log
2024/05/09 01:17 14m retest repro android12-5.4 report log
2024/02/29 01:05 7m retest repro android12-5.4 report log
2023/12/20 23:05 8m retest repro android12-5.4 report log
2023/10/11 21:46 25m retest repro android12-5.4 report log
2023/08/02 21:26 14m retest repro android12-5.4 report log

Sample crash report:
 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290
 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 ffff8881dbe83000 by task syz-executor351/362

CPU: 0 PID: 362 Comm: syz-executor351 Not tainted 5.4.233-syzkaller-00003-gf423d52eea72 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
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+0x779/0x1390 fs/f2fs/node.c:1117
 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+0xbaf/0xe40 fs/attr.c:338
 do_truncate+0x1ed/0x2d0 fs/open.c:64
 handle_truncate fs/namei.c:3083 [inline]
 do_last fs/namei.c:3501 [inline]
 path_openat+0x2de2/0x3480 fs/namei.c:3614
 do_filp_open+0x20b/0x450 fs/namei.c:3644
 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 151:
 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:1079 [inline]
 alloc_skb_with_frags+0x92/0x550 net/core/skbuff.c:5811
 sock_alloc_send_pskb+0x831/0x950 net/core/sock.c:2261
 unix_dgram_sendmsg+0x6fa/0x1ff0 net/unix/af_unix.c:1713
 sock_sendmsg_nosec net/socket.c:638 [inline]
 sock_sendmsg net/socket.c:658 [inline]
 __sys_sendto+0x4f3/0x6c0 net/socket.c:1942
 __do_sys_sendto net/socket.c:1954 [inline]
 __se_sys_sendto net/socket.c:1950 [inline]
 __x64_sys_sendto+0xda/0xf0 net/socket.c:1950
 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x5c/0xc1

Freed by task 144:
 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
 skb_free_datagram+0x24/0xe0 net/core/datagram.c:329
 unix_dgram_recvmsg+0xbeb/0x1120 net/unix/af_unix.c:2216
 sock_recvmsg_nosec net/socket.c:872 [inline]
 sock_recvmsg net/socket.c:890 [inline]
 sock_read_iter+0x34e/0x430 net/socket.c:968
 call_read_iter include/linux/fs.h:1975 [inline]
 new_sync_read fs/read_write.c:414 [inline]
 __vfs_read+0x5cd/0x730 fs/read_write.c:427
 vfs_read+0x148/0x360 fs/read_write.c:461
 ksys_read+0x199/0x2c0 fs/read_write.c:587
 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x5c/0xc1

The buggy address belongs to the object at ffff8881dbe83000
 which belongs to the cache skbuff_head_cache of size 240
The buggy address is located 0 bytes inside of
 240-byte region [ffff8881dbe83000, ffff8881dbe830f0)
The buggy address belongs to the page:
page:ffffea00076fa0c0 refcount:1 mapcount:0 mapping:ffff8881f1cd8500 index:0x0
flags: 0x8000000000000200(slab)
raw: 8000000000000200 dead000000000100 dead000000000122 ffff8881f1cd8500
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 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY)
 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:1079 [inline]
 alloc_skb_with_frags+0x92/0x550 net/core/skbuff.c:5811
 sock_alloc_send_pskb+0x831/0x950 net/core/sock.c:2261
 unix_dgram_sendmsg+0x6fa/0x1ff0 net/unix/af_unix.c:1713
 sock_sendmsg_nosec net/socket.c:638 [inline]
 sock_sendmsg net/socket.c:658 [inline]
 __sys_sendto+0x4f3/0x6c0 net/socket.c:1942
 __do_sys_sendto net/socket.c:1954 [inline]
 __se_sys_sendto net/socket.c:1950 [inline]
 __x64_sys_sendto+0xda/0xf0 net/socket.c:1950
 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x5c/0xc1
page_owner free stack trace missing

Memory state around the buggy address:
 ffff8881dbe82f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff8881dbe82f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff8881dbe83000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                   ^
 ffff8881dbe83080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc
 ffff8881dbe83100: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb
==================================================================
F2FS-fs (loop0): access invalid blkaddr:3689236480
CPU: 0 PID: 362 Comm: syz-executor351 Tainted: G    B             5.4.233-syzkaller-00003-gf423d52eea72 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
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+0x779/0x1390 fs/f2fs/node.c:1117
 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+0xbaf/0xe40 fs/attr.c:338
 do_truncate+0x1ed/0x2d0 fs/open.c:64
 handle_truncate fs/namei.c:3083 [inline]
 do_last fs/namei.c:3501 [inline]
 path_openat+0x2de2/0x3480 fs/namei.c:3614
 do_filp_open+0x20b/0x450 fs/namei.c:3644
 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: 362 Comm: syz-executor351 Tainted: G    B             5.4.233-syzkaller-00003-gf423d52eea72 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
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+0x779/0x1390 fs/f2fs/node.c:1117
 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+0xbaf/0xe40 fs/attr.c:338
 do_truncate+0x1ed/0x2d0 fs/open.c:64
 handle_truncate fs/namei.c:3083 [inline]
 do_last fs/namei.c:3501 [inline]
 path_openat+0x2de2/0x3480 fs/namei.c:3614
 do_filp_open+0x20b/0x450 fs/namei.c:3644
 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:3992286976
CPU: 0 PID: 362 Comm: syz-executor351 Tainted: G    B             5.4.233-syzkaller-00003-gf423d52eea72 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
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+0x779/0x1390 fs/f2fs/node.c:1117
 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+0xbaf/0xe40 fs/attr.c:338
 do_truncate+0x1ed/0x2d0 fs/open.c:64
 handle_truncate fs/namei.c:3083 [inline]
 do_last fs/namei.c:3501 [inline]
 path_openat+0x2de2/0x3480 fs/namei.c:3614
 do_filp_open+0x20b/0x450 fs/namei.c:3644
 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: 362 Comm: syz-executor351 Tainted: G    B             5.4.233-syzkaller-00003-gf423d52eea72 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
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+0x779/0x1390 fs/f2fs/node.c:1117
 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+0xbaf/0xe40 fs/attr.c:338
 do_truncate+0x1ed/0x2d0 fs/open.c:64
 handle_truncate fs/namei.c:3083 [inline]
 do_last fs/namei.c:3501 [inline]
 path_openat+0x2de2/0x3480 fs/namei.c:3614
 do_filp_open+0x20b/0x450 fs/namei.c:3644
 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:80
CPU: 0 PID: 362 Comm: syz-executor351 Tainted: G    B             5.4.233-syzkaller-00003-gf423d52eea72 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
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+0x779/0x1390 fs/f2fs/node.c:1117
 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+0xbaf/0xe40 fs/attr.c:338
 do_truncate+0x1ed/0x2d0 fs/open.c:64
 handle_truncate fs/namei.c:3083 [inline]
 do_last fs/namei.c:3501 [inline]
 path_openat+0x2de2/0x3480 fs/namei.c:3614
 do_filp_open+0x20b/0x450 fs/namei.c:3644
 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:2211372016
CPU: 0 PID: 362 Comm: syz-executor351 Tainted: G    B             5.4.233-syzkaller-00003-gf423d52eea72 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
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+0x779/0x1390 fs/f2fs/node.c:1117
 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+0xbaf/0xe40 fs/attr.c:338
 do_truncate+0x1ed/0x2d0 fs/open.c:64
 handle_truncate fs/namei.c:3083 [inline]
 do_last fs/namei.c:3501 [inline]
 path_openat+0x2de2/0x3480 fs/namei.c:3614
 do_filp_open+0x20b/0x450 fs/namei.c:3644
 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:90
CPU: 0 PID: 362 Comm: syz-executor351 Tainted: G    B             5.4.233-syzkaller-00003-gf423d52eea72 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
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+0x779/0x1390 fs/f2fs/node.c:1117
 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+0xbaf/0xe40 fs/attr.c:338
 do_truncate+0x1ed/0x2d0 fs/open.c:64
 handle_truncate fs/namei.c:3083 [inline]
 do_last fs/namei.c:3501 [inline]
 path_openat+0x2de2/0x3480 fs/namei.c:3614
 do_filp_open+0x20b/0x450 fs/namei.c:3644
 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:4294901760
CPU: 0 PID: 362 Comm: syz-executor351 Tainted: G    B             5.4.233-syzkaller-00003-gf423d52eea72 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
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+0x779/0x1390 fs/f2fs/node.c:1117
 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+0xbaf/0xe40 fs/attr.c:338
 do_truncate+0x1ed/0x2d0 fs/open.c:64
 handle_truncate fs/namei.c:3083 [inline]
 do_last fs/namei.c:3501 [inline]
 path_openat+0x2de2/0x3480 fs/namei.c:3614
 do_filp_open+0x20b/0x450 fs/namei.c:3644
 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:4294901760
CPU: 0 PID: 362 Comm: syz-executor351 Tainted: G    B             5.4.233-syzkaller-00003-gf423d52eea72 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
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+0x779/0x1390 fs/f2fs/node.c:1117
 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+0xbaf/0xe40 fs/attr.c:338
 do_truncate+0x1ed/0x2d0 fs/open.c:64
 handle_truncate fs/namei.c:3083 [inline]
 do_last fs/namei.c:3501 [inline]
 path_openat+0x2de2/0x3480 fs/namei.c:3614
 do_filp_open+0x20b/0x450 fs/namei.c:3644
 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:90
CPU: 0 PID: 362 Comm: syz-executor351 Tainted: G    B             5.4.233-syzkaller-00003-gf423d52eea72 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
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+0x779/0x1390 fs/f2fs/node.c:1117
 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+0xbaf/0xe40 fs/attr.c:338
 do_truncate+0x1ed/0x2d0 fs/open.c:64
 handle_truncate fs/namei.c:3083 [inline]
 do_last fs/namei.c:3501 [inline]
 path_openat+0x2de2/0x3480 fs/namei.c:3614
 do_filp_open+0x20b/0x450 fs/namei.c:3644
 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:128
CPU: 0 PID: 362 Comm: syz-executor351 Tainted: G    B             5.4.233-syzkaller-00003-gf423d52eea72 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
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+0x779/0x1390 fs/f2fs/node.c:1117
 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+0xbaf/0xe40 fs/attr.c:338
 do_truncate+0x1ed/0x2d0 fs/open.c:64
 handle_truncate fs/namei.c:3083 [inline]
 do_last fs/namei.c:3501 [inline]
 path_openat+0x2de2/0x3480 fs/namei.c:3614
 do_filp_open+0x20b/0x450 fs/namei.c:3644
 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:3689239552
CPU: 0 PID: 362 Comm: syz-executor351 Tainted: G    B             5.4.233-syzkaller-00003-gf423d52eea72 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
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+0x779/0x1390 fs/f2fs/node.c:1117
 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+0xbaf/0xe40 fs/attr.c:338
 do_truncate+0x1ed/0x2d0 fs/open.c:64
 handle_truncate fs/namei.c:3083 [inline]
 do_last fs/namei.c:3501 [inline]
 path_openat+0x2de2/0x3480 fs/namei.c:3614
 do_filp_open+0x20b/0x450 fs/namei.c:3644
 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: 362 Comm: syz-executor351 Tainted: G    B             5.4.233-syzkaller-00003-gf423d52eea72 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
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+0x779/0x1390 fs/f2fs/node.c:1117
 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+0xbaf/0xe40 fs/attr.c:338
 do_truncate+0x1ed/0x2d0 fs/open.c:64
 handle_truncate fs/namei.c:3083 [inline]
 do_last fs/namei.c:3501 [inline]
 path_openat+0x2de2/0x3480 fs/namei.c:3614
 do_filp_open+0x20b/0x450 fs/namei.c:3644
 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:3689239552
CPU: 0 PID: 362 Comm: syz-executor351 Tainted: G    B             5.4.233-syzkaller-00003-gf423d52eea72 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
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+0x779/0x1390 fs/f2fs/node.c:1117
 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+0xbaf/0xe40 fs/attr.c:338
 do_truncate+0x1ed/0x2d0 fs/open.c:64
 handle_truncate fs/namei.c:3083 [inline]
 do_last fs/namei.c:3501 [inline]
 path_openat+0x2de2/0x3480 fs/namei.c:3614
 do_filp_open+0x20b/0x450 fs/namei.c:3644
 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: 362 Comm: syz-executor351 Tainted: G    B             5.4.233-syzkaller-00003-gf423d52eea72 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
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+0x779/0x1390 fs/f2fs/node.c:1117
 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+0xbaf/0xe40 fs/attr.c:338
 do_truncate+0x1ed/0x2d0 fs/open.c:64
 handle_truncate fs/namei.c:3083 [inline]
 do_last fs/namei.c:3501 [inline]
 path_openat+0x2de2/0x3480 fs/namei.c:3614
 do_filp_open+0x20b/0x450 fs/namei.c:3644
 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:768
CPU: 0 PID: 362 Comm: syz-executor351 Tainted: G    B             5.4.233-syzkaller-00003-gf423d52eea72 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
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+0x779/0x1390 fs/f2fs/node.c:1117
 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+0xbaf/0xe40 fs/attr.c:338
 do_truncate+0x1ed/0x2d0 fs/open.c:64
 handle_truncate fs/namei.c:3083 [inline]
 do_last fs/namei.c:3501 [inline]
 path_openat+0x2de2/0x3480 fs/namei.c:3614
 do_filp_open+0x20b/0x450 fs/namei.c:3644
 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: 0 PID: 362 Comm: syz-executor351 Tainted: G    B             5.4.233-syzkaller-00003-gf423d52eea72 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
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+0x779/0x1390 fs/f2fs/node.c:1117
 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+0xbaf/0xe40 fs/attr.c:338
 do_truncate+0x1ed/0x2d0 fs/open.c:64
 handle_truncate fs/namei.c:3083 [inline]
 do_last fs/namei.c:3501 [inline]
 path_openat+0x2de2/0x3480 fs/namei.c:3614
 do_filp_open+0x20b/0x450 fs/namei.c:3644
 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:151
CPU: 0 PID: 362 Comm: syz-executor351 Tainted: G    B             5.4.233-syzkaller-00003-gf423d52eea72 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
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+0x779/0x1390 fs/f2fs/node.c:1117
 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+0xbaf/0xe40 fs/attr.c:338
 do_truncate+0x1ed/0x2d0 fs/open.c:64
 handle_truncate fs/namei.c:3083 [inline]
 do_last fs/namei.c:3501 [inline]
 path_openat+0x2de2/0x3480 fs/namei.c:3614
 do_filp_open+0x20b/0x450 fs/namei.c:3644
 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:2894070012
CPU: 0 PID: 362 Comm: syz-executor351 Tainted: G    B             5.4.233-syzkaller-00003-gf423d52eea72 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
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+0x779/0x1390 fs/f2fs/node.c:1117
 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+0xbaf/0xe40 fs/attr.c:338
 do_truncate+0x1ed/0x2d0 fs/open.c:64
 handle_truncate fs/namei.c:3083 [inline]
 do_last fs/namei.c:3501 [inline]
 path_openat+0x2de2/0x3480 fs/namei.c:3614
 do_filp_open+0x20b/0x450 fs/namei.c:3644
 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:144
CPU: 0 PID: 362 Comm: syz-executor351 Tainted: G    B             5.4.233-syzkaller-00003-gf423d52eea72 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
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+0x779/0x1390 fs/f2fs/node.c:1117
 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+0xbaf/0xe40 fs/attr.c:338
 do_truncate+0x1ed/0x2d0 fs/open.c:64
 handle_truncate fs/namei.c:3083 [inline]
 do_last fs/namei.c:3501 [inline]
 path_openat+0x2de2/0x3480 fs/namei.c:3614
 do_filp_open+0x20b/0x450 fs/namei.c:3644
 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:2977956092
CPU: 0 PID: 362 Comm: syz-executor351 Tainted: G    B             5.4.233-syzkaller-00003-gf423d52eea72 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
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+0x779/0x1390 fs/f2fs/node.c:1117
 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+0xbaf/0xe40 fs/attr.c:338
 do_truncate+0x1ed/0x2d0 fs/open.c:64
 handle_truncate fs/namei.c:3083 [inline]
 do_last fs/namei.c:3501 [inline]
 path_openat+0x2de2/0x3480 fs/namei.c:3614
 do_filp_open+0x20b/0x450 fs/namei.c:3644
 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:3689239552
CPU: 0 PID: 362 Comm: syz-executor351 Tainted: G    B             5.4.233-syzkaller-00003-gf423d52eea72 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
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+0x779/0x1390 fs/f2fs/node.c:1117
 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+0xbaf/0xe40 fs/attr.c:338
 do_truncate+0x1ed/0x2d0 fs/open.c:64
 handle_truncate fs/namei.c:3083 [inline]
 do_last fs/namei.c:3501 [inline]
 path_openat+0x2de2/0x3480 fs/namei.c:3614
 do_filp_open+0x20b/0x450 fs/namei.c:3644
 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: 362 Comm: syz-executor351 Tainted: G    B             5.4.233-syzkaller-00003-gf423d52eea72 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
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+0x779/0x1390 fs/f2fs/node.c:1117
 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+0xbaf/0xe40 fs/attr.c:338
 do_truncate+0x1ed/0x2d0 fs/open.c:64
 handle_truncate fs/namei.c:3083 [inline]
 do_last fs/namei.c:3501 [inline]
 path_openat+0x2de2/0x3480 fs/namei.c:3614
 do_filp_open+0x20b/0x450 fs/namei.c:3644
 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): Inconsistent i_blocks, ino:8, iblocks:0, sectors:24
F2FS-fs (loop0): dec_valid_node_count: inconsistent i_blocks, ino:8, iblocks:0

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/05/12 11:35 android12-5.4 f423d52eea72 adb9a3cd .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-4-kasan KASAN: use-after-free Read in f2fs_truncate_data_blocks_range
2023/05/12 10:52 android12-5.4 f423d52eea72 adb9a3cd .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: use-after-free Read in f2fs_truncate_data_blocks_range
2023/05/24 21:10 android12-5.4 3ca47ce937f0 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan KASAN: slab-out-of-bounds Read in f2fs_truncate_data_blocks_range
* Struck through repros no longer work on HEAD.