syzbot
stack segment fault in kernfs_rename_ns (2)
Status:
upstream: reported on 2026/09/02 17:33
Subsystems:
kernfs
Labels:
prio:high
[Documentation on labels]
Reported-by: syzbot+80df2191816d8486bc51@syzkaller.appspotmail.com
First crash: 162d, last: 14d
Sample crash report:
Oops: stack segment: 0000 [#1] SMP KASAN PTI
CPU: 0 UID: 0 PID: 9889 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
RIP: 0010:kernfs_rename_ns+0x3a/0x930 fs/kernfs/dir.c:1828
Code: ec 40 48 89 cb 48 89 54 24 08 49 89 f5 49 89 fe 49 bf 00 00 00 00 00 fc ff df e8 e1 76 4e ff 4d 8d 66 30 4c 89 e5 48 c1 ed 03 <42> 80 7c 3d 00 00 74 08 4c 89 e7 e8 36 40 be ff 49 83 3c 24 00 0f
RSP: 0018:ffffc9000e537608 EFLAGS: 00010206
RAX: ffffffff8279443f RBX: 0000000000000000 RCX: ffff88802fe98000
RDX: 0000000000000000 RSI: ffff888022acf4b0 RDI: 0000000000000000
RBP: 0000000000000006 R08: ffff88802fe98000 R09: 0000000000000008
R10: 0000000000000007 R11: 0000000000000000 R12: 0000000000000030
R13: ffff888022acf4b0 R14: 0000000000000000 R15: dffffc0000000000
FS: 0000000000000000(0000) GS:ffff888124cd9000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f9e98627dac CR3: 0000000046e0e000 CR4: 00000000003526f0
Call Trace:
<TASK>
kobject_move+0x560/0x720 lib/kobject.c:569
device_move+0xe0/0x720 drivers/base/core.c:4693
hci_conn_del_sysfs+0xb8/0x1a0 net/bluetooth/hci_sysfs.c:75
hci_conn_cleanup net/bluetooth/hci_conn.c:170 [inline]
hci_conn_del+0xc3d/0x1200 net/bluetooth/hci_conn.c:1318
hci_conn_hash_flush+0x189/0x260 net/bluetooth/hci_conn.c:2747
hci_dev_close_sync+0x7fc/0x10c0 net/bluetooth/hci_sync.c:5593
hci_dev_do_close net/bluetooth/hci_core.c:502 [inline]
hci_unregister_dev+0x232/0x5b0 net/bluetooth/hci_core.c:2681
vhci_release+0x16d/0x1c0 drivers/bluetooth/hci_vhci.c:700
__fput+0x418/0xa50 fs/file_table.c:512
task_work_run+0x1d9/0x270 kernel/task_work.c:233
exit_task_work include/linux/task_work.h:40 [inline]
do_exit+0x73a/0x2360 kernel/exit.c:1008
do_group_exit+0x22d/0x2f0 kernel/exit.c:1151
get_signal+0x121b/0x12c0 kernel/signal.c:3039
arch_do_signal_or_restart+0xbb/0x860 arch/x86/kernel/signal.c:337
__exit_to_user_mode_loop kernel/entry/common.c:66 [inline]
exit_to_user_mode_loop+0x10e/0x770 kernel/entry/common.c:101
__exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline]
syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline]
syscall_exit_to_user_mode include/linux/entry-common.h:336 [inline]
do_syscall_64+0x328/0x520 arch/x86/entry/syscall_64.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f5a96f5e98e
Code: Unable to access opcode bytes at 0x7f5a96f5e964.
RSP: 002b:00007ffd19062f38 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: 0000000000000040 RBX: 000055558e0c9500 RCX: 00007f5a96f5e98e
RDX: 0000000000000040 RSI: 00007f5a97d54670 RDI: 0000000000000003
RBP: 0000000000000001 R08: 00007ffd19062fb4 R09: 000000000000000c
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003
R13: 0000000000000000 R14: 00007f5a97d54670 R15: 0000000000000000
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:kernfs_rename_ns+0x3a/0x930 fs/kernfs/dir.c:1828
Code: ec 40 48 89 cb 48 89 54 24 08 49 89 f5 49 89 fe 49 bf 00 00 00 00 00 fc ff df e8 e1 76 4e ff 4d 8d 66 30 4c 89 e5 48 c1 ed 03 <42> 80 7c 3d 00 00 74 08 4c 89 e7 e8 36 40 be ff 49 83 3c 24 00 0f
RSP: 0018:ffffc9000e537608 EFLAGS: 00010206
RAX: ffffffff8279443f RBX: 0000000000000000 RCX: ffff88802fe98000
RDX: 0000000000000000 RSI: ffff888022acf4b0 RDI: 0000000000000000
RBP: 0000000000000006 R08: ffff88802fe98000 R09: 0000000000000008
R10: 0000000000000007 R11: 0000000000000000 R12: 0000000000000030
R13: ffff888022acf4b0 R14: 0000000000000000 R15: dffffc0000000000
FS: 0000000000000000(0000) GS:ffff888124cd9000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00002000000000c0 CR3: 000000007a82e000 CR4: 00000000003526f0
----------------
Code disassembly (best guess):
0: ec in (%dx),%al
1: 40 rex
2: 48 89 cb mov %rcx,%rbx
5: 48 89 54 24 08 mov %rdx,0x8(%rsp)
a: 49 89 f5 mov %rsi,%r13
d: 49 89 fe mov %rdi,%r14
10: 49 bf 00 00 00 00 00 movabs $0xdffffc0000000000,%r15
17: fc ff df
1a: e8 e1 76 4e ff call 0xff4e7700
1f: 4d 8d 66 30 lea 0x30(%r14),%r12
23: 4c 89 e5 mov %r12,%rbp
26: 48 c1 ed 03 shr $0x3,%rbp
* 2a: 42 80 7c 3d 00 00 cmpb $0x0,0x0(%rbp,%r15,1) <-- trapping instruction
30: 74 08 je 0x3a
32: 4c 89 e7 mov %r12,%rdi
35: e8 36 40 be ff call 0xffbe4070
3a: 49 83 3c 24 00 cmpq $0x0,(%r12)
3f: 0f .byte 0xf
* Struck through repros no longer work on HEAD.