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: 122d, last: 8d03h

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000007: 0000 [#1] PREEMPT SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000038-0x000000000000003f]
CPU: 0 UID: 0 PID: 9800 Comm: syz-executor Not tainted 6.14.0-rc6-syzkaller-00126-ga0aff75e1553 #0
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 80 00 73 9a e8 25 2e c1 ff 48 8b 1d ce 09 0b 18 49 8d 7f 38 48 89 f8 48 c1 e8 03 <42> 80 3c 28 00 74 05 e8 07 2e c1 ff 49 8b 57 38 4c 89 ff 48 89 de
RSP: 0018:ffffc90003ae7830 EFLAGS: 00010202
RAX: 0000000000000007 RBX: ffff8881412a7f00 RCX: ffff888026120000
RDX: 0000000000000000 RSI: ffff8881412a1380 RDI: 0000000000000038
RBP: ffffc90003ae7928 R08: ffffffff8c04b568 R09: ffffffff8c04a5ae
R10: 0000000000000008 R11: ffff888026120000 R12: ffff8881412a13b0
R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f929aa42440 CR3: 000000000e938000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 kobject_move+0x315/0x450 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:174 [inline]
 hci_conn_del+0x8c4/0xc40 net/bluetooth/hci_conn.c:1164
 hci_conn_hash_flush+0x18e/0x240 net/bluetooth/hci_conn.c:2699
 hci_dev_close_sync+0xa8b/0x1260 net/bluetooth/hci_sync.c:5197
 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:664
 __fput+0x3e9/0x9f0 fs/file_table.c:464
 task_work_run+0x24f/0x310 kernel/task_work.c:227
 exit_task_work include/linux/task_work.h:40 [inline]
 do_exit+0xa2a/0x28e0 kernel/exit.c:938
 do_group_exit+0x207/0x2c0 kernel/exit.c:1087
 __do_sys_exit_group kernel/exit.c:1098 [inline]
 __se_sys_exit_group kernel/exit.c:1096 [inline]
 __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1096
 x64_sys_call+0x26a8/0x26b0 arch/x86/include/generated/asm/syscalls_64.h:232
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f261e38d169
Code: Unable to access opcode bytes at 0x7f261e38d13f.
RSP: 002b:00007ffff9ec4a08 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f261e38d169
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000043
RBP: 00007f261e3ed8d0 R08: 00007ffff9ec27a7 R09: 0000000000000003
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 0000000000000003 R14: 00000000ffffffff R15: 00007ffff9ec4bc0
 </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 80 00 73 9a e8 25 2e c1 ff 48 8b 1d ce 09 0b 18 49 8d 7f 38 48 89 f8 48 c1 e8 03 <42> 80 3c 28 00 74 05 e8 07 2e c1 ff 49 8b 57 38 4c 89 ff 48 89 de
RSP: 0018:ffffc90003ae7830 EFLAGS: 00010202
RAX: 0000000000000007 RBX: ffff8881412a7f00 RCX: ffff888026120000
RDX: 0000000000000000 RSI: ffff8881412a1380 RDI: 0000000000000038
RBP: ffffc90003ae7928 R08: ffffffff8c04b568 R09: ffffffff8c04a5ae
R10: 0000000000000008 R11: ffff888026120000 R12: ffff8881412a13b0
R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc7b1c9600 CR3: 000000002f59c000 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 80 00 73 9a 	mov    $0xffffffff9a730080,%rdi
  12:	e8 25 2e c1 ff       	call   0xffc12e3c
  17:	48 8b 1d ce 09 0b 18 	mov    0x180b09ce(%rip),%rbx        # 0x180b09ec
  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 07 2e c1 ff       	call   0xffc12e3c
  35:	49 8b 57 38          	mov    0x38(%r15),%rdx
  39:	4c 89 ff             	mov    %r15,%rdi
  3c:	48 89 de             	mov    %rbx,%rsi

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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/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.