Re: BUG: unable to handle kernel paging request in hrtimer_interrupt

From: Dmitry Vyukov
Date: Wed Jun 19 2019 - 15:03:11 EST


On Wed, Jun 19, 2019 at 5:57 PM syzbot
<syzbot+037e18398ba8c655a652@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> Hello,
>
> syzbot found the following crash on:
>
> HEAD commit: 29f785ff Merge branch 'fixes' of git://git.kernel.org/pub/..
> git tree: upstream
> console output: https://syzkaller.appspot.com/x/log.txt?x=10539ceaa00000
> kernel config: https://syzkaller.appspot.com/x/.config?x=e5c77f8090a3b96b
> dashboard link: https://syzkaller.appspot.com/bug?extid=037e18398ba8c655a652
> compiler: gcc (GCC) 9.0.0 20181231 (experimental)
> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=16da8cc9a00000
>
> IMPORTANT: if you fix the bug, please add the following tag to the commit:
> Reported-by: syzbot+037e18398ba8c655a652@xxxxxxxxxxxxxxxxxxxxxxxxx

The same bpf plague bug...
+bpf mailing list

> kernel tried to execute NX-protected page - exploit attempt? (uid: 0)
> BUG: unable to handle page fault for address: ffff88807a92fb10
> #PF: supervisor instruction fetch in kernel mode
> #PF: error_code(0x0011) - permissions violation
> PGD b401067 P4D b401067 PUD 80000000400001e3
> Thread overran stack, or stack corrupted
> Oops: 0011 [#1] PREEMPT SMP KASAN
> CPU: 1 PID: 9205 Comm: syz-executor.0 Not tainted 5.2.0-rc5+ #2
> Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
> Google 01/01/2011
> RIP: 0010:0xffff88807a92fb10
> Code: ff ff 15 b8 0d 86 ff ff ff ff 00 b5 0d 86 ff ff ff ff 40 8c f0 89 80
> 88 ff ff 00 00 00 00 00 00 00 00 a0 a9 1d 8b ff ff ff ff <40> fb 92 7a 80
> 88 ff ff 15 b8 0d 86 ff ff ff ff 00 b5 0d 86 ff ff
> RSP: 0018:ffff8880ae909e10 EFLAGS: 00010006
> RAX: ffff88807a92fb10 RBX: 0000000000000000 RCX: ffffffff816162e2
> RDX: 0000000000010000 RSI: ffffffff81615cdf RDI: ffff88807a92fab8
> RBP: ffff8880ae909f08 R08: ffff888092914180 R09: ffffed1015d26c70
> R10: ffffed1015d26c6f R11: ffff8880ae93637b R12: ffff8880ae926d80
> R13: ffffffff8b1da9a0 R14: ffff88807a92fab8 R15: dffffc0000000000
> FS: 0000555557401940(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
> CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> CR2: ffff88807a92fb10 CR3: 000000009016a000 CR4: 00000000001406e0
> Call Trace:
> <IRQ>
> hrtimer_interrupt+0x314/0x770 kernel/time/hrtimer.c:1509
> local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1041 [inline]
> smp_apic_timer_interrupt+0x111/0x550 arch/x86/kernel/apic/apic.c:1066
> apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:806
> </IRQ>
> Modules linked in:
> CR2: ffff88807a92fb10
> ---[ end trace f7934f1b1fe3f476 ]---
> RIP: 0010:0xffff88807a92fb10
> Code: ff ff 15 b8 0d 86 ff ff ff ff 00 b5 0d 86 ff ff ff ff 40 8c f0 89 80
> 88 ff ff 00 00 00 00 00 00 00 00 a0 a9 1d 8b ff ff ff ff <40> fb 92 7a 80
> 88 ff ff 15 b8 0d 86 ff ff ff ff 00 b5 0d 86 ff ff
> RSP: 0018:ffff8880ae909e10 EFLAGS: 00010006
> RAX: ffff88807a92fb10 RBX: 0000000000000000 RCX: ffffffff816162e2
> RDX: 0000000000010000 RSI: ffffffff81615cdf RDI: ffff88807a92fab8
> RBP: ffff8880ae909f08 R08: ffff888092914180 R09: ffffed1015d26c70
> R10: ffffed1015d26c6f R11: ffff8880ae93637b R12: ffff8880ae926d80
> R13: ffffffff8b1da9a0 R14: ffff88807a92fab8 R15: dffffc0000000000
> FS: 0000555557401940(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
> CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> CR2: ffff88807a92fb10 CR3: 000000009016a000 CR4: 00000000001406e0
>
>
> ---
> This bug 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@xxxxxxxxxxxxxxxxx
>
> syzbot will keep track of this bug report. See:
> https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
> syzbot can test patches for this bug, for details see:
> https://goo.gl/tpsmEJ#testing-patches
>
> --
> You received this message because you are subscribed to the Google Groups "syzkaller-bugs" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-bugs+unsubscribe@xxxxxxxxxxxxxxxxx
> To view this discussion on the web visit https://groups.google.com/d/msgid/syzkaller-bugs/0000000000001c03bf058baf488a%40google.com.
> For more options, visit https://groups.google.com/d/optout.