All of lore.kernel.org
 help / color / mirror / Atom feed
From: syzbot <syzbot+d0c38158ee047ba58ce1@syzkaller.appspotmail.com>
To: b.zolnierkie@samsung.com, daniel.vetter@ffwll.ch,
	dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org,
	linux-kernel@vger.kernel.org, maarten.lankhorst@linux.intel.com,
	sam@ravnborg.org, syzkaller-bugs@googlegroups.com
Subject: general protection fault in fbcon_invert_region
Date: Mon, 20 Jan 2020 08:40:09 +0000	[thread overview]
Message-ID: <00000000000032fde8059c8e3d63@google.com> (raw)

Hello,

syzbot found the following crash on:

HEAD commit:    def9d278 Linux 5.5-rc7
git tree:       upstream
console output: https://syzkaller.appspot.com/x/log.txt?x\x13000685e00000
kernel config:  https://syzkaller.appspot.com/x/.config?xƒc00afca9cf5153
dashboard link: https://syzkaller.appspot.com/bug?extidÐc38158ee047ba58ce1
compiler:       clang version 10.0.0 (https://github.com/llvm/llvm-project/ c2443155a0fb245c8f17f2c1c72b6ea391e86e81)

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+d0c38158ee047ba58ce1@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
CPU: 1 PID: 9735 Comm: syz-executor.0 Not tainted 5.5.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:fbcon_invert_region+0x81/0x2c0 drivers/video/fbdev/core/fbcon.c:2819
Code: c8 48 c1 e9 03 48 89 4d b0 41 89 dc 0f 1f 00 66 2e 0f 1f 84 00 00 00 00 00 4d 89 ee 49 c1 ee 03 48 bb 00 00 00 00 00 fc ff df <41> 0f b6 04 1e 84 c0 0f 85 9b 01 00 00 45 0f b7 7d 00 48 8b 45 b0
RSP: 0018:ffffc900049578e0 EFLAGS: 00010203
RAX: ffff8880a3ab1478 RBX: dffffc0000000000 RCX: 1ffff1101475628f
RDX: ffffc90001ef9000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90004957930 R08: ffffffff83c83887 R09: fffffbfff128923c
R10: fffffbfff128923c R11: 0000000000000000 R12: 0000000000000000
R13: 000000000002000e R14: 0000000000004001 R15: ffff8880a3ab1000
FS:  00007f81f0197700(0000) GS:ffff8880aed00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000000 CR3: 00000000906dc000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 invert_screen+0x255/0xdb0 drivers/tty/vt/vt.c:763
 set_selection_kernel+0xe5d/0x1880 drivers/tty/vt/selection.c:80
 set_selection_user+0x63/0x80 drivers/tty/vt/selection.c:177
 tioclinux+0x103/0x530 drivers/tty/vt/vt.c:3039
 vt_ioctl+0x3f1/0x3a70 drivers/tty/vt/vt_ioctl.c:364
 tty_ioctl+0xee6/0x15c0 drivers/tty/tty_io.c:2660
 do_vfs_ioctl+0x6e2/0x19b0 fs/ioctl.c:47
 ksys_ioctl fs/ioctl.c:749 [inline]
 __do_sys_ioctl fs/ioctl.c:756 [inline]
 __se_sys_ioctl fs/ioctl.c:754 [inline]
 __x64_sys_ioctl+0xe3/0x120 fs/ioctl.c:754
 do_syscall_64+0xf7/0x1c0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45b349
Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f81f0196c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f81f01976d4 RCX: 000000000045b349
RDX: 0000000020000000 RSI: 000000000000541c RDI: 0000000000000003
RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 0000000000000549 R14: 00000000004c68ef R15: 000000000075bf2c
Modules linked in:
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#2] PREEMPT SMP KASAN
CPU: 1 PID: 9735 Comm: syz-executor.0 Not tainted 5.5.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:fbcon_cursor+0xda/0xc40 drivers/video/fbdev/core/fbcon.c:1380
Code: 8b 45 d0 48 8d 98 a0 03 00 00 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 80 40 ec fd 48 8b 1b 48 89 d8 48 c1 e8 03 <42> 8a 04 28 84 c0 0f 85 13 08 00 00 44 89 75 c4 0f b7 03 89 45 c0
RSP: 0018:ffffc90004957558 EFLAGS: 00010003
RAX: 0000000020000001 RBX: 000000010000000e RCX: 0000000000040000
RDX: ffffc90001ef9000 RSI: 0000000000006ad1 RDI: 0000000000006ad2
RBP: ffffc900049575c0 R08: ffffffff83c808c8 R09: fffffbfff128923c
R10: fffffbfff128923c R11: 0000000000000000 R12: ffff888218834468
R13: dffffc0000000000 R14: 0000000000000001 R15: 1ffff1104310688d
FS:  00007f81f0197700(0000) GS:ffff8880aed00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000000 CR3: 00000000906dc000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 fbcon_blank+0x47a/0xa60 drivers/video/fbdev/core/fbcon.c:2406
 do_unblank_screen+0x299/0xb60 drivers/tty/vt/vt.c:4277
 unblank_screen+0x10/0x20 drivers/tty/vt/vt.c:4296
 bust_spinlocks+0x47/0xe0 lib/bust_spinlocks.c:26
 oops_end+0x38/0x100 arch/x86/kernel/dumpstack.c:336
 die+0x41/0x50 arch/x86/kernel/dumpstack.c:410
 do_general_protection+0x292/0x3d0 arch/x86/kernel/traps.c:560
 general_protection+0x2d/0x40 arch/x86/entry/entry_64.S:1202
RIP: 0010:fbcon_invert_region+0x81/0x2c0 drivers/video/fbdev/core/fbcon.c:2819
Code: c8 48 c1 e9 03 48 89 4d b0 41 89 dc 0f 1f 00 66 2e 0f 1f 84 00 00 00 00 00 4d 89 ee 49 c1 ee 03 48 bb 00 00 00 00 00 fc ff df <41> 0f b6 04 1e 84 c0 0f 85 9b 01 00 00 45 0f b7 7d 00 48 8b 45 b0
RSP: 0018:ffffc900049578e0 EFLAGS: 00010203
RAX: ffff8880a3ab1478 RBX: dffffc0000000000 RCX: 1ffff1101475628f
RDX: ffffc90001ef9000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90004957930 R08: ffffffff83c83887 R09: fffffbfff128923c
R10: fffffbfff128923c R11: 0000000000000000 R12: 0000000000000000
R13: 000000000002000e R14: 0000000000004001 R15: ffff8880a3ab1000
 invert_screen+0x255/0xdb0 drivers/tty/vt/vt.c:763
 set_selection_kernel+0xe5d/0x1880 drivers/tty/vt/selection.c:80
 set_selection_user+0x63/0x80 drivers/tty/vt/selection.c:177
 tioclinux+0x103/0x530 drivers/tty/vt/vt.c:3039
 vt_ioctl+0x3f1/0x3a70 drivers/tty/vt/vt_ioctl.c:364
 tty_ioctl+0xee6/0x15c0 drivers/tty/tty_io.c:2660
 do_vfs_ioctl+0x6e2/0x19b0 fs/ioctl.c:47
 ksys_ioctl fs/ioctl.c:749 [inline]
 __do_sys_ioctl fs/ioctl.c:756 [inline]
 __se_sys_ioctl fs/ioctl.c:754 [inline]
 __x64_sys_ioctl+0xe3/0x120 fs/ioctl.c:754
 do_syscall_64+0xf7/0x1c0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45b349
Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f81f0196c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f81f01976d4 RCX: 000000000045b349
RDX: 0000000020000000 RSI: 000000000000541c RDI: 0000000000000003
RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 0000000000000549 R14: 00000000004c68ef R15: 000000000075bf2c
Modules linked in:
---[ end trace 173ea3d293ec0a6a ]---
RIP: 0010:fbcon_invert_region+0x81/0x2c0 drivers/video/fbdev/core/fbcon.c:2819
Code: c8 48 c1 e9 03 48 89 4d b0 41 89 dc 0f 1f 00 66 2e 0f 1f 84 00 00 00 00 00 4d 89 ee 49 c1 ee 03 48 bb 00 00 00 00 00 fc ff df <41> 0f b6 04 1e 84 c0 0f 85 9b 01 00 00 45 0f b7 7d 00 48 8b 45 b0
RSP: 0018:ffffc900049578e0 EFLAGS: 00010203
RAX: ffff8880a3ab1478 RBX: dffffc0000000000 RCX: 1ffff1101475628f
RDX: ffffc90001ef9000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90004957930 R08: ffffffff83c83887 R09: fffffbfff128923c
R10: fffffbfff128923c R11: 0000000000000000 R12: 0000000000000000
R13: 000000000002000e R14: 0000000000004001 R15: ffff8880a3ab1000
FS:  00007f81f0197700(0000) GS:ffff8880aed00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000000 CR3: 00000000906dc000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


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

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

WARNING: multiple messages have this Message-ID (diff)
From: syzbot <syzbot+d0c38158ee047ba58ce1@syzkaller.appspotmail.com>
To: b.zolnierkie@samsung.com, daniel.vetter@ffwll.ch,
	 dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org,
	 linux-kernel@vger.kernel.org, maarten.lankhorst@linux.intel.com,
	 sam@ravnborg.org, syzkaller-bugs@googlegroups.com
Subject: general protection fault in fbcon_invert_region
Date: Mon, 20 Jan 2020 00:40:09 -0800	[thread overview]
Message-ID: <00000000000032fde8059c8e3d63@google.com> (raw)

Hello,

syzbot found the following crash on:

HEAD commit:    def9d278 Linux 5.5-rc7
git tree:       upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=13000685e00000
kernel config:  https://syzkaller.appspot.com/x/.config?x=83c00afca9cf5153
dashboard link: https://syzkaller.appspot.com/bug?extid=d0c38158ee047ba58ce1
compiler:       clang version 10.0.0 (https://github.com/llvm/llvm-project/ c2443155a0fb245c8f17f2c1c72b6ea391e86e81)

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+d0c38158ee047ba58ce1@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
CPU: 1 PID: 9735 Comm: syz-executor.0 Not tainted 5.5.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:fbcon_invert_region+0x81/0x2c0 drivers/video/fbdev/core/fbcon.c:2819
Code: c8 48 c1 e9 03 48 89 4d b0 41 89 dc 0f 1f 00 66 2e 0f 1f 84 00 00 00 00 00 4d 89 ee 49 c1 ee 03 48 bb 00 00 00 00 00 fc ff df <41> 0f b6 04 1e 84 c0 0f 85 9b 01 00 00 45 0f b7 7d 00 48 8b 45 b0
RSP: 0018:ffffc900049578e0 EFLAGS: 00010203
RAX: ffff8880a3ab1478 RBX: dffffc0000000000 RCX: 1ffff1101475628f
RDX: ffffc90001ef9000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90004957930 R08: ffffffff83c83887 R09: fffffbfff128923c
R10: fffffbfff128923c R11: 0000000000000000 R12: 0000000000000000
R13: 000000000002000e R14: 0000000000004001 R15: ffff8880a3ab1000
FS:  00007f81f0197700(0000) GS:ffff8880aed00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000000 CR3: 00000000906dc000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 invert_screen+0x255/0xdb0 drivers/tty/vt/vt.c:763
 set_selection_kernel+0xe5d/0x1880 drivers/tty/vt/selection.c:80
 set_selection_user+0x63/0x80 drivers/tty/vt/selection.c:177
 tioclinux+0x103/0x530 drivers/tty/vt/vt.c:3039
 vt_ioctl+0x3f1/0x3a70 drivers/tty/vt/vt_ioctl.c:364
 tty_ioctl+0xee6/0x15c0 drivers/tty/tty_io.c:2660
 do_vfs_ioctl+0x6e2/0x19b0 fs/ioctl.c:47
 ksys_ioctl fs/ioctl.c:749 [inline]
 __do_sys_ioctl fs/ioctl.c:756 [inline]
 __se_sys_ioctl fs/ioctl.c:754 [inline]
 __x64_sys_ioctl+0xe3/0x120 fs/ioctl.c:754
 do_syscall_64+0xf7/0x1c0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45b349
Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f81f0196c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f81f01976d4 RCX: 000000000045b349
RDX: 0000000020000000 RSI: 000000000000541c RDI: 0000000000000003
RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 0000000000000549 R14: 00000000004c68ef R15: 000000000075bf2c
Modules linked in:
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#2] PREEMPT SMP KASAN
CPU: 1 PID: 9735 Comm: syz-executor.0 Not tainted 5.5.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:fbcon_cursor+0xda/0xc40 drivers/video/fbdev/core/fbcon.c:1380
Code: 8b 45 d0 48 8d 98 a0 03 00 00 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 80 40 ec fd 48 8b 1b 48 89 d8 48 c1 e8 03 <42> 8a 04 28 84 c0 0f 85 13 08 00 00 44 89 75 c4 0f b7 03 89 45 c0
RSP: 0018:ffffc90004957558 EFLAGS: 00010003
RAX: 0000000020000001 RBX: 000000010000000e RCX: 0000000000040000
RDX: ffffc90001ef9000 RSI: 0000000000006ad1 RDI: 0000000000006ad2
RBP: ffffc900049575c0 R08: ffffffff83c808c8 R09: fffffbfff128923c
R10: fffffbfff128923c R11: 0000000000000000 R12: ffff888218834468
R13: dffffc0000000000 R14: 0000000000000001 R15: 1ffff1104310688d
FS:  00007f81f0197700(0000) GS:ffff8880aed00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000000 CR3: 00000000906dc000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 fbcon_blank+0x47a/0xa60 drivers/video/fbdev/core/fbcon.c:2406
 do_unblank_screen+0x299/0xb60 drivers/tty/vt/vt.c:4277
 unblank_screen+0x10/0x20 drivers/tty/vt/vt.c:4296
 bust_spinlocks+0x47/0xe0 lib/bust_spinlocks.c:26
 oops_end+0x38/0x100 arch/x86/kernel/dumpstack.c:336
 die+0x41/0x50 arch/x86/kernel/dumpstack.c:410
 do_general_protection+0x292/0x3d0 arch/x86/kernel/traps.c:560
 general_protection+0x2d/0x40 arch/x86/entry/entry_64.S:1202
RIP: 0010:fbcon_invert_region+0x81/0x2c0 drivers/video/fbdev/core/fbcon.c:2819
Code: c8 48 c1 e9 03 48 89 4d b0 41 89 dc 0f 1f 00 66 2e 0f 1f 84 00 00 00 00 00 4d 89 ee 49 c1 ee 03 48 bb 00 00 00 00 00 fc ff df <41> 0f b6 04 1e 84 c0 0f 85 9b 01 00 00 45 0f b7 7d 00 48 8b 45 b0
RSP: 0018:ffffc900049578e0 EFLAGS: 00010203
RAX: ffff8880a3ab1478 RBX: dffffc0000000000 RCX: 1ffff1101475628f
RDX: ffffc90001ef9000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90004957930 R08: ffffffff83c83887 R09: fffffbfff128923c
R10: fffffbfff128923c R11: 0000000000000000 R12: 0000000000000000
R13: 000000000002000e R14: 0000000000004001 R15: ffff8880a3ab1000
 invert_screen+0x255/0xdb0 drivers/tty/vt/vt.c:763
 set_selection_kernel+0xe5d/0x1880 drivers/tty/vt/selection.c:80
 set_selection_user+0x63/0x80 drivers/tty/vt/selection.c:177
 tioclinux+0x103/0x530 drivers/tty/vt/vt.c:3039
 vt_ioctl+0x3f1/0x3a70 drivers/tty/vt/vt_ioctl.c:364
 tty_ioctl+0xee6/0x15c0 drivers/tty/tty_io.c:2660
 do_vfs_ioctl+0x6e2/0x19b0 fs/ioctl.c:47
 ksys_ioctl fs/ioctl.c:749 [inline]
 __do_sys_ioctl fs/ioctl.c:756 [inline]
 __se_sys_ioctl fs/ioctl.c:754 [inline]
 __x64_sys_ioctl+0xe3/0x120 fs/ioctl.c:754
 do_syscall_64+0xf7/0x1c0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45b349
Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f81f0196c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f81f01976d4 RCX: 000000000045b349
RDX: 0000000020000000 RSI: 000000000000541c RDI: 0000000000000003
RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 0000000000000549 R14: 00000000004c68ef R15: 000000000075bf2c
Modules linked in:
---[ end trace 173ea3d293ec0a6a ]---
RIP: 0010:fbcon_invert_region+0x81/0x2c0 drivers/video/fbdev/core/fbcon.c:2819
Code: c8 48 c1 e9 03 48 89 4d b0 41 89 dc 0f 1f 00 66 2e 0f 1f 84 00 00 00 00 00 4d 89 ee 49 c1 ee 03 48 bb 00 00 00 00 00 fc ff df <41> 0f b6 04 1e 84 c0 0f 85 9b 01 00 00 45 0f b7 7d 00 48 8b 45 b0
RSP: 0018:ffffc900049578e0 EFLAGS: 00010203
RAX: ffff8880a3ab1478 RBX: dffffc0000000000 RCX: 1ffff1101475628f
RDX: ffffc90001ef9000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90004957930 R08: ffffffff83c83887 R09: fffffbfff128923c
R10: fffffbfff128923c R11: 0000000000000000 R12: 0000000000000000
R13: 000000000002000e R14: 0000000000004001 R15: ffff8880a3ab1000
FS:  00007f81f0197700(0000) GS:ffff8880aed00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000000 CR3: 00000000906dc000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


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

syzbot will keep track of this bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

WARNING: multiple messages have this Message-ID (diff)
From: syzbot <syzbot+d0c38158ee047ba58ce1@syzkaller.appspotmail.com>
To: b.zolnierkie@samsung.com, daniel.vetter@ffwll.ch,
	dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org,
	linux-kernel@vger.kernel.org, maarten.lankhorst@linux.intel.com,
	sam@ravnborg.org, syzkaller-bugs@googlegroups.com
Subject: general protection fault in fbcon_invert_region
Date: Mon, 20 Jan 2020 00:40:09 -0800	[thread overview]
Message-ID: <00000000000032fde8059c8e3d63@google.com> (raw)

Hello,

syzbot found the following crash on:

HEAD commit:    def9d278 Linux 5.5-rc7
git tree:       upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=13000685e00000
kernel config:  https://syzkaller.appspot.com/x/.config?x=83c00afca9cf5153
dashboard link: https://syzkaller.appspot.com/bug?extid=d0c38158ee047ba58ce1
compiler:       clang version 10.0.0 (https://github.com/llvm/llvm-project/ c2443155a0fb245c8f17f2c1c72b6ea391e86e81)

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+d0c38158ee047ba58ce1@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
CPU: 1 PID: 9735 Comm: syz-executor.0 Not tainted 5.5.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:fbcon_invert_region+0x81/0x2c0 drivers/video/fbdev/core/fbcon.c:2819
Code: c8 48 c1 e9 03 48 89 4d b0 41 89 dc 0f 1f 00 66 2e 0f 1f 84 00 00 00 00 00 4d 89 ee 49 c1 ee 03 48 bb 00 00 00 00 00 fc ff df <41> 0f b6 04 1e 84 c0 0f 85 9b 01 00 00 45 0f b7 7d 00 48 8b 45 b0
RSP: 0018:ffffc900049578e0 EFLAGS: 00010203
RAX: ffff8880a3ab1478 RBX: dffffc0000000000 RCX: 1ffff1101475628f
RDX: ffffc90001ef9000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90004957930 R08: ffffffff83c83887 R09: fffffbfff128923c
R10: fffffbfff128923c R11: 0000000000000000 R12: 0000000000000000
R13: 000000000002000e R14: 0000000000004001 R15: ffff8880a3ab1000
FS:  00007f81f0197700(0000) GS:ffff8880aed00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000000 CR3: 00000000906dc000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 invert_screen+0x255/0xdb0 drivers/tty/vt/vt.c:763
 set_selection_kernel+0xe5d/0x1880 drivers/tty/vt/selection.c:80
 set_selection_user+0x63/0x80 drivers/tty/vt/selection.c:177
 tioclinux+0x103/0x530 drivers/tty/vt/vt.c:3039
 vt_ioctl+0x3f1/0x3a70 drivers/tty/vt/vt_ioctl.c:364
 tty_ioctl+0xee6/0x15c0 drivers/tty/tty_io.c:2660
 do_vfs_ioctl+0x6e2/0x19b0 fs/ioctl.c:47
 ksys_ioctl fs/ioctl.c:749 [inline]
 __do_sys_ioctl fs/ioctl.c:756 [inline]
 __se_sys_ioctl fs/ioctl.c:754 [inline]
 __x64_sys_ioctl+0xe3/0x120 fs/ioctl.c:754
 do_syscall_64+0xf7/0x1c0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45b349
Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f81f0196c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f81f01976d4 RCX: 000000000045b349
RDX: 0000000020000000 RSI: 000000000000541c RDI: 0000000000000003
RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 0000000000000549 R14: 00000000004c68ef R15: 000000000075bf2c
Modules linked in:
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#2] PREEMPT SMP KASAN
CPU: 1 PID: 9735 Comm: syz-executor.0 Not tainted 5.5.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:fbcon_cursor+0xda/0xc40 drivers/video/fbdev/core/fbcon.c:1380
Code: 8b 45 d0 48 8d 98 a0 03 00 00 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 80 40 ec fd 48 8b 1b 48 89 d8 48 c1 e8 03 <42> 8a 04 28 84 c0 0f 85 13 08 00 00 44 89 75 c4 0f b7 03 89 45 c0
RSP: 0018:ffffc90004957558 EFLAGS: 00010003
RAX: 0000000020000001 RBX: 000000010000000e RCX: 0000000000040000
RDX: ffffc90001ef9000 RSI: 0000000000006ad1 RDI: 0000000000006ad2
RBP: ffffc900049575c0 R08: ffffffff83c808c8 R09: fffffbfff128923c
R10: fffffbfff128923c R11: 0000000000000000 R12: ffff888218834468
R13: dffffc0000000000 R14: 0000000000000001 R15: 1ffff1104310688d
FS:  00007f81f0197700(0000) GS:ffff8880aed00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000000 CR3: 00000000906dc000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 fbcon_blank+0x47a/0xa60 drivers/video/fbdev/core/fbcon.c:2406
 do_unblank_screen+0x299/0xb60 drivers/tty/vt/vt.c:4277
 unblank_screen+0x10/0x20 drivers/tty/vt/vt.c:4296
 bust_spinlocks+0x47/0xe0 lib/bust_spinlocks.c:26
 oops_end+0x38/0x100 arch/x86/kernel/dumpstack.c:336
 die+0x41/0x50 arch/x86/kernel/dumpstack.c:410
 do_general_protection+0x292/0x3d0 arch/x86/kernel/traps.c:560
 general_protection+0x2d/0x40 arch/x86/entry/entry_64.S:1202
RIP: 0010:fbcon_invert_region+0x81/0x2c0 drivers/video/fbdev/core/fbcon.c:2819
Code: c8 48 c1 e9 03 48 89 4d b0 41 89 dc 0f 1f 00 66 2e 0f 1f 84 00 00 00 00 00 4d 89 ee 49 c1 ee 03 48 bb 00 00 00 00 00 fc ff df <41> 0f b6 04 1e 84 c0 0f 85 9b 01 00 00 45 0f b7 7d 00 48 8b 45 b0
RSP: 0018:ffffc900049578e0 EFLAGS: 00010203
RAX: ffff8880a3ab1478 RBX: dffffc0000000000 RCX: 1ffff1101475628f
RDX: ffffc90001ef9000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90004957930 R08: ffffffff83c83887 R09: fffffbfff128923c
R10: fffffbfff128923c R11: 0000000000000000 R12: 0000000000000000
R13: 000000000002000e R14: 0000000000004001 R15: ffff8880a3ab1000
 invert_screen+0x255/0xdb0 drivers/tty/vt/vt.c:763
 set_selection_kernel+0xe5d/0x1880 drivers/tty/vt/selection.c:80
 set_selection_user+0x63/0x80 drivers/tty/vt/selection.c:177
 tioclinux+0x103/0x530 drivers/tty/vt/vt.c:3039
 vt_ioctl+0x3f1/0x3a70 drivers/tty/vt/vt_ioctl.c:364
 tty_ioctl+0xee6/0x15c0 drivers/tty/tty_io.c:2660
 do_vfs_ioctl+0x6e2/0x19b0 fs/ioctl.c:47
 ksys_ioctl fs/ioctl.c:749 [inline]
 __do_sys_ioctl fs/ioctl.c:756 [inline]
 __se_sys_ioctl fs/ioctl.c:754 [inline]
 __x64_sys_ioctl+0xe3/0x120 fs/ioctl.c:754
 do_syscall_64+0xf7/0x1c0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45b349
Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f81f0196c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f81f01976d4 RCX: 000000000045b349
RDX: 0000000020000000 RSI: 000000000000541c RDI: 0000000000000003
RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 0000000000000549 R14: 00000000004c68ef R15: 000000000075bf2c
Modules linked in:
---[ end trace 173ea3d293ec0a6a ]---
RIP: 0010:fbcon_invert_region+0x81/0x2c0 drivers/video/fbdev/core/fbcon.c:2819
Code: c8 48 c1 e9 03 48 89 4d b0 41 89 dc 0f 1f 00 66 2e 0f 1f 84 00 00 00 00 00 4d 89 ee 49 c1 ee 03 48 bb 00 00 00 00 00 fc ff df <41> 0f b6 04 1e 84 c0 0f 85 9b 01 00 00 45 0f b7 7d 00 48 8b 45 b0
RSP: 0018:ffffc900049578e0 EFLAGS: 00010203
RAX: ffff8880a3ab1478 RBX: dffffc0000000000 RCX: 1ffff1101475628f
RDX: ffffc90001ef9000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90004957930 R08: ffffffff83c83887 R09: fffffbfff128923c
R10: fffffbfff128923c R11: 0000000000000000 R12: 0000000000000000
R13: 000000000002000e R14: 0000000000004001 R15: ffff8880a3ab1000
FS:  00007f81f0197700(0000) GS:ffff8880aed00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000000 CR3: 00000000906dc000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


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

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

             reply	other threads:[~2020-01-20  8:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-20  8:40 syzbot [this message]
2020-01-20  8:40 ` general protection fault in fbcon_invert_region syzbot
2020-01-20  8:40 ` syzbot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=00000000000032fde8059c8e3d63@google.com \
    --to=syzbot+d0c38158ee047ba58ce1@syzkaller.appspotmail.com \
    --cc=b.zolnierkie@samsung.com \
    --cc=daniel.vetter@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=linux-fbdev@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=sam@ravnborg.org \
    --cc=syzkaller-bugs@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.