syzbot


general protection fault in perf_misc_flags

Status: auto-closed as invalid on 2020/08/14 14:40
Reported-by: syzbot+5ed5e8bca097bdb2c3d1@syzkaller.appspotmail.com
First crash: 1692d, last: 1692d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 general protection fault in perf_misc_flags (2) 1 1549d 1549d 0/1 auto-closed as invalid on 2021/01/04 12:29
upstream general protection fault in perf_misc_flags perf 7 1529d 1536d 0/28 closed as invalid on 2020/10/01 13:54

Sample crash report:
ubi0: scanning is finished
kasan: CONFIG_KASAN_INLINE enabled
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 24511 Comm: syz-executor.3 Not tainted 4.19.115-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:perf_misc_flags+0x2e/0x1a8 arch/x86/events/core.c:2536
Code: c4 40 e4 6d 8b 55 48 89 fd 53 e8 ad 31 66 00 4c 89 e2 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 37 01 00 00 <48> 8b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
RSP: 0018:ffff8880ae707950 EFLAGS: 00010046
RAX: dffffc0000000000 RBX: ffff8880ae707a60 RCX: ffff8880ae707a66
RDX: 1ffffffff16dbc88 RSI: ffffffff810172c3 RDI: ffff88809699f158
RBP: ffff88809699f158 R08: ffff88809b7fc640 R09: ffffed1015ce4733
R10: ffffed1015ce4732 R11: ffff8880ae723993 R12: ffffffff8b6de440
R13: ffff8880948554c0 R14: ffff8880ae707a64 R15: ffff8880ae707a60
FS:  00007f89a585b700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000768060 CR3: 00000000860b9000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 perf_prepare_sample+0x173/0x1570 kernel/events/core.c:6456
 __perf_event_output kernel/events/core.c:6582 [inline]
 perf_event_output_forward+0xf3/0x270 kernel/events/core.c:6600
 __perf_event_overflow+0x13c/0x370 kernel/events/core.c:7866
 perf_swevent_hrtimer+0x26d/0x3d0 kernel/events/core.c:9222
 __run_hrtimer kernel/time/hrtimer.c:1401 [inline]
 __hrtimer_run_queues+0x2fc/0xd50 kernel/time/hrtimer.c:1463
 hrtimer_interrupt+0x312/0x770 kernel/time/hrtimer.c:1521
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1067 [inline]
 smp_apic_timer_interrupt+0x10c/0x550 arch/x86/kernel/apic/apic.c:1092
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:893
 </IRQ>
RIP: 0010:__sanitizer_cov_trace_const_cmp4+0xd/0x20 kernel/kcov.c:188
Code: 24 0f b7 d6 0f b7 f7 bf 03 00 00 00 e9 ec fe ff ff 66 90 66 2e 0f 1f 84 00 00 00 00 00 48 8b 0c 24 89 f2 89 fe bf 05 00 00 00 <e9> ce fe ff ff 0f 1f 40 00 66 2e 0f 1f 84 00 00 00 00 00 48 8b 0c
RSP: 0018:ffff88809699f200 EFLAGS: 00000202 ORIG_RAX: ffffffffffffff13
RAX: ffff88800101b1d8 RBX: 0000000000000000 RCX: ffffffff837628f4
RDX: 0000000000000020 RSI: 0000000000000007 RDI: 0000000000000005
RBP: ffff88800101b1e0 R08: ffff88809b7fc640 R09: 0000000000000040
R10: ffffed10432e960b R11: ffff88821974b05f R12: 0000000000000030
R13: ffff88800101b160 R14: 0000000000000000 R15: 0000000000000020
 bitfill_aligned drivers/video/fbdev/core/cfbfillrect.c:63 [inline]
 bitfill_aligned+0x134/0x200 drivers/video/fbdev/core/cfbfillrect.c:35
 cfb_fillrect+0x418/0x7a0 drivers/video/fbdev/core/cfbfillrect.c:327
 vga16fb_fillrect+0x68f/0x1960 drivers/video/fbdev/vga16fb.c:951
 bit_clear_margins+0x2d5/0x4a0 drivers/video/fbdev/core/bitblit.c:232
 fbcon_clear_margins+0x2d8/0x370 drivers/video/fbdev/core/fbcon.c:1342
 fbcon_switch+0xe0f/0x1970 drivers/video/fbdev/core/fbcon.c:2324
 redraw_screen+0x37d/0x870 drivers/tty/vt/vt.c:1009
 fbcon_modechanged+0x5eb/0x8f0 drivers/video/fbdev/core/fbcon.c:2972
 fbcon_event_notify+0x1b2/0x1d54 drivers/video/fbdev/core/fbcon.c:3347
 notifier_call_chain+0xc0/0x230 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+0x85/0xa0 kernel/notifier.c:325
 fb_set_var+0xc39/0xe00 drivers/video/fbdev/core/fbmem.c:1042
 do_fb_ioctl+0x450/0xab0 drivers/video/fbdev/core/fbmem.c:1115
 fb_ioctl+0xdd/0x130 drivers/video/fbdev/core/fbmem.c:1230
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:501 [inline]
 do_vfs_ioctl+0xcda/0x12e0 fs/ioctl.c:688
 ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705
 __do_sys_ioctl fs/ioctl.c:712 [inline]
 __se_sys_ioctl fs/ioctl.c:710 [inline]
 __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
