syzbot


general protection fault in __put_mountpoint

Status: moderation: reported on 2024/12/22 06:33
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+b905ec40ee9d4a189557@syzkaller.appspotmail.com
First crash: 63d, last: 53d

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc000000001a: 0000 [#1] PREEMPT SMP KASAN PTI
KASAN: null-ptr-deref in range [0x00000000000000d0-0x00000000000000d7]
CPU: 0 UID: 0 PID: 9905 Comm: syz.2.846 Not tainted 6.13.0-rc4-syzkaller-00069-g8379578b11d5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:__lock_acquire+0xe4/0x3c40 kernel/locking/lockdep.c:5089
Code: 08 84 d2 0f 85 15 14 00 00 44 8b 0d da 0f a7 0e 45 85 c9 0f 84 b4 0e 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 0f 85 96 2c 00 00 49 8b 04 24 48 3d a0 67 32 93 0f 84
RSP: 0018:ffffc90004a4f7f8 EFLAGS: 00010002
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 000000000000001a RSI: 1ffff92000949f11 RDI: 00000000000000d0
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000001
R10: ffffffff901ce3d7 R11: 0000000000000003 R12: 00000000000000d0
R13: ffff888062d28000 R14: 0000000000000000 R15: 0000000000000000
FS:  00007f98f21b46c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffff CR3: 0000000033e82000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 lock_acquire.part.0+0x11b/0x380 kernel/locking/lockdep.c:5849
 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline]
 _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154
 spin_lock include/linux/spinlock.h:351 [inline]
 __put_mountpoint.part.0+0x74/0x1c0 fs/namespace.c:949
 __put_mountpoint fs/namespace.c:946 [inline]
 put_mountpoint fs/namespace.c:961 [inline]
 umount_mnt fs/namespace.c:1012 [inline]
 umount_tree+0x7f9/0xde0 fs/namespace.c:1803
 drop_collected_mounts fs/namespace.c:2223 [inline]
 put_mnt_ns fs/namespace.c:5679 [inline]
 put_mnt_ns+0xcb/0x130 fs/namespace.c:5675
 free_nsproxy+0x47/0x470 kernel/nsproxy.c:193
 put_nsproxy include/linux/nsproxy.h:118 [inline]
 switch_task_namespaces+0xeb/0x100 kernel/nsproxy.c:251
 copy_process+0x2599/0x6f20 kernel/fork.c:2651
 kernel_clone+0xfd/0x960 kernel/fork.c:2806
 __do_sys_clone+0xba/0x100 kernel/fork.c:2949
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f98f4385d29
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f98f21b4038 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 00007f98f4576400 RCX: 00007f98f4385d29
RDX: 9999999999999999 RSI: 0000000000000009 RDI: 0000000000021002
RBP: 00007f98f4401b08 R08: 0000000000000009 R09: 0000000000000000
R10: ffffffff81000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 00007f98f4576400 R15: 00007ffda903d068
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__lock_acquire+0xe4/0x3c40 kernel/locking/lockdep.c:5089
Code: 08 84 d2 0f 85 15 14 00 00 44 8b 0d da 0f a7 0e 45 85 c9 0f 84 b4 0e 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 0f 85 96 2c 00 00 49 8b 04 24 48 3d a0 67 32 93 0f 84
RSP: 0018:ffffc90004a4f7f8 EFLAGS: 00010002
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 000000000000001a RSI: 1ffff92000949f11 RDI: 00000000000000d0
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000001
R10: ffffffff901ce3d7 R11: 0000000000000003 R12: 00000000000000d0
R13: ffff888062d28000 R14: 0000000000000000 R15: 0000000000000000
FS:  00007f98f21b46c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffff CR3: 0000000033e82000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	08 84 d2 0f 85 15 14 	or     %al,0x1415850f(%rdx,%rdx,8)
   7:	00 00                	add    %al,(%rax)
   9:	44 8b 0d da 0f a7 0e 	mov    0xea70fda(%rip),%r9d        # 0xea70fea
  10:	45 85 c9             	test   %r9d,%r9d
  13:	0f 84 b4 0e 00 00    	je     0xecd
  19:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  20:	fc ff df
  23:	4c 89 e2             	mov    %r12,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2e:	0f 85 96 2c 00 00    	jne    0x2cca
  34:	49 8b 04 24          	mov    (%r12),%rax
  38:	48 3d a0 67 32 93    	cmp    $0xffffffff933267a0,%rax
  3e:	0f                   	.byte 0xf
  3f:	84                   	.byte 0x84

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/28 06:05 upstream 8379578b11d5 d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in __put_mountpoint
2024/12/27 02:08 upstream d6ef8b40d075 d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in __put_mountpoint
2024/12/18 06:22 upstream 59dbb9d81adf a0626d3a .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in __put_mountpoint
* Struck through repros no longer work on HEAD.