Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp815389imn; Sat, 30 Jul 2022 04:19:26 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vhnoxZQVKZD+dLej1vhknb81eNpbDU1A6QnsPAjgJMV0G3iYBABZwZ/bNATreEr11jw4DP X-Received: by 2002:a05:6402:42d5:b0:43b:5cbc:eeba with SMTP id i21-20020a05640242d500b0043b5cbceebamr7359058edc.3.1659179965853; Sat, 30 Jul 2022 04:19:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659179965; cv=none; d=google.com; s=arc-20160816; b=P5d647MEeBABrBYMETbR3WzlCnr2rvoF6nkgrqLl5qRSv3kOIBrbgVIWv4vnWJ8Oxl wJiu784uOPxhxsu7j79aHQp6AiiTHtt1SYP4rQYW3aPhj/VvjGBufeIlcwzDWql42E8N gxcyrx92lo5YMK0dsYwrTeMLqvP3KRDON4ISENpGmnX6QaTrbJitsXzwK8Uka64loTdx Qx07nlVx8dRZPvC4fxdvjS+8oimhkb9ecB+Ck+v4Bfyd1WUf/1KMPP3iwXKtFimWe/qM ipMIjKFEAEPzb6GACHprd1FrzOsgBx4fdTbwMlS68VwPosutk/ODiDx47m+BRYuOxxC3 8Cvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:in-reply-to:date :mime-version; bh=yVUt1MHWau0W4HIl8atEFKLulnIS+DEjiG71SKLNuNo=; b=EUZnOyZyQ6c0VQ4rOr6HiOqf+RFcO6u+tUllLkfH5l4dTheOR2arzffslv/wNxXDU+ pO7HM2XfZ0cD02bTmNbHHVfdaBZ28sbhsp2IVX1ntGBPTrLr+8JN/bJUER9Y3ZWSI7KY kvUdH5srNPbm7BFMwp4lCwrktEGml9mi2CTcCckQNe4t33IvljNf22UWDBRkUfQaSuqL qr+b8Rn3tMDMHecmQdoYBOumDeqXm6Fq/ScxDcq21mRCeIDvP/rwGRQi42qOQU8Tp5I0 V5csWZG6ZDVVNVjr1nne2JYMVB9VS7U3GQwA2jozQMHTuqekzfJNGg8jXay6SqKlFyx9 rodg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x89-20020a50bae2000000b0043cd8cf001asi5162823ede.169.2022.07.30.04.19.01; Sat, 30 Jul 2022 04:19:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233930AbiG3KzL (ORCPT + 99 others); Sat, 30 Jul 2022 06:55:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230036AbiG3KzJ (ORCPT ); Sat, 30 Jul 2022 06:55:09 -0400 Received: from mail-io1-f69.google.com (mail-io1-f69.google.com [209.85.166.69]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD2C7E5B for ; Sat, 30 Jul 2022 03:55:08 -0700 (PDT) Received: by mail-io1-f69.google.com with SMTP id z11-20020a05660217cb00b0067c63cf0236so2028777iox.13 for ; Sat, 30 Jul 2022 03:55:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc; bh=yVUt1MHWau0W4HIl8atEFKLulnIS+DEjiG71SKLNuNo=; b=hC8FcEVZtA2m4f0EFnqrgnu8pxQGm6pFFiZVC53vtb5IGPhkPgvftWERf1nXQ2JFi4 LSCUx0lVVONJauRC5EXLDoi5gEc9LxaA2KAYZkYWDnTdPTqjF2PaiqpONug33pkaYlPr XeGwVZDN51WYaHJi8oWrvyrFzJU+wWVcqp1j+inVX1t/tGb6tuBIdWvDlA9wUDcnRahd MwcATKXHUEInAOV0ttjQkd9GdBnG3IiQ82gATkKTveHm5vNAHaBnzjJv1vwnJ0bcDAqD eoq6abnwX9vTZM+eHjMaBFpeOaPmEnY2wqTCnBmal4kvMywcoYiPsJN6i5Y3LC6eR7Qh QrvA== X-Gm-Message-State: ACgBeo1QheciJQ2lntKAUMvesYk6oy/UHS9Y/8KiB5pI5hlyiZ5PipiK 7oR494Uia8knCfHGO8fp1Bkx73rxfU+AsOhaLrytWeLY8j9M MIME-Version: 1.0 X-Received: by 2002:a05:6e02:19cd:b0:2de:2db4:e0d3 with SMTP id r13-20020a056e0219cd00b002de2db4e0d3mr2252529ill.112.1659178508232; Sat, 30 Jul 2022 03:55:08 -0700 (PDT) Date: Sat, 30 Jul 2022 03:55:08 -0700 In-Reply-To: <20220730081246.4567-1-khalid.masum.92@gmail.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000009a2f7105e5039940@google.com> Subject: Re: [syzbot] KASAN: vmalloc-out-of-bounds Write in imageblit (2) From: syzbot To: khalid.masum.92@gmail.com, khalid.masum@aol.com, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot has tested the proposed patch but the reproducer is still triggering an issue: KASAN: vmalloc-out-of-bounds Write in imageblit ================================================================== BUG: KASAN: vmalloc-out-of-bounds in fast_imageblit drivers/video/fbdev/core/sysimgblt.c:257 [inline] BUG: KASAN: vmalloc-out-of-bounds in sys_imageblit+0x1ed0/0x2240 drivers/video/fbdev/core/sysimgblt.c:323 Write of size 4 at addr ffffc90004301000 by task syz-executor.3/4204 CPU: 1 PID: 4204 Comm: syz-executor.3 Not tainted 5.19.0-rc8-syzkaller-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 print_address_description.constprop.0.cold+0xf/0x495 mm/kasan/report.c:313 print_report mm/kasan/report.c:429 [inline] kasan_report.cold+0xf4/0x1c6 mm/kasan/report.c:491 fast_imageblit drivers/video/fbdev/core/sysimgblt.c:257 [inline] sys_imageblit+0x1ed0/0x2240 drivers/video/fbdev/core/sysimgblt.c:323 drm_fb_helper_sys_imageblit drivers/gpu/drm/drm_fb_helper.c:825 [inline] drm_fbdev_fb_imageblit+0x15c/0x350 drivers/gpu/drm/drm_fb_helper.c:2328 bit_putcs_unaligned drivers/video/fbdev/core/bitblit.c:139 [inline] bit_putcs+0x6e1/0xd20 drivers/video/fbdev/core/bitblit.c:188 fbcon_putcs+0x314/0x3e0 drivers/video/fbdev/core/fbcon.c:1285 do_update_region+0x399/0x630 drivers/tty/vt/vt.c:676 redraw_screen+0x61f/0x740 drivers/tty/vt/vt.c:1035 fbcon_do_set_font+0x5eb/0x6f0 drivers/video/fbdev/core/fbcon.c:2435 fbcon_set_font+0x89d/0xab0 drivers/video/fbdev/core/fbcon.c:2522 con_font_set drivers/tty/vt/vt.c:4666 [inline] con_font_op+0x73a/0xc90 drivers/tty/vt/vt.c:4710 vt_k_ioctl drivers/tty/vt/vt_ioctl.c:474 [inline] vt_ioctl+0x1efa/0x2b20 drivers/tty/vt/vt_ioctl.c:752 tty_ioctl+0xbbd/0x15e0 drivers/tty/tty_io.c:2778 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f57f9089109 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f57fa20f168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f57f919bf60 RCX: 00007f57f9089109 RDX: 0000000020000040 RSI: 0000000000004b72 RDI: 0000000000000004 RBP: 00007f57fa20f1d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007fffa57859ef R14: 00007f57fa20f300 R15: 0000000000022000 The buggy address belongs to the virtual mapping at [ffffc90004001000, ffffc90004302000) created by: drm_gem_shmem_vmap_locked drivers/gpu/drm/drm_gem_shmem_helper.c:319 [inline] drm_gem_shmem_vmap+0x3d7/0x5a0 drivers/gpu/drm/drm_gem_shmem_helper.c:366 Memory state around the buggy address: ffffc90004300f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90004300f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc90004301000: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ^ ffffc90004301080: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ffffc90004301100: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ================================================================== Tested on: commit: e0dccc3b Linux 5.19-rc8 git tree: https://github.com/torvalds/linux.git console output: https://syzkaller.appspot.com/x/log.txt?x=1156281e080000 kernel config: https://syzkaller.appspot.com/x/.config?x=26034e6fe0075dad dashboard link: https://syzkaller.appspot.com/bug?extid=14b0e8f3fd1612e35350 compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 patch: https://syzkaller.appspot.com/x/patch.diff?x=1346ae16080000