syzbot


KASAN: use-after-free Read in f2fs_truncate_data_blocks_range

Status: upstream: reported C repro on 2023/05/12 18:24
Reported-by: syzbot+a25d487235b67769a5f7@syzkaller.appspotmail.com
First crash: 558d, last: 33d
Cause bisection: failed (error log, bisect log)
  
Fix bisection: failed (error log, bisect log)
  
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-54 KASAN: use-after-free Read in f2fs_truncate_data_blocks_range C 3 55d 559d 0/2 upstream: reported C repro on 2023/05/12 11:37
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 (2)
Created Duration User Patch Repo Result
2024/10/19 11:00 52m retest repro android13-5.10-lts report log
2024/08/08 21:22 5m retest repro android13-5.10-lts report log
Fix bisection attempts (11)
Created Duration User Patch Repo Result
2024/05/30 14:01 6m bisect fix android13-5.10-lts error job log
2024/04/27 20:53 2h03m bisect fix android13-5.10-lts OK (0) job log log
2024/03/27 10:07 1h12m bisect fix android13-5.10-lts OK (0) job log log
2024/02/26 04:48 37m bisect fix android13-5.10-lts OK (0) job log log
2024/01/20 13:22 43m bisect fix android13-5.10-lts OK (0) job log log
2023/12/20 22:00 41m bisect fix android13-5.10-lts OK (0) job log log
2023/11/20 15:28 1h08m bisect fix android13-5.10-lts OK (0) job log log
2023/10/21 04:29 40m bisect fix android13-5.10-lts OK (0) job log log
2023/09/20 01:23 51m bisect fix android13-5.10-lts OK (0) job log log
2023/07/16 17:03 1h02m bisect fix android13-5.10-lts OK (0) job log log
2023/06/12 02:23 15m bisect fix android13-5.10-lts OK (0) job log log

Sample crash report:
RSP: 002b:00007fffa420ffa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007fffa42100c0 RCX: 00007f480c663e69
RDX: 00007f480c61a393 RSI: 00000000000001f8 RDI: 00000000200000c0
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000140
R10: 00007fffa420fe70 R11: 0000000000000246 R12: 00007fffa420ffe0
R13: 00007fffa42100c0 R14: 431bde82d7b634db R15: 00007fffa420ffc0
==================================================================
BUG: KASAN: use-after-free in f2fs_truncate_data_blocks_range+0x7fb/0xeb0 fs/f2fs/file.c:581
Read of size 4 at addr ffff888122c79000 by task syz-executor335/288

CPU: 0 PID: 288 Comm: syz-executor335 Not tainted 5.10.178-syzkaller-00127-g43c801dc3325 #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_lvl+0x1e2/0x24b lib/dump_stack.c:118
 print_address_description+0x81/0x3b0 mm/kasan/report.c:248
 __kasan_report mm/kasan/report.c:435 [inline]
 kasan_report+0x179/0x1c0 mm/kasan/report.c:452
 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308
 f2fs_truncate_data_blocks_range+0x7fb/0xeb0 fs/f2fs/file.c:581
 f2fs_truncate_data_blocks+0xfa/0x140 fs/f2fs/file.c:638
 truncate_dnode fs/f2fs/node.c:943 [inline]
 f2fs_truncate_inode_blocks+0x9af/0x11f0 fs/f2fs/node.c:1153
 f2fs_do_truncate_blocks+0x753/0xb80 fs/f2fs/file.c:727
 f2fs_truncate_blocks+0x114/0x310 fs/f2fs/file.c:755
 f2fs_truncate+0x1b9/0x3c0 fs/f2fs/file.c:807
 f2fs_setattr+0x9e3/0x10f0 fs/f2fs/file.c:971
 notify_change+0xb49/0xde0 fs/attr.c:394
 do_truncate+0x1ed/0x2d0 fs/open.c:65
 handle_truncate fs/namei.c:3060 [inline]
 do_open fs/namei.c:3401 [inline]
 path_openat+0x298d/0x3000 fs/namei.c:3515
 do_filp_open+0x21c/0x460 fs/namei.c:3542
 do_sys_openat2+0x13f/0x6e0 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+0x11f/0x160 fs/open.c:1301
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7f480c663e69
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 d1 17 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffa420ffa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007fffa42100c0 RCX: 00007f480c663e69
RDX: 00007f480c61a393 RSI: 00000000000001f8 RDI: 00000000200000c0
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000140
R10: 00007fffa420fe70 R11: 0000000000000246 R12: 00007fffa420ffe0
R13: 00007fffa42100c0 R14: 431bde82d7b634db R15: 00007fffa420ffc0

Allocated by task 81:
 kasan_save_stack mm/kasan/common.c:38 [inline]
 kasan_set_track mm/kasan/common.c:45 [inline]
 set_alloc_info mm/kasan/common.c:430 [inline]
 __kasan_slab_alloc+0xb1/0xe0 mm/kasan/common.c:463
 kasan_slab_alloc include/linux/kasan.h:244 [inline]
 slab_post_alloc_hook+0x61/0x2f0 mm/slab.h:583
 slab_alloc_node mm/slub.c:2947 [inline]
 slab_alloc mm/slub.c:2955 [inline]
 kmem_cache_alloc+0x168/0x2e0 mm/slub.c:2960
 kmem_cache_alloc_node include/linux/slab.h:423 [inline]
 __alloc_skb+0x80/0x510 net/core/skbuff.c:199
 alloc_skb include/linux/skbuff.h:1125 [inline]
 alloc_skb_with_frags+0xa1/0x570 net/core/skbuff.c:5922
 sock_alloc_send_pskb+0x915/0xa50 net/core/sock.c:2354
 unix_dgram_sendmsg+0x700/0x1f90 net/unix/af_unix.c:1740
 sock_sendmsg_nosec net/socket.c:652 [inline]
 sock_sendmsg net/socket.c:672 [inline]
 __sys_sendto+0x545/0x700 net/socket.c:1987
 __do_sys_sendto net/socket.c:1999 [inline]
 __se_sys_sendto net/socket.c:1995 [inline]
 __x64_sys_sendto+0xe5/0x100 net/socket.c:1995
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xc6

Freed by task 74:
 kasan_save_stack mm/kasan/common.c:38 [inline]
 kasan_set_track+0x4b/0x70 mm/kasan/common.c:45
 kasan_set_free_info+0x23/0x40 mm/kasan/generic.c:370
 ____kasan_slab_free+0x121/0x160 mm/kasan/common.c:362
 __kasan_slab_free+0x11/0x20 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+0xc0/0x190 mm/slub.c:1621
 slab_free mm/slub.c:3203 [inline]
 kmem_cache_free+0xa9/0x1e0 mm/slub.c:3219
 kfree_skbmem+0x104/0x170
 __kfree_skb net/core/skbuff.c:694 [inline]
 consume_skb+0xb4/0x250 net/core/skbuff.c:850
 skb_free_datagram+0x28/0xe0 net/core/datagram.c:325
 unix_dgram_recvmsg+0xc97/0x1240 net/unix/af_unix.c:2249
 sock_recvmsg_nosec net/socket.c:886 [inline]
 sock_recvmsg net/socket.c:904 [inline]
 sock_read_iter+0x353/0x480 net/socket.c:977
 call_read_iter include/linux/fs.h:1970 [inline]
 new_sync_read fs/read_write.c:415 [inline]
 vfs_read+0x999/0xbb0 fs/read_write.c:496
 ksys_read+0x199/0x2c0 fs/read_write.c:634
 __do_sys_read fs/read_write.c:644 [inline]
 __se_sys_read fs/read_write.c:642 [inline]
 __x64_sys_read+0x7b/0x90 fs/read_write.c:642
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xc6

The buggy address belongs to the object at ffff888122c79000
 which belongs to the cache skbuff_head_cache of size 248
The buggy address is located 0 bytes inside of
 248-byte region [ffff888122c79000, ffff888122c790f8)
