syzbot


general protection fault in release_pages

Status: auto-obsoleted due to no activity on 2023/04/09 04:54
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+4ad3b163a657be4e4007@syzkaller.appspotmail.com
First crash: 411d, last: 405d

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: 0 PID: 13496 Comm: syz-executor.3 Not tainted 6.2.0-rc7-next-20230208-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
RIP: 0010:_compound_head include/linux/page-flags.h:251 [inline]
RIP: 0010:release_pages+0x226/0x1330 mm/swap.c:1003
Code: ce d0 ff 48 89 d8 48 c1 e8 03 42 80 3c 30 00 0f 85 52 0e 00 00 48 8b 2b 49 89 ed 49 83 e5 fc 49 8d 7d 08 48 89 f8 48 c1 e8 03 <42> 80 3c 30 00 0f 85 50 0e 00 00 49 8b 45 08 31 ff 49 89 c4 48 89
RSP: 0018:ffffc900054af578 EFLAGS: 00010202
RAX: 0000000000000001 RBX: ffff88802751e2d0 RCX: 0000000000000000
RDX: ffff888018a23a80 RSI: ffffffff81b39eff RDI: 0000000000000008
RBP: 0000000000000000 R08: 0000000000000004 R09: 00000000000001fe
R10: 0000000000000058 R11: 0000000000000000 R12: 0000000000000004
R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000058
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fedbe783558 CR3: 000000005748c000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 tlb_batch_pages_flush+0xa8/0x1a0 mm/mmu_gather.c:97
 zap_pte_range mm/memory.c:1487 [inline]
 zap_pmd_range mm/memory.c:1536 [inline]
 zap_pud_range mm/memory.c:1565 [inline]
 zap_p4d_range mm/memory.c:1586 [inline]
 unmap_page_range+0x2605/0x3ce0 mm/memory.c:1607
 unmap_single_vma+0x194/0x2a0 mm/memory.c:1653
 unmap_vmas+0x234/0x380 mm/memory.c:1692
 exit_mmap+0x190/0x7d0 mm/mmap.c:3036
 __mmput+0x128/0x4c0 kernel/fork.c:1209
 mmput+0x60/0x70 kernel/fork.c:1231
 exit_mm kernel/exit.c:563 [inline]
 do_exit+0x9d7/0x2b60 kernel/exit.c:856
 do_group_exit+0xd4/0x2a0 kernel/exit.c:1019
 get_signal+0x2321/0x25b0 kernel/signal.c:2859
 arch_do_signal_or_restart+0x79/0x5c0 arch/x86/kernel/signal.c:306
 exit_to_user_mode_loop kernel/entry/common.c:168 [inline]
 exit_to_user_mode_prepare+0x11f/0x240 kernel/entry/common.c:204
 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline]
 syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:297
 do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fbdadcb0e21
Code: Unable to access opcode bytes at 0x7fbdadcb0df7.
RSP: 002b:00007ffc9a928d00 EFLAGS: 00000293 ORIG_RAX: 00000000000000e6
RAX: 0000000000000000 RBX: 00007fbdaddabf80 RCX: 00007fbdadcb0e21
RDX: 00007ffc9a928d40 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007fbdaddad980 R08: 0000000000000000 R09: 00007ffc9a997080
R10: 0000000000000000 R11: 0000000000000293 R12: 000000000010fab3
R13: 00007fbdad800520 R14: 00007fbdaddac390 R15: 0000000000000005
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:_compound_head include/linux/page-flags.h:251 [inline]
RIP: 0010:release_pages+0x226/0x1330 mm/swap.c:1003
Code: ce d0 ff 48 89 d8 48 c1 e8 03 42 80 3c 30 00 0f 85 52 0e 00 00 48 8b 2b 49 89 ed 49 83 e5 fc 49 8d 7d 08 48 89 f8 48 c1 e8 03 <42> 80 3c 30 00 0f 85 50 0e 00 00 49 8b 45 08 31 ff 49 89 c4 48 89
RSP: 0018:ffffc900054af578 EFLAGS: 00010202
RAX: 0000000000000001 RBX: ffff88802751e2d0 RCX: 0000000000000000
RDX: ffff888018a23a80 RSI: ffffffff81b39eff RDI: 0000000000000008
RBP: 0000000000000000 R08: 0000000000000004 R09: 00000000000001fe
R10: 0000000000000058 R11: 0000000000000000 R12: 0000000000000004
R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000058
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055a61c2974f0 CR3: 000000005748c000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 1 bytes skipped:
   0:	d0 ff                	sar    %bh
   2:	48 89 d8             	mov    %rbx,%rax
   5:	48 c1 e8 03          	shr    $0x3,%rax
   9:	42 80 3c 30 00       	cmpb   $0x0,(%rax,%r14,1)
   e:	0f 85 52 0e 00 00    	jne    0xe66
  14:	48 8b 2b             	mov    (%rbx),%rbp
  17:	49 89 ed             	mov    %rbp,%r13
  1a:	49 83 e5 fc          	and    $0xfffffffffffffffc,%r13
  1e:	49 8d 7d 08          	lea    0x8(%r13),%rdi
  22:	48 89 f8             	mov    %rdi,%rax
  25:	48 c1 e8 03          	shr    $0x3,%rax
* 29:	42 80 3c 30 00       	cmpb   $0x0,(%rax,%r14,1) <-- trapping instruction
  2e:	0f 85 50 0e 00 00    	jne    0xe84
  34:	49 8b 45 08          	mov    0x8(%r13),%rax
  38:	31 ff                	xor    %edi,%edi
  3a:	49 89 c4             	mov    %rax,%r12
  3d:	48                   	rex.W
  3e:	89                   	.byte 0x89

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/08 04:54 linux-next 38d2b86a665b 15c3d445 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in release_pages
2023/02/01 13:15 linux-next 66eee64b2354 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in release_pages
* Struck through repros no longer work on HEAD.