general protection fault in free_swap_cache (3)

4 views
Skip to first unread message

syzbot

unread,
Feb 10, 2023, 1:53:45 PM2/10/23
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 129af7708234 Add linux-next specific files for 20230206
git tree: linux-next
console output: https://syzkaller.appspot.com/x/log.txt?x=1525ba0f480000
kernel config: https://syzkaller.appspot.com/x/.config?x=be0a3ae20dd54621
dashboard link: https://syzkaller.appspot.com/bug?extid=10bbd0e689f32b9768c7
compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2
CC: [ak...@linux-foundation.org linux-...@vger.kernel.org linu...@kvack.org]

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

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/52d26f2badb0/disk-129af770.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/567a88b6ad33/vmlinux-129af770.xz
kernel image: https://storage.googleapis.com/syzbot-assets/14942fd7430d/bzImage-129af770.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+10bbd0...@syzkaller.appspotmail.com

general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
CPU: 1 PID: 25458 Comm: syz-executor.5 Not tainted 6.2.0-rc7-next-20230206-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:free_swap_cache+0x25/0x3d0 mm/swap_state.c:288
Code: 00 0f 1f 40 00 66 0f 1f 00 41 54 55 48 89 fd 53 e8 20 ba b9 ff 48 8d 7d 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 35 03 00 00 4c 8b 65 08 31 ff 4c 89 e3 83 e3 01
RSP: 0018:ffffc9000406f658 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff888056b040b8 RCX: 0000000000000000
RDX: 0000000000000001 RSI: ffffffff81caab60 RDI: 0000000000000008
RBP: 0000000000000000 R08: 0000000000000004 R09: 0000000000000025
R10: 0000000000000014 R11: 0000000000000000 R12: 0000000000000025
R13: dffffc0000000000 R14: ffff888056b04010 R15: 0000000000000025
FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fba3c10e264 CR3: 000000000c56f000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
free_pages_and_swap_cache+0x60/0xa0 mm/swap_state.c:316
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:0x7f9b5168c0c9
Code: Unable to access opcode bytes at 0x7f9b5168c09f.
RSP: 002b:00007f9b5241f218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 00007f9b517ac058 RCX: 00007f9b5168c0c9
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f9b517ac058
RBP: 00007f9b517ac050 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f9b517ac05c
R13: 00007ffe5754129f R14: 00007f9b5241f300 R15: 0000000000022000
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:_compound_head include/linux/page-flags.h:251 [inline]
RIP: 0010:free_swap_cache+0x25/0x3d0 mm/swap_state.c:288
Code: 00 0f 1f 40 00 66 0f 1f 00 41 54 55 48 89 fd 53 e8 20 ba b9 ff 48 8d 7d 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 35 03 00 00 4c 8b 65 08 31 ff 4c 89 e3 83 e3 01
RSP: 0018:ffffc9000406f658 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff888056b040b8 RCX: 0000000000000000
RDX: 0000000000000001 RSI: ffffffff81caab60 RDI: 0000000000000008
RBP: 0000000000000000 R08: 0000000000000004 R09: 0000000000000025
R10: 0000000000000014 R11: 0000000000000000 R12: 0000000000000025
R13: dffffc0000000000 R14: ffff888056b04010 R15: 0000000000000025
FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f06e33821b8 CR3: 0000000052063000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 1 bytes skipped:
0: 0f 1f 40 00 nopl 0x0(%rax)
4: 66 0f 1f 00 nopw (%rax)
8: 41 54 push %r12
a: 55 push %rbp
b: 48 89 fd mov %rdi,%rbp
e: 53 push %rbx
f: e8 20 ba b9 ff callq 0xffb9ba34
14: 48 8d 7d 08 lea 0x8(%rbp),%rdi
18: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
1f: fc ff df
22: 48 89 fa mov %rdi,%rdx
25: 48 c1 ea 03 shr $0x3,%rdx
* 29: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction
2d: 0f 85 35 03 00 00 jne 0x368
33: 4c 8b 65 08 mov 0x8(%rbp),%r12
37: 31 ff xor %edi,%edi
39: 4c 89 e3 mov %r12,%rbx
3c: 83 e3 01 and $0x1,%ebx


---
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 syzk...@googlegroups.com.

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

syzbot

unread,
May 25, 2023, 9:12:49 AM5/25/23
to syzkaller-upst...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages