dirent points to missing inode:
u64s 8 type dirent 4096:5954015492002308512:U32_MAX len 0 ver 0: file.cold -> 1073741826 type reg, fixing
==================================================================
BUG: KASAN: use-after-free in check_dirent+0x1e9e/0x21a0 fs/bcachefs/fsck.c:2422
Read of size 1 at addr ffff8880529e0138 by task syz.6.8572/1440
CPU: 0 UID: 0 PID: 1440 Comm: syz.6.8572 Not tainted 6.14.0-rc7-syzkaller-00074-ga7f2e10ecd8f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120
print_address_description mm/kasan/report.c:408 [inline]
print_report+0xc3/0x670 mm/kasan/report.c:521
kasan_report+0xd9/0x110 mm/kasan/report.c:634
check_dirent+0x1e9e/0x21a0 fs/bcachefs/fsck.c:2422
bch2_check_dirents+0x409/0x780 fs/bcachefs/fsck.c:2447
bch2_run_recovery_pass+0x91/0x1a0 fs/bcachefs/recovery_passes.c:226
bch2_run_recovery_passes+0x3f4/0x8f0 fs/bcachefs/recovery_passes.c:291
bch2_fs_recovery+0x3c1b/0x43d0 fs/bcachefs/recovery.c:973
bch2_fs_start+0x343/0x660 fs/bcachefs/super.c:1041
bch2_fs_get_tree+0x1118/0x1760 fs/bcachefs/fs.c:2203
vfs_get_tree+0x8e/0x340 fs/super.c:1814
do_new_mount fs/namespace.c:3560 [inline]
path_mount+0x14e6/0x1f10 fs/namespace.c:3887
do_mount fs/namespace.c:3900 [inline]
__do_sys_mount fs/namespace.c:4111 [inline]
__se_sys_mount fs/namespace.c:4088 [inline]
__x64_sys_mount+0x28f/0x310 fs/namespace.c:4088
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f1f04b8e90a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f1f05973e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f1f05973ef0 RCX: 00007f1f04b8e90a
RDX: 000040000000f640 RSI: 0000400000000140 RDI: 00007f1f05973eb0
RBP: 000040000000f640 R08: 00007f1f05973ef0 R09: 0000000000804008
R10: 0000000000804008 R11: 0000000000000246 R12: 0000400000000140
R13: 00007f1f05973eb0 R14: 000000000000f61a R15: 00004000000000c0
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8880529e6000 pfn:0x529e0
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
page_type: f0(buddy)
raw: 00fff00000000000 ffffea00013aa808 ffff88813fffc008 0000000000000000
raw: ffff8880529e6000 0000000000000005 00000000f0000000 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
page last allocated via order 5, migratetype Unmovable, gfp_mask 0x52800(GFP_NOWAIT|__GFP_NORETRY|__GFP_COMP), pid 1440, tgid 1438 (syz.6.8572), ts 3196447470786, free_ts 3197241803703
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1551
prep_new_page mm/page_alloc.c:1559 [inline]
get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3477
__alloc_frozen_pages_noprof+0x221/0x2470 mm/page_alloc.c:4740
__alloc_pages_noprof+0xb/0x1b0 mm/page_alloc.c:4774
__alloc_pages_node_noprof include/linux/gfp.h:265 [inline]
alloc_pages_node_noprof include/linux/gfp.h:292 [inline]
___kmalloc_large_node+0x84/0x1b0 mm/slub.c:4239
__kmalloc_large_node_noprof+0x1c/0x70 mm/slub.c:4266
__do_kmalloc_node mm/slub.c:4282 [inline]
__kmalloc_node_noprof.cold+0x5/0x5f mm/slub.c:4300
__kvmalloc_node_noprof+0x6f/0x1a0 mm/util.c:665
btree_bounce_alloc+0x11e/0x210 fs/bcachefs/btree_io.c:123
btree_node_sort+0x1104/0x14f0 fs/bcachefs/btree_io.c:322
bch2_btree_post_write_cleanup fs/bcachefs/btree_io.c:2293 [inline]
bch2_btree_post_write_cleanup+0x145/0x600 fs/bcachefs/btree_io.c:2267
bch2_btree_node_write_trans+0x27c/0x6d0 fs/bcachefs/btree_io.c:2362
btree_node_write_if_need fs/bcachefs/btree_io.h:153 [inline]
__btree_node_flush+0x380/0x480 fs/bcachefs/btree_trans_commit.c:252
journal_flush_pins.constprop.0+0x4ee/0xbd0 fs/bcachefs/journal_reclaim.c:589
journal_flush_pins_or_still_flushing fs/bcachefs/journal_reclaim.c:861 [inline]
journal_flush_done+0xcd/0x600 fs/bcachefs/journal_reclaim.c:879
bch2_journal_flush_pins+0x131/0x250 fs/bcachefs/journal_reclaim.c:911
page last free pid 1440 tgid 1438 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
__free_pages_ok+0x62b/0xe50 mm/page_alloc.c:1271
__folio_put+0x32a/0x450 mm/swap.c:112
kvfree+0x47/0x50 mm/util.c:708
btree_bounce_free fs/bcachefs/btree_io.c:111 [inline]
btree_node_sort+0xf9f/0x14f0 fs/bcachefs/btree_io.c:379
bch2_btree_post_write_cleanup fs/bcachefs/btree_io.c:2293 [inline]
bch2_btree_post_write_cleanup+0x145/0x600 fs/bcachefs/btree_io.c:2267
bch2_btree_node_prep_for_write+0x35b/0x550 fs/bcachefs/btree_trans_commit.c:93
bch2_trans_lock_write+0x6c5/0x8e0 fs/bcachefs/btree_trans_commit.c:129
do_bch2_trans_commit fs/bcachefs/btree_trans_commit.c:862 [inline]
__bch2_trans_commit+0x2264/0x7d70 fs/bcachefs/btree_trans_commit.c:1070
bch2_trans_commit fs/bcachefs/btree_update.h:191 [inline]
check_dirent+0xc37/0x21a0 fs/bcachefs/fsck.c:2417
bch2_check_dirents+0x409/0x780 fs/bcachefs/fsck.c:2447
bch2_run_recovery_pass+0x91/0x1a0 fs/bcachefs/recovery_passes.c:226
bch2_run_recovery_passes+0x3f4/0x8f0 fs/bcachefs/recovery_passes.c:291
bch2_fs_recovery+0x3c1b/0x43d0 fs/bcachefs/recovery.c:973
bch2_fs_start+0x343/0x660 fs/bcachefs/super.c:1041
bch2_fs_get_tree+0x1118/0x1760 fs/bcachefs/fs.c:2203
vfs_get_tree+0x8e/0x340 fs/super.c:1814
Memory state around the buggy address:
ffff8880529e0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff8880529e0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff8880529e0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
^
ffff8880529e0180: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff8880529e0200: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
dirent points to missing inode:
u64s 7 type dirent 4096:6979276882743145098:U32_MAX len 0 ver 0: file1 -> 1073741824 type reg, fixing
dirent points to missing inode:
u64s 7 type dirent 4098:205576786558310897:U32_MAX len 0 ver 0: file0 -> 4099 type reg, fixing
==================================================================
BUG: KASAN: use-after-free in check_dirent+0x1e9e/0x21a0 fs/bcachefs/fsck.c:2422
Read of size 1 at addr ffff88806db20140 by task syz.6.8572/1440
CPU: 0 UID: 0 PID: 1440 Comm: syz.6.8572 Tainted: G B 6.14.0-rc7-syzkaller-00074-ga7f2e10ecd8f #0
Tainted: [B]=BAD_PAGE
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120
print_address_description mm/kasan/report.c:408 [inline]
print_report+0xc3/0x670 mm/kasan/report.c:521
kasan_report+0xd9/0x110 mm/kasan/report.c:634
check_dirent+0x1e9e/0x21a0 fs/bcachefs/fsck.c:2422
bch2_check_dirents+0x409/0x780 fs/bcachefs/fsck.c:2447
bch2_run_recovery_pass+0x91/0x1a0 fs/bcachefs/recovery_passes.c:226
bch2_run_recovery_passes+0x3f4/0x8f0 fs/bcachefs/recovery_passes.c:291
bch2_fs_recovery+0x3c1b/0x43d0 fs/bcachefs/recovery.c:973
bch2_fs_start+0x343/0x660 fs/bcachefs/super.c:1041
bch2_fs_get_tree+0x1118/0x1760 fs/bcachefs/fs.c:2203
vfs_get_tree+0x8e/0x340 fs/super.c:1814
do_new_mount fs/namespace.c:3560 [inline]
path_mount+0x14e6/0x1f10 fs/namespace.c:3887
do_mount fs/namespace.c:3900 [inline]
__do_sys_mount fs/namespace.c:4111 [inline]
__se_sys_mount fs/namespace.c:4088 [inline]
__x64_sys_mount+0x28f/0x310 fs/namespace.c:4088
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f1f04b8e90a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f1f05973e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f1f05973ef0 RCX: 00007f1f04b8e90a
RDX: 000040000000f640 RSI: 0000400000000140 RDI: 00007f1f05973eb0
RBP: 000040000000f640 R08: 00007f1f05973ef0 R09: 0000000000804008
R10: 0000000000804008 R11: 0000000000000246 R12: 0000400000000140
R13: 00007f1f05973eb0 R14: 000000000000f61a R15: 00004000000000c0
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88806db26000 pfn:0x6db20
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
page_type: f0(buddy)
raw: 00fff00000000000 ffffea00013aa808 ffff88813fffc008 0000000000000000
raw: ffff88806db26000 0000000000000005 00000000f0000000 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
page last allocated via order 5, migratetype Unmovable, gfp_mask 0x52800(GFP_NOWAIT|__GFP_NORETRY|__GFP_COMP), pid 1440, tgid 1438 (syz.6.8572), ts 3197241765913, free_ts 3198294703732
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1551
prep_new_page mm/page_alloc.c:1559 [inline]
get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3477
__alloc_frozen_pages_noprof+0x221/0x2470 mm/page_alloc.c:4740
__alloc_pages_noprof+0xb/0x1b0 mm/page_alloc.c:4774
__alloc_pages_node_noprof include/linux/gfp.h:265 [inline]
alloc_pages_node_noprof include/linux/gfp.h:292 [inline]
___kmalloc_large_node+0x84/0x1b0 mm/slub.c:4239
__kmalloc_large_node_noprof+0x1c/0x70 mm/slub.c:4266
__do_kmalloc_node mm/slub.c:4282 [inline]
__kmalloc_node_noprof.cold+0x5/0x5f mm/slub.c:4300
__kvmalloc_node_noprof+0x6f/0x1a0 mm/util.c:665
btree_bounce_alloc+0x11e/0x210 fs/bcachefs/btree_io.c:123
btree_node_sort+0x1104/0x14f0 fs/bcachefs/btree_io.c:322
bch2_btree_post_write_cleanup fs/bcachefs/btree_io.c:2293 [inline]
bch2_btree_post_write_cleanup+0x145/0x600 fs/bcachefs/btree_io.c:2267
bch2_btree_node_prep_for_write+0x35b/0x550 fs/bcachefs/btree_trans_commit.c:93
bch2_trans_lock_write+0x6c5/0x8e0 fs/bcachefs/btree_trans_commit.c:129
do_bch2_trans_commit fs/bcachefs/btree_trans_commit.c:862 [inline]
__bch2_trans_commit+0x2264/0x7d70 fs/bcachefs/btree_trans_commit.c:1070
bch2_trans_commit fs/bcachefs/btree_update.h:191 [inline]
check_dirent+0xc37/0x21a0 fs/bcachefs/fsck.c:2417
bch2_check_dirents+0x409/0x780 fs/bcachefs/fsck.c:2447
page last free pid 1440 tgid 1438 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
__free_pages_ok+0x62b/0xe50 mm/page_alloc.c:1271
__folio_put+0x32a/0x450 mm/swap.c:112
kvfree+0x47/0x50 mm/util.c:708
btree_bounce_free fs/bcachefs/btree_io.c:111 [inline]
btree_node_sort+0xf9f/0x14f0 fs/bcachefs/btree_io.c:379
bch2_btree_post_write_cleanup fs/bcachefs/btree_io.c:2293 [inline]
bch2_btree_post_write_cleanup+0x145/0x600 fs/bcachefs/btree_io.c:2267
bch2_btree_node_prep_for_write+0x35b/0x550 fs/bcachefs/btree_trans_commit.c:93
bch2_trans_lock_write+0x6c5/0x8e0 fs/bcachefs/btree_trans_commit.c:129
do_bch2_trans_commit fs/bcachefs/btree_trans_commit.c:862 [inline]
__bch2_trans_commit+0x2264/0x7d70 fs/bcachefs/btree_trans_commit.c:1070
bch2_trans_commit fs/bcachefs/btree_update.h:191 [inline]
check_dirent+0xc37/0x21a0 fs/bcachefs/fsck.c:2417
bch2_check_dirents+0x409/0x780 fs/bcachefs/fsck.c:2447
bch2_run_recovery_pass+0x91/0x1a0 fs/bcachefs/recovery_passes.c:226
bch2_run_recovery_passes+0x3f4/0x8f0 fs/bcachefs/recovery_passes.c:291
bch2_fs_recovery+0x3c1b/0x43d0 fs/bcachefs/recovery.c:973
bch2_fs_start+0x343/0x660 fs/bcachefs/super.c:1041
bch2_fs_get_tree+0x1118/0x1760 fs/bcachefs/fs.c:2203
vfs_get_tree+0x8e/0x340 fs/super.c:1814
Memory state around the buggy address:
ffff88806db20000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff88806db20080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff88806db20100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
^
ffff88806db20180: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff88806db20200: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
dirent points to missing inode:
u64s 7 type dirent 4098:2567660961538949816:U32_MAX len 0 ver 0: file1 -> 4100 type lnk, fixing
==================================================================
BUG: KASAN: use-after-free in check_dirent+0x1e9e/0x21a0 fs/bcachefs/fsck.c:2422
Read of size 1 at addr ffff8880529e0110 by task syz.6.8572/1440
CPU: 0 UID: 0 PID: 1440 Comm: syz.6.8572 Tainted: G B 6.14.0-rc7-syzkaller-00074-ga7f2e10ecd8f #0
Tainted: [B]=BAD_PAGE
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120
print_address_description mm/kasan/report.c:408 [inline]
print_report+0xc3/0x670 mm/kasan/report.c:521
kasan_report+0xd9/0x110 mm/kasan/report.c:634
check_dirent+0x1e9e/0x21a0 fs/bcachefs/fsck.c:2422
bch2_check_dirents+0x409/0x780 fs/bcachefs/fsck.c:2447
bch2_run_recovery_pass+0x91/0x1a0 fs/bcachefs/recovery_passes.c:226
bch2_run_recovery_passes+0x3f4/0x8f0 fs/bcachefs/recovery_passes.c:291
bch2_fs_recovery+0x3c1b/0x43d0 fs/bcachefs/recovery.c:973
bch2_fs_start+0x343/0x660 fs/bcachefs/super.c:1041
bch2_fs_get_tree+0x1118/0x1760 fs/bcachefs/fs.c:2203
vfs_get_tree+0x8e/0x340 fs/super.c:1814
do_new_mount fs/namespace.c:3560 [inline]
path_mount+0x14e6/0x1f10 fs/namespace.c:3887
do_mount fs/namespace.c:3900 [inline]
__do_sys_mount fs/namespace.c:4111 [inline]
__se_sys_mount fs/namespace.c:4088 [inline]
__x64_sys_mount+0x28f/0x310 fs/namespace.c:4088
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f1f04b8e90a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f1f05973e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f1f05973ef0 RCX: 00007f1f04b8e90a
RDX: 000040000000f640 RSI: 0000400000000140 RDI: 00007f1f05973eb0
RBP: 000040000000f640 R08: 00007f1f05973ef0 R09: 0000000000804008
R10: 0000000000804008 R11: 0000000000000246 R12: 0000400000000140
R13: 00007f1f05973eb0 R14: 000000000000f61a R15: 00004000000000c0
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8880529e6000 pfn:0x529e0
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
page_type: f0(buddy)
raw: 00fff00000000000 ffffea00013aa808 ffff88813fffc008 0000000000000000
raw: ffff8880529e6000 0000000000000005 00000000f0000000 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
page last allocated via order 5, migratetype Unmovable, gfp_mask 0x52800(GFP_NOWAIT|__GFP_NORETRY|__GFP_COMP), pid 1440, tgid 1438 (syz.6.8572), ts 3198294670362, free_ts 3199198516668
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x181/0x1b0 mm/page_alloc.c:1551
prep_new_page mm/page_alloc.c:1559 [inline]
get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3477
__alloc_frozen_pages_noprof+0x221/0x2470 mm/page_alloc.c:4740
__alloc_pages_noprof+0xb/0x1b0 mm/page_alloc.c:4774
__alloc_pages_node_noprof include/linux/gfp.h:265 [inline]
alloc_pages_node_noprof include/linux/gfp.h:292 [inline]
___kmalloc_large_node+0x84/0x1b0 mm/slub.c:4239
__kmalloc_large_node_noprof+0x1c/0x70 mm/slub.c:4266
__do_kmalloc_node mm/slub.c:4282 [inline]
__kmalloc_node_noprof.cold+0x5/0x5f mm/slub.c:4300
__kvmalloc_node_noprof+0x6f/0x1a0 mm/util.c:665
btree_bounce_alloc+0x11e/0x210 fs/bcachefs/btree_io.c:123
btree_node_sort+0x1104/0x14f0 fs/bcachefs/btree_io.c:322
bch2_btree_post_write_cleanup fs/bcachefs/btree_io.c:2293 [inline]
bch2_btree_post_write_cleanup+0x145/0x600 fs/bcachefs/btree_io.c:2267
bch2_btree_node_prep_for_write+0x35b/0x550 fs/bcachefs/btree_trans_commit.c:93
bch2_trans_lock_write+0x6c5/0x8e0 fs/bcachefs/btree_trans_commit.c:129
do_bch2_trans_commit fs/bcachefs/btree_trans_commit.c:862 [inline]
__bch2_trans_commit+0x2264/0x7d70 fs/bcachefs/btree_trans_commit.c:1070
bch2_trans_commit fs/bcachefs/btree_update.h:191 [inline]
check_dirent+0xc37/0x21a0 fs/bcachefs/fsck.c:2417
bch2_check_dirents+0x409/0x780 fs/bcachefs/fsck.c:2447
page last free pid 1440 tgid 1438 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1127 [inline]
__free_pages_ok+0x62b/0xe50 mm/page_alloc.c:1271
__folio_put+0x32a/0x450 mm/swap.c:112
kvfree+0x47/0x50 mm/util.c:708
btree_bounce_free fs/bcachefs/btree_io.c:111 [inline]
btree_node_sort+0xf9f/0x14f0 fs/bcachefs/btree_io.c:379
bch2_btree_post_write_cleanup fs/bcachefs/btree_io.c:2293 [inline]
bch2_btree_post_write_cleanup+0x145/0x600 fs/bcachefs/btree_io.c:2267
bch2_btree_node_prep_for_write+0x35b/0x550 fs/bcachefs/btree_trans_commit.c:93
bch2_trans_lock_write+0x6c5/0x8e0 fs/bcachefs/btree_trans_commit.c:129
do_bch2_trans_commit fs/bcachefs/btree_trans_commit.c:862 [inline]
__bch2_trans_commit+0x2264/0x7d70 fs/bcachefs/btree_trans_commit.c:1070
bch2_trans_commit fs/bcachefs/btree_update.h:191 [inline]
check_dirent+0xc37/0x21a0 fs/bcachefs/fsck.c:2417
bch2_check_dirents+0x409/0x780 fs/bcachefs/fsck.c:2447
bch2_run_recovery_pass+0x91/0x1a0 fs/bcachefs/recovery_passes.c:226
bch2_run_recovery_passes+0x3f4/0x8f0 fs/bcachefs/recovery_passes.c:291
bch2_fs_recovery+0x3c1b/0x43d0 fs/bcachefs/recovery.c:973
bch2_fs_start+0x343/0x660 fs/bcachefs/super.c:1041
bch2_fs_get_tree+0x1118/0x1760 fs/bcachefs/fs.c:2203
vfs_get_tree+0x8e/0x340 fs/super.c:1814
Memory state around the buggy address:
ffff8880529e0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff8880529e0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff8880529e0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
^
ffff8880529e0180: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff8880529e0200: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
done
bcachefs (loop6): resume_logged_ops... done
bcachefs (loop6): delete_dead_inodes... done
bcachefs (loop6): set_fs_needs_rebalance... done
bcachefs (loop6): Second fsck run was not clean
bcachefs (loop6): reading quotas
bcachefs (loop6): quotas done
bcachefs (loop6): bch2_copygc_start(): error creating copygc thread EINTR
bcachefs (loop6): error starting copygc thread
bcachefs (loop6): bch2_fs_start(): error starting filesystem EINTR
bcachefs (loop6): shutting down
bcachefs (loop6): going read-only
bcachefs (loop6): finished waiting for writes to stop
bcachefs (loop6): flushing journal and stopping allocators, journal seq 35
bcachefs (loop6): flushing journal and stopping allocators complete, journal seq 35
bcachefs (loop6): clean shutdown complete, journal seq 36
bcachefs (loop6): marking filesystem clean
bcachefs (loop6): shutdown complete
bcachefs: bch2_fs_get_tree() error: EINTR