[   23.933296] ==================================================================
[   23.934957] BUG: KASAN: slab-use-after-free in ext4_search_dir+0x299/0x2e0
[   23.936564] Read of size 1 at addr ff11000003394072 by task repro.bin/333
[   23.938114] 
[   23.938508] CPU: 0 UID: 0 PID: 333 Comm: repro.bin Not tainted 6.12.116 #1 
[   23.938543] 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
[   23.938561] Call Trace:
[   23.938570]  <TASK>
[   23.938580]  dump_stack_lvl+0xbc/0xf0
[   23.938625]  print_report+0xcb/0x610
[   23.938665]  ? ext4_search_dir+0x299/0x2e0
[   23.938705]  kasan_report+0xb8/0xf0
[   23.938743]  ? ext4_search_dir+0x299/0x2e0
[   23.938786]  ext4_search_dir+0x299/0x2e0
[   23.938842]  ext4_find_inline_entry+0x441/0x5e0
[   23.938891]  ? __pfx_ext4_find_inline_entry+0x10/0x10
[   23.938942]  ? __pfx_tomoyo_path_number_perm+0x10/0x10
[   23.938979]  ? kmem_cache_alloc_noprof+0x129/0x310
[   23.939022]  ? security_file_alloc+0x3a/0x2f0
[   23.939067]  __ext4_find_entry+0x6e2/0x10d0
[   23.939107]  ? srso_alias_return_thunk+0x5/0xfbef5
[   23.939137]  ? _raw_spin_lock+0x85/0xe0
[   23.939184]  ? ext4_fname_setup_ci_filename+0x29e/0x540
[   23.939229]  ? __pfx___ext4_find_entry+0x10/0x10
[   23.939280]  ext4_lookup+0x501/0x700
[   23.939318]  ? make_vfsuid+0xfd/0x150
[   23.939365]  ? __pfx_ext4_lookup+0x10/0x10
[   23.939406]  ? srso_alias_return_thunk+0x5/0xfbef5
[   23.939434]  ? make_vfsgid+0xff/0x150
[   23.939463]  ? srso_alias_return_thunk+0x5/0xfbef5
[   23.939491]  ? security_inode_permission+0xd4/0x2b0
[   23.939530]  ? srso_alias_return_thunk+0x5/0xfbef5
[   23.939559]  ? inode_permission+0xe1/0x5f0
[   23.939600]  path_openat+0x1c0c/0x3d20
[   23.939635]  ? __pfx_path_openat+0x10/0x10
[   23.939661]  ? wakeup_preempt+0x161/0x260
[   23.939691]  ? srso_alias_return_thunk+0x5/0xfbef5
[   23.939719]  ? enqueue_task+0x1bb/0x440
[   23.939747]  ? ttwu_do_activate+0x133/0x750
[   23.939801]  ? srso_alias_return_thunk+0x5/0xfbef5
[   23.939829]  ? srso_alias_return_thunk+0x5/0xfbef5
[   23.939861]  do_filp_open+0x1cc/0x420
[   23.939887]  ? __pfx_try_to_wake_up+0x10/0x10
[   23.939931]  ? __pfx_do_filp_open+0x10/0x10
[   23.939958]  ? srso_alias_return_thunk+0x5/0xfbef5
[   23.939986]  ? expand_files+0x667/0x950
[   23.940033]  ? srso_alias_return_thunk+0x5/0xfbef5
[   23.940062]  ? srso_alias_return_thunk+0x5/0xfbef5
[   23.940090]  ? _raw_spin_lock+0x85/0xe0
[   23.940135]  ? __pfx__raw_spin_lock+0x10/0x10
[   23.940183]  ? srso_alias_return_thunk+0x5/0xfbef5
[   23.940212]  ? srso_alias_return_thunk+0x5/0xfbef5
[   23.940240]  ? alloc_fd+0x215/0x690
[   23.940285]  do_sys_openat2+0x169/0x1d0
[   23.940322]  ? __pfx_do_sys_openat2+0x10/0x10
[   23.940359]  ? srso_alias_return_thunk+0x5/0xfbef5
[   23.940388]  ? __asan_memset+0x24/0x50
[   23.940419]  __x64_sys_openat+0x145/0x200
[   23.940456]  ? __pfx___x64_sys_openat+0x10/0x10
[   23.940495]  ? srso_alias_return_thunk+0x5/0xfbef5
[   23.940523]  ? restore_fpregs_from_fpstate+0x57/0x100
[   23.940559]  do_syscall_64+0x89/0x1a0
[   23.940605]  ? srso_alias_return_thunk+0x5/0xfbef5
[   23.940633]  ? syscall_exit_to_user_mode+0x37/0x1c0
[   23.940662]  ? srso_alias_return_thunk+0x5/0xfbef5
[   23.940690]  ? do_syscall_64+0x95/0x1a0
[   23.940735]  ? srso_alias_return_thunk+0x5/0xfbef5
[   23.940763]  ? switch_fpu_return+0x112/0x270
[   23.940800]  ? srso_alias_return_thunk+0x5/0xfbef5
[   23.940829]  ? arch_exit_to_user_mode_prepare.constprop.0+0x7c/0xb0
[   23.940881]  ? srso_alias_return_thunk+0x5/0xfbef5
[   23.940909]  ? syscall_exit_to_user_mode+0x37/0x1c0
[   23.940937]  ? srso_alias_return_thunk+0x5/0xfbef5
[   23.940965]  ? do_syscall_64+0x95/0x1a0
[   23.941009]  ? srso_alias_return_thunk+0x5/0xfbef5
[   23.941037]  ? arch_exit_to_user_mode_prepare.constprop.0+0x16/0xb0
[   23.941088]  ? srso_alias_return_thunk+0x5/0xfbef5
[   23.941116]  ? syscall_exit_to_user_mode+0x37/0x1c0
[   23.941144]  ? srso_alias_return_thunk+0x5/0xfbef5
[   23.941172]  ? do_syscall_64+0x95/0x1a0
[   23.941218]  ? srso_alias_return_thunk+0x5/0xfbef5
[   23.941246]  ? arch_exit_to_user_mode_prepare.constprop.0+0x7c/0xb0
[   23.941296]  ? srso_alias_return_thunk+0x5/0xfbef5
[   23.941325]  ? syscall_exit_to_user_mode+0x37/0x1c0
[   23.941353]  ? srso_alias_return_thunk+0x5/0xfbef5
[   23.941381]  ? do_syscall_64+0x95/0x1a0
[   23.941428]  ? srso_alias_return_thunk+0x5/0xfbef5
[   23.941456]  ? xfd_validate_state+0x56/0x180
[   23.941496]  ? srso_alias_return_thunk+0x5/0xfbef5
[   23.941524]  ? restore_fpregs_from_fpstate+0x57/0x100
[   23.941556]  ? srso_alias_return_thunk+0x5/0xfbef5
[   23.941584]  ? switch_fpu_return+0x112/0x270
[   23.941614]  ? srso_alias_return_thunk+0x5/0xfbef5
[   23.941642]  ? arch_exit_to_user_mode_prepare.constprop.0+0x7c/0xb0
[   23.941692]  ? srso_alias_return_thunk+0x5/0xfbef5
[   23.941721]  ? syscall_exit_to_user_mode+0x37/0x1c0
[   23.941749]  ? srso_alias_return_thunk+0x5/0xfbef5
[   23.941777]  ? do_syscall_64+0x95/0x1a0
[   23.941830]  ? srso_alias_return_thunk+0x5/0xfbef5
[   23.941858]  ? fpregs_assert_state_consistent+0xc1/0xe0
[   23.941889]  ? srso_alias_return_thunk+0x5/0xfbef5
[   23.941918]  ? arch_exit_to_user_mode_prepare.constprop.0+0x16/0xb0
[   23.941968]  ? srso_alias_return_thunk+0x5/0xfbef5
[   23.941996]  ? syscall_exit_to_user_mode+0x37/0x1c0
[   23.942025]  ? srso_alias_return_thunk+0x5/0xfbef5
[   23.942053]  ? do_syscall_64+0x95/0x1a0
[   23.942098]  ? srso_alias_return_thunk+0x5/0xfbef5
[   23.942126]  ? exc_page_fault+0xbb/0x190
[   23.942172]  entry_SYSCALL_64_after_hwframe+0x76/0x7e
[   23.942215] RIP: 0033:0x42406d
[   23.942235] 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 b8 ff ff ff f7 d8 64 89 01 48
[   23.942263] RSP: 002b:00007f83a8c17208 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
[   23.942289] RAX: ffffffffffffffda RBX: 00000000004cbe60 RCX: 000000000042406d
[   23.942308] RDX: 0000000000000042 RSI: 0000200000000040 RDI: 00000000ffffff9c
[   23.942327] RBP: 000000000049df14 R08: 0000000000000000 R09: 0000000000000000
[   23.942345] R10: 0000000000000000 R11: 0000000000000246 R12: 0000200000000100
[   23.942363] R13: 000000000049b0a6 R14: 00002000000001fa R15: 00000000004cbe68
[   23.942391]  </TASK>
[   23.942400] 
[   24.068227] Allocated by task 252:
[   24.069042]  kasan_save_stack+0x24/0x50
[   24.069968]  kasan_save_track+0x14/0x30
[   24.070890]  __kasan_kmalloc+0xaa/0xb0
[   24.071793]  __kmalloc_node_track_caller_noprof+0x1ef/0x490
[   24.073099]  kmalloc_reserve+0xf4/0x2c0
[   24.074037]  __alloc_skb+0x167/0x370
[   24.074903]  alloc_skb_with_frags+0x97/0x7b0
[   24.075933]  sock_alloc_send_pskb+0x884/0xa20
[   24.076975]  unix_dgram_sendmsg+0x40f/0x1970
[   24.078000]  sock_write_iter+0x4c2/0x540
[   24.078938]  vfs_write+0xa7e/0xe40
[   24.079772]  ksys_write+0x1f2/0x250
[   24.080637]  do_syscall_64+0x89/0x1a0
[   24.081538]  entry_SYSCALL_64_after_hwframe+0x76/0x7e
[   24.082732] 
[   24.083136] Freed by task 246:
[   24.083877]  kasan_save_stack+0x24/0x50
[   24.084796]  kasan_save_track+0x14/0x30
[   24.085709]  kasan_save_free_info+0x3b/0x60
[   24.086719]  __kasan_slab_free+0x54/0x70
[   24.087662]  kfree+0x12a/0x420
[   24.088424]  skb_free_head+0x15c/0x1e0
[   24.089324]  skb_release_data+0x50a/0x6d0
[   24.090287]  consume_skb+0xd8/0x260
[   24.091145]  __unix_dgram_recvmsg+0x463/0xf40
[   24.092187]  unix_dgram_recvmsg+0xd3/0xf0
[   24.093147]  sock_recvmsg+0x18a/0x1d0
[   24.094028]  ____sys_recvmsg+0x215/0x610
[   24.094965]  ___sys_recvmsg+0x104/0x190
[   24.095893]  __sys_recvmsg+0x153/0x210
[   24.096803]  do_syscall_64+0x89/0x1a0
[   24.097694]  entry_SYSCALL_64_after_hwframe+0x76/0x7e
[   24.098898] 
[   24.099289] The buggy address belongs to the object at ff11000003394000
[   24.099289]  which belongs to the cache kmalloc-cg-512 of size 512
[   24.102163] The buggy address is located 114 bytes inside of
[   24.102163]  freed 512-byte region [ff11000003394000, ff11000003394200)
[   24.104900] 
[   24.105292] The buggy address belongs to the physical page:
[   24.106563] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x3394
[   24.108340] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   24.110079] memcg:ff11000005998d01
[   24.110890] flags: 0xfffffc0000040(head|node=0|zone=1|lastcpupid=0x1fffff)
[   24.112452] page_type: f5(slab)
[   24.113224] raw: 000fffffc0000040 ff11000001040140 ffd40000000d5d00 0000000000000002
[   24.114988] raw: 0000000000000000 0000000000100010 00000001f5000000 ff11000005998d01
[   24.116748] head: 000fffffc0000040 ff11000001040140 ffd40000000d5d00 0000000000000002
[   24.118533] head: 0000000000000000 0000000000100010 00000001f5000000 ff11000005998d01
[   24.120317] head: 000fffffc0000002 ffd40000000ce501 ffffffffffffffff 0000000000000000
[   24.122101] head: ff11000000000004 0000000000000000 00000000ffffffff 0000000000000000
[   24.123875] page dumped because: kasan: bad access detected
[   24.125148] 
[   24.125541] Memory state around the buggy address:
[   24.126654]  ff11000003393f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.128308]  ff11000003393f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   24.129960] >ff11000003394000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   24.131597]                                                              ^
[   24.133171]  ff11000003394080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   24.134820]  ff11000003394100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   24.136456] ==================================================================
