Skip to contentSkip to conversation

cifs.ko: kernel panic in xfstests generic/464

BUG ChenXiaoSong 1 participant 1 message Aug 24

Subsystems (2)
lore
Share & tools
lore

ChenXiaoSong

author reviewer
#0 lore raw

I tested the ksmbd-for-next branch in Namjae's repository, and xfstests generic/464 triggered a kernel panic in cifs.ko. Please see the attached log for details.

Namjae's repository: https://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/smb.git/log/?h=ksmbd-for-next

If you need any further information, please let me know.

I would really appreciate it if someone else could take a look at this issue, since I still need to test ksmbd, improve ksmbd features, and review the ksmbd patches.

Signature · 3 lines
ChenXiaoSong <[email protected]>
Chinese Homepage: https://chenxiaosong.com
English Homepage: https://chenxiaosong.com/en
[ 6823.306127] run fstests generic/464 at 2026-08-24 18:28:48
[ 6825.253646] CIFS: Attempting to mount //192.168.53.213/test2
[ 6825.408476] CIFS: Attempting to mount //192.168.53.213/test2
[ 6827.590685] clocksource: Watchdog remote CPU 1 read timed out
[ 6831.339554] CIFS: Attempting to mount //192.168.53.213/test2
[ 6837.223542] CIFS: Attempting to mount //192.168.53.213/test2
[ 6843.185810] CIFS: Attempting to mount //192.168.53.213/test2
[ 6849.102139] CIFS: Attempting to mount //192.168.53.213/test2
[ 6855.038387] CIFS: Attempting to mount //192.168.53.213/test2
[ 6861.021820] CIFS: Attempting to mount //192.168.53.213/test2
[ 6866.788391] ------------[ cut here ]------------
[ 6866.789678] BUG: Dentry 00000000966352d2{i=98,n=154}  still in use (1) [unmount of cifs cifs]
[ 6866.791022] WARNING: fs/dcache.c:1789 at umount_check+0xb0/0x210, CPU#0: umount/306836
[ 6866.792298] Modules linked in: cifs cifs_md4 ksmbd smb_compress smbdirect rdma_cm iw_cm ib_cm ib_core libarc4 nls_ucs2_utils
[ 6866.794309] CPU: 0 UID: 0 PID: 306836 Comm: umount Not tainted 7.2.0+ #2 PREEMPT(full)
[ 6866.795642] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.17.0-9.fc43 06/10/2025
[ 6866.797046] RIP: 0010:umount_check+0x1ab/0x210
[ 6866.797890] Code: 3c 08 00 74 08 4c 89 ef e8 c2 02 eb ff 4d 8b 4d 00 49 81 c6 70 06 00 00 48 8b 7d d0 48 89 de 4c 89 fa 48 89 d9 45 89 e0 41 56 <67> 48 0f b9 3a 48 83 c4 08 31 c0 48 83 c4 08 5b 41 5c 41 5de
[ 6866.800639] RSP: 0018:ffff88810b487ad0 EFLAGS: 00010282
[ 6866.801473] RAX: 1ffffffff40d02c0 RBX: ffff8880098431a0 RCX: ffff8880098431a0
[ 6866.802598] RDX: 0000000000000098 RSI: ffff8880098431a0 RDI: ffffffff86d102e0
[ 6866.803732] RBP: ffff88810b487b08 R08: 0000000000000001 R09: ffffffffa0a10480
[ 6866.804879] R10: dffffc0000000000 R11: ffffffff820f0310 R12: 0000000000000001
[ 6866.805972] R13: ffffffffa0681600 R14: ffff888105438670 R15: 0000000000000098
[ 6866.807501] FS:  00007fe29a88e800(0000) GS:ffff888193353000(0000) knlGS:0000000000000000
[ 6866.808703] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 6866.809595] CR2: 00007fe29ab2ae60 CR3: 0000000102244000 CR4: 0000000000350ef0
[ 6866.810674] Call Trace:
[ 6866.811049]  <TASK>
[ 6866.811416]  d_walk+0x436/0x6b0
[ 6866.811916]  ? __pfx_umount_check+0x10/0x10
[ 6866.812603]  do_one_tree+0x43/0x130
[ 6866.813131]  shrink_dcache_for_umount+0xc3/0x430
[ 6866.813905]  ? fsnotify_sb_delete+0x257/0x390
[ 6866.814618]  ? do_raw_spin_unlock+0x118/0x280
[ 6866.815294]  generic_shutdown_super+0x7f/0x3c0
[ 6866.815972]  ? fast_dput+0x4ad/0x6a0
[ 6866.816577]  kill_anon_super+0x47/0x80
[ 6866.817140]  cifs_kill_sb+0x282/0x2f0 [cifs]
[ 6866.818773]  ? shrinker_free+0x300/0x400
[ 6866.819401]  deactivate_locked_super+0xc4/0x130
[ 6866.820092]  deactivate_super+0xb7/0xe0
[ 6866.820719]  cleanup_mnt+0x47f/0x510
[ 6866.821291]  __cleanup_mnt+0x22/0x30
[ 6866.821861]  task_work_run+0x199/0x210
[ 6866.822461]  exit_to_user_mode_loop+0x1f0/0x570
[ 6866.823134]  ? entry_SYSCALL_64_after_hwframe+0x76/0x7e
[ 6866.823947]  ? entry_SYSCALL_64_after_hwframe+0x76/0x7e
[ 6866.824761]  do_syscall_64+0x2b2/0x480
[ 6866.825368]  entry_SYSCALL_64_after_hwframe+0x76/0x7e
[ 6866.826125] RIP: 0033:0x7fe29aab7d8b
[ 6866.826714] Code: c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 f3 0f 1e fa 31 f6 e9 05 00 00 00 0f 1f 44 00 00 f3 0f 1e fa b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 05 c3 0f 1f 40 00 48 8b 15 59 b0 0c 008
[ 6866.829473] RSP: 002b:00007fff0efc21e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
[ 6866.830674] RAX: 0000000000000000 RBX: 00005593c1e17a00 RCX: 00007fe29aab7d8b
[ 6866.831751] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00005593c1e1c880
[ 6866.832842] RBP: 00007fff0efc22c0 R08: 00005593c1e17010 R09: 0000000000000007
[ 6866.833958] R10: 0000000000000000 R11: 0000000000000246 R12: 00005593c1e17b08
[ 6866.835033] R13: 0000000000000000 R14: 00005593c1e1c880 R15: 00005593c1e17e10
[ 6866.836119]  </TASK>
[ 6866.836519] irq event stamp: 39707
[ 6866.837028] hardirqs last  enabled at (39715): [<ffffffff8165f1d5>] __console_unlock+0x85/0x90
[ 6866.838324] hardirqs last disabled at (39724): [<ffffffff8165f1ba>] __console_unlock+0x6a/0x90
[ 6866.839648] softirqs last  enabled at (39644): [<ffffffff814a99af>] __irq_exit_rcu+0xbf/0x280
[ 6866.840917] softirqs last disabled at (39601): [<ffffffff814a99af>] __irq_exit_rcu+0xbf/0x280
[ 6866.842189] ---[ end trace 0000000000000000 ]---
[ 6866.886323] ------------[ cut here ]------------
[ 6866.888839] VFS: Busy inodes after unmount of cifs (cifs)
[ 6866.888853] WARNING: fs/super.c:657 at generic_shutdown_super+0x18d/0x3c0, CPU#3: umount/306836
[ 6866.892940] Modules linked in: cifs cifs_md4 ksmbd smb_compress smbdirect rdma_cm iw_cm ib_cm ib_core libarc4 nls_ucs2_utils
[ 6866.896673] CPU: 3 UID: 0 PID: 306836 Comm: umount Tainted: G        W           7.2.0+ #2 PREEMPT(full)
[ 6866.899428] Tainted: [W]=WARN
[ 6866.900359] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.17.0-9.fc43 06/10/2025
[ 6866.902906] RIP: 0010:generic_shutdown_super+0x1d6/0x3c0
[ 6866.904525] Code: 00 00 4d 8b 3f 4c 89 f8 48 c1 e8 03 42 80 3c 28 00 74 10 4c 89 ff 48 89 75 c8 e8 85 cb f1 ff 48 8b 75 c8 49 8b 17 48 8b 7d d0 <67> 48 0f b9 3a 4c 8d bb 80 09 00 00 4c 89 ff e8 c6 99 8a 020
[ 6866.909749] RSP: 0018:ffff88810b487c78 EFLAGS: 00010246
[ 6866.911284] RAX: 1ffffffff40d02c0 RBX: ffff888105438000 RCX: ffff88802fc22640
[ 6866.913371] RDX: ffffffffa0a10480 RSI: ffff888105438670 RDI: ffffffff86d0f690
[ 6866.915463] RBP: ffff88810b487cb0 R08: ffffffff86cdc23f R09: 1ffffffff0d9b847
[ 6866.917558] R10: dffffc0000000000 R11: fffffbfff0d9b848 R12: 1ffff11020a87138
[ 6866.919654] R13: dffffc0000000000 R14: ffff8881054389c0 R15: ffffffffa0681600
[ 6866.921756] FS:  00007fe29a88e800(0000) GS:ffff8881934d3000(0000) knlGS:0000000000000000
[ 6866.924102] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 6866.925819] CR2: 0000564add246970 CR3: 0000000102244000 CR4: 0000000000350ef0
[ 6866.927901] Call Trace:
[ 6866.928688]  <TASK>
[ 6866.929387]  ? fast_dput+0x4ad/0x6a0
[ 6866.930525]  kill_anon_super+0x47/0x80
[ 6866.931694]  cifs_kill_sb+0x282/0x2f0 [cifs]
[ 6866.935012]  ? shrinker_free+0x300/0x400
[ 6866.936235]  deactivate_locked_super+0xc4/0x130
[ 6866.937638]  deactivate_super+0xb7/0xe0
[ 6866.938681]  cleanup_mnt+0x47f/0x510
[ 6866.939577]  __cleanup_mnt+0x22/0x30
[ 6866.940446]  task_work_run+0x199/0x210
[ 6866.941366]  exit_to_user_mode_loop+0x1f0/0x570
[ 6866.942457]  ? entry_SYSCALL_64_after_hwframe+0x76/0x7e
[ 6866.943684]  ? entry_SYSCALL_64_after_hwframe+0x76/0x7e
[ 6866.944926]  do_syscall_64+0x2b2/0x480
[ 6866.945883]  entry_SYSCALL_64_after_hwframe+0x76/0x7e
[ 6866.947075] RIP: 0033:0x7fe29aab7d8b
[ 6866.947959] Code: c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 f3 0f 1e fa 31 f6 e9 05 00 00 00 0f 1f 44 00 00 f3 0f 1e fa b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 05 c3 0f 1f 40 00 48 8b 15 59 b0 0c 008
[ 6866.952090] RSP: 002b:00007fff0efc21e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
[ 6866.953843] RAX: 0000000000000000 RBX: 00005593c1e17a00 RCX: 00007fe29aab7d8b
[ 6866.955478] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00005593c1e1c880
[ 6866.957113] RBP: 00007fff0efc22c0 R08: 00005593c1e17010 R09: 0000000000000007
[ 6866.958777] R10: 0000000000000000 R11: 0000000000000246 R12: 00005593c1e17b08
[ 6866.960422] R13: 0000000000000000 R14: 00005593c1e1c880 R15: 00005593c1e17e10
[ 6866.961781]  </TASK>
[ 6866.962125] irq event stamp: 55219
[ 6866.962688] hardirqs last  enabled at (55229): [<ffffffff8165f1d5>] __console_unlock+0x85/0x90
[ 6866.963988] hardirqs last disabled at (55238): [<ffffffff8165f1ba>] __console_unlock+0x6a/0x90
[ 6866.965284] softirqs last  enabled at (55112): [<ffffffff814a99af>] __irq_exit_rcu+0xbf/0x280
[ 6866.966669] softirqs last disabled at (55107): [<ffffffff814a99af>] __irq_exit_rcu+0xbf/0x280
[ 6866.967949] ---[ end trace 0000000000000000 ]---
[ 6867.032098] CIFS: Attempting to mount //192.168.53.213/test2
[ 6867.045072] ==================================================================
[ 6867.046172] BUG: KASAN: slab-use-after-free in build_path_from_dentry+0x69/0x130 [cifs]
[ 6867.048858] Read of size 8 at addr ffff888105438640 by task mount.cifs/306842
[ 6867.050490]
[ 6867.050872] CPU: 3 UID: 0 PID: 306842 Comm: mount.cifs Tainted: G        W           7.2.0+ #2 PREEMPT(full)
[ 6867.050893] Tainted: [W]=WARN
[ 6867.050898] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.17.0-9.fc43 06/10/2025
[ 6867.050906] Call Trace:
[ 6867.050910]  <TASK>
[ 6867.050916]  __dump_stack+0x21/0x30
[ 6867.050937]  dump_stack_lvl+0xac/0xe0
[ 6867.050956]  print_address_description+0x7b/0x200
[ 6867.050977]  ? build_path_from_dentry+0x69/0x130 [cifs]
[ 6867.051955]  print_report+0x5b/0x70
[ 6867.051966]  kasan_report+0xf9/0x130
[ 6867.051977]  ? build_path_from_dentry+0x69/0x130 [cifs]
[ 6867.052900]  __asan_report_load8_noabort+0x18/0x20
[ 6867.052911]  build_path_from_dentry+0x69/0x130 [cifs]
[ 6867.053832]  cifs_get_readable_path+0x10d/0x260 [cifs]
[ 6867.054755]  smb2_query_path_info+0x251/0x12c0 [cifs]
[ 6867.055675]  ? is_bpf_text_address+0x2e/0x2c0
[ 6867.055689]  ? is_bpf_text_address+0x291/0x2c0
[ 6867.055699]  ? __is_insn_slot_addr+0x204/0x220
[ 6867.055712]  ? is_bpf_text_address+0x2e/0x2c0
[ 6867.055732]  cifs_get_fattr+0x2c6/0x3580 [cifs]
[ 6867.056667]  ? __kasan_kmalloc+0x79/0x90
[ 6867.056674]  ? __kmalloc_node_track_caller_noprof+0x448/0x6c0
[ 6867.056689]  ? cifs_root_iget+0x214/0x920 [cifs]
[ 6867.057618]  ? cifs_read_super+0x751/0xa10 [cifs]
[ 6867.058542]  ? cifs_smb3_do_mount+0x4b7/0x7f0 [cifs]
[ 6867.059468]  ? do_new_mount+0x26d/0xc40
[ 6867.059480]  ? path_mount+0x68e/0x1030
[ 6867.059491]  ? __se_sys_mount+0x2e1/0x330
[ 6867.059503]  ? __x64_sys_mount+0xc8/0xe0
[ 6867.059515]  ? x64_sys_call+0x2d62/0x3030
[ 6867.059526]  ? do_syscall_64+0x10a/0x480
[ 6867.059534]  ? entry_SYSCALL_64_after_hwframe+0x76/0x7e
[ 6867.059545]  ? stack_depot_save_flags+0x36/0x860
[ 6867.059572]  ? _get_xid+0x2d/0x260 [cifs]
[ 6867.060503]  cifs_root_iget+0x580/0x920 [cifs]
[ 6867.061434]  cifs_read_super+0x751/0xa10 [cifs]
[ 6867.062362]  cifs_smb3_do_mount+0x4b7/0x7f0 [cifs]
[ 6867.063285]  smb3_get_tree+0x41f/0x4c0 [cifs]
[ 6867.064213]  vfs_get_tree+0x9a/0x2d0
[ 6867.064224]  do_new_mount+0x26d/0xc40
[ 6867.064240]  path_mount+0x68e/0x1030
[ 6867.064251]  ? user_path_at+0xeb/0x170
[ 6867.064264]  __se_sys_mount+0x2e1/0x330
[ 6867.064276]  ? __se_sys_capset+0x2fd/0x340
[ 6867.064290]  __x64_sys_mount+0xc8/0xe0
[ 6867.064302]  ? entry_SYSCALL_64_after_hwframe+0x76/0x7e
[ 6867.064317]  x64_sys_call+0x2d62/0x3030
[ 6867.064327]  do_syscall_64+0x10a/0x480
[ 6867.064338]  entry_SYSCALL_64_after_hwframe+0x76/0x7e
[ 6867.064346] RIP: 0033:0x7f5efb8a229e
[ 6867.064354] Code: 48 8b 0d 7d ab 0c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 4a ab 0c 00 f7 d8 64 898
[ 6867.064361] RSP: 002b:00007ffcb60d5238 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
[ 6867.064370] RAX: ffffffffffffffda RBX: 0000562674a8ceb0 RCX: 00007f5efb8a229e
[ 6867.064377] RDX: 00005626626d147e RSI: 00005626626d14e4 RDI: 00007ffcb60d6c97
[ 6867.064383] RBP: 00007ffcb60d52f0 R08: 0000562674a8ceb0 R09: 0000000000000000
[ 6867.064389] R10: 0000000000000000 R11: 0000000000000246 R12: 000000000000000a
[ 6867.064394] R13: 00007ffcb60d6c97 R14: 0000562674a8def0 R15: 00007f5efb989000
[ 6867.064407]  </TASK>
[ 6867.064410]
[ 6867.107901] Allocated by task 305117:
[ 6867.108471]  kasan_save_track+0x2f/0x70
[ 6867.109046]  kasan_save_alloc_info+0x40/0x50
[ 6867.109720]  __kasan_kmalloc+0x79/0x90
[ 6867.110280]  __kmalloc_cache_noprof+0x300/0x600
[ 6867.110999]  sget_fc+0x64e/0x1750
[ 6867.111538]  cifs_smb3_do_mount+0x3cb/0x7f0 [cifs]
[ 6867.113164]  smb3_get_tree+0x41f/0x4c0 [cifs]
[ 6867.114753]  vfs_get_tree+0x9a/0x2d0
[ 6867.115291]  do_new_mount+0x26d/0xc40
[ 6867.115890]  path_mount+0x68e/0x1030
[ 6867.116464]  __se_sys_mount+0x2e1/0x330
[ 6867.117041]  __x64_sys_mount+0xc8/0xe0
[ 6867.117641]  x64_sys_call+0x2d62/0x3030
[ 6867.118215]  do_syscall_64+0x10a/0x480
[ 6867.118807]  entry_SYSCALL_64_after_hwframe+0x76/0x7e
[ 6867.119580]
[ 6867.119827] Freed by task 293690:
[ 6867.120333]  kasan_save_track+0x2f/0x70
[ 6867.120943]  kasan_save_free_info+0x4a/0x60
[ 6867.121594]  __kasan_slab_free+0x47/0x70
[ 6867.122182]  kfree+0x1a5/0x590
[ 6867.122715]  destroy_super_work+0x15e/0x190
[ 6867.123343]  process_scheduled_works+0xa3d/0x1640
[ 6867.124074]  worker_thread+0xa15/0xf60
[ 6867.124667]  kthread+0x392/0x480
[ 6867.125163]  ret_from_fork+0x3c2/0x9f0
[ 6867.125761]  ret_from_fork_asm+0x1a/0x30
[ 6867.126355]
[ 6867.126641] Last potentially related work creation:
[ 6867.127360]  kasan_save_stack+0x2f/0x50
[ 6867.127960]  kasan_record_aux_stack+0x9d/0xb0
[ 6867.128665]  insert_work+0x39/0x300
[ 6867.129190]  __queue_work+0xc75/0xff0
[ 6867.129774]  queue_work_on+0x103/0x160
[ 6867.130344]  destroy_super_rcu+0xff/0x110
[ 6867.130990]  rcu_do_batch+0x4f9/0xd60
[ 6867.131592]  rcu_core+0x3a5/0x640
[ 6867.132097]  rcu_core_si+0x12/0x20
[ 6867.132642]  handle_softirqs+0x250/0x7e0
[ 6867.133227]  __irq_exit_rcu+0xbf/0x280
[ 6867.133821]  irq_exit_rcu+0x12/0x20
[ 6867.134355]  sysvec_apic_timer_interrupt+0x7a/0x90
[ 6867.135099]  asm_sysvec_apic_timer_interrupt+0x1f/0x30
[ 6867.135901]
[ 6867.136149] Second to last potentially related work creation:
[ 6867.137011]  kasan_save_stack+0x2f/0x50
[ 6867.137619]  kasan_record_aux_stack+0x9d/0xb0
[ 6867.138268]  call_rcu+0x89/0x780
[ 6867.138808]  __put_super+0x1a3/0x1f0
[ 6867.139354]  deactivate_locked_super+0x100/0x130
[ 6867.140056]  deactivate_super+0xb7/0xe0
[ 6867.140665]  cleanup_mnt+0x47f/0x510
[ 6867.141203]  __cleanup_mnt+0x22/0x30
[ 6867.141769]  task_work_run+0x199/0x210
[ 6867.142342]  exit_to_user_mode_loop+0x1f0/0x570
[ 6867.143035]  do_syscall_64+0x2b2/0x480
[ 6867.143629]  entry_SYSCALL_64_after_hwframe+0x76/0x7e
[ 6867.144376]
[ 6867.144673] The buggy address belongs to the object at ffff888105438000
[ 6867.144673]  which belongs to the cache kmalloc-4k of size 4096
[ 6867.146508] The buggy address is located 1600 bytes inside of
[ 6867.146508]  freed 4096-byte region [ffff888105438000, ffff888105439000)
[ 6867.148308]
[ 6867.148596] The buggy address belongs to the physical page:
[ 6867.149409] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88810543e000 pfn:0x105438
[ 6867.150790] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[ 6867.151914] flags: 0x17ffffc0000240(workingset|head|node=0|zone=2|lastcpupid=0x1fffff)
[ 6867.153092] page_type: f5(slab)
[ 6867.153609] raw: 0017ffffc0000240 ffff888100043040 ffffea00009b1c10 ffffea0002c56c10
[ 6867.154748] raw: ffff88810543e000 0000000800040003 00000000f5000000 0000000000000000
[ 6867.155897] head: 0017ffffc0000240 ffff888100043040 ffffea00009b1c10 ffffea0002c56c10
[ 6867.157050] head: ffff88810543e000 0000000800040003 00000000f5000000 0000000000000000
[ 6867.158203] head: 0017ffffc0000003 fffffffffffffe01 00000000ffffffff 00000000ffffffff
[ 6867.159363] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008
[ 6867.160596] page dumped because: kasan: bad access detected
[ 6867.161408]
[ 6867.161676] Memory state around the buggy address:
[ 6867.162397]  ffff888105438500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[ 6867.163508]  ffff888105438580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[ 6867.164585] >ffff888105438600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[ 6867.165655]                                            ^
[ 6867.166468]  ffff888105438680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[ 6867.167550]  ffff888105438700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[ 6867.168645] ==================================================================
[ 6867.169761] Disabling lock debugging due to kernel taint
[ 6867.442037] Oops: general protection fault, probably for non-canonical address 0xfbd59c00000000e6: 0000 [#1] SMP KASAN NOPTI
[ 6867.443773] KASAN: maybe wild-memory-access in range [0xdead000000000730-0xdead000000000737]
[ 6867.445025] CPU: 3 UID: 0 PID: 306928 Comm: xfs_io Tainted: G    B   W           7.2.0+ #2 PREEMPT(full)
[ 6867.446461] Tainted: [B]=BAD_PAGE, [W]=WARN
[ 6867.447077] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.17.0-9.fc43 06/10/2025
[ 6867.448389] RIP: 0010:__find_readable_file+0x60/0x440 [cifs]
[ 6867.450167] Code: 48 83 c3 28 48 89 d8 48 c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 e0 49 33 e1 41 be 40 06 00 00 4c 03 33 4c 89 f0 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 f7 e8 c1 49 33 e1 49 8b 1e 48 834
[ 6867.452913] RSP: 0018:ffff888026ee7318 EFLAGS: 00010213
[ 6867.453724] RAX: 1bd5a000000000e6 RBX: ffff88803453c0d8 RCX: ffff8881132f2640
[ 6867.454825] RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff88803453c0b0
[ 6867.455889] RBP: ffff888026ee7360 R08: ffffffff86cdc23f R09: 1ffffffff0d9b847
[ 6867.456946] R10: dffffc0000000000 R11: fffffbfff0d9b848 R12: dffffc0000000000
[ 6867.458005] R13: 1ffff1102107fe16 R14: dead000000000735 R15: 0000000000000004
[ 6867.459072] FS:  00007fd92ac71cc0(0000) GS:ffff8881934d3000(0000) knlGS:0000000000000000
[ 6867.460275] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 6867.461164] CR2: 00007ffc43f9e9d8 CR3: 0000000032018000 CR4: 0000000000350ef0
[ 6867.462235] Call Trace:
[ 6867.462684]  <TASK>
[ 6867.463060]  cifs_get_readable_path+0x20f/0x260 [cifs]
[ 6867.464891]  smb2_query_path_info+0x251/0x12c0 [cifs]
[ 6867.466687]  ? 0xffffffffa00007a0
[ 6867.467246]  ? stack_trace_save+0x4b/0x70
[ 6867.467954]  ? update_stack_state+0x416/0x500
[ 6867.468726]  cifs_get_fattr+0x2c6/0x3580 [cifs]
[ 6867.470443]  ? is_bpf_text_address+0x2e/0x2c0
[ 6867.471173]  ? __kernel_text_address+0x16/0x40
[ 6867.471939]  ? unwind_get_return_address+0x56/0xa0
[ 6867.472759]  ? __pfx_stack_trace_consume_entry+0x10/0x10
[ 6867.473696]  ? arch_stack_walk+0x99/0xf0
[ 6867.474362]  ? stack_depot_save_flags+0x36/0x860
[ 6867.475159]  ? lock_release+0x44/0x350
[ 6867.475826]  ? prepend+0x167/0x210
[ 6867.476418]  cifs_get_inode_info+0x81/0x540 [cifs]
[ 6867.478163]  cifs_lookup+0x592/0xcd0 [cifs]
[ 6867.479816]  __lookup_slow+0x220/0x310
[ 6867.480475]  lookup_slow+0x5c/0x80
[ 6867.481046]  path_lookupat+0x403/0x8f0
[ 6867.481713]  filename_lookup+0x1c7/0x4d0
[ 6867.482385]  ? __check_object_size+0x58f/0x710
[ 6867.483143]  vfs_statx+0x94/0x4b0
[ 6867.483735]  ? do_getname+0x167/0x270
[ 6867.484363]  vfs_fstatat+0x134/0x190
[ 6867.484943]  __x64_sys_newfstatat+0xba/0x120
[ 6867.485641]  ? entry_SYSCALL_64_after_hwframe+0x76/0x7e
[ 6867.486423]  ? entry_SYSCALL_64_after_hwframe+0x76/0x7e
[ 6867.487190]  x64_sys_call+0x2c4e/0x3030
[ 6867.487802]  do_syscall_64+0x10a/0x480
[ 6867.488384]  entry_SYSCALL_64_after_hwframe+0x76/0x7e
[ 6867.489149] RIP: 0033:0x7fd92adaa5be
[ 6867.489718] Code: 0f 1f 40 00 48 8b 15 59 d8 0d 00 f7 d8 64 89 02 b8 ff ff ff ff c3 66 0f 1f 44 00 00 f3 0f 1e fa 41 89 ca b8 06 01 00 00 0f 05 <3d> 00 f0 ff ff 77 0b 31 c0 c3 0f 1f 84 00 00 00 00 00 48 8b1
[ 6867.492416] RSP: 002b:00007ffc8af8e5f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000106
[ 6867.493542] RAX: ffffffffffffffda RBX: 0000000000000242 RCX: 00007fd92adaa5be
[ 6867.494626] RDX: 00007ffc8af8e690 RSI: 00007ffc8af8fc34 RDI: 00000000ffffff9c
[ 6867.495687] RBP: 00007ffc8af8e7f0 R08: 00007ffc8af8e830 R09: 0000000000000000
[ 6867.496759] R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffc8af8e830
[ 6867.497844] R13: 00007ffc8af8fc34 R14: 0000000000000060 R15: 00007ffc8af8e980
[ 6867.498917]  </TASK>
[ 6867.499259] Modules linked in: cifs cifs_md4 ksmbd smb_compress smbdirect rdma_cm iw_cm ib_cm ib_core libarc4 nls_ucs2_utils
[ 6867.501105] ---[ end trace 0000000000000000 ]---
[ 6867.516641] RIP: 0010:__find_readable_file+0x60/0x440 [cifs]
[ 6867.518890] Code: 48 83 c3 28 48 89 d8 48 c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 e0 49 33 e1 41 be 40 06 00 00 4c 03 33 4c 89 f0 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 f7 e8 c1 49 33 e1 49 8b 1e 48 834
[ 6867.522424] RSP: 0018:ffff888026ee7318 EFLAGS: 00010213
[ 6867.523348] RAX: 1bd5a000000000e6 RBX: ffff88803453c0d8 RCX: ffff8881132f2640
[ 6867.524649] RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff88803453c0b0
[ 6867.526770] RBP: ffff888026ee7360 R08: ffffffff86cdc23f R09: 1ffffffff0d9b847
[ 6867.527955] R10: dffffc0000000000 R11: fffffbfff0d9b848 R12: dffffc0000000000
[ 6867.529835] R13: 1ffff1102107fe16 R14: dead000000000735 R15: 0000000000000004
[ 6867.532447] FS:  00007fd92ac71cc0(0000) GS:ffff888193453000(0000) knlGS:0000000000000000
[ 6867.533674] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 6867.536423] CR2: 00007f7fa73dac58 CR3: 0000000032018000 CR4: 0000000000350ef0
[ 6867.538712] Kernel panic - not syncing: Fatal exception
[ 6867.539775] Kernel Offset: disabled
[ 6867.540312] ---[ end Kernel panic - not syncing: Fatal exception ]---