syzbot


general protection fault in unlink_anon_vmas (2)

Status: auto-closed as invalid on 2022/03/21 03:47
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+83dc7d9efc6d710e264d@syzkaller.appspotmail.com
First crash: 1066d, last: 858d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] general protection fault in unlink_anon_vmas (2) 0 (1) 2021/08/21 08:44
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in unlink_anon_vmas mm 4 1285d 1338d 0/26 auto-closed as invalid on 2020/12/19 02:16
linux-4.19 general protection fault in unlink_anon_vmas 1 1086d 1086d 0/1 auto-closed as invalid on 2021/08/05 10:09
linux-4.14 general protection fault in unlink_anon_vmas 1 1067d 1067d 0/1 auto-closed as invalid on 2021/08/23 18:22

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000014: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x00000000000000a0-0x00000000000000a7]
CPU: 0 PID: 27954 Comm: syz-executor.2 Not tainted 5.16.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:unlink_anon_vmas+0x272/0x860 mm/rmap.c:410
Code: 00 00 00 48 89 f8 48 c1 e8 03 80 3c 18 00 0f 85 7e 05 00 00 49 8b ac 24 a8 00 00 00 48 8d bd a4 00 00 00 48 89 f8 48 c1 e8 03 <0f> b6 14 18 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 59
RSP: 0018:ffffc9000bcd7990 EFLAGS: 00010207
RAX: 0000000000000014 RBX: dffffc0000000000 RCX: 0000000000000000
RDX: ffff888090d91d00 RSI: ffffffff81b1efa3 RDI: 00000000000000a4
RBP: 0000000000000000 R08: ffff88800010f1b0 R09: ffff88801c4ccc17
R10: ffffffff81aa461b R11: 0000000000000000 R12: ffff88800010f100
R13: ffff88807a7354d0 R14: ffff88801c4ccc00 R15: ffff88807a735630
FS:  0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000562c67f6fad8 CR3: 000000007056d000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
 <TASK>
 free_pgtables+0x1ab/0x2f0 mm/memory.c:426
 exit_mmap+0x1df/0x630 mm/mmap.c:3171
 __mmput+0x122/0x4b0 kernel/fork.c:1113
 mmput+0x56/0x60 kernel/fork.c:1134
 exit_mm kernel/exit.c:507 [inline]
 do_exit+0xb27/0x2b40 kernel/exit.c:819
 do_group_exit+0x125/0x310 kernel/exit.c:929
 get_signal+0x47d/0x2220 kernel/signal.c:2852
 arch_do_signal_or_restart+0x2a9/0x1c40 arch/x86/kernel/signal.c:868
 handle_signal_work kernel/entry/common.c:148 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:172 [inline]
 exit_to_user_mode_prepare+0x17d/0x290 kernel/entry/common.c:207
 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline]
 syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:300
 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f3f811caae9
Code: Unable to access opcode bytes at RIP 0x7f3f811caabf.
RSP: 002b:00007f3f7e6fe218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 00007f3f812de0e8 RCX: 00007f3f811caae9
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f3f812de0e8
RBP: 00007f3f812de0e0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f3f812de0ec
R13: 00007f3f81811b2f R14: 00007f3f7e6fe300 R15: 0000000000022000
 </TASK>
Modules linked in:
---[ end trace 40f24f271c28fe89 ]---
RIP: 0010:unlink_anon_vmas+0x272/0x860 mm/rmap.c:410
Code: 00 00 00 48 89 f8 48 c1 e8 03 80 3c 18 00 0f 85 7e 05 00 00 49 8b ac 24 a8 00 00 00 48 8d bd a4 00 00 00 48 89 f8 48 c1 e8 03 <0f> b6 14 18 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 59
RSP: 0018:ffffc9000bcd7990 EFLAGS: 00010207
RAX: 0000000000000014 RBX: dffffc0000000000 RCX: 0000000000000000
RDX: ffff888090d91d00 RSI: ffffffff81b1efa3 RDI: 00000000000000a4
RBP: 0000000000000000 R08: ffff88800010f1b0 R09: ffff88801c4ccc17
R10: ffffffff81aa461b R11: 0000000000000000 R12: ffff88800010f100
R13: ffff88807a7354d0 R14: ffff88801c4ccc00 R15: ffff88807a735630
FS:  0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f72e5293000 CR3: 00000000210ea000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
----------------
Code disassembly (best guess):
   0:	00 00                	add    %al,(%rax)
   2:	00 48 89             	add    %cl,-0x77(%rax)
   5:	f8                   	clc
   6:	48 c1 e8 03          	shr    $0x3,%rax
   a:	80 3c 18 00          	cmpb   $0x0,(%rax,%rbx,1)
   e:	0f 85 7e 05 00 00    	jne    0x592
  14:	49 8b ac 24 a8 00 00 	mov    0xa8(%r12),%rbp
  1b:	00
  1c:	48 8d bd a4 00 00 00 	lea    0xa4(%rbp),%rdi
  23:	48 89 f8             	mov    %rdi,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	0f b6 14 18          	movzbl (%rax,%rbx,1),%edx <-- trapping instruction
  2e:	48 89 f8             	mov    %rdi,%rax
  31:	83 e0 07             	and    $0x7,%eax
  34:	83 c0 03             	add    $0x3,%eax
  37:	38 d0                	cmp    %dl,%al
  39:	7c 08                	jl     0x43
  3b:	84 d2                	test   %dl,%dl
  3d:	0f                   	.byte 0xf
  3e:	85                   	.byte 0x85
  3f:	59                   	pop    %rcx

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/11/21 03:47 upstream 923dcc5eb0c1 4eb20a4e .config console log report info ci-upstream-kasan-gce general protection fault in unlink_anon_vmas
2021/08/21 08:43 upstream fa54d366a6e4 b599f2fc .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in unlink_anon_vmas
2021/07/28 22:24 upstream 4010a528219e 9a4781d4 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in unlink_anon_vmas
2021/06/15 06:18 upstream 009c9aa5be65 1ba81399 .config console log report info ci-upstream-kasan-gce general protection fault in unlink_anon_vmas
2021/08/12 22:16 upstream f8fbb47c6e86 3fd2ea69 .config console log report info ci-upstream-kasan-gce-386 general protection fault in unlink_anon_vmas
2021/04/26 16:24 linux-next e3d35712f85a e60b7df1 .config console log report ci-upstream-linux-next-kasan-gce-root general protection fault in unlink_anon_vmas
* Struck through repros no longer work on HEAD.