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=-3.7 required=3.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no 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 AA1DBC388F9 for ; Sat, 31 Oct 2020 11:28:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7AC6320739 for ; Sat, 31 Oct 2020 11:28:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726953AbgJaL2Y (ORCPT ); Sat, 31 Oct 2020 07:28:24 -0400 Received: from mail-io1-f69.google.com ([209.85.166.69]:43782 "EHLO mail-io1-f69.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726935AbgJaL2S (ORCPT ); Sat, 31 Oct 2020 07:28:18 -0400 Received: by mail-io1-f69.google.com with SMTP id o3so193701iou.10 for ; Sat, 31 Oct 2020 04:28:16 -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=OXTr1wsblAXE338aPfrrd8q8k4gVyWgB2hXUUxvfYYw=; b=fKThtskeRTvcb7v0TVX+LWutIyGQ0+LTkhAmb2uratRdgov+ILidTHAGdbDuJMXAhT h0LTWRhlpeiL96rPUBJsjt8023rbnYVJ9W9nFQMgI9SdryW8iTM9CG7ts/4Fkz1aWOYP aubq523aNtYK+s6MqyRCRaSx438FW5Yndu/gF8T7dYY/XNg0gnw0v+fywsr7ATeN2+ln D5r9VxXz4v44KVwshZmjbVZau5wqZhVynVFWtySnKUI5zXaYcWPSvEXkBwqRbqPpLsH5 +91ThRApgihzZZOjImD9WJRmqPN1h/f5WRxyZIF11467ScmEcA9qHR2dIghXTXmMHnUe TjMA== X-Gm-Message-State: AOAM5317hgG/+nxEYEOO6ZrPuDUMWCNWrLvkdWETVE1Qe4vE9Nf3ETIv zM1qp6U95bAsgJqA0Q3WnzLmly1C8HE+ut9khQACiR+xshGH X-Google-Smtp-Source: ABdhPJx6W1Y67tYSKe13+Mkr6v/p/VucUq/l/zDOFZjZJFAGJJV0uNWGxokQBI9irrG+GwKTn3kBgOqVsNjMlujo9Kz00tUC6Tbt MIME-Version: 1.0 X-Received: by 2002:a92:d5d0:: with SMTP id d16mr5163722ilq.223.1604143696510; Sat, 31 Oct 2020 04:28:16 -0700 (PDT) Date: Sat, 31 Oct 2020 04:28:16 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000003305c305b2f5cfd8@google.com> Subject: KASAN: vmalloc-out-of-bounds Write in drm_fb_helper_dirty_work (3) From: syzbot To: airlied@linux.ie, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, maarten.lankhorst@linux.intel.com, mripard@kernel.org, syzkaller-bugs@googlegroups.com, tzimmermann@suse.de 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: 4525c878 scsi: qla2xxx: remove incorrect sparse #ifdef git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1411f308500000 kernel config: https://syzkaller.appspot.com/x/.config?x=a5c844e56cc50cdb dashboard link: https://syzkaller.appspot.com/bug?extid=58a9f453b90c4bfab018 compiler: gcc (GCC) 10.1.0-syz 20200507 Unfortunately, I don't have any reproducer for this issue yet. IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+58a9f453b90c4bfab018@syzkaller.appspotmail.com ================================================================== BUG: KASAN: vmalloc-out-of-bounds in memcpy include/linux/string.h:399 [inline] BUG: KASAN: vmalloc-out-of-bounds in drm_fb_helper_dirty_blit_real drivers/gpu/drm/drm_fb_helper.c:403 [inline] BUG: KASAN: vmalloc-out-of-bounds in drm_fb_helper_dirty_work+0x42e/0x810 drivers/gpu/drm/drm_fb_helper.c:435 Write of size 4096 at addr ffffc90009bd1000 by task kworker/2:0/23 CPU: 2 PID: 23 Comm: kworker/2:0 Not tainted 5.10.0-rc1-syzkaller #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.12.0-59-gc9ba5276e321-prebuilt.qemu.org 04/01/2014 Workqueue: events drm_fb_helper_dirty_work Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x107/0x163 lib/dump_stack.c:118 print_address_description.constprop.0.cold+0x5/0x497 mm/kasan/report.c:385 __kasan_report mm/kasan/report.c:545 [inline] kasan_report.cold+0x1f/0x37 mm/kasan/report.c:562 check_memory_region_inline mm/kasan/generic.c:186 [inline] check_memory_region+0x13d/0x180 mm/kasan/generic.c:192 memcpy+0x39/0x60 mm/kasan/common.c:106 memcpy include/linux/string.h:399 [inline] drm_fb_helper_dirty_blit_real drivers/gpu/drm/drm_fb_helper.c:403 [inline] drm_fb_helper_dirty_work+0x42e/0x810 drivers/gpu/drm/drm_fb_helper.c:435 process_one_work+0x933/0x15a0 kernel/workqueue.c:2272 worker_thread+0x64c/0x1120 kernel/workqueue.c:2418 kthread+0x3af/0x4a0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296 Memory state around the buggy address: ffffc90009bd0f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90009bd0f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc90009bd1000: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ^ ffffc90009bd1080: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ffffc90009bd1100: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ================================================================== --- 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.