BUG: unable to handle kernel paging request in preempt_schedule_notrace_thunk

From: syzbot
Date: Tue Sep 08 2020 - 03:31:27 EST


Hello,

syzbot found the following issue on:

HEAD commit: e28f0104 Merge tag 'fixes-2020-09-03' of git://git.kernel...
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=155d7031900000
kernel config: https://syzkaller.appspot.com/x/.config?x=3c5f6ce8d5b68299
dashboard link: https://syzkaller.appspot.com/bug?extid=b1b5cc92a1a394387cbe
compiler: gcc (GCC) 10.1.0-syz 20200507

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+b1b5cc92a1a394387cbe@xxxxxxxxxxxxxxxxxxxxxxxxx

BUG: unable to handle page fault for address: 0000000080004000
#PF: supervisor write access in kernel mode
#PF: error_code(0x0002) - not-present page
PGD 5f997067 P4D 5f997067 PUD 0
Oops: 0002 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 23933 Comm: syz-executor.4 Not tainted 5.9.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:preempt_schedule_notrace_thunk+0x18/0x31 arch/x86/entry/thunk_64.S:48
Code: 52 51 50 41 50 41 51 41 52 41 53 e8 f3 77 f5 06 eb 18 55 48 89 e5 57 77 00 00 00 77 00 70 07 77 77 77 77 00 00 00 00 77 00 00 <00> 00 00 70 07 00 00 70 07 00 00 00 00 77 77 77 77 00 70 07 00 00
RSP: 0018:ffffc900010a7720 EFLAGS: 00010246
RAX: 0000000080004000 RBX: 0000000000000000 RCX: ffffffff87f5ede9
RDX: ffffed1013c24851 RSI: 0000000000000008 RDI: ffff88809e124280
RBP: ffffc900010a7768 R08: 0000000000000000 R09: ffff88809e124287
R10: ffffed1013c24850 R11: 0000000000000000 R12: ffff88804e0a3c90
R13: 0000000000000000 R14: dffffc0000000000 R15: 00007f2bc63d4000
FS: 0000000000000000(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000080004000 CR3: 000000005f996000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__raw_spin_unlock include/linux/spinlock_api_smp.h:152 [inline]
_raw_spin_unlock+0x36/0x40 kernel/locking/spinlock.c:183
spin_unlock include/linux/spinlock.h:394 [inline]
zap_pte_range mm/memory.c:1147 [inline]
zap_pmd_range mm/memory.c:1195 [inline]
zap_pud_range mm/memory.c:1224 [inline]
zap_p4d_range mm/memory.c:1245 [inline]
unmap_page_range+0x1602/0x2b20 mm/memory.c:1266
unmap_single_vma+0x198/0x300 mm/memory.c:1311
unmap_vmas+0x168/0x2e0 mm/memory.c:1343
exit_mmap+0x2b1/0x530 mm/mmap.c:3183
__mmput+0x122/0x470 kernel/fork.c:1076
mmput+0x53/0x60 kernel/fork.c:1097
exit_mm kernel/exit.c:483 [inline]
do_exit+0xa8b/0x29f0 kernel/exit.c:793
do_group_exit+0x125/0x310 kernel/exit.c:903
get_signal+0x428/0x1f00 kernel/signal.c:2757
arch_do_signal+0x82/0x2520 arch/x86/kernel/signal.c:811
exit_to_user_mode_loop kernel/entry/common.c:136 [inline]
exit_to_user_mode_prepare+0x1ae/0x200 kernel/entry/common.c:167
syscall_exit_to_user_mode+0x7e/0x2e0 kernel/entry/common.c:242
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45d5b9
Code: Bad RIP value.
RSP: 002b:00007f2bc43d7cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 000000000118cfe8 RCX: 000000000045d5b9
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 000000000118cfe8
RBP: 000000000118cfe0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118cfec
R13: 00007ffcd1e5e63f R14: 00007f2bc43d89c0 R15: 000000000118cfec
Modules linked in:
CR2: 0000000080004000
---[ end trace 6167aebb95222551 ]---
RIP: 0010:preempt_schedule_notrace_thunk+0x18/0x31 arch/x86/entry/thunk_64.S:48
Code: 52 51 50 41 50 41 51 41 52 41 53 e8 f3 77 f5 06 eb 18 55 48 89 e5 57 77 00 00 00 77 00 70 07 77 77 77 77 00 00 00 00 77 00 00 <00> 00 00 70 07 00 00 70 07 00 00 00 00 77 77 77 77 00 70 07 00 00
RSP: 0018:ffffc900010a7720 EFLAGS: 00010246
RAX: 0000000080004000 RBX: 0000000000000000 RCX: ffffffff87f5ede9
RDX: ffffed1013c24851 RSI: 0000000000000008 RDI: ffff88809e124280
RBP: ffffc900010a7768 R08: 0000000000000000 R09: ffff88809e124287
R10: ffffed1013c24850 R11: 0000000000000000 R12: ffff88804e0a3c90
R13: 0000000000000000 R14: dffffc0000000000 R15: 00007f2bc63d4000
FS: 0000000000000000(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000080004000 CR3: 000000005f996000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
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.