syzbot


general protection fault in check_move_unevictable_folios

Status: upstream: reported on 2022/06/07 13:10
Reported-by: syzbot+702b6f0c8b2f96a79c42@syzkaller.appspotmail.com
First crash: 17d, last: 17d

Sample crash report:
general protection fault, probably for non-canonical address 0xe3fffb24001ddfdd: 0000 [#1] PREEMPT SMP KASAN
KASAN: maybe wild-memory-access in range [0x1ffff92000eefee8-0x1ffff92000eefeef]
CPU: 1 PID: 29183 Comm: syz-executor.5 Not tainted 5.19.0-rc1-next-20220607-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:PagePoisoned include/linux/page-flags.h:323 [inline]
RIP: 0010:PageHead include/linux/page-flags.h:794 [inline]
RIP: 0010:compound_nr include/linux/mm.h:948 [inline]
RIP: 0010:folio_nr_pages include/linux/mm.h:1678 [inline]
RIP: 0010:check_move_unevictable_folios+0xb4/0x1590 mm/vmscan.c:4881
Code: e8 31 2f d2 ff 48 89 e8 48 c1 e8 03 42 80 3c 30 00 0f 85 5d 11 00 00 48 8b 0c 24 48 63 c3 4c 8b 7c c1 08 4c 89 f8 48 c1 e8 03 <42> 80 3c 30 00 0f 85 32 11 00 00 4d 8b 27 48 c7 c7 ff ff ff ff 4c
RSP: 0018:ffffc9000777f608 EFLAGS: 00010206
RAX: 03ffff24001ddfdd RBX: 0000000000000000 RCX: ffffc9000777f6e8
RDX: ffff888028baba80 RSI: ffffffff81a842ef RDI: 0000000000000001
RBP: ffffc9000777f6f0 R08: 0000000000000001 R09: 0000000000000000
R10: 00000000000000df R11: 0000000000000001 R12: dffffc0000000000
R13: ffffc9000777f8b0 R14: dffffc0000000000 R15: 1ffff92000eefee9
FS:  0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2eb23000 CR3: 0000000041c4d000 CR4: 00000000003506e0
DR0: fffffffffffffffb DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 check_move_unevictable_pages+0x1e6/0x440 mm/vmscan.c:4859
 drm_gem_check_release_pagevec drivers/gpu/drm/drm_gem.c:511 [inline]
 drm_gem_put_pages+0x29f/0x3f0 drivers/gpu/drm/drm_gem.c:639
 drm_gem_shmem_put_pages_locked+0x13e/0x230 drivers/gpu/drm/drm_gem_shmem_helper.c:237
 drm_gem_shmem_put_pages drivers/gpu/drm/drm_gem_shmem_helper.c:252 [inline]
 drm_gem_shmem_vm_close+0x45/0x70 drivers/gpu/drm/drm_gem_shmem_helper.c:588
 remove_vma+0x81/0x130 mm/mmap.c:187
 exit_mmap+0x2a1/0x750 mm/mmap.c:3215
 __mmput+0x128/0x4c0 kernel/fork.c:1180
 mmput+0x5c/0x70 kernel/fork.c:1201
 exit_mm kernel/exit.c:510 [inline]
 do_exit+0xa18/0x2a00 kernel/exit.c:782
 do_group_exit+0xd2/0x2f0 kernel/exit.c:925
 get_signal+0x2542/0x2600 kernel/signal.c:2857
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:PagePoisoned include/linux/page-flags.h:323 [inline]
RIP: 0010:PageHead include/linux/page-flags.h:794 [inline]
RIP: 0010:compound_nr include/linux/mm.h:948 [inline]
RIP: 0010:folio_nr_pages include/linux/mm.h:1678 [inline]
RIP: 0010:check_move_unevictable_folios+0xb4/0x1590 mm/vmscan.c:4881
Code: e8 31 2f d2 ff 48 89 e8 48 c1 e8 03 42 80 3c 30 00 0f 85 5d 11 00 00 48 8b 0c 24 48 63 c3 4c 8b 7c c1 08 4c 89 f8 48 c1 e8 03 <42> 80 3c 30 00 0f 85 32 11 00 00 4d 8b 27 48 c7 c7 ff ff ff ff 4c
RSP: 0018:ffffc9000777f608 EFLAGS: 00010206
RAX: 03ffff24001ddfdd RBX: 0000000000000000 RCX: ffffc9000777f6e8
RDX: ffff888028baba80 RSI: ffffffff81a842ef RDI: 0000000000000001
RBP: ffffc9000777f6f0 R08: 0000000000000001 R09: 0000000000000000
R10: 00000000000000df R11: 0000000000000001 R12: dffffc0000000000
R13: ffffc9000777f8b0 R14: dffffc0000000000 R15: 1ffff92000eefee9
FS:  0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6ba77691b8 CR3: 000000000ba8e000 CR4: 00000000003506f0
DR0: fffffffffffffffb DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	e8 31 2f d2 ff       	callq  0xffd22f36
   5:	48 89 e8             	mov    %rbp,%rax
   8:	48 c1 e8 03          	shr    $0x3,%rax
   c:	42 80 3c 30 00       	cmpb   $0x0,(%rax,%r14,1)
  11:	0f 85 5d 11 00 00    	jne    0x1174
  17:	48 8b 0c 24          	mov    (%rsp),%rcx
  1b:	48 63 c3             	movslq %ebx,%rax
  1e:	4c 8b 7c c1 08       	mov    0x8(%rcx,%rax,8),%r15
  23:	4c 89 f8             	mov    %r15,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 30 00       	cmpb   $0x0,(%rax,%r14,1) <-- trapping instruction
  2f:	0f 85 32 11 00 00    	jne    0x1167
  35:	4d 8b 27             	mov    (%r15),%r12
  38:	48 c7 c7 ff ff ff ff 	mov    $0xffffffffffffffff,%rdi
  3f:	4c                   	rex.WR

Crashes (10):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-linux-next-kasan-gce-root 2022/06/07 14:37 linux-next 73d0e32571a0 c8857892 .config log report info general protection fault in check_move_unevictable_folios
ci-upstream-linux-next-kasan-gce-root 2022/06/07 14:33 linux-next 73d0e32571a0 c8857892 .config log report info general protection fault in check_move_unevictable_folios
ci-upstream-linux-next-kasan-gce-root 2022/06/07 14:29 linux-next 73d0e32571a0 c8857892 .config log report info general protection fault in check_move_unevictable_folios
ci-upstream-linux-next-kasan-gce-root 2022/06/07 13:50 linux-next 73d0e32571a0 c8857892 .config log report info general protection fault in check_move_unevictable_folios
ci-upstream-linux-next-kasan-gce-root 2022/06/07 13:17 linux-next 73d0e32571a0 c8857892 .config log report info general protection fault in check_move_unevictable_folios
ci-upstream-linux-next-kasan-gce-root 2022/06/07 13:14 linux-next 73d0e32571a0 c8857892 .config log report info general protection fault in check_move_unevictable_folios
ci-upstream-linux-next-kasan-gce-root 2022/06/07 12:49 linux-next 73d0e32571a0 c8857892 .config log report info general protection fault in check_move_unevictable_folios
ci-upstream-linux-next-kasan-gce-root 2022/06/07 12:36 linux-next 73d0e32571a0 c8857892 .config log report info general protection fault in check_move_unevictable_folios
ci-upstream-linux-next-kasan-gce-root 2022/06/07 12:26 linux-next 73d0e32571a0 c8857892 .config log report info general protection fault in check_move_unevictable_folios
ci-upstream-linux-next-kasan-gce-root 2022/06/07 11:13 linux-next 73d0e32571a0 c8857892 .config log report info general protection fault in check_move_unevictable_folios