[syzbot] general protection fault in check_move_unevictable_folios

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

syzbot found the following issue on:

HEAD commit:    73d0e32571a0 Add linux-next specific files for 20220607
git tree:       linux-next
console output: https://syzkaller.appspot.com/x/log.txt?x=126e5107f00000
kernel config:  https://syzkaller.appspot.com/x/.config?x=448ee2b64e828049
dashboard link: https://syzkaller.appspot.com/bug?extid=702b6f0c8b2f96a79c42
compiler:       gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+702b6f0c8b2f96a79c42@xxxxxxxxxxxxxxxxxxxxxxxxx

general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 0 PID: 5475 Comm: syz-executor.4 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:ffffc90002dcf608 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffc90002dcf6e8
RDX: ffff88802592ba80 RSI: ffffffff81a842ef RDI: 0000000000000001
RBP: ffffc90002dcf6f0 R08: 0000000000000001 R09: 0000000000000000
R10: 00000000000000da R11: 0000000000000001 R12: dffffc0000000000
R13: ffffc90002dcf8b0 R14: dffffc0000000000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2ed26000 CR3: 000000007c154000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 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:ffffc90002dcf608 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffc90002dcf6e8
RDX: ffff88802592ba80 RSI: ffffffff81a842ef RDI: 0000000000000001
RBP: ffffc90002dcf6f0 R08: 0000000000000001 R09: 0000000000000000
R10: 00000000000000da R11: 0000000000000001 R12: dffffc0000000000
R13: ffffc90002dcf8b0 R14: dffffc0000000000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f358fb6b998 CR3: 0000000043f98000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 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


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzkaller@xxxxxxxxxxxxxxxx.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux