general protection fault in sysfs_move_dir_ns (2)

Status: upstream: reported on 2026/11/24 11:46
Reported-by: syzbot+6425f163cf8b31ac2e40@syzkaller.appspotmail.com
First crash: 3d13h, last: 3d13h
▶ ▼ Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 general protection fault in sysfs_move_dir_ns 2 1 202d 202d 0/3 auto-obsoleted due to no activity on 2026/08/17 19:51
linux-5.15 general protection fault in sysfs_move_dir_ns 2 1 198d 198d 0/3 auto-obsoleted due to no activity on 2026/08/21 10:40
upstream general protection fault in sysfs_move_dir_ns driver-core fs 2 10 606d 728d 0/30 auto-obsoleted due to no activity on 2025/06/30 00:17

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000007: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000038-0x000000000000003f]
CPU: 1 PID: 4188 Comm: syz-executor Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
RIP: 0010:sysfs_move_dir_ns+0xa6/0xd0 fs/sysfs/dir.c:127
Code: 97 48 c1 e8 03 42 80 3c 20 00 74 0c 48 c7 c7 e0 b5 22 97 e8 1c 1a d0 ff 4c 8b 3d 65 13 34 15 49 8d 7e 38 48 89 f8 48 c1 e8 03 <42> 80 3c 20 00 74 05 e8 fe 19 d0 ff 49 8b 56 38 4c 89 f7 4c 89 fe
RSP: 0018:ffffc90002f2f678 EFLAGS: 00010202
RAX: 0000000000000007 RBX: 0000000000000000 RCX: ffff888079e7bb80
RDX: 0000000000000000 RSI: ffff8881425b6480 RDI: 0000000000000038
RBP: ffffc90002f2f760 R08: ffff888079e7bb80 R09: 0000000000000012
R10: 0000000000000012 R11: 0000000000000000 R12: dffffc0000000000
R13: ffff8881431a50c0 R14: 0000000000000000 R15: ffff88801c6f9cb0
FS:  0000000000000000(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000018000 CR3: 0000000068c13000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 kobject_move+0x54b/0x710 lib/kobject.c:593
 device_move+0xdc/0x6e0 drivers/base/core.c:4358
 hci_conn_del_sysfs+0xab/0x160 net/bluetooth/hci_sysfs.c:73
 hci_conn_cleanup+0x49b/0x660 net/bluetooth/hci_conn.c:140
 hci_conn_del+0x2ab/0x3e0 net/bluetooth/hci_conn.c:678
 hci_conn_hash_flush+0x185/0x220 net/bluetooth/hci_conn.c:1623
 hci_dev_do_close+0x918/0x1020 net/bluetooth/hci_core.c:1689
 hci_unregister_dev+0x2eb/0x590 net/bluetooth/hci_core.c:3948
 vhci_release+0x73/0xc0 drivers/bluetooth/hci_vhci.c:345
 __fput+0x212/0x8c0 fs/file_table.c:311
 task_work_run+0x125/0x1a0 kernel/task_work.c:188
 exit_task_work include/linux/task_work.h:33 [inline]
 do_exit+0x635/0x2100 kernel/exit.c:890
 do_group_exit+0x12c/0x2f0 kernel/exit.c:1004
 get_signal+0x904/0x13e0 kernel/signal.c:2922
 arch_do_signal_or_restart+0xe6/0x12a0 arch/x86/kernel/signal.c:867
 handle_signal_work kernel/entry/common.c:157 [inline]
 exit_to_user_mode_loop+0x9e/0x130 kernel/entry/common.c:181
 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:217
 __syscall_exit_to_user_mode_work kernel/entry/common.c:299 [inline]
 syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:310
 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f5579305d4e
Code: Unable to access opcode bytes at RIP 0x7f5579305d24.
RSP: 002b:00007fffe0613d88 EFLAGS: 00000246 ORIG_RAX: 00000000000000e6
RAX: 0000000000000000 RBX: 000055558cb3f500 RCX: 00007f5579305d4e
RDX: 00007fffe0613de0 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007fffe0613e4c R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000001388
R13: 00000000000927c0 R14: 000000000007bdb3 R15: 00007fffe0613ea0
 </TASK>
Modules linked in:
---[ end trace b87af306d2c63e3f ]---
RIP: 0010:sysfs_move_dir_ns+0xa6/0xd0 fs/sysfs/dir.c:127
Code: 97 48 c1 e8 03 42 80 3c 20 00 74 0c 48 c7 c7 e0 b5 22 97 e8 1c 1a d0 ff 4c 8b 3d 65 13 34 15 49 8d 7e 38 48 89 f8 48 c1 e8 03 <42> 80 3c 20 00 74 05 e8 fe 19 d0 ff 49 8b 56 38 4c 89 f7 4c 89 fe
RSP: 0018:ffffc90002f2f678 EFLAGS: 00010202
RAX: 0000000000000007 RBX: 0000000000000000 RCX: ffff888079e7bb80
RDX: 0000000000000000 RSI: ffff8881425b6480 RDI: 0000000000000038
RBP: ffffc90002f2f760 R08: ffff888079e7bb80 R09: 0000000000000012
R10: 0000000000000012 R11: 0000000000000000 R12: dffffc0000000000
R13: ffff8881431a50c0 R14: 0000000000000000 R15: ffff88801c6f9cb0
FS:  0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00002000000000c0 CR3: 000000000ce8e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	97                   	xchg   %eax,%edi
   1:	48 c1 e8 03          	shr    $0x3,%rax
   5:	42 80 3c 20 00       	cmpb   $0x0,(%rax,%r12,1)
   a:	74 0c                	je     0x18
   c:	48 c7 c7 e0 b5 22 97 	mov    $0xffffffff9722b5e0,%rdi
  13:	e8 1c 1a d0 ff       	call   0xffd01a34
  18:	4c 8b 3d 65 13 34 15 	mov    0x15341365(%rip),%r15        # 0x15341384
  1f:	49 8d 7e 38          	lea    0x38(%r14),%rdi
  23:	48 89 f8             	mov    %rdi,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 20 00       	cmpb   $0x0,(%rax,%r12,1) <-- trapping instruction
  2f:	74 05                	je     0x36
  31:	e8 fe 19 d0 ff       	call   0xffd01a34
  36:	49 8b 56 38          	mov    0x38(%r14),%rdx
  3a:	4c 89 f7             	mov    %r14,%rdi
  3d:	4c 89 fe             	mov    %r15,%rsi

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/11/24 11:46 linux-5.15.y 4f2df9a01754 fab64d89 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in sysfs_move_dir_ns
* Struck through repros no longer work on HEAD.