syzbot


general protection fault in mnt_want_write (2)

Status: premoderation: reported on 2024/02/15 10:16
Reported-by: syzbot+37bb50709318e1fbb522@syzkaller.appspotmail.com
First crash: 72d, last: 72d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-6-1 general protection fault in mnt_want_write 1 17d 17d 0/2 premoderation: reported on 2024/04/10 13:00
android-5-10 general protection fault in mnt_want_write 1 765d 765d 0/2 auto-closed as invalid on 2022/06/22 11:51

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
CPU: 1 PID: 15079 Comm: syz-executor.0 Not tainted 5.10.209-syzkaller-00426-g57ffa73b11b0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
RIP: 0010:mnt_want_write+0x2f/0x290 fs/namespace.c:354
Code: 57 41 56 41 55 41 54 53 50 48 89 fb 49 bc 00 00 00 00 00 fc ff df e8 00 38 b2 ff 48 89 5d d0 4c 8d 73 08 4d 89 f7 49 c1 ef 03 <43> 80 3c 27 00 74 08 4c 89 f7 e8 e2 ae ef ff 4d 8b 2e 4d 8d a5 a8
RSP: 0018:ffffc900059379f0 EFLAGS: 00010202
RAX: ffffffff81b86ff0 RBX: 0000000000000000 RCX: ffff8881687f93c0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90005937a20 R08: ffffffff8206d692 R09: 0000000000000003
R10: fffff52000b26f1a R11: dffffc0000000001 R12: dffffc0000000000
R13: 0000000000000000 R14: 0000000000000008 R15: 0000000000000001
FS:  00007f6620a176c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f66209b4d58 CR3: 0000000169b2b000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 ovl_want_write+0x91/0xa0 fs/overlayfs/util.c:21
 ovl_setattr+0x48/0x710 fs/overlayfs/inode.c:28
 notify_change+0xbb6/0xe60 fs/attr.c:410
 incfs_setattr+0x1f4/0x3e0 fs/incfs/vfs.c:1636
 notify_change+0xbb6/0xe60 fs/attr.c:410
 vfs_utimes+0x458/0x6f0 fs/utimes.c:65
 do_utimes_path fs/utimes.c:97 [inline]
 do_utimes+0x1a4/0x270 fs/utimes.c:143
 __do_sys_utimensat fs/utimes.c:162 [inline]
 __se_sys_utimensat fs/utimes.c:146 [inline]
 __x64_sys_utimensat+0x14b/0x250 fs/utimes.c:146
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7f6621c95da9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f6620a170c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000118
RAX: ffffffffffffffda RBX: 00007f6621dc3f80 RCX: 00007f6621c95da9
RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000000000003
RBP: 00007f6621ce247a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f6621dc3f80 R15: 00007ffe45b44078
Modules linked in:
---[ end trace aa69e9ead57b979c ]---
RIP: 0010:mnt_want_write+0x2f/0x290 fs/namespace.c:354
Code: 57 41 56 41 55 41 54 53 50 48 89 fb 49 bc 00 00 00 00 00 fc ff df e8 00 38 b2 ff 48 89 5d d0 4c 8d 73 08 4d 89 f7 49 c1 ef 03 <43> 80 3c 27 00 74 08 4c 89 f7 e8 e2 ae ef ff 4d 8b 2e 4d 8d a5 a8
RSP: 0018:ffffc900059379f0 EFLAGS: 00010202
RAX: ffffffff81b86ff0 RBX: 0000000000000000 RCX: ffff8881687f93c0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90005937a20 R08: ffffffff8206d692 R09: 0000000000000003
R10: fffff52000b26f1a R11: dffffc0000000001 R12: dffffc0000000000
R13: 0000000000000000 R14: 0000000000000008 R15: 0000000000000001
FS:  00007f6620a176c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002001037f CR3: 0000000169b2b000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	57                   	push   %rdi
   1:	41 56                	push   %r14
   3:	41 55                	push   %r13
   5:	41 54                	push   %r12
   7:	53                   	push   %rbx
   8:	50                   	push   %rax
   9:	48 89 fb             	mov    %rdi,%rbx
   c:	49 bc 00 00 00 00 00 	movabs $0xdffffc0000000000,%r12
  13:	fc ff df
  16:	e8 00 38 b2 ff       	call   0xffb2381b
  1b:	48 89 5d d0          	mov    %rbx,-0x30(%rbp)
  1f:	4c 8d 73 08          	lea    0x8(%rbx),%r14
  23:	4d 89 f7             	mov    %r14,%r15
  26:	49 c1 ef 03          	shr    $0x3,%r15
* 2a:	43 80 3c 27 00       	cmpb   $0x0,(%r15,%r12,1) <-- trapping instruction
  2f:	74 08                	je     0x39
  31:	4c 89 f7             	mov    %r14,%rdi
  34:	e8 e2 ae ef ff       	call   0xffefaf1b
  39:	4d 8b 2e             	mov    (%r14),%r13
  3c:	4d                   	rex.WRB
  3d:	8d                   	.byte 0x8d
  3e:	a5                   	movsl  %ds:(%rsi),%es:(%rdi)
  3f:	a8                   	.byte 0xa8

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/15 10:15 android13-5.10-lts 57ffa73b11b0 d9b1cdd5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in mnt_want_write
* Struck through repros no longer work on HEAD.