general protection fault in do_syscall_64 (2)

8 views
Skip to first unread message

syzbot

unread,
May 18, 2020, 7:19:18 PM5/18/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: ab9dfda2 Linux 4.14.180
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=165976e6100000
kernel config: https://syzkaller.appspot.com/x/.config?x=221566a7407ce2de
dashboard link: https://syzkaller.appspot.com/bug?extid=7325d285aa9dee612670
compiler: gcc (GCC) 9.0.0 20181231 (experimental)

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

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+7325d2...@syzkaller.appspotmail.com

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
Modules linked in:
CPU: 1 PID: 6366 Comm: syz-executor.4 Not tainted 4.14.180-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8880622a06c0 task.stack: ffff8880622a8000
RIP: 0010:do_syscall_64+0x1e3/0x640 arch/x86/entry/common.c:292
RSP: 0018:ffff8880622aff00 EFLAGS: 00010286
RAX: 0000000000000000 RBX: ffffffff81371150 RCX: 1ffff1100c455f8e
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff8880622affa8
RBP: ffff8880622aff58 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff87d16698
R13: ffff8880622affd0 R14: ffff8880622a06c0 R15: 0000000000000000
FS: 0000000001a94940(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b31435000 CR3: 000000006228f000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x4168ca
RSP: 002b:00007fff3ce65e18 EFLAGS: 00000246 ORIG_RAX: 000000000000003d
RAX: ffffffffffffffda RBX: 00000000000b4af4 RCX: 00000000004168ca
RDX: 0000000040000001 RSI: 00007fff3ce65e50 RDI: ffffffffffffffff
RBP: 0000000000000af8 R08: 0000000000000001 R09: 0000000001a94940
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fff3ce65e50 R14: 00000000000b4ad4 R15: 00007fff3ce65e60
Code: 00 00 fc ff df 49 89 fa 49 c1 ea 03 41 80 3c 02 00 0f 85 16 03 00 00 48 8b 7d 70 ff d3 48 8d 7d 50 48 ba 00 00 00 00 00
kasan: CONFIG_KASAN_INLINE enabled
00
kasan: GPF could be caused by NULL-ptr deref or user memory access
00 00 <00> 89 f9 48 c1 e9 03 80 3c 11 00 0f 85 df 02 00 00 48 89 45 50
RIP: do_syscall_64+0x1e3/0x640 arch/x86/entry/common.c:292 RSP: ffff8880622aff00
general protection fault: 0000 [#2] PREEMPT SMP KASAN
Modules linked in:
CPU: 0 PID: 31982 Comm: syz-executor.4 Tainted: G D 4.14.180-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff88804e3a63c0 task.stack: ffff8882073d0000
RIP: 0010:update_vsyscall+0xa1/0x340 arch/x86/entry/vsyscall/vsyscall_gtod.c:43
RSP: 0018:ffff8880aea07ca0 EFLAGS: 00010046
RAX: dffffc0000000000 RBX: ffffffff87d15fe0 RCX: 0000000000000017
RDX: 1ffffffff14b1b22 RSI: 0000000000000000 RDI: ffffffff8a58d910
RBP: ffffffff8a58d900 R08: 0000000000000001 R09: 0000000000000001
R10: ffff88821fff7010 R11: ffff88804e3a63c0 R12: 0000000000000000
R13: 000000000c8d8a71 R14: 0000000007aa4c96 R15: fffffffffff703a5
FS: 00007f35a60f8700(0000) GS:ffff8880aea00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000560d53893598 CR3: 000000008de14000 CR4: 00000000001426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<IRQ>
timekeeping_update+0x223/0x390 kernel/time/timekeeping.c:656
update_wall_time+0x5a1/0xa30 kernel/time/timekeeping.c:2117
tick_do_update_jiffies64.part.0+0x172/0x270 kernel/time/tick-sched.c:100
tick_do_update_jiffies64 kernel/time/tick-sched.c:66 [inline]
tick_sched_do_timer kernel/time/tick-sched.c:139 [inline]
tick_sched_do_timer+0xab/0xe0 kernel/time/tick-sched.c:120
tick_sched_timer+0x25/0x120 kernel/time/tick-sched.c:1216
__run_hrtimer kernel/time/hrtimer.c:1223 [inline]
__hrtimer_run_queues+0x25c/0xbb0 kernel/time/hrtimer.c:1287
hrtimer_interrupt+0x1e6/0x5e0 kernel/time/hrtimer.c:1321
local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1075 [inline]
smp_apic_timer_interrupt+0x117/0x5e0 arch/x86/kernel/apic/apic.c:1100
apic_timer_interrupt+0x8f/0xa0 arch/x86/entry/entry_64.S:792
</IRQ>
RIP: 0010:comp drivers/video/fbdev/core/fb_draw.h:17 [inline]
RIP: 0010:bitfill_aligned drivers/video/fbdev/core/cfbfillrect.c:50 [inline]
RIP: 0010:bitfill_aligned+0x72/0x190 drivers/video/fbdev/core/cfbfillrect.c:35
RSP: 0018:ffff8882073d7318 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff10
RAX: e9ffee4c22e80048 RBX: ffff88800111f3e0 RCX: ffffc90009f48000
RDX: 0000000000040000 RSI: ffffffff831b2f7f RDI: 0000000000000020
RBP: 0000000000000020 R08: 0000000000000020 R09: 0000000000000040
R10: ffffed1014b624f3 R11: ffff8880a5b1279f R12: 0000000000000040
R13: 00000000ffffffff R14: 0000000000000000 R15: 0000000000000000
cfb_fillrect+0x3d5/0x720 drivers/video/fbdev/core/cfbfillrect.c:327
vga16fb_fillrect+0x61e/0x1880 drivers/video/fbdev/vga16fb.c:951
bit_clear_margins+0x2a4/0x480 drivers/video/fbdev/core/bitblit.c:232
fbcon_clear_margins+0x285/0x310 drivers/video/fbdev/core/fbcon.c:1320
fbcon_switch+0xcdf/0x1780 drivers/video/fbdev/core/fbcon.c:2302
redraw_screen+0x331/0x770 drivers/tty/vt/vt.c:689
fbcon_modechanged+0x59d/0x890 drivers/video/fbdev/core/fbcon.c:2949
fbcon_event_notify+0x11a/0x1746 drivers/video/fbdev/core/fbcon.c:3302
notifier_call_chain+0x107/0x1a0 kernel/notifier.c:93
__blocking_notifier_call_chain kernel/notifier.c:317 [inline]
__blocking_notifier_call_chain kernel/notifier.c:304 [inline]
blocking_notifier_call_chain kernel/notifier.c:328 [inline]
blocking_notifier_call_chain+0x79/0x90 kernel/notifier.c:325
fb_set_var+0xaad/0xc70 drivers/video/fbdev/core/fbmem.c:1054
do_fb_ioctl+0x3cc/0x840 drivers/video/fbdev/core/fbmem.c:1127
fb_ioctl+0xdd/0x130 drivers/video/fbdev/core/fbmem.c:1242
vfs_ioctl fs/ioctl.c:46 [inline]
file_ioctl fs/ioctl.c:500 [inline]
do_vfs_ioctl+0x75a/0xfe0 fs/ioctl.c:684
SYSC_ioctl fs/ioctl.c:701 [inline]
SyS_ioctl+0x7f/0xb0 fs/ioctl.c:692
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x45ca29
RSP: 002b:00007f35a60f7c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00000000004e4ac0 RCX: 000000000045ca29
RDX: 0000000020000000 RSI: 0000000000004601 RDI: 0000000000000003
RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000000002f2 R14: 00000000004c56c8 R15: 00007f35a60f86d4
Code: 89 05 18 64 91 07 48 8d 7d 10 89 15 be 8e 6b 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 4d 02 00 00 <00> 00 00 10 48 8d 7d 08 48 89 fa 48 c1 ea 03 48 89 05 91 8e 6b
RIP: update_vsyscall+0xa1/0x340 arch/x86/entry/vsyscall/vsyscall_gtod.c:43 RSP: ffff8880aea07ca0
---[ end trace 2da2bfb22835b601 ]---


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

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

syzbot

unread,
Sep 7, 2020, 12:42:16 PM9/7/20
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 2f166cdc Linux 4.14.196
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=14314245900000
kernel config: https://syzkaller.appspot.com/x/.config?x=e2677667b00dfecb
dashboard link: https://syzkaller.appspot.com/bug?extid=7325d285aa9dee612670
compiler: gcc (GCC) 10.1.0-syz 20200507
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=122651a5900000

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

batman_adv: batadv0: Interface activated: batadv_slave_1
IPv6: ADDRCONF(NETDEV_CHANGE): bond0: link becomes ready
IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_batadv: link becomes ready
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
Modules linked in:
CPU: 1 PID: 6374 Comm: syz-executor.0 Not tainted 4.14.196-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff88809a892000 task.stack: ffff888097368000
RIP: 0010:arch_local_irq_enable arch/x86/include/asm/paravirt.h:789 [inline]
RIP: 0010:do_syscall_64+0x71/0x640 arch/x86/entry/common.c:280
RSP: 0018:ffff88809736ff00 EFLAGS: 00010082
RAX: dffffc0000000000 RBX: 00000000000000e4 RCX: 0000000000000000
RDX: 1ffffffff0fa2d23 RSI: 0000000000000001 RDI: ffff88809a892884
RBP: ffff88809736ff58 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff87d16918
R13: ffff88809736ffd0 R14: ffff88809a892000 R15: 0000000000000000
FS: 00000000029e5940(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004ea770 CR3: 00000000a8e0e000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x4603fa
RSP: 002b:00007fff1b461e98 EFLAGS: 00000246 ORIG_RAX: 00000000000000e4
RAX: ffffffffffffffda RBX: 0000000000100b27 RCX: 00000000004603fa
RDX: 0000000000000000 RSI: 00007fff1b461ea0 RDI: 0000000000000001
RBP: 0000000000000007 R08: 0000000000000000 R09: 00000000029e5940
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004
R13: 00007fff1b461f00 R14: 0000000000100af6 R15: 00007fff1b461f10
Code: 78 e8 34 8c 46 00 4c 89 e2 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 52 04 00 00 48 83 3d 19 fb d0 06 00 0f 77 <00> 70 07 00 e8 06 29 5b 00 fb 66 0f 1f 44 00 00 48 b8 00 00 00
RIP: arch_local_irq_enable arch/x86/include/asm/paravirt.h:789 [inline] RSP: ffff88809736ff00
RIP: do_syscall_64+0x71/0x640 arch/x86/entry/common.c:280 RSP: ffff88809736ff00
---[ end trace 3c2ded2704748a1c ]---

Reply all
Reply to author
Forward
0 new messages