syzbot


general protection fault in sysfs_move_dir_ns

Status: moderation: reported on 2024/11/29 10:00
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+a358e1edd6fa990bbcd9@syzkaller.appspotmail.com
First crash: 154d, last: 27d

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000007: 0000 [#1] SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000038-0x000000000000003f]
CPU: 1 UID: 0 PID: 5846 Comm: syz-executor Not tainted 6.14.0-syzkaller-05877-g1a9239bb4253 #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:sysfs_move_dir_ns+0xad/0xe0 fs/sysfs/dir.c:126
Code: 9a 48 c1 e8 03 42 80 3c 28 00 74 0c 48 c7 c7 c0 ff 79 9a e8 a5 59 c0 ff 48 8b 1d 0e ad 0e 18 49 8d 7f 38 48 89 f8 48 c1 e8 03 <42> 80 3c 28 00 74 05 e8 87 59 c0 ff 49 8b 57 38 4c 89 ff 48 89 de
RSP: 0018:ffffc90004117830 EFLAGS: 00010202
RAX: 0000000000000007 RBX: ffff8881412fb780 RCX: ffff88806af10000
RDX: 0000000000000000 RSI: ffff8881412f0e80 RDI: 0000000000000038
RBP: ffffc90004117928 R08: ffffffff8c1c52dc R09: ffffffff8c1c4320
R10: 0000000000000008 R11: ffff88806af10000 R12: ffff8881412f0eb0
R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff88812510f000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000001180 CR3: 000000003267c000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 kobject_move+0x359/0x480 lib/kobject.c:569
 device_move+0xdf/0x710 drivers/base/core.c:4583
 hci_conn_del_sysfs+0xb5/0x170 net/bluetooth/hci_sysfs.c:75
 hci_conn_cleanup net/bluetooth/hci_conn.c:175 [inline]
 hci_conn_del+0x8d5/0xc50 net/bluetooth/hci_conn.c:1167
 hci_conn_hash_flush+0x18e/0x240 net/bluetooth/hci_conn.c:2702
 hci_dev_close_sync+0xa8d/0x1260 net/bluetooth/hci_sync.c:5225
 hci_dev_do_close net/bluetooth/hci_core.c:483 [inline]
 hci_unregister_dev+0x20b/0x510 net/bluetooth/hci_core.c:2678
 vhci_release+0x80/0xd0 drivers/bluetooth/hci_vhci.c:665
 __fput+0x3e9/0x9f0 fs/file_table.c:465
 task_work_run+0x251/0x310 kernel/task_work.c:227
 exit_task_work include/linux/task_work.h:40 [inline]
 do_exit+0xa2a/0x2940 kernel/exit.c:954
 do_group_exit+0x207/0x2c0 kernel/exit.c:1103
 __do_sys_exit_group kernel/exit.c:1114 [inline]
 __se_sys_exit_group kernel/exit.c:1112 [inline]
 __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1112
 x64_sys_call+0x26c3/0x26d0 arch/x86/include/generated/asm/syscalls_64.h:232
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f86b458d169
Code: Unable to access opcode bytes at 0x7f86b458d13f.
RSP: 002b:00007ffe1630edf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f86b458d169
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000043
RBP: 00007f86b45eaad8 R08: 00007ffe1630cb97 R09: 00000000000927c0
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00000000000927c0 R14: 0000000000000000 R15: 00007ffe1630f690
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:sysfs_move_dir_ns+0xad/0xe0 fs/sysfs/dir.c:126
Code: 9a 48 c1 e8 03 42 80 3c 28 00 74 0c 48 c7 c7 c0 ff 79 9a e8 a5 59 c0 ff 48 8b 1d 0e ad 0e 18 49 8d 7f 38 48 89 f8 48 c1 e8 03 <42> 80 3c 28 00 74 05 e8 87 59 c0 ff 49 8b 57 38 4c 89 ff 48 89 de
RSP: 0018:ffffc90004117830 EFLAGS: 00010202
RAX: 0000000000000007 RBX: ffff8881412fb780 RCX: ffff88806af10000
RDX: 0000000000000000 RSI: ffff8881412f0e80 RDI: 0000000000000038
RBP: ffffc90004117928 R08: ffffffff8c1c52dc R09: ffffffff8c1c4320
R10: 0000000000000008 R11: ffff88806af10000 R12: ffff8881412f0eb0
R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff88812510f000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c33f47d CR3: 000000004ece2000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 1 bytes skipped:
   0:	48 c1 e8 03          	shr    $0x3,%rax
   4:	42 80 3c 28 00       	cmpb   $0x0,(%rax,%r13,1)
   9:	74 0c                	je     0x17
   b:	48 c7 c7 c0 ff 79 9a 	mov    $0xffffffff9a79ffc0,%rdi
  12:	e8 a5 59 c0 ff       	call   0xffc059bc
  17:	48 8b 1d 0e ad 0e 18 	mov    0x180ead0e(%rip),%rbx        # 0x180ead2c
  1e:	49 8d 7f 38          	lea    0x38(%r15),%rdi
  22:	48 89 f8             	mov    %rdi,%rax
  25:	48 c1 e8 03          	shr    $0x3,%rax
* 29:	42 80 3c 28 00       	cmpb   $0x0,(%rax,%r13,1) <-- trapping instruction
  2e:	74 05                	je     0x35
  30:	e8 87 59 c0 ff       	call   0xffc059bc
  35:	49 8b 57 38          	mov    0x38(%r15),%rdx
  39:	4c 89 ff             	mov    %r15,%rdi
  3c:	48 89 de             	mov    %rbx,%rsi

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/03/28 07:57 net 1a9239bb4253 6c09fb82 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in sysfs_move_dir_ns
2025/03/20 03:29 net a0aff75e1553 3b7445cf .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in sysfs_move_dir_ns
2024/11/25 09:52 net 9bb88c659673 68da6d95 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in sysfs_move_dir_ns
2025/04/01 00:16 net-next 1a9239bb4253 36d76a97 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in sysfs_move_dir_ns
2025/03/29 23:04 net-next 1a9239bb4253 d3999433 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in sysfs_move_dir_ns
2025/03/09 14:42 net-next 8ef890df4031 163f510d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in sysfs_move_dir_ns
2025/02/22 14:54 net-next e6a532185daa d34966d1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in sysfs_move_dir_ns
2025/02/06 08:17 net-next 0bea93fdbaf8 577d049b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in sysfs_move_dir_ns
2025/01/11 00:01 net-next 7b24f164cf00 67d7ec0a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in sysfs_move_dir_ns
2024/12/09 20:48 net-next 6145fefc1e42 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in sysfs_move_dir_ns
* Struck through repros no longer work on HEAD.