syzbot


general protection fault in free_pages_and_swap_cache

Status: auto-closed as invalid on 2021/05/10 05:05
Reported-by: syzbot+f2dc1626458017221a7f@syzkaller.appspotmail.com
First crash: 1424d, last: 1424d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in free_pages_and_swap_cache mm 2 1651d 1649d 0/28 auto-closed as invalid on 2020/09/25 01:37

Sample crash report:
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 3098 Comm: syz-executor.4 Not tainted 4.19.166-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__read_once_size include/linux/compiler.h:207 [inline]
RIP: 0010:compound_head include/linux/page-flags.h:142 [inline]
RIP: 0010:PageSwapCache include/linux/page-flags.h:338 [inline]
RIP: 0010:free_swap_cache mm/swap_state.c:291 [inline]
RIP: 0010:free_pages_and_swap_cache+0x255/0x3a0 mm/swap_state.c:319
Code: 00 00 e8 9e 5a d0 ff 4c 89 e8 48 c1 e8 03 80 3c 18 00 0f 85 04 01 00 00 4d 8b 65 00 49 8d 44 24 08 48 89 44 24 08 48 c1 e8 03 <80> 3c 18 00 0f 85 ff 00 00 00 49 8b 44 24 08 31 ff 4c 89 e5 48 89
RSP: 0018:ffff88800001f710 EFLAGS: 00010202
RAX: 0000000000000001 RBX: dffffc0000000000 RCX: ffffffff81947664
RDX: 0000000000000000 RSI: ffffffff81947672 RDI: 0000000000000004
RBP: ffffea0001370e40 R08: 0000000000000000 R09: 00000000000001fe
R10: 0000000000000004 R11: 0000000000000000 R12: 0000000000000000
R13: ffff88800016e638 R14: 00000000000000c5 R15: 00000000000001fe
FS:  00007fee1bc02700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff281a9fc78 CR3: 00000000588f4000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 tlb_flush_mmu_free mm/memory.c:261 [inline]
 zap_pte_range mm/memory.c:1417 [inline]
 zap_pmd_range mm/memory.c:1452 [inline]
 zap_pud_range mm/memory.c:1481 [inline]
 zap_p4d_range mm/memory.c:1502 [inline]
 unmap_page_range+0x207f/0x2a70 mm/memory.c:1523
 unmap_single_vma+0x198/0x300 mm/memory.c:1568
 unmap_vmas+0xa9/0x180 mm/memory.c:1598
 exit_mmap+0x2b9/0x530 mm/mmap.c:3093
 __mmput kernel/fork.c:1015 [inline]
 mmput+0x14e/0x4a0 kernel/fork.c:1036
 exit_mm kernel/exit.c:549 [inline]
 do_exit+0xaf0/0x2be0 kernel/exit.c:877
 do_group_exit+0x125/0x310 kernel/exit.c:993
 get_signal+0x3f2/0x1f70 kernel/signal.c:2589
 do_signal+0x8f/0x1670 arch/x86/kernel/signal.c:821
 exit_to_usermode_loop+0x204/0x2a0 arch/x86/entry/common.c:163
 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:271 [inline]
 do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45e219
Code: 0d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fee1bc01cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: 0000000000000001 RBX: 000000000119c030 RCX: 000000000045e219
RDX: 00000000000f4240 RSI: 0000000000000081 RDI: 000000000119c034
RBP: 000000000119c028 R08: 000000000000000e R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000119c034
R13: 00007ffd5fe7efbf R14: 00007fee1bc029c0 R15: 000000000119c034
Modules linked in:
IPVS: ftp: loaded support on port[0] = 21
---[ end trace eeb99b0a9b226be4 ]---
RIP: 0010:__read_once_size include/linux/compiler.h:207 [inline]
RIP: 0010:compound_head include/linux/page-flags.h:142 [inline]
RIP: 0010:PageSwapCache include/linux/page-flags.h:338 [inline]
RIP: 0010:free_swap_cache mm/swap_state.c:291 [inline]
RIP: 0010:free_pages_and_swap_cache+0x255/0x3a0 mm/swap_state.c:319
Code: 00 00 e8 9e 5a d0 ff 4c 89 e8 48 c1 e8 03 80 3c 18 00 0f 85 04 01 00 00 4d 8b 65 00 49 8d 44 24 08 48 89 44 24 08 48 c1 e8 03 <80> 3c 18 00 0f 85 ff 00 00 00 49 8b 44 24 08 31 ff 4c 89 e5 48 89
RSP: 0018:ffff88800001f710 EFLAGS: 00010202
RAX: 0000000000000001 RBX: dffffc0000000000 RCX: ffffffff81947664
RDX: 0000000000000000 RSI: ffffffff81947672 RDI: 0000000000000004
RBP: ffffea0001370e40 R08: 0000000000000000 R09: 00000000000001fe
R10: 0000000000000004 R11: 0000000000000000 R12: 0000000000000000
R13: ffff88800016e638 R14: 00000000000000c5 R15: 00000000000001fe
FS:  00007fee1bc02700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055b66122b74f CR3: 00000000b0578000 CR4: 00000000001406e0
IPVS: ftp: loaded support on port[0] = 21
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/01/10 05:04 linux-4.19.y 610bdbf6a174 2c1f2513 .config console log report info ci2-linux-4-19
* Struck through repros no longer work on HEAD.