[   24.095537] ==================================================================
[   24.097183] BUG: KASAN: use-after-free in ocfs2_check_dir_entry.constprop.0+0x33f/0x380
[   24.099032] Read of size 2 at addr ff1100000ad1ecf0 by task repro.bin/258
[   24.100581] 
[   24.100989] CPU: 1 UID: 0 PID: 258 Comm: repro.bin Not tainted 6.12.116 #1 
[   24.101024] Hardware name: QEMU Ubuntu 24.04 PC v2 (i440FX + PIIX, arch_caps fix, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   24.101043] Call Trace:
[   24.101052]  <TASK>
[   24.101062]  dump_stack_lvl+0xbc/0xf0
[   24.101093]  print_report+0xcb/0x610
[   24.101131]  ? srso_alias_return_thunk+0x5/0xfbef5
[   24.101175]  ? ocfs2_check_dir_entry.constprop.0+0x33f/0x380
[   24.101216]  kasan_report+0xb8/0xf0
[   24.101255]  ? ocfs2_check_dir_entry.constprop.0+0x33f/0x380
[   24.101299]  ocfs2_check_dir_entry.constprop.0+0x33f/0x380
[   24.101340]  ? srso_alias_return_thunk+0x5/0xfbef5
[   24.101383]  ? __pfx_ocfs2_check_dir_entry.constprop.0+0x10/0x10
[   24.101424]  ? srso_alias_return_thunk+0x5/0xfbef5
[   24.101467]  ? __pfx__raw_spin_lock+0x10/0x10
[   24.101499]  ? __pfx_ocfs2_inode_lock_full_nested+0x10/0x10
[   24.101539]  ocfs2_dir_foreach_blk_id+0x1f0/0x970
[   24.101581]  ? srso_alias_return_thunk+0x5/0xfbef5
[   24.101622]  ? ocfs2_inode_lock_atime+0x128/0x3d0
[   24.101667]  ? __pfx_ocfs2_dir_foreach_blk_id+0x10/0x10
[   24.101708]  ? srso_alias_return_thunk+0x5/0xfbef5
[   24.101750]  ? __pfx_aa_file_perm+0x10/0x10
[   24.101796]  ? __pfx_do_filp_open+0x10/0x10
[   24.101828]  ocfs2_readdir+0x4e7/0x550
[   24.101868]  ? getname_flags.part.0+0x50/0x560
[   24.101908]  ? __pfx_ocfs2_readdir+0x10/0x10
[   24.101949]  ? srso_alias_return_thunk+0x5/0xfbef5
[   24.101990]  ? down_write+0xb8/0x140
[   24.102030]  ? __pfx_down_write+0x10/0x10
[   24.102070]  ? down_read_killable+0x154/0x250
[   24.102113]  ? __pfx_down_read_killable+0x10/0x10
[   24.102157]  ? __pfx_ocfs2_readdir+0x10/0x10
[   24.102198]  wrap_directory_iterator+0xa4/0xe0
[   24.102243]  iterate_dir+0x25d/0x930
[   24.102288]  __x64_sys_getdents+0x153/0x2d0
[   24.102333]  ? __pfx___x64_sys_getdents+0x10/0x10
[   24.102377]  ? __pfx_do_sys_openat2+0x10/0x10
[   24.102415]  ? __pfx_filldir+0x10/0x10
[   24.102457]  ? srso_alias_return_thunk+0x5/0xfbef5
[   24.102499]  ? rcu_segcblist_enqueue+0x21/0xe0
[   24.102549]  do_syscall_64+0x89/0x1a0
[   24.102583]  ? __kmalloc_cache_noprof+0x14f/0x340
[   24.102633]  ? srso_alias_return_thunk+0x5/0xfbef5
[   24.102674]  ? fpregs_assert_state_consistent+0xc1/0xe0
[   24.102706]  ? srso_alias_return_thunk+0x5/0xfbef5
[   24.102748]  ? arch_exit_to_user_mode_prepare.constprop.0+0x16/0xb0
[   24.102780]  ? srso_alias_return_thunk+0x5/0xfbef5
[   24.102821]  ? syscall_exit_to_user_mode+0x37/0x1c0
[   24.102857]  ? srso_alias_return_thunk+0x5/0xfbef5
[   24.102898]  ? do_syscall_64+0x95/0x1a0
[   24.102930]  ? __fput+0x68e/0xb60
[   24.102966]  ? srso_alias_return_thunk+0x5/0xfbef5
[   24.103008]  ? __fput+0x68e/0xb60
[   24.103044]  ? srso_alias_return_thunk+0x5/0xfbef5
[   24.103085]  ? mutex_lock+0x91/0xe0
[   24.103121]  ? __pfx_mutex_lock+0x10/0x10
[   24.103158]  ? arch_exit_to_user_mode_prepare.constprop.0+0x16/0xb0
[   24.103190]  ? syscall_exit_to_user_mode+0x37/0x1c0
[   24.103225]  ? srso_alias_return_thunk+0x5/0xfbef5
[   24.103268]  ? srso_alias_return_thunk+0x5/0xfbef5
[   24.103309]  ? mutex_unlock+0x83/0xd0
[   24.103344]  ? __pfx_mutex_unlock+0x10/0x10
[   24.103380]  ? srso_alias_return_thunk+0x5/0xfbef5
[   24.103422]  ? srso_alias_return_thunk+0x5/0xfbef5
[   24.103463]  ? fpregs_assert_state_consistent+0xc1/0xe0
[   24.103494]  ? srso_alias_return_thunk+0x5/0xfbef5
[   24.103535]  ? arch_exit_to_user_mode_prepare.constprop.0+0x16/0xb0
[   24.103567]  ? srso_alias_return_thunk+0x5/0xfbef5
[   24.103608]  ? syscall_exit_to_user_mode+0x37/0x1c0
[   24.103650]  ? srso_alias_return_thunk+0x5/0xfbef5
[   24.103692]  ? do_syscall_64+0x95/0x1a0
[   24.103724]  ? srso_alias_return_thunk+0x5/0xfbef5
[   24.103765]  ? arch_exit_to_user_mode_prepare.constprop.0+0x16/0xb0
[   24.103797]  ? srso_alias_return_thunk+0x5/0xfbef5
[   24.103838]  ? syscall_exit_to_user_mode+0x37/0x1c0
[   24.103873]  ? srso_alias_return_thunk+0x5/0xfbef5
[   24.103915]  ? do_syscall_64+0x95/0x1a0
[   24.103946]  ? srso_alias_return_thunk+0x5/0xfbef5
[   24.103987]  ? syscall_exit_to_user_mode+0x37/0x1c0
[   24.104022]  ? srso_alias_return_thunk+0x5/0xfbef5
[   24.104064]  ? do_syscall_64+0x95/0x1a0
[   24.104096]  ? srso_alias_return_thunk+0x5/0xfbef5
[   24.104137]  ? __x64_sys_openat+0x145/0x200
[   24.104175]  ? __pfx___x64_sys_openat+0x10/0x10
[   24.104213]  ? srso_alias_return_thunk+0x5/0xfbef5
[   24.104256]  ? srso_alias_return_thunk+0x5/0xfbef5
[   24.104297]  ? fpregs_assert_state_consistent+0xc1/0xe0
[   24.104328]  ? srso_alias_return_thunk+0x5/0xfbef5
[   24.104369]  ? arch_exit_to_user_mode_prepare.constprop.0+0x16/0xb0
[   24.104401]  ? srso_alias_return_thunk+0x5/0xfbef5
[   24.104442]  ? syscall_exit_to_user_mode+0x37/0x1c0
[   24.104478]  ? srso_alias_return_thunk+0x5/0xfbef5
[   24.104519]  ? do_syscall_64+0x95/0x1a0
[   24.104550]  ? srso_alias_return_thunk+0x5/0xfbef5
[   24.104591]  ? do_syscall_64+0x95/0x1a0
[   24.104623]  ? srso_alias_return_thunk+0x5/0xfbef5
[   24.104672]  ? arch_exit_to_user_mode_prepare.constprop.0+0x16/0xb0
[   24.104704]  ? srso_alias_return_thunk+0x5/0xfbef5
[   24.104747]  entry_SYSCALL_64_after_hwframe+0x76/0x7e
[   24.104782] RIP: 0033:0x41ef6d
[   24.104802] Code: b3 66 2e 0f 1f 84 00 00 00 00 00 66 90 f3 0f 1e fa 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
[   24.104829] RSP: 002b:00007fff43875a68 EFLAGS: 00000246 ORIG_RAX: 000000000000004e
[   24.104856] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000041ef6d
[   24.104875] RDX: 0000000000000054 RSI: 0000000000000000 RDI: 0000000000000004
[   24.104893] RBP: 0000000023008340 R08: 0000000000000000 R09: 0000000000000000
[   24.104911] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004
[   24.104929] R13: 00007fff43875b20 R14: 0000200000004440 R15: 0000000000000003
[   24.104957]  </TASK>
[   24.104965] 
[   24.227124] The buggy address belongs to the physical page:
[   24.228395] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x1a0 pfn:0xad1e
[   24.230275] flags: 0xfffffc0000000(node=0|zone=1|lastcpupid=0x1fffff)
[   24.231772] raw: 000fffffc0000000 ffd40000002b47c8 ffd40000002b4748 0000000000000000
[   24.233533] raw: 00000000000001a0 0000000000000000 00000000ffffffff 0000000000000000
[   24.235291] page dumped because: kasan: bad access detected
[   24.236562] 
[   24.236968] Memory state around the buggy address:
[   24.238081]  ff1100000ad1eb80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   24.239732]  ff1100000ad1ec00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   24.241372] >ff1100000ad1ec80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   24.243017]                                                              ^
[   24.244576]  ff1100000ad1ed00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   24.246227]  ff1100000ad1ed80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   24.247873] ==================================================================
