From mboxrd@z Thu Jan 1 00:00:00 1970 From: syzbot Date: Tue, 06 Oct 2020 08:18:16 +0000 Subject: BUG: unable to handle kernel paging request in cfb_imageblit Message-Id: <000000000000b30cad05b0fc3d74@google.com> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: b.zolnierkie@samsung.com, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Hello, syzbot found the following issue on: HEAD commit: 22fbc037 Merge tag 'for-linus' of git://git.kernel.org/pub.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=133731eb900000 kernel config: https://syzkaller.appspot.com/x/.config?xN672827d2ffab1f dashboard link: https://syzkaller.appspot.com/bug?extid=DFd0b1c6705301cc4847 compiler: clang version 10.0.0 (https://github.com/llvm/llvm-project/= c2443155a0fb245c8f17f2c1c72b6ea391e86e81) syz repro: https://syzkaller.appspot.com/x/repro.syz?x=11ba9a5d900000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=17cfd4af900000 Bisection is inconclusive: the issue happens on the oldest tested release. bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=1536a750500000 final oops: https://syzkaller.appspot.com/x/report.txt?x=1736a750500000 console output: https://syzkaller.appspot.com/x/log.txt?x=1336a750500000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+dfd0b1c6705301cc4847@syzkaller.appspotmail.com BUG: unable to handle page fault for address: ffff888001000018 #PF: supervisor write access in kernel mode #PF: error_code(0x0003) - permissions violation PGD c801067 P4D c801067 PUD c802067 PMD 80000000010001e1=20 Oops: 0003 [#1] PREEMPT SMP KASAN CPU: 0 PID: 8241 Comm: syz-executor265 Not tainted 5.9.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Goo= gle 01/01/2011 RIP: 0010:__writel arch/x86/include/asm/io.h:71 [inline] RIP: 0010:slow_imageblit drivers/video/fbdev/core/cfbimgblt.c:178 [inline] RIP: 0010:cfb_imageblit+0xb15/0x11e0 drivers/video/fbdev/core/cfbimgblt.c:3= 02 Code: 89 e6 89 e9 41 d3 e6 41 09 de 89 ef 8b 5c 24 28 89 de e8 0e db 81 fd = 39 dd 73 0a e8 65 d9 81 fd eb 42 0f 1f 00 48 8b 44 24 30 <44> 89 30 48 83 c= 0 04 48 89 44 24 30 89 ef 89 de e8 e6 da 81 fd 39 RSP: 0018:ffffc9000a037558 EFLAGS: 00010246 RAX: ffff888001000018 RBX: 000000000000001c RCX: 000000000000001c RDX: ffff8880a79880c0 RSI: 000000000000001c RDI: 000000000000001c RBP: 000000000000001c R08: ffffffff83f32412 R09: ffffffff83f31b7c R10: 0000000000000002 R11: ffff8880a79880c0 R12: 0000000000000000 R13: ffff888218a81f72 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f8534532700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffff888001000018 CR3: 00000000a80b4000 CR4: 00000000001506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: soft_cursor+0xb44/0xdb0 drivers/video/fbdev/core/softcursor.c:74 bit_cursor+0x1753/0x2110 drivers/video/fbdev/core/bitblit.c:377 set_cursor drivers/tty/vt/vt.c:919 [inline] con_flush_chars+0x4e1/0x640 drivers/tty/vt/vt.c:3330 con_write+0x2a/0x40 drivers/tty/vt/vt.c:3251 do_output_char+0x63b/0x940 drivers/tty/n_tty.c:447 __process_echoes+0x2a3/0x930 drivers/tty/n_tty.c:739 flush_echoes drivers/tty/n_tty.c:829 [inline] __receive_buf drivers/tty/n_tty.c:1648 [inline] n_tty_receive_buf_common+0x29fa/0x3100 drivers/tty/n_tty.c:1742 paste_selection+0x32c/0x450 drivers/tty/vt/selection.c:408 vt_ioctl+0x105a/0x3d70 drivers/tty/vt/vt_ioctl.c:862 tty_ioctl+0xee4/0x15c0 drivers/tty/tty_io.c:2656 vfs_ioctl fs/ioctl.c:48 [inline] __do_sys_ioctl fs/ioctl.c:753 [inline] __se_sys_ioctl+0xfb/0x170 fs/ioctl.c:739 do_syscall_64+0x31/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x449809 Code: e8 8c e7 ff ff 48 83 c4 18 c3 0f 1f 80 00 00 00 00 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 f= f 0f 83 5b 05 fc ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f8534531db8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00000000006dec68 RCX: 0000000000449809 RDX: 0000000020000080 RSI: 000000000000541c RDI: 0000000000000007 RBP: 00000000006dec60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dec6c R13: 00007ffe8074321f R14: 00007f85345329c0 R15: 0000000000000064 Modules linked in: CR2: ffff888001000018 ---[ end trace 4ec628432d38a26a ]--- RIP: 0010:__writel arch/x86/include/asm/io.h:71 [inline] RIP: 0010:slow_imageblit drivers/video/fbdev/core/cfbimgblt.c:178 [inline] RIP: 0010:cfb_imageblit+0xb15/0x11e0 drivers/video/fbdev/core/cfbimgblt.c:3= 02 Code: 89 e6 89 e9 41 d3 e6 41 09 de 89 ef 8b 5c 24 28 89 de e8 0e db 81 fd = 39 dd 73 0a e8 65 d9 81 fd eb 42 0f 1f 00 48 8b 44 24 30 <44> 89 30 48 83 c= 0 04 48 89 44 24 30 89 ef 89 de e8 e6 da 81 fd 39 RSP: 0018:ffffc9000a037558 EFLAGS: 00010246 RAX: ffff888001000018 RBX: 000000000000001c RCX: 000000000000001c RDX: ffff8880a79880c0 RSI: 000000000000001c RDI: 000000000000001c RBP: 000000000000001c R08: ffffffff83f32412 R09: ffffffff83f31b7c R10: 0000000000000002 R11: ffff8880a79880c0 R12: 0000000000000000 R13: ffff888218a81f72 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f8534532700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffff888001000018 CR3: 00000000a80b4000 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@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. For information about bisection process see: https://goo.gl/tpsmEJ#bisection syzbot can test patches for this issue, for details see: https://goo.gl/tpsmEJ#testing-patches From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.7 required=3.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4956DC41604 for ; Wed, 7 Oct 2020 07:23:25 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E127F20797 for ; Wed, 7 Oct 2020 07:23:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E127F20797 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8FDFC6E8AB; Wed, 7 Oct 2020 07:22:49 +0000 (UTC) Received: from mail-io1-f79.google.com (mail-io1-f79.google.com [209.85.166.79]) by gabe.freedesktop.org (Postfix) with ESMTPS id AA3E789DFC for ; Tue, 6 Oct 2020 08:18:17 +0000 (UTC) Received: by mail-io1-f79.google.com with SMTP id f6so6639593ion.21 for ; Tue, 06 Oct 2020 01:18:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=3iXoyWE9QpsbIxGQb53Oatf3hkqGhfMvj71wpaSp11w=; b=SgECWDnMhDgdeVYjimU1resek77avXpmxq+6dIDfnP8ylVeZGXJCOKCp2V4w4V2Q6z aRfBmP68Yd7v7gzPLAbxOeHKVUDkjTYwHlXsCNr9fOyRGTJlY+Vnvw2D54U4Sez6J9Ne AGMWDSI/om7U3Zwhonli4yTWhF93deGYq/mYuJOe5BHFJ9XJBkFHhpw3uuncBYta/sjZ zvnr/YtR2vpdQM/sXmU+42CCC4YXi7oBmIzC/5Vmyai0/22QE6p7LhYz8eqSyuGTEGbq j3Yj3Tj87jD+gpcEJopBEufwIIL7elsfIcj5iMi7YQfzIfXyA49+9IKF6EeEzq0f/Qfn Euxw== X-Gm-Message-State: AOAM531VxUuXxu5yrVd+6mijpSo+spbEznmZMHBC2ewDh6l4n7Aseq5N 2QB7TC8Ka0xY9Vo7MG0UNgs2n84Ld6Jo7BpglEEVQBak1OtG X-Google-Smtp-Source: ABdhPJzx3VVCj7+BNkqwCC9s9XMKSakAVVf31P8/nULMOx5e5X4ZqrZuVaX1f/VOXNaX/5rfI7bi62mKjUgbQCXIaIKRlHu9M6WL MIME-Version: 1.0 X-Received: by 2002:a92:c5af:: with SMTP id r15mr2736276ilt.88.1601972296942; Tue, 06 Oct 2020 01:18:16 -0700 (PDT) Date: Tue, 06 Oct 2020 01:18:16 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000b30cad05b0fc3d74@google.com> Subject: BUG: unable to handle kernel paging request in cfb_imageblit From: syzbot To: b.zolnierkie@samsung.com, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com X-Mailman-Approved-At: Wed, 07 Oct 2020 07:22:33 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hello, syzbot found the following issue on: HEAD commit: 22fbc037 Merge tag 'for-linus' of git://git.kernel.org/pub.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=133731eb900000 kernel config: https://syzkaller.appspot.com/x/.config?x=4e672827d2ffab1f dashboard link: https://syzkaller.appspot.com/bug?extid=dfd0b1c6705301cc4847 compiler: clang version 10.0.0 (https://github.com/llvm/llvm-project/ c2443155a0fb245c8f17f2c1c72b6ea391e86e81) syz repro: https://syzkaller.appspot.com/x/repro.syz?x=11ba9a5d900000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=17cfd4af900000 Bisection is inconclusive: the issue happens on the oldest tested release. bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=1536a750500000 final oops: https://syzkaller.appspot.com/x/report.txt?x=1736a750500000 console output: https://syzkaller.appspot.com/x/log.txt?x=1336a750500000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+dfd0b1c6705301cc4847@syzkaller.appspotmail.com BUG: unable to handle page fault for address: ffff888001000018 #PF: supervisor write access in kernel mode #PF: error_code(0x0003) - permissions violation PGD c801067 P4D c801067 PUD c802067 PMD 80000000010001e1 Oops: 0003 [#1] PREEMPT SMP KASAN CPU: 0 PID: 8241 Comm: syz-executor265 Not tainted 5.9.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__writel arch/x86/include/asm/io.h:71 [inline] RIP: 0010:slow_imageblit drivers/video/fbdev/core/cfbimgblt.c:178 [inline] RIP: 0010:cfb_imageblit+0xb15/0x11e0 drivers/video/fbdev/core/cfbimgblt.c:302 Code: 89 e6 89 e9 41 d3 e6 41 09 de 89 ef 8b 5c 24 28 89 de e8 0e db 81 fd 39 dd 73 0a e8 65 d9 81 fd eb 42 0f 1f 00 48 8b 44 24 30 <44> 89 30 48 83 c0 04 48 89 44 24 30 89 ef 89 de e8 e6 da 81 fd 39 RSP: 0018:ffffc9000a037558 EFLAGS: 00010246 RAX: ffff888001000018 RBX: 000000000000001c RCX: 000000000000001c RDX: ffff8880a79880c0 RSI: 000000000000001c RDI: 000000000000001c RBP: 000000000000001c R08: ffffffff83f32412 R09: ffffffff83f31b7c R10: 0000000000000002 R11: ffff8880a79880c0 R12: 0000000000000000 R13: ffff888218a81f72 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f8534532700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffff888001000018 CR3: 00000000a80b4000 CR4: 00000000001506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: soft_cursor+0xb44/0xdb0 drivers/video/fbdev/core/softcursor.c:74 bit_cursor+0x1753/0x2110 drivers/video/fbdev/core/bitblit.c:377 set_cursor drivers/tty/vt/vt.c:919 [inline] con_flush_chars+0x4e1/0x640 drivers/tty/vt/vt.c:3330 con_write+0x2a/0x40 drivers/tty/vt/vt.c:3251 do_output_char+0x63b/0x940 drivers/tty/n_tty.c:447 __process_echoes+0x2a3/0x930 drivers/tty/n_tty.c:739 flush_echoes drivers/tty/n_tty.c:829 [inline] __receive_buf drivers/tty/n_tty.c:1648 [inline] n_tty_receive_buf_common+0x29fa/0x3100 drivers/tty/n_tty.c:1742 paste_selection+0x32c/0x450 drivers/tty/vt/selection.c:408 vt_ioctl+0x105a/0x3d70 drivers/tty/vt/vt_ioctl.c:862 tty_ioctl+0xee4/0x15c0 drivers/tty/tty_io.c:2656 vfs_ioctl fs/ioctl.c:48 [inline] __do_sys_ioctl fs/ioctl.c:753 [inline] __se_sys_ioctl+0xfb/0x170 fs/ioctl.c:739 do_syscall_64+0x31/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x449809 Code: e8 8c e7 ff ff 48 83 c4 18 c3 0f 1f 80 00 00 00 00 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 5b 05 fc ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f8534531db8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00000000006dec68 RCX: 0000000000449809 RDX: 0000000020000080 RSI: 000000000000541c RDI: 0000000000000007 RBP: 00000000006dec60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dec6c R13: 00007ffe8074321f R14: 00007f85345329c0 R15: 0000000000000064 Modules linked in: CR2: ffff888001000018 ---[ end trace 4ec628432d38a26a ]--- RIP: 0010:__writel arch/x86/include/asm/io.h:71 [inline] RIP: 0010:slow_imageblit drivers/video/fbdev/core/cfbimgblt.c:178 [inline] RIP: 0010:cfb_imageblit+0xb15/0x11e0 drivers/video/fbdev/core/cfbimgblt.c:302 Code: 89 e6 89 e9 41 d3 e6 41 09 de 89 ef 8b 5c 24 28 89 de e8 0e db 81 fd 39 dd 73 0a e8 65 d9 81 fd eb 42 0f 1f 00 48 8b 44 24 30 <44> 89 30 48 83 c0 04 48 89 44 24 30 89 ef 89 de e8 e6 da 81 fd 39 RSP: 0018:ffffc9000a037558 EFLAGS: 00010246 RAX: ffff888001000018 RBX: 000000000000001c RCX: 000000000000001c RDX: ffff8880a79880c0 RSI: 000000000000001c RDI: 000000000000001c RBP: 000000000000001c R08: ffffffff83f32412 R09: ffffffff83f31b7c R10: 0000000000000002 R11: ffff8880a79880c0 R12: 0000000000000000 R13: ffff888218a81f72 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f8534532700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffff888001000018 CR3: 00000000a80b4000 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@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. For information about bisection process see: https://goo.gl/tpsmEJ#bisection syzbot can test patches for this issue, for details see: https://goo.gl/tpsmEJ#testing-patches _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.7 required=3.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EE013C41604 for ; Tue, 6 Oct 2020 08:18:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B713920870 for ; Tue, 6 Oct 2020 08:18:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726337AbgJFISS (ORCPT ); Tue, 6 Oct 2020 04:18:18 -0400 Received: from mail-io1-f79.google.com ([209.85.166.79]:40293 "EHLO mail-io1-f79.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725931AbgJFISS (ORCPT ); Tue, 6 Oct 2020 04:18:18 -0400 Received: by mail-io1-f79.google.com with SMTP id f8so6644654iow.7 for ; Tue, 06 Oct 2020 01:18:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=3iXoyWE9QpsbIxGQb53Oatf3hkqGhfMvj71wpaSp11w=; b=uN4f7QXl9wS73vTh0SXFxyA+7MDeJdCpXhEhVm7eXyL9aKjxouUVaPH/YSelwYL4Pu 2OXD/cTN8Yj6+xs2HfwKDEJVMYSUJEnHHNtqfY5v1Y37iNDDy8Ml++lox7RZESCPDvbs /kvWMB1RKl32q0tSG07chIpA+dRWsGdYFIjAjL5U3zjXCDfo9WiSNFsajhOx1nn1lL94 RESxmObdYiHw3Mt86IQsMV4iItJooYYLmx9k8NsJfkbIWJMiw+m3E7GPuDQuVv5rUp0A g2hokJbgiz/qjNkQviU9bjET5GZgrLngh55bCHdwnVhv4N9mhP1pLA4WPld43Mh3iZr6 3dsQ== X-Gm-Message-State: AOAM530YU39KfXbuarksEQD9KX0s/NWncCZ8o0L8wNRbJSkbr7MCLPl0 jdbBppu5Y/ZQfHyb9teVL8Q4uq3zyHtWZjzhKr5a3hDrj+aU X-Google-Smtp-Source: ABdhPJzx3VVCj7+BNkqwCC9s9XMKSakAVVf31P8/nULMOx5e5X4ZqrZuVaX1f/VOXNaX/5rfI7bi62mKjUgbQCXIaIKRlHu9M6WL MIME-Version: 1.0 X-Received: by 2002:a92:c5af:: with SMTP id r15mr2736276ilt.88.1601972296942; Tue, 06 Oct 2020 01:18:16 -0700 (PDT) Date: Tue, 06 Oct 2020 01:18:16 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000b30cad05b0fc3d74@google.com> Subject: BUG: unable to handle kernel paging request in cfb_imageblit From: syzbot To: b.zolnierkie@samsung.com, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: 22fbc037 Merge tag 'for-linus' of git://git.kernel.org/pub.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=133731eb900000 kernel config: https://syzkaller.appspot.com/x/.config?x=4e672827d2ffab1f dashboard link: https://syzkaller.appspot.com/bug?extid=dfd0b1c6705301cc4847 compiler: clang version 10.0.0 (https://github.com/llvm/llvm-project/ c2443155a0fb245c8f17f2c1c72b6ea391e86e81) syz repro: https://syzkaller.appspot.com/x/repro.syz?x=11ba9a5d900000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=17cfd4af900000 Bisection is inconclusive: the issue happens on the oldest tested release. bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=1536a750500000 final oops: https://syzkaller.appspot.com/x/report.txt?x=1736a750500000 console output: https://syzkaller.appspot.com/x/log.txt?x=1336a750500000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+dfd0b1c6705301cc4847@syzkaller.appspotmail.com BUG: unable to handle page fault for address: ffff888001000018 #PF: supervisor write access in kernel mode #PF: error_code(0x0003) - permissions violation PGD c801067 P4D c801067 PUD c802067 PMD 80000000010001e1 Oops: 0003 [#1] PREEMPT SMP KASAN CPU: 0 PID: 8241 Comm: syz-executor265 Not tainted 5.9.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__writel arch/x86/include/asm/io.h:71 [inline] RIP: 0010:slow_imageblit drivers/video/fbdev/core/cfbimgblt.c:178 [inline] RIP: 0010:cfb_imageblit+0xb15/0x11e0 drivers/video/fbdev/core/cfbimgblt.c:302 Code: 89 e6 89 e9 41 d3 e6 41 09 de 89 ef 8b 5c 24 28 89 de e8 0e db 81 fd 39 dd 73 0a e8 65 d9 81 fd eb 42 0f 1f 00 48 8b 44 24 30 <44> 89 30 48 83 c0 04 48 89 44 24 30 89 ef 89 de e8 e6 da 81 fd 39 RSP: 0018:ffffc9000a037558 EFLAGS: 00010246 RAX: ffff888001000018 RBX: 000000000000001c RCX: 000000000000001c RDX: ffff8880a79880c0 RSI: 000000000000001c RDI: 000000000000001c RBP: 000000000000001c R08: ffffffff83f32412 R09: ffffffff83f31b7c R10: 0000000000000002 R11: ffff8880a79880c0 R12: 0000000000000000 R13: ffff888218a81f72 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f8534532700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffff888001000018 CR3: 00000000a80b4000 CR4: 00000000001506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: soft_cursor+0xb44/0xdb0 drivers/video/fbdev/core/softcursor.c:74 bit_cursor+0x1753/0x2110 drivers/video/fbdev/core/bitblit.c:377 set_cursor drivers/tty/vt/vt.c:919 [inline] con_flush_chars+0x4e1/0x640 drivers/tty/vt/vt.c:3330 con_write+0x2a/0x40 drivers/tty/vt/vt.c:3251 do_output_char+0x63b/0x940 drivers/tty/n_tty.c:447 __process_echoes+0x2a3/0x930 drivers/tty/n_tty.c:739 flush_echoes drivers/tty/n_tty.c:829 [inline] __receive_buf drivers/tty/n_tty.c:1648 [inline] n_tty_receive_buf_common+0x29fa/0x3100 drivers/tty/n_tty.c:1742 paste_selection+0x32c/0x450 drivers/tty/vt/selection.c:408 vt_ioctl+0x105a/0x3d70 drivers/tty/vt/vt_ioctl.c:862 tty_ioctl+0xee4/0x15c0 drivers/tty/tty_io.c:2656 vfs_ioctl fs/ioctl.c:48 [inline] __do_sys_ioctl fs/ioctl.c:753 [inline] __se_sys_ioctl+0xfb/0x170 fs/ioctl.c:739 do_syscall_64+0x31/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x449809 Code: e8 8c e7 ff ff 48 83 c4 18 c3 0f 1f 80 00 00 00 00 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 5b 05 fc ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f8534531db8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00000000006dec68 RCX: 0000000000449809 RDX: 0000000020000080 RSI: 000000000000541c RDI: 0000000000000007 RBP: 00000000006dec60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dec6c R13: 00007ffe8074321f R14: 00007f85345329c0 R15: 0000000000000064 Modules linked in: CR2: ffff888001000018 ---[ end trace 4ec628432d38a26a ]--- RIP: 0010:__writel arch/x86/include/asm/io.h:71 [inline] RIP: 0010:slow_imageblit drivers/video/fbdev/core/cfbimgblt.c:178 [inline] RIP: 0010:cfb_imageblit+0xb15/0x11e0 drivers/video/fbdev/core/cfbimgblt.c:302 Code: 89 e6 89 e9 41 d3 e6 41 09 de 89 ef 8b 5c 24 28 89 de e8 0e db 81 fd 39 dd 73 0a e8 65 d9 81 fd eb 42 0f 1f 00 48 8b 44 24 30 <44> 89 30 48 83 c0 04 48 89 44 24 30 89 ef 89 de e8 e6 da 81 fd 39 RSP: 0018:ffffc9000a037558 EFLAGS: 00010246 RAX: ffff888001000018 RBX: 000000000000001c RCX: 000000000000001c RDX: ffff8880a79880c0 RSI: 000000000000001c RDI: 000000000000001c RBP: 000000000000001c R08: ffffffff83f32412 R09: ffffffff83f31b7c R10: 0000000000000002 R11: ffff8880a79880c0 R12: 0000000000000000 R13: ffff888218a81f72 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f8534532700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffff888001000018 CR3: 00000000a80b4000 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@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. For information about bisection process see: https://goo.gl/tpsmEJ#bisection syzbot can test patches for this issue, for details see: https://goo.gl/tpsmEJ#testing-patches