syzbot


stack segment fault in kernfs_rename_ns (2)

Status: moderation: reported on 2026/04/16 07:26
Subsystems: kernfs
[Documentation on labels]
Reported-by: syzbot+faeac5b54ba997a96278@syzkaller.appspotmail.com
First crash: 6d12h, last: 6d12h
Discussions (1)
Title Replies (including bot) Last reply
[PATCH] sysfs: return -ENOENT from move/rename when kobj->sd is NULL 1 (1) 2026/04/16 15:06
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream stack segment fault in kernfs_rename_ns bluetooth 2 35 89d 272d 0/29 auto-obsoleted due to no activity on 2026/04/10 15:40

Sample crash report:
Oops: stack segment: 0000 [#1] SMP KASAN PTI
CPU: 1 UID: 0 PID: 5840 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026
RIP: 0010:kernfs_rename_ns+0x3a/0x7b0 fs/kernfs/dir.c:1752
Code: ec 48 48 89 cb 48 89 54 24 10 49 89 f5 49 89 fe 49 bc 00 00 00 00 00 fc ff df e8 21 e2 55 ff 4d 8d 7e 30 4c 89 fd 48 c1 ed 03 <42> 80 7c 25 00 00 74 08 4c 89 ff e8 56 34 c0 ff 49 83 3f 00 0f 84
RSP: 0018:ffffc900043b75e0 EFLAGS: 00010206
RAX: ffffffff826fddcf RBX: 0000000000000000 RCX: ffff88807f640000
RDX: 0000000000000000 RSI: ffff8880202dd690 RDI: 0000000000000000
RBP: 0000000000000006 R08: ffff88807f640000 R09: 0000000000000008
R10: 0000000000000007 R11: 0000000000000000 R12: dffffc0000000000
R13: ffff8880202dd690 R14: 0000000000000000 R15: 0000000000000030
FS:  0000000000000000(0000) GS:ffff888125554000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fff3c57c168 CR3: 000000007998c000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 kobject_move+0x55b/0x720 lib/kobject.c:569
 device_move+0xe0/0x730 drivers/base/core.c:4608
 hci_conn_del_sysfs+0xb8/0x1a0 net/bluetooth/hci_sysfs.c:75
 hci_conn_cleanup net/bluetooth/hci_conn.c:173 [inline]
 hci_conn_del+0xc36/0x1230 net/bluetooth/hci_conn.c:1240
 hci_conn_hash_flush+0x191/0x260 net/bluetooth/hci_conn.c:2651
 hci_dev_close_sync+0x821/0x10e0 net/bluetooth/hci_sync.c:5368
 hci_dev_do_close net/bluetooth/hci_core.c:502 [inline]
 hci_unregister_dev+0x21a/0x5a0 net/bluetooth/hci_core.c:2716
 vhci_release+0x152/0x1a0 drivers/bluetooth/hci_vhci.c:690
 __fput+0x44f/0xa70 fs/file_table.c:469
 task_work_run+0x1d9/0x270 kernel/task_work.c:233
 exit_task_work include/linux/task_work.h:40 [inline]
 do_exit+0x70f/0x23c0 kernel/exit.c:976
 do_group_exit+0x21b/0x2d0 kernel/exit.c:1118
 get_signal+0x1284/0x1330 kernel/signal.c:3034
 arch_do_signal_or_restart+0xbc/0x830 arch/x86/kernel/signal.c:337
 __exit_to_user_mode_loop kernel/entry/common.c:64 [inline]
 exit_to_user_mode_loop+0x86/0x480 kernel/entry/common.c:98
 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline]
 syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:256 [inline]
 syscall_exit_to_user_mode include/linux/entry-common.h:325 [inline]
 do_syscall_64+0x32d/0xf80 arch/x86/entry/syscall_64.c:100
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f999115d04e
Code: Unable to access opcode bytes at 0x7f999115d024.
RSP: 002b:00007ffdc99b9898 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: fffffffffffffe00 RBX: 000055557961a500 RCX: 00007f999115d04e
RDX: 0000000000000030 RSI: 00007ffdc99b9990 RDI: 00000000000000f9
RBP: 00007ffdc99b993c R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000258
R13: 00000000000927c0 R14: 0000000000066521 R15: 00007ffdc99b9990
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:kernfs_rename_ns+0x3a/0x7b0 fs/kernfs/dir.c:1752
Code: ec 48 48 89 cb 48 89 54 24 10 49 89 f5 49 89 fe 49 bc 00 00 00 00 00 fc ff df e8 21 e2 55 ff 4d 8d 7e 30 4c 89 fd 48 c1 ed 03 <42> 80 7c 25 00 00 74 08 4c 89 ff e8 56 34 c0 ff 49 83 3f 00 0f 84
RSP: 0018:ffffc900043b75e0 EFLAGS: 00010206
RAX: ffffffff826fddcf RBX: 0000000000000000 RCX: ffff88807f640000
RDX: 0000000000000000 RSI: ffff8880202dd690 RDI: 0000000000000000
RBP: 0000000000000006 R08: ffff88807f640000 R09: 0000000000000008
R10: 0000000000000007 R11: 0000000000000000 R12: dffffc0000000000
R13: ffff8880202dd690 R14: 0000000000000000 R15: 0000000000000030
FS:  0000000000000000(0000) GS:ffff888125454000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f898c8a843c CR3: 00000000377ac000 CR4: 00000000003526f0
----------------
Code disassembly (best guess):
   0:	ec                   	in     (%dx),%al
   1:	48                   	rex.W
   2:	48 89 cb             	mov    %rcx,%rbx
   5:	48 89 54 24 10       	mov    %rdx,0x10(%rsp)
   a:	49 89 f5             	mov    %rsi,%r13
   d:	49 89 fe             	mov    %rdi,%r14
  10:	49 bc 00 00 00 00 00 	movabs $0xdffffc0000000000,%r12
  17:	fc ff df
  1a:	e8 21 e2 55 ff       	call   0xff55e240
  1f:	4d 8d 7e 30          	lea    0x30(%r14),%r15
  23:	4c 89 fd             	mov    %r15,%rbp
  26:	48 c1 ed 03          	shr    $0x3,%rbp
* 2a:	42 80 7c 25 00 00    	cmpb   $0x0,0x0(%rbp,%r12,1) <-- trapping instruction
  30:	74 08                	je     0x3a
  32:	4c 89 ff             	mov    %r15,%rdi
  35:	e8 56 34 c0 ff       	call   0xffc03490
  3a:	49 83 3f 00          	cmpq   $0x0,(%r15)
  3e:	0f                   	.byte 0xf
  3f:	84                   	.byte 0x84

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/04/12 07:24 net 02f729643959 38c8e246 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce stack segment fault in kernfs_rename_ns
* Struck through repros no longer work on HEAD.