The buggy address belongs to the page:
page:ffffea00048b1e40 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x122c79
flags: 0x4000000000000200(slab)
raw: 4000000000000200 dead000000000100 dead000000000122 ffff888107faaa80
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), pid 81, ts 24257857887, free_ts 0
 set_page_owner include/linux/page_owner.h:35 [inline]
 post_alloc_hook mm/page_alloc.c:2455 [inline]
 prep_new_page+0x166/0x180 mm/page_alloc.c:2461
 get_page_from_freelist+0x2d8c/0x2f30 mm/page_alloc.c:4253
 __alloc_pages_nodemask+0x435/0xaf0 mm/page_alloc.c:5345
 allocate_slab mm/slub.c:1808 [inline]
 new_slab+0x80/0x400 mm/slub.c:1869
 new_slab_objects mm/slub.c:2627 [inline]
 ___slab_alloc+0x302/0x4b0 mm/slub.c:2791
 __slab_alloc+0x63/0xa0 mm/slub.c:2831
 slab_alloc_node mm/slub.c:2913 [inline]
 slab_alloc mm/slub.c:2955 [inline]
 kmem_cache_alloc+0x1b9/0x2e0 mm/slub.c:2960
 kmem_cache_alloc_node include/linux/slab.h:423 [inline]
 __alloc_skb+0x80/0x510 net/core/skbuff.c:199
 alloc_skb include/linux/skbuff.h:1125 [inline]
 alloc_skb_with_frags+0xa1/0x570 net/core/skbuff.c:5922
 sock_alloc_send_pskb+0x915/0xa50 net/core/sock.c:2354
 unix_dgram_sendmsg+0x700/0x1f90 net/unix/af_unix.c:1740
 sock_sendmsg_nosec net/socket.c:652 [inline]
 sock_sendmsg net/socket.c:672 [inline]
 __sys_sendto+0x545/0x700 net/socket.c:1987
 __do_sys_sendto net/socket.c:1999 [inline]
 __se_sys_sendto net/socket.c:1995 [inline]
 __x64_sys_sendto+0xe5/0x100 net/socket.c:1995
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
page_owner free stack trace missing

Memory state around the buggy address:
 ffff888122c78f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff888122c78f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff888122c79000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                   ^
 ffff888122c79080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc
 ffff888122c79100: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb
==================================================================
F2FS-fs (loop0): access invalid blkaddr:584839168
CPU: 0 PID: 288 Comm: syz-executor335 Tainted: G    B             5.10.178-syzkaller-00127-g43c801dc3325 #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_lvl+0x1e2/0x24b lib/dump_stack.c:118
 dump_stack+0x15/0x17 lib/dump_stack.c:135
 f2fs_is_valid_blkaddr+0xc87/0x1370 fs/f2fs/checkpoint.c:205
 f2fs_truncate_data_blocks_range+0x659/0xeb0 fs/f2fs/file.c:599
 f2fs_truncate_data_blocks+0xfa/0x140 fs/f2fs/file.c:638
 truncate_dnode fs/f2fs/node.c:943 [inline]
 f2fs_truncate_inode_blocks+0x9af/0x11f0 fs/f2fs/node.c:1153
 f2fs_do_truncate_blocks+0x753/0xb80 fs/f2fs/file.c:727
 f2fs_truncate_blocks+0x114/0x310 fs/f2fs/file.c:755
 f2fs_truncate+0x1b9/0x3c0 fs/f2fs/file.c:807
 f2fs_setattr+0x9e3/0x10f0 fs/f2fs/file.c:971
 notify_change+0xb49/0xde0 fs/attr.c:394
 do_truncate+0x1ed/0x2d0 fs/open.c:65
 handle_truncate fs/namei.c:3060 [inline]
 do_open fs/namei.c:3401 [inline]
 path_openat+0x298d/0x3000 fs/namei.c:3515
 do_filp_open+0x21c/0x460 fs/namei.c:3542
 do_sys_openat2+0x13f/0x6e0 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+0x11f/0x160 fs/open.c:1301
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7f480c663e69
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 d1 17 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffa420ffa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007fffa42100c0 RCX: 00007f480c663e69
RDX: 00007f480c61a393 RSI: 00000000000001f8 RDI: 00000000200000c0
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000140
R10: 00007fffa420fe70 R11: 0000000000000246 R12: 00007fffa420ffe0
R13: 00007fffa42100c0 R14: 431bde82d7b634db R15: 00007fffa420ffc0
F2FS-fs (loop0): access invalid blkaddr:4294936705
CPU: 0 PID: 288 Comm: syz-executor335 Tainted: G    B             5.10.178-syzkaller-00127-g43c801dc3325 #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_lvl+0x1e2/0x24b lib/dump_stack.c:118
 dump_stack+0x15/0x17 lib/dump_stack.c:135
 f2fs_is_valid_blkaddr+0xc87/0x1370 fs/f2fs/checkpoint.c:205
 f2fs_truncate_data_blocks_range+0x659/0xeb0 fs/f2fs/file.c:599
 f2fs_truncate_data_blocks+0xfa/0x140 fs/f2fs/file.c:638
 truncate_dnode fs/f2fs/node.c:943 [inline]
 f2fs_truncate_inode_blocks+0x9af/0x11f0 fs/f2fs/node.c:1153
 f2fs_do_truncate_blocks+0x753/0xb80 fs/f2fs/file.c:727
 f2fs_truncate_blocks+0x114/0x310 fs/f2fs/file.c:755
 f2fs_truncate+0x1b9/0x3c0 fs/f2fs/file.c:807
 f2fs_setattr+0x9e3/0x10f0 fs/f2fs/file.c:971
 notify_change+0xb49/0xde0 fs/attr.c:394
 do_truncate+0x1ed/0x2d0 fs/open.c:65
 handle_truncate fs/namei.c:3060 [inline]
 do_open fs/namei.c:3401 [inline]
 path_openat+0x298d/0x3000 fs/namei.c:3515
 do_filp_open+0x21c/0x460 fs/namei.c:3542
 do_sys_openat2+0x13f/0x6e0 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+0x11f/0x160 fs/open.c:1301
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7f480c663e69
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 d1 17 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffa420ffa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007fffa42100c0 RCX: 00007f480c663e69
RDX: 00007f480c61a393 RSI: 00000000000001f8 RDI: 00000000200000c0
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000140
R10: 00007fffa420fe70 R11: 0000000000000246 R12: 00007fffa420ffe0
R13: 00007fffa42100c0 R14: 431bde82d7b634db R15: 00007fffa420ffc0
F2FS-fs (loop0): access invalid blkaddr:74
CPU: 0 PID: 288 Comm: syz-executor335 Tainted: G    B             5.10.178-syzkaller-00127-g43c801dc3325 #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_lvl+0x1e2/0x24b lib/dump_stack.c:118
 dump_stack+0x15/0x17 lib/dump_stack.c:135
 f2fs_is_valid_blkaddr+0xc87/0x1370 fs/f2fs/checkpoint.c:205
 f2fs_truncate_data_blocks_range+0x659/0xeb0 fs/f2fs/file.c:599
 f2fs_truncate_data_blocks+0xfa/0x140 fs/f2fs/file.c:638
 truncate_dnode fs/f2fs/node.c:943 [inline]
 f2fs_truncate_inode_blocks+0x9af/0x11f0 fs/f2fs/node.c:1153
 f2fs_do_truncate_blocks+0x753/0xb80 fs/f2fs/file.c:727
 f2fs_truncate_blocks+0x114/0x310 fs/f2fs/file.c:755
 f2fs_truncate+0x1b9/0x3c0 fs/f2fs/file.c:807
 f2fs_setattr+0x9e3/0x10f0 fs/f2fs/file.c:971
 notify_change+0xb49/0xde0 fs/attr.c:394
 do_truncate+0x1ed/0x2d0 fs/open.c:65
 handle_truncate fs/namei.c:3060 [inline]
 do_open fs/namei.c:3401 [inline]
 path_openat+0x298d/0x3000 fs/namei.c:3515
 do_filp_open+0x21c/0x460 fs/namei.c:3542
 do_sys_openat2+0x13f/0x6e0 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+0x11f/0x160 fs/open.c:1301
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7f480c663e69
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 d1 17 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffa420ffa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007fffa42100c0 RCX: 00007f480c663e69
RDX: 00007f480c61a393 RSI: 00000000000001f8 RDI: 00000000200000c0
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000140
R10: 00007fffa420fe70 R11: 0000000000000246 R12: 00007fffa420ffe0
R13: 00007fffa42100c0 R14: 431bde82d7b634db R15: 00007fffa420ffc0
F2FS-fs (loop0): access invalid blkaddr:2598371539
CPU: 0 PID: 288 Comm: syz-executor335 Tainted: G    B             5.10.178-syzkaller-00127-g43c801dc3325 #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_lvl+0x1e2/0x24b lib/dump_stack.c:118
 dump_stack+0x15/0x17 lib/dump_stack.c:135
 f2fs_is_valid_blkaddr+0xc87/0x1370 fs/f2fs/checkpoint.c:205
 f2fs_truncate_data_blocks_range+0x659/0xeb0 fs/f2fs/file.c:599
 f2fs_truncate_data_blocks+0xfa/0x140 fs/f2fs/file.c:638
 truncate_dnode fs/f2fs/node.c:943 [inline]
 f2fs_truncate_inode_blocks+0x9af/0x11f0 fs/f2fs/node.c:1153
 f2fs_do_truncate_blocks+0x753/0xb80 fs/f2fs/file.c:727
 f2fs_truncate_blocks+0x114/0x310 fs/f2fs/file.c:755
 f2fs_truncate+0x1b9/0x3c0 fs/f2fs/file.c:807
 f2fs_setattr+0x9e3/0x10f0 fs/f2fs/file.c:971
 notify_change+0xb49/0xde0 fs/attr.c:394
 do_truncate+0x1ed/0x2d0 fs/open.c:65
 handle_truncate fs/namei.c:3060 [inline]
 do_open fs/namei.c:3401 [inline]
 path_openat+0x298d/0x3000 fs/namei.c:3515
 do_filp_open+0x21c/0x460 fs/namei.c:3542
 do_sys_openat2+0x13f/0x6e0 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+0x11f/0x160 fs/open.c:1301
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7f480c663e69
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 d1 17 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffa420ffa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007fffa42100c0 RCX: 00007f480c663e69
RDX: 00007f480c61a393 RSI: 00000000000001f8 RDI: 00000000200000c0
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000140
R10: 00007fffa420fe70 R11: 0000000000000246 R12: 00007fffa420ffe0
R13: 00007fffa42100c0 R14: 431bde82d7b634db R15: 00007fffa420ffc0
F2FS-fs (loop0): access invalid blkaddr:204665344
CPU: 0 PID: 288 Comm: syz-executor335 Tainted: G    B             5.10.178-syzkaller-00127-g43c801dc3325 #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_lvl+0x1e2/0x24b lib/dump_stack.c:118
 dump_stack+0x15/0x17 lib/dump_stack.c:135
 f2fs_is_valid_blkaddr+0xc87/0x1370 fs/f2fs/checkpoint.c:205
 f2fs_truncate_data_blocks_range+0x659/0xeb0 fs/f2fs/file.c:599
 f2fs_truncate_data_blocks+0xfa/0x140 fs/f2fs/file.c:638
 truncate_dnode fs/f2fs/node.c:943 [inline]
 f2fs_truncate_inode_blocks+0x9af/0x11f0 fs/f2fs/node.c:1153
 f2fs_do_truncate_blocks+0x753/0xb80 fs/f2fs/file.c:727
 f2fs_truncate_blocks+0x114/0x310 fs/f2fs/file.c:755
 f2fs_truncate+0x1b9/0x3c0 fs/f2fs/file.c:807
 f2fs_setattr+0x9e3/0x10f0 fs/f2fs/file.c:971
 notify_change+0xb49/0xde0 fs/attr.c:394
 do_truncate+0x1ed/0x2d0 fs/open.c:65
 handle_truncate fs/namei.c:3060 [inline]
 do_open fs/namei.c:3401 [inline]
 path_openat+0x298d/0x3000 fs/namei.c:3515
 do_filp_open+0x21c/0x460 fs/namei.c:3542
 do_sys_openat2+0x13f/0x6e0 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+0x11f/0x160 fs/open.c:1301
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7f480c663e69
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 d1 17 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffa420ffa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007fffa42100c0 RCX: 00007f480c663e69
RDX: 00007f480c61a393 RSI: 00000000000001f8 RDI: 00000000200000c0
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000140
R10: 00007fffa420fe70 R11: 0000000000000246 R12: 00007fffa420ffe0
R13: 00007fffa42100c0 R14: 431bde82d7b634db R15: 00007fffa420ffc0
F2FS-fs (loop0): access invalid blkaddr:4294936705
CPU: 0 PID: 288 Comm: syz-executor335 Tainted: G    B             5.10.178-syzkaller-00127-g43c801dc3325 #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_lvl+0x1e2/0x24b lib/dump_stack.c:118
 dump_stack+0x15/0x17 lib/dump_stack.c:135
 f2fs_is_valid_blkaddr+0xc87/0x1370 fs/f2fs/checkpoint.c:205
 f2fs_truncate_data_blocks_range+0x659/0xeb0 fs/f2fs/file.c:599
 f2fs_truncate_data_blocks+0xfa/0x140 fs/f2fs/file.c:638
 truncate_dnode fs/f2fs/node.c:943 [inline]
 f2fs_truncate_inode_blocks+0x9af/0x11f0 fs/f2fs/node.c:1153
 f2fs_do_truncate_blocks+0x753/0xb80 fs/f2fs/file.c:727
 f2fs_truncate_blocks+0x114/0x310 fs/f2fs/file.c:755
 f2fs_truncate+0x1b9/0x3c0 fs/f2fs/file.c:807
 f2fs_setattr+0x9e3/0x10f0 fs/f2fs/file.c:971
 notify_change+0xb49/0xde0 fs/attr.c:394
 do_truncate+0x1ed/0x2d0 fs/open.c:65
 handle_truncate fs/namei.c:3060 [inline]
 do_open fs/namei.c:3401 [inline]
 path_openat+0x298d/0x3000 fs/namei.c:3515
 do_filp_open+0x21c/0x460 fs/namei.c:3542
 do_sys_openat2+0x13f/0x6e0 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+0x11f/0x160 fs/open.c:1301
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7f480c663e69
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 d1 17 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffa420ffa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007fffa42100c0 RCX: 00007f480c663e69
RDX: 00007f480c61a393 RSI: 00000000000001f8 RDI: 00000000200000c0
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000140
R10: 00007fffa420fe70 R11: 0000000000000246 R12: 00007fffa420ffe0
R13: 00007fffa42100c0 R14: 431bde82d7b634db R15: 00007fffa420ffc0
F2FS-fs (loop0): access invalid blkaddr:74
CPU: 0 PID: 288 Comm: syz-executor335 Tainted: G    B             5.10.178-syzkaller-00127-g43c801dc3325 #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_lvl+0x1e2/0x24b lib/dump_stack.c:118
 dump_stack+0x15/0x17 lib/dump_stack.c:135
 f2fs_is_valid_blkaddr+0xc87/0x1370 fs/f2fs/checkpoint.c:205
 f2fs_truncate_data_blocks_range+0x659/0xeb0 fs/f2fs/file.c:599
 f2fs_truncate_data_blocks+0xfa/0x140 fs/f2fs/file.c:638
 truncate_dnode fs/f2fs/node.c:943 [inline]
 f2fs_truncate_inode_blocks+0x9af/0x11f0 fs/f2fs/node.c:1153
 f2fs_do_truncate_blocks+0x753/0xb80 fs/f2fs/file.c:727
 f2fs_truncate_blocks+0x114/0x310 fs/f2fs/file.c:755
 f2fs_truncate+0x1b9/0x3c0 fs/f2fs/file.c:807
 f2fs_setattr+0x9e3/0x10f0 fs/f2fs/file.c:971
 notify_change+0xb49/0xde0 fs/attr.c:394
 do_truncate+0x1ed/0x2d0 fs/open.c:65
 handle_truncate fs/namei.c:3060 [inline]
 do_open fs/namei.c:3401 [inline]
 path_openat+0x298d/0x3000 fs/namei.c:3515
 do_filp_open+0x21c/0x460 fs/namei.c:3542
 do_sys_openat2+0x13f/0x6e0 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+0x11f/0x160 fs/open.c:1301
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7f480c663e69
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 d1 17 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffa420ffa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007fffa42100c0 RCX: 00007f480c663e69
RDX: 00007f480c61a393 RSI: 00000000000001f8 RDI: 00000000200000c0
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000140
R10: 00007fffa420fe70 R11: 0000000000000246 R12: 00007fffa420ffe0
R13: 00007fffa42100c0 R14: 431bde82d7b634db R15: 00007fffa420ffc0
F2FS-fs (loop0): access invalid blkaddr:2216720016
CPU: 0 PID: 288 Comm: syz-executor335 Tainted: G    B             5.10.178-syzkaller-00127-g43c801dc3325 #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_lvl+0x1e2/0x24b lib/dump_stack.c:118
 dump_stack+0x15/0x17 lib/dump_stack.c:135
 f2fs_is_valid_blkaddr+0xc87/0x1370 fs/f2fs/checkpoint.c:205
 f2fs_truncate_data_blocks_range+0x659/0xeb0 fs/f2fs/file.c:599
 f2fs_truncate_data_blocks+0xfa/0x140 fs/f2fs/file.c:638
 truncate_dnode fs/f2fs/node.c:943 [inline]
 f2fs_truncate_inode_blocks+0x9af/0x11f0 fs/f2fs/node.c:1153
 f2fs_do_truncate_blocks+0x753/0xb80 fs/f2fs/file.c:727
 f2fs_truncate_blocks+0x114/0x310 fs/f2fs/file.c:755
 f2fs_truncate+0x1b9/0x3c0 fs/f2fs/file.c:807
 f2fs_setattr+0x9e3/0x10f0 fs/f2fs/file.c:971
 notify_change+0xb49/0xde0 fs/attr.c:394
 do_truncate+0x1ed/0x2d0 fs/open.c:65
 handle_truncate fs/namei.c:3060 [inline]
 do_open fs/namei.c:3401 [inline]
 path_openat+0x298d/0x3000 fs/namei.c:3515
 do_filp_open+0x21c/0x460 fs/namei.c:3542
 do_sys_openat2+0x13f/0x6e0 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+0x11f/0x160 fs/open.c:1301
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7f480c663e69
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 d1 17 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffa420ffa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007fffa42100c0 RCX: 00007f480c663e69
RDX: 00007f480c61a393 RSI: 00000000000001f8 RDI: 00000000200000c0
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000140
R10: 00007fffa420fe70 R11: 0000000000000246 R12: 00007fffa420ffe0
R13: 00007fffa42100c0 R14: 431bde82d7b634db R15: 00007fffa420ffc0
F2FS-fs (loop0): access invalid blkaddr:96
CPU: 0 PID: 288 Comm: syz-executor335 Tainted: G    B             5.10.178-syzkaller-00127-g43c801dc3325 #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_lvl+0x1e2/0x24b lib/dump_stack.c:118
 dump_stack+0x15/0x17 lib/dump_stack.c:135
 f2fs_is_valid_blkaddr+0xc87/0x1370 fs/f2fs/checkpoint.c:205
 f2fs_truncate_data_blocks_range+0x659/0xeb0 fs/f2fs/file.c:599
 f2fs_truncate_data_blocks+0xfa/0x140 fs/f2fs/file.c:638
 truncate_dnode fs/f2fs/node.c:943 [inline]
 f2fs_truncate_inode_blocks+0x9af/0x11f0 fs/f2fs/node.c:1153
 f2fs_do_truncate_blocks+0x753/0xb80 fs/f2fs/file.c:727
 f2fs_truncate_blocks+0x114/0x310 fs/f2fs/file.c:755
 f2fs_truncate+0x1b9/0x3c0 fs/f2fs/file.c:807
 f2fs_setattr+0x9e3/0x10f0 fs/f2fs/file.c:971
 notify_change+0xb49/0xde0 fs/attr.c:394
 do_truncate+0x1ed/0x2d0 fs/open.c:65
 handle_truncate fs/namei.c:3060 [inline]
 do_open fs/namei.c:3401 [inline]
 path_openat+0x298d/0x3000 fs/namei.c:3515
 do_filp_open+0x21c/0x460 fs/namei.c:3542
 do_sys_openat2+0x13f/0x6e0 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+0x11f/0x160 fs/open.c:1301
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7f480c663e69
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 d1 17 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffa420ffa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007fffa42100c0 RCX: 00007f480c663e69
RDX: 00007f480c61a393 RSI: 00000000000001f8 RDI: 00000000200000c0
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000140
R10: 00007fffa420fe70 R11: 0000000000000246 R12: 00007fffa420ffe0
R13: 00007fffa42100c0 R14: 431bde82d7b634db R15: 00007fffa420ffc0
F2FS-fs (loop0): access invalid blkaddr:4294901760
CPU: 0 PID: 288 Comm: syz-executor335 Tainted: G    B             5.10.178-syzkaller-00127-g43c801dc3325 #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_lvl+0x1e2/0x24b lib/dump_stack.c:118
 dump_stack+0x15/0x17 lib/dump_stack.c:135
 f2fs_is_valid_blkaddr+0xc87/0x1370 fs/f2fs/checkpoint.c:205
 f2fs_truncate_data_blocks_range+0x659/0xeb0 fs/f2fs/file.c:599
 f2fs_truncate_data_blocks+0xfa/0x140 fs/f2fs/file.c:638
 truncate_dnode fs/f2fs/node.c:943 [inline]
 f2fs_truncate_inode_blocks+0x9af/0x11f0 fs/f2fs/node.c:1153
 f2fs_do_truncate_blocks+0x753/0xb80 fs/f2fs/file.c:727
 f2fs_truncate_blocks+0x114/0x310 fs/f2fs/file.c:755
 f2fs_truncate+0x1b9/0x3c0 fs/f2fs/file.c:807
 f2fs_setattr+0x9e3/0x10f0 fs/f2fs/file.c:971
 notify_change+0xb49/0xde0 fs/attr.c:394
 do_truncate+0x1ed/0x2d0 fs/open.c:65
 handle_truncate fs/namei.c:3060 [inline]
 do_open fs/namei.c:3401 [inline]
 path_openat+0x298d/0x3000 fs/namei.c:3515
 do_filp_open+0x21c/0x460 fs/namei.c:3542
 do_sys_openat2+0x13f/0x6e0 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+0x11f/0x160 fs/open.c:1301
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7f480c663e69
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 d1 17 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffa420ffa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007fffa42100c0 RCX: 00007f480c663e69
RDX: 00007f480c61a393 RSI: 00000000000001f8 RDI: 00000000200000c0
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000140
R10: 00007fffa420fe70 R11: 0000000000000246 R12: 00007fffa420ffe0
R13: 00007fffa42100c0 R14: 431bde82d7b634db R15: 00007fffa420ffc0
F2FS-fs (loop0): access invalid blkaddr:4294901760
CPU: 0 PID: 288 Comm: syz-executor335 Tainted: G    B             5.10.178-syzkaller-00127-g43c801dc3325 #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_lvl+0x1e2/0x24b lib/dump_stack.c:118
 dump_stack+0x15/0x17 lib/dump_stack.c:135
 f2fs_is_valid_blkaddr+0xc87/0x1370 fs/f2fs/checkpoint.c:205
 f2fs_truncate_data_blocks_range+0x659/0xeb0 fs/f2fs/file.c:599
 f2fs_truncate_data_blocks+0xfa/0x140 fs/f2fs/file.c:638
 truncate_dnode fs/f2fs/node.c:943 [inline]
 f2fs_truncate_inode_blocks+0x9af/0x11f0 fs/f2fs/node.c:1153
 f2fs_do_truncate_blocks+0x753/0xb80 fs/f2fs/file.c:727
 f2fs_truncate_blocks+0x114/0x310 fs/f2fs/file.c:755
 f2fs_truncate+0x1b9/0x3c0 fs/f2fs/file.c:807
 f2fs_setattr+0x9e3/0x10f0 fs/f2fs/file.c:971
 notify_change+0xb49/0xde0 fs/attr.c:394
 do_truncate+0x1ed/0x2d0 fs/open.c:65
 handle_truncate fs/namei.c:3060 [inline]
 do_open fs/namei.c:3401 [inline]
 path_openat+0x298d/0x3000 fs/namei.c:3515
 do_filp_open+0x21c/0x460 fs/namei.c:3542
 do_sys_openat2+0x13f/0x6e0 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+0x11f/0x160 fs/open.c:1301
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7f480c663e69
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 d1 17 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffa420ffa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007fffa42100c0 RCX: 00007f480c663e69
RDX: 00007f480c61a393 RSI: 00000000000001f8 RDI: 00000000200000c0
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000140
R10: 00007fffa420fe70 R11: 0000000000000246 R12: 00007fffa420ffe0
R13: 00007fffa42100c0 R14: 431bde82d7b634db R15: 00007fffa420ffc0
F2FS-fs (loop0): access invalid blkaddr:96
CPU: 0 PID: 288 Comm: syz-executor335 Tainted: G    B             5.10.178-syzkaller-00127-g43c801dc3325 #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_lvl+0x1e2/0x24b lib/dump_stack.c:118
 dump_stack+0x15/0x17 lib/dump_stack.c:135
 f2fs_is_valid_blkaddr+0xc87/0x1370 fs/f2fs/checkpoint.c:205
 f2fs_truncate_data_blocks_range+0x659/0xeb0 fs/f2fs/file.c:599
 f2fs_truncate_data_blocks+0xfa/0x140 fs/f2fs/file.c:638
 truncate_dnode fs/f2fs/node.c:943 [inline]
 f2fs_truncate_inode_blocks+0x9af/0x11f0 fs/f2fs/node.c:1153
 f2fs_do_truncate_blocks+0x753/0xb80 fs/f2fs/file.c:727
 f2fs_truncate_blocks+0x114/0x310 fs/f2fs/file.c:755
 f2fs_truncate+0x1b9/0x3c0 fs/f2fs/file.c:807
 f2fs_setattr+0x9e3/0x10f0 fs/f2fs/file.c:971
 notify_change+0xb49/0xde0 fs/attr.c:394
 do_truncate+0x1ed/0x2d0 fs/open.c:65
 handle_truncate fs/namei.c:3060 [inline]
 do_open fs/namei.c:3401 [inline]
 path_openat+0x298d/0x3000 fs/namei.c:3515
 do_filp_open+0x21c/0x460 fs/namei.c:3542
 do_sys_openat2+0x13f/0x6e0 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+0x11f/0x160 fs/open.c:1301
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7f480c663e69
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 d1 17 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffa420ffa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007fffa42100c0 RCX: 00007f480c663e69
RDX: 00007f480c61a393 RSI: 00000000000001f8 RDI: 00000000200000c0
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000140
R10: 00007fffa420fe70 R11: 0000000000000246 R12: 00007fffa420ffe0
R13: 00007fffa42100c0 R14: 431bde82d7b634db R15: 00007fffa420ffc0
F2FS-fs (loop0): access invalid blkaddr:128
CPU: 0 PID: 288 Comm: syz-executor335 Tainted: G    B             5.10.178-syzkaller-00127-g43c801dc3325 #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_lvl+0x1e2/0x24b lib/dump_stack.c:118
 dump_stack+0x15/0x17 lib/dump_stack.c:135
 f2fs_is_valid_blkaddr+0xc87/0x1370 fs/f2fs/checkpoint.c:205
 f2fs_truncate_data_blocks_range+0x659/0xeb0 fs/f2fs/file.c:599
 f2fs_truncate_data_blocks+0xfa/0x140 fs/f2fs/file.c:638
 truncate_dnode fs/f2fs/node.c:943 [inline]
 f2fs_truncate_inode_blocks+0x9af/0x11f0 fs/f2fs/node.c:1153
 f2fs_do_truncate_blocks+0x753/0xb80 fs/f2fs/file.c:727
 f2fs_truncate_blocks+0x114/0x310 fs/f2fs/file.c:755
 f2fs_truncate+0x1b9/0x3c0 fs/f2fs/file.c:807
 f2fs_setattr+0x9e3/0x10f0 fs/f2fs/file.c:971
 notify_change+0xb49/0xde0 fs/attr.c:394
 do_truncate+0x1ed/0x2d0 fs/open.c:65
 handle_truncate fs/namei.c:3060 [inline]
 do_open fs/namei.c:3401 [inline]
 path_openat+0x298d/0x3000 fs/namei.c:3515
 do_filp_open+0x21c/0x460 fs/namei.c:3542
 do_sys_openat2+0x13f/0x6e0 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+0x11f/0x160 fs/open.c:1301
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7f480c663e69
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 d1 17 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffa420ffa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007fffa42100c0 RCX: 00007f480c663e69
RDX: 00007f480c61a393 RSI: 00000000000001f8 RDI: 00000000200000c0
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000140
R10: 00007fffa420fe70 R11: 0000000000000246 R12: 00007fffa420ffe0
R13: 00007fffa42100c0 R14: 431bde82d7b634db R15: 00007fffa420ffc0
F2FS-fs (loop0): access invalid blkaddr:584837120
CPU: 0 PID: 288 Comm: syz-executor335 Tainted: G    B             5.10.178-syzkaller-00127-g43c801dc3325 #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_lvl+0x1e2/0x24b lib/dump_stack.c:118
 dump_stack+0x15/0x17 lib/dump_stack.c:135
 f2fs_is_valid_blkaddr+0xc87/0x1370 fs/f2fs/checkpoint.c:205
 f2fs_truncate_data_blocks_range+0x659/0xeb0 fs/f2fs/file.c:599
 f2fs_truncate_data_blocks+0xfa/0x140 fs/f2fs/file.c:638
 truncate_dnode fs/f2fs/node.c:943 [inline]
 f2fs_truncate_inode_blocks+0x9af/0x11f0 fs/f2fs/node.c:1153
 f2fs_do_truncate_blocks+0x753/0xb80 fs/f2fs/file.c:727
 f2fs_truncate_blocks+0x114/0x310 fs/f2fs/file.c:755
 f2fs_truncate+0x1b9/0x3c0 fs/f2fs/file.c:807
 f2fs_setattr+0x9e3/0x10f0 fs/f2fs/file.c:971
 notify_change+0xb49/0xde0 fs/attr.c:394
 do_truncate+0x1ed/0x2d0 fs/open.c:65
 handle_truncate fs/namei.c:3060 [inline]
 do_open fs/namei.c:3401 [inline]
 path_openat+0x298d/0x3000 fs/namei.c:3515
 do_filp_open+0x21c/0x460 fs/namei.c:3542
 do_sys_openat2+0x13f/0x6e0 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+0x11f/0x160 fs/open.c:1301
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7f480c663e69
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 d1 17 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffa420ffa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007fffa42100c0 RCX: 00007f480c663e69
RDX: 00007f480c61a393 RSI: 00000000000001f8 RDI: 00000000200000c0
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000140
R10: 00007fffa420fe70 R11: 0000000000000246 R12: 00007fffa420ffe0
R13: 00007fffa42100c0 R14: 431bde82d7b634db R15: 00007fffa420ffc0
F2FS-fs (loop0): access invalid blkaddr:4294936705
CPU: 0 PID: 288 Comm: syz-executor335 Tainted: G    B             5.10.178-syzkaller-00127-g43c801dc3325 #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_lvl+0x1e2/0x24b lib/dump_stack.c:118
 dump_stack+0x15/0x17 lib/dump_stack.c:135
 f2fs_is_valid_blkaddr+0xc87/0x1370 fs/f2fs/checkpoint.c:205
 f2fs_truncate_data_blocks_range+0x659/0xeb0 fs/f2fs/file.c:599
 f2fs_truncate_data_blocks+0xfa/0x140 fs/f2fs/file.c:638
 truncate_dnode fs/f2fs/node.c:943 [inline]
 f2fs_truncate_inode_blocks+0x9af/0x11f0 fs/f2fs/node.c:1153
 f2fs_do_truncate_blocks+0x753/0xb80 fs/f2fs/file.c:727
 f2fs_truncate_blocks+0x114/0x310 fs/f2fs/file.c:755
 f2fs_truncate+0x1b9/0x3c0 fs/f2fs/file.c:807
 f2fs_setattr+0x9e3/0x10f0 fs/f2fs/file.c:971
 notify_change+0xb49/0xde0 fs/attr.c:394
 do_truncate+0x1ed/0x2d0 fs/open.c:65
 handle_truncate fs/namei.c:3060 [inline]
 do_open fs/namei.c:3401 [inline]
 path_openat+0x298d/0x3000 fs/namei.c:3515
 do_filp_open+0x21c/0x460 fs/namei.c:3542
 do_sys_openat2+0x13f/0x6e0 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+0x11f/0x160 fs/open.c:1301
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7f480c663e69
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 d1 17 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffa420ffa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007fffa42100c0 RCX: 00007f480c663e69
RDX: 00007f480c61a393 RSI: 00000000000001f8 RDI: 00000000200000c0
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000140
R10: 00007fffa420fe70 R11: 0000000000000246 R12: 00007fffa420ffe0
R13: 00007fffa42100c0 R14: 431bde82d7b634db R15: 00007fffa420ffc0
F2FS-fs (loop0): access invalid blkaddr:584837120
CPU: 1 PID: 288 Comm: syz-executor335 Tainted: G    B             5.10.178-syzkaller-00127-g43c801dc3325 #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_lvl+0x1e2/0x24b lib/dump_stack.c:118
 dump_stack+0x15/0x17 lib/dump_stack.c:135
 f2fs_is_valid_blkaddr+0xc87/0x1370 fs/f2fs/checkpoint.c:205
 f2fs_truncate_data_blocks_range+0x659/0xeb0 fs/f2fs/file.c:599
 f2fs_truncate_data_blocks+0xfa/0x140 fs/f2fs/file.c:638
 truncate_dnode fs/f2fs/node.c:943 [inline]
 f2fs_truncate_inode_blocks+0x9af/0x11f0 fs/f2fs/node.c:1153
 f2fs_do_truncate_blocks+0x753/0xb80 fs/f2fs/file.c:727
 f2fs_truncate_blocks+0x114/0x310 fs/f2fs/file.c:755
 f2fs_truncate+0x1b9/0x3c0 fs/f2fs/file.c:807
 f2fs_setattr+0x9e3/0x10f0 fs/f2fs/file.c:971
 notify_change+0xb49/0xde0 fs/attr.c:394
 do_truncate+0x1ed/0x2d0 fs/open.c:65
 handle_truncate fs/namei.c:3060 [inline]
 do_open fs/namei.c:3401 [inline]
 path_openat+0x298d/0x3000 fs/namei.c:3515
 do_filp_open+0x21c/0x460 fs/namei.c:3542
 do_sys_openat2+0x13f/0x6e0 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+0x11f/0x160 fs/open.c:1301
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7f480c663e69
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 d1 17 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffa420ffa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007fffa42100c0 RCX: 00007f480c663e69
RDX: 00007f480c61a393 RSI: 00000000000001f8 RDI: 00000000200000c0
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000140
R10: 00007fffa420fe70 R11: 0000000000000246 R12: 00007fffa420ffe0
R13: 00007fffa42100c0 R14: 431bde82d7b634db R15: 00007fffa420ffc0
F2FS-fs (loop0): access invalid blkaddr:4294936705
CPU: 1 PID: 288 Comm: syz-executor335 Tainted: G    B             5.10.178-syzkaller-00127-g43c801dc3325 #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_lvl+0x1e2/0x24b lib/dump_stack.c:118
 dump_stack+0x15/0x17 lib/dump_stack.c:135
 f2fs_is_valid_blkaddr+0xc87/0x1370 fs/f2fs/checkpoint.c:205
 f2fs_truncate_data_blocks_range+0x659/0xeb0 fs/f2fs/file.c:599
 f2fs_truncate_data_blocks+0xfa/0x140 fs/f2fs/file.c:638
 truncate_dnode fs/f2fs/node.c:943 [inline]
 f2fs_truncate_inode_blocks+0x9af/0x11f0 fs/f2fs/node.c:1153
 f2fs_do_truncate_blocks+0x753/0xb80 fs/f2fs/file.c:727
 f2fs_truncate_blocks+0x114/0x310 fs/f2fs/file.c:755
 f2fs_truncate+0x1b9/0x3c0 fs/f2fs/file.c:807
 f2fs_setattr+0x9e3/0x10f0 fs/f2fs/file.c:971
 notify_change+0xb49/0xde0 fs/attr.c:394
 do_truncate+0x1ed/0x2d0 fs/open.c:65
 handle_truncate fs/namei.c:3060 [inline]
 do_open fs/namei.c:3401 [inline]
 path_openat+0x298d/0x3000 fs/namei.c:3515
 do_filp_open+0x21c/0x460 fs/namei.c:3542
 do_sys_openat2+0x13f/0x6e0 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+0x11f/0x160 fs/open.c:1301
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7f480c663e69
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 d1 17 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffa420ffa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007fffa42100c0 RCX: 00007f480c663e69
RDX: 00007f480c61a393 RSI: 00000000000001f8 RDI: 00000000200000c0
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000140
R10: 00007fffa420fe70 R11: 0000000000000246 R12: 00007fffa420ffe0
R13: 00007fffa42100c0 R14: 431bde82d7b634db R15: 00007fffa420ffc0
F2FS-fs (loop0): access invalid blkaddr:768
CPU: 1 PID: 288 Comm: syz-executor335 Tainted: G    B             5.10.178-syzkaller-00127-g43c801dc3325 #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_lvl+0x1e2/0x24b lib/dump_stack.c:118
 dump_stack+0x15/0x17 lib/dump_stack.c:135
 f2fs_is_valid_blkaddr+0xc87/0x1370 fs/f2fs/checkpoint.c:205
 f2fs_truncate_data_blocks_range+0x659/0xeb0 fs/f2fs/file.c:599
 f2fs_truncate_data_blocks+0xfa/0x140 fs/f2fs/file.c:638
 truncate_dnode fs/f2fs/node.c:943 [inline]
 f2fs_truncate_inode_blocks+0x9af/0x11f0 fs/f2fs/node.c:1153
 f2fs_do_truncate_blocks+0x753/0xb80 fs/f2fs/file.c:727
 f2fs_truncate_blocks+0x114/0x310 fs/f2fs/file.c:755
 f2fs_truncate+0x1b9/0x3c0 fs/f2fs/file.c:807
 f2fs_setattr+0x9e3/0x10f0 fs/f2fs/file.c:971
 notify_change+0xb49/0xde0 fs/attr.c:394
 do_truncate+0x1ed/0x2d0 fs/open.c:65
 handle_truncate fs/namei.c:3060 [inline]
 do_open fs/namei.c:3401 [inline]
 path_openat+0x298d/0x3000 fs/namei.c:3515
 do_filp_open+0x21c/0x460 fs/namei.c:3542
 do_sys_openat2+0x13f/0x6e0 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+0x11f/0x160 fs/open.c:1301
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7f480c663e69
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 d1 17 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffa420ffa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007fffa42100c0 RCX: 00007f480c663e69
RDX: 00007f480c61a393 RSI: 00000000000001f8 RDI: 00000000200000c0
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000140
R10: 00007fffa420fe70 R11: 0000000000000246 R12: 00007fffa420ffe0
R13: 00007fffa42100c0 R14: 431bde82d7b634db R15: 00007fffa420ffc0
F2FS-fs (loop0): access invalid blkaddr:1
CPU: 1 PID: 288 Comm: syz-executor335 Tainted: G    B             5.10.178-syzkaller-00127-g43c801dc3325 #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_lvl+0x1e2/0x24b lib/dump_stack.c:118
 dump_stack+0x15/0x17 lib/dump_stack.c:135
 f2fs_is_valid_blkaddr+0xc87/0x1370 fs/f2fs/checkpoint.c:205
 f2fs_truncate_data_blocks_range+0x659/0xeb0 fs/f2fs/file.c:599
 f2fs_truncate_data_blocks+0xfa/0x140 fs/f2fs/file.c:638
 truncate_dnode fs/f2fs/node.c:943 [inline]
 f2fs_truncate_inode_blocks+0x9af/0x11f0 fs/f2fs/node.c:1153
 f2fs_do_truncate_blocks+0x753/0xb80 fs/f2fs/file.c:727
 f2fs_truncate_blocks+0x114/0x310 fs/f2fs/file.c:755
 f2fs_truncate+0x1b9/0x3c0 fs/f2fs/file.c:807
 f2fs_setattr+0x9e3/0x10f0 fs/f2fs/file.c:971
 notify_change+0xb49/0xde0 fs/attr.c:394
 do_truncate+0x1ed/0x2d0 fs/open.c:65
 handle_truncate fs/namei.c:3060 [inline]
 do_open fs/namei.c:3401 [inline]
 path_openat+0x298d/0x3000 fs/namei.c:3515
 do_filp_open+0x21c/0x460 fs/namei.c:3542
 do_sys_openat2+0x13f/0x6e0 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+0x11f/0x160 fs/open.c:1301
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7f480c663e69
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 d1 17 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffa420ffa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007fffa42100c0 RCX: 00007f480c663e69
RDX: 00007f480c61a393 RSI: 00000000000001f8 RDI: 00000000200000c0
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000140
R10: 00007fffa420fe70 R11: 0000000000000246 R12: 00007fffa420ffe0
R13: 00007fffa42100c0 R14: 431bde82d7b634db R15: 00007fffa420ffc0
F2FS-fs (loop0): access invalid blkaddr:81
CPU: 1 PID: 288 Comm: syz-executor335 Tainted: G    B             5.10.178-syzkaller-00127-g43c801dc3325 #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_lvl+0x1e2/0x24b lib/dump_stack.c:118
 dump_stack+0x15/0x17 lib/dump_stack.c:135
 f2fs_is_valid_blkaddr+0xc87/0x1370 fs/f2fs/checkpoint.c:205
 f2fs_truncate_data_blocks_range+0x659/0xeb0 fs/f2fs/file.c:599
 f2fs_truncate_data_blocks+0xfa/0x140 fs/f2fs/file.c:638
 truncate_dnode fs/f2fs/node.c:943 [inline]
 f2fs_truncate_inode_blocks+0x9af/0x11f0 fs/f2fs/node.c:1153
 f2fs_do_truncate_blocks+0x753/0xb80 fs/f2fs/file.c:727
 f2fs_truncate_blocks+0x114/0x310 fs/f2fs/file.c:755
 f2fs_truncate+0x1b9/0x3c0 fs/f2fs/file.c:807
 f2fs_setattr+0x9e3/0x10f0 fs/f2fs/file.c:971
 notify_change+0xb49/0xde0 fs/attr.c:394
 do_truncate+0x1ed/0x2d0 fs/open.c:65
 handle_truncate fs/namei.c:3060 [inline]
 do_open fs/namei.c:3401 [inline]
 path_openat+0x298d/0x3000 fs/namei.c:3515
 do_filp_open+0x21c/0x460 fs/namei.c:3542
 do_sys_openat2+0x13f/0x6e0 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+0x11f/0x160 fs/open.c:1301
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7f480c663e69
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 d1 17 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffa420ffa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007fffa42100c0 RCX: 00007f480c663e69
RDX: 00007f480c61a393 RSI: 00000000000001f8 RDI: 00000000200000c0
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000140
R10: 00007fffa420fe70 R11: 0000000000000246 R12: 00007fffa420ffe0
R13: 00007fffa42100c0 R14: 431bde82d7b634db R15: 00007fffa420ffc0
F2FS-fs (loop0): access invalid blkaddr:2562719955
CPU: 1 PID: 288 Comm: syz-executor335 Tainted: G    B             5.10.178-syzkaller-00127-g43c801dc3325 #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_lvl+0x1e2/0x24b lib/dump_stack.c:118
 dump_stack+0x15/0x17 lib/dump_stack.c:135
 f2fs_is_valid_blkaddr+0xc87/0x1370 fs/f2fs/checkpoint.c:205
 f2fs_truncate_data_blocks_range+0x659/0xeb0 fs/f2fs/file.c:599
 f2fs_truncate_data_blocks+0xfa/0x140 fs/f2fs/file.c:638
 truncate_dnode fs/f2fs/node.c:943 [inline]
 f2fs_truncate_inode_blocks+0x9af/0x11f0 fs/f2fs/node.c:1153
 f2fs_do_truncate_blocks+0x753/0xb80 fs/f2fs/file.c:727
 f2fs_truncate_blocks+0x114/0x310 fs/f2fs/file.c:755
 f2fs_truncate+0x1b9/0x3c0 fs/f2fs/file.c:807
 f2fs_setattr+0x9e3/0x10f0 fs/f2fs/file.c:971
 notify_change+0xb49/0xde0 fs/attr.c:394
 do_truncate+0x1ed/0x2d0 fs/open.c:65
 handle_truncate fs/namei.c:3060 [inline]
 do_open fs/namei.c:3401 [inline]
 path_openat+0x298d/0x3000 fs/namei.c:3515
 do_filp_open+0x21c/0x460 fs/namei.c:3542
 do_sys_openat2+0x13f/0x6e0 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+0x11f/0x160 fs/open.c:1301
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7f480c663e69
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 d1 17 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffa420ffa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007fffa42100c0 RCX: 00007f480c663e69
RDX: 00007f480c61a393 RSI: 00000000000001f8 RDI: 00000000200000c0
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000140
R10: 00007fffa420fe70 R11: 0000000000000246 R12: 00007fffa420ffe0
R13: 00007fffa42100c0 R14: 431bde82d7b634db R15: 00007fffa420ffc0
F2FS-fs (loop0): access invalid blkaddr:584840192
CPU: 1 PID: 288 Comm: syz-executor335 Tainted: G    B             5.10.178-syzkaller-00127-g43c801dc3325 #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_lvl+0x1e2/0x24b lib/dump_stack.c:118
 dump_stack+0x15/0x17 lib/dump_stack.c:135
 f2fs_is_valid_blkaddr+0xc87/0x1370 fs/f2fs/checkpoint.c:205
 f2fs_truncate_data_blocks_range+0x659/0xeb0 fs/f2fs/file.c:599
 f2fs_truncate_data_blocks+0xfa/0x140 fs/f2fs/file.c:638
 truncate_dnode fs/f2fs/node.c:943 [inline]
 f2fs_truncate_inode_blocks+0x9af/0x11f0 fs/f2fs/node.c:1153
 f2fs_do_truncate_blocks+0x753/0xb80 fs/f2fs/file.c:727
 f2fs_truncate_blocks+0x114/0x310 fs/f2fs/file.c:755
 f2fs_truncate+0x1b9/0x3c0 fs/f2fs/file.c:807
 f2fs_setattr+0x9e3/0x10f0 fs/f2fs/file.c:971
 notify_change+0xb49/0xde0 fs/attr.c:394
 do_truncate+0x1ed/0x2d0 fs/open.c:65
 handle_truncate fs/namei.c:3060 [inline]
 do_open fs/namei.c:3401 [inline]
 path_openat+0x298d/0x3000 fs/namei.c:3515
 do_filp_open+0x21c/0x460 fs/namei.c:3542
 do_sys_openat2+0x13f/0x6e0 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+0x11f/0x160 fs/open.c:1301
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7f480c663e69
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 d1 17 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffa420ffa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007fffa42100c0 RCX: 00007f480c663e69
RDX: 00007f480c61a393 RSI: 00000000000001f8 RDI: 00000000200000c0
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000140
R10: 00007fffa420fe70 R11: 0000000000000246 R12: 00007fffa420ffe0
R13: 00007fffa42100c0 R14: 431bde82d7b634db R15: 00007fffa420ffc0
F2FS-fs (loop0): access invalid blkaddr:4294936705
CPU: 1 PID: 288 Comm: syz-executor335 Tainted: G    B             5.10.178-syzkaller-00127-g43c801dc3325 #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_lvl+0x1e2/0x24b lib/dump_stack.c:118
 dump_stack+0x15/0x17 lib/dump_stack.c:135
 f2fs_is_valid_blkaddr+0xc87/0x1370 fs/f2fs/checkpoint.c:205
 f2fs_truncate_data_blocks_range+0x659/0xeb0 fs/f2fs/file.c:599
 f2fs_truncate_data_blocks+0xfa/0x140 fs/f2fs/file.c:638
 truncate_dnode fs/f2fs/node.c:943 [inline]
 f2fs_truncate_inode_blocks+0x9af/0x11f0 fs/f2fs/node.c:1153
 f2fs_do_truncate_blocks+0x753/0xb80 fs/f2fs/file.c:727
 f2fs_truncate_blocks+0x114/0x310 fs/f2fs/file.c:755
 f2fs_truncate+0x1b9/0x3c0 fs/f2fs/file.c:807
 f2fs_setattr+0x9e3/0x10f0 fs/f2fs/file.c:971
 notify_change+0xb49/0xde0 fs/attr.c:394
 do_truncate+0x1ed/0x2d0 fs/open.c:65
 handle_truncate fs/namei.c:3060 [inline]
 do_open fs/namei.c:3401 [inline]
 path_openat+0x298d/0x3000 fs/namei.c:3515
 do_filp_open+0x21c/0x460 fs/namei.c:3542
 do_sys_openat2+0x13f/0x6e0 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+0x11f/0x160 fs/open.c:1301
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7f480c663e69
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 d1 17 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffa420ffa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007fffa42100c0 RCX: 00007f480c663e69
RDX: 00007f480c61a393 RSI: 00000000000001f8 RDI: 00000000200000c0
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000140
R10: 00007fffa420fe70 R11: 0000000000000246 R12: 00007fffa420ffe0
R13: 00007fffa42100c0 R14: 431bde82d7b634db R15: 00007fffa420ffc0
F2FS-fs (loop0): access invalid blkaddr:74
CPU: 1 PID: 288 Comm: syz-executor335 Tainted: G    B             5.10.178-syzkaller-00127-g43c801dc3325 #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_lvl+0x1e2/0x24b lib/dump_stack.c:118
 dump_stack+0x15/0x17 lib/dump_stack.c:135
 f2fs_is_valid_blkaddr+0xc87/0x1370 fs/f2fs/checkpoint.c:205
 f2fs_truncate_data_blocks_range+0x659/0xeb0 fs/f2fs/file.c:599
 f2fs_truncate_data_blocks+0xfa/0x140 fs/f2fs/file.c:638
 truncate_dnode fs/f2fs/node.c:943 [inline]
 f2fs_truncate_inode_blocks+0x9af/0x11f0 fs/f2fs/node.c:1153
 f2fs_do_truncate_blocks+0x753/0xb80 fs/f2fs/file.c:727
 f2fs_truncate_blocks+0x114/0x310 fs/f2fs/file.c:755
 f2fs_truncate+0x1b9/0x3c0 fs/f2fs/file.c:807
 f2fs_setattr+0x9e3/0x10f0 fs/f2fs/file.c:971
 notify_change+0xb49/0xde0 fs/attr.c:394
 do_truncate+0x1ed/0x2d0 fs/open.c:65
 handle_truncate fs/namei.c:3060 [inline]
 do_open fs/namei.c:3401 [inline]
 path_openat+0x298d/0x3000 fs/namei.c:3515
 do_filp_open+0x21c/0x460 fs/namei.c:3542
 do_sys_openat2+0x13f/0x6e0 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+0x11f/0x160 fs/open.c:1301
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7f480c663e69
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 d1 17 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffa420ffa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007fffa42100c0 RCX: 00007f480c663e69
RDX: 00007f480c61a393 RSI: 00000000000001f8 RDI: 00000000200000c0
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000140
R10: 00007fffa420fe70 R11: 0000000000000246 R12: 00007fffa420ffe0
R13: 00007fffa42100c0 R14: 431bde82d7b634db R15: 00007fffa420ffc0
F2FS-fs (loop0): access invalid blkaddr:2598371539
CPU: 1 PID: 288 Comm: syz-executor335 Tainted: G    B             5.10.178-syzkaller-00127-g43c801dc3325 #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_lvl+0x1e2/0x24b lib/dump_stack.c:118
 dump_stack+0x15/0x17 lib/dump_stack.c:135
 f2fs_is_valid_blkaddr+0xc87/0x1370 fs/f2fs/checkpoint.c:205
 f2fs_truncate_data_blocks_range+0x659/0xeb0 fs/f2fs/file.c:599
 f2fs_truncate_data_blocks+0xfa/0x140 fs/f2fs/file.c:638
 truncate_dnode fs/f2fs/node.c:943 [inline]
 f2fs_truncate_inode_blocks+0x9af/0x11f0 fs/f2fs/node.c:1153
 f2fs_do_truncate_blocks+0x753/0xb80 fs/f2fs/file.c:727
 f2fs_truncate_blocks+0x114/0x310 fs/f2fs/file.c:755
 f2fs_truncate+0x1b9/0x3c0 fs/f2fs/file.c:807
 f2fs_setattr+0x9e3/0x10f0 fs/f2fs/file.c:971
 notify_change+0xb49/0xde0 fs/attr.c:394
 do_truncate+0x1ed/0x2d0 fs/open.c:65
 handle_truncate fs/namei.c:3060 [inline]
 do_open fs/namei.c:3401 [inline]
 path_openat+0x298d/0x3000 fs/namei.c:3515
 do_filp_open+0x21c/0x460 fs/namei.c:3542
 do_sys_openat2+0x13f/0x6e0 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+0x11f/0x160 fs/open.c:1301
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7f480c663e69
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 d1 17 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffa420ffa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007fffa42100c0 RCX: 00007f480c663e69
RDX: 00007f480c61a393 RSI: 00000000000001f8 RDI: 00000000200000c0
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000140
R10: 00007fffa420fe70 R11: 0000000000000246 R12: 00007fffa420ffe0
R13: 00007fffa42100c0 R14: 431bde82d7b634db R15: 00007fffa420ffc0
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 (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/05/12 18:24 android13-5.10-lts 43c801dc3325 ecca8a24 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-10 KASAN: use-after-free Read in f2fs_truncate_data_blocks_range
* Struck through repros no longer work on HEAD.