BUG: unable to handle kernel NULL pointer dereference at 0000000000000000
PGD 8a47b067 P4D 8a47b067 PUD 929c7067 PMD 0 
Oops: 0002 [#2] PREEMPT SMP KASAN
CPU: 1 PID: 24511 Comm: syz-executor.3 Not tainted 4.19.115-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:ORMASK+0x1513c0/0x151964
Code: 37 00 31 20 33 32 20 32 34 20 39 20 61 72 67 73 3a 32 34 32 32 00 31 20 33 32 20 32 34 20 39 20 61 72 67 73 3a 32 34 34 36 00 <31> 20 33 32 20 32 34 20 39 20 61 72 67 73 3a 32 34 39 31 00 31 20
RSP: 0018:ffff8880ae707080 EFLAGS: 00010047
RAX: 0000000000000000 RBX: ffff8880ae707100 RCX: ffffffff815f46ce
RDX: 0000000000010000 RSI: ffffffff815f46f9 RDI: 000000000045c889
RBP: ffffffff815f4701 R08: ffff88809b7fc640 R09: fffffbfff16d2332
R10: fffffbfff16d2331 R11: ffffffff8b69198b R12: ffff8880ae7070e0
R13: ffff8880ae7071d0 R14: 000000000045c889 R15: ffff8880ae707120
FS:  00007f89a585b700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 00000000860b9000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 </IRQ>
Modules linked in:
CR2: 0000000000000000
---[ end trace abf0a32c048b2082 ]---
RIP: 0010:perf_misc_flags+0x2e/0x1a8 arch/x86/events/core.c:2536
Code: c4 40 e4 6d 8b 55 48 89 fd 53 e8 ad 31 66 00 4c 89 e2 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 37 01 00 00 <48> 8b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
RSP: 0018:ffff8880ae707950 EFLAGS: 00010046
RAX: dffffc0000000000 RBX: ffff8880ae707a60 RCX: ffff8880ae707a66
RDX: 1ffffffff16dbc88 RSI: ffffffff810172c3 RDI: ffff88809699f158
RBP: ffff88809699f158 R08: ffff88809b7fc640 R09: ffffed1015ce4733
R10: ffffed1015ce4732 R11: ffff8880ae723993 R12: ffffffff8b6de440
R13: ffff8880948554c0 R14: ffff8880ae707a64 R15: ffff8880ae707a60
FS:  00007f89a585b700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 00000000860b9000 CR4: 00000000001406e0
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
2020/04/16 14:39 linux-4.19.y 6dd0e32665e5 c743fcb3 .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.