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 20AA1C433F5 for ; Sun, 5 Sep 2021 20:22:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0894860F4A for ; Sun, 5 Sep 2021 20:22:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238195AbhIEUXg (ORCPT ); Sun, 5 Sep 2021 16:23:36 -0400 Received: from mail-il1-f200.google.com ([209.85.166.200]:47810 "EHLO mail-il1-f200.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238030AbhIEUX2 (ORCPT ); Sun, 5 Sep 2021 16:23:28 -0400 Received: by mail-il1-f200.google.com with SMTP id j17-20020a926e11000000b0022487646515so2775304ilc.14 for ; Sun, 05 Sep 2021 13:22:25 -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=II+59FLqtMznEdE3o2/0rips7/eUPlc7AU99q2eipqQ=; b=cPaXNR5gUPUjbbZmZsVwxXcQsy7iIBLogQoHElMXGiNNealCL0Qm2rUXvNQwoW6kca SiBXqs/EQMneyMaYqbi31VcZqzqLm8rKPqd0/QnaSD1SSZKGOhFhdXAPZ9LU+BwWD1KR 2FIXVtzr+dg82XtdhPKrpSOe1EBB0yLjJBn0l7afBSE/NTwB2kPWwRfpVYqI4aeJmj27 rETorKAHJzp7EisTEFd3MTdnqB4v5Wq+gpYsXlzTcZtqSo4uDk5oOk5j53wGY3EjhBMx sfKB9D74mjFHk11QhCfTHd5cHd1vmW6i1Iat4lxV8w3qXplhRKJ9eNIyCTGpedHHVNFF 4KuA== X-Gm-Message-State: AOAM533R6mzZnNM8B3y0/FmnHIBrTKFjEbkuYFfZ5iG3ZXXBXq09umTm vFjrVLppV+pxmc6b+xuRbni+9kvFAt+dtNLIZL9jWQdCJ3We X-Google-Smtp-Source: ABdhPJwKR559ncBeYJWrQDGC5mOcPwjKzCnUHKYE8PIH4bjQeXosLoHG3/hym29xSFsXbsOQ9UvGFhPDtfW4jrW9yQ/v4F0oa0B9 MIME-Version: 1.0 X-Received: by 2002:a5e:d70a:: with SMTP id v10mr7334472iom.10.1630873344882; Sun, 05 Sep 2021 13:22:24 -0700 (PDT) Date: Sun, 05 Sep 2021 13:22:24 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <00000000000065419205cb454ac4@google.com> Subject: [syzbot] KASAN: vmalloc-out-of-bounds Write in tpg_fill_plane_buffer (2) From: syzbot To: linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, mchehab@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: f1583cb1be35 Merge tag 'linux-kselftest-next-5.15-rc1' of .. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1495987d300000 kernel config: https://syzkaller.appspot.com/x/.config?x=9c582b69de20dde2 dashboard link: https://syzkaller.appspot.com/bug?extid=272ce7abd8e49c0ddf42 compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.1 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=14f79ecd300000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1489a4c9300000 Bisection is inconclusive: the issue happens on the oldest tested release. bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=11c072a5300000 final oops: https://syzkaller.appspot.com/x/report.txt?x=13c072a5300000 console output: https://syzkaller.appspot.com/x/log.txt?x=15c072a5300000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+272ce7abd8e49c0ddf42@syzkaller.appspotmail.com ================================================================== BUG: KASAN: vmalloc-out-of-bounds in memcpy include/linux/fortify-string.h:191 [inline] BUG: KASAN: vmalloc-out-of-bounds in tpg_fill_plane_pattern drivers/media/common/v4l2-tpg/v4l2-tpg-core.c:2545 [inline] BUG: KASAN: vmalloc-out-of-bounds in tpg_fill_plane_buffer+0x1325/0x38e0 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c:2626 Write of size 128 at addr ffffc9000dbe2fe0 by task vivid-001-vid-c/14838 CPU: 0 PID: 14838 Comm: vivid-001-vid-c Not tainted 5.14.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:105 print_address_description.constprop.0.cold+0xf/0x309 mm/kasan/report.c:256 __kasan_report mm/kasan/report.c:442 [inline] kasan_report.cold+0x83/0xdf mm/kasan/report.c:459 check_region_inline mm/kasan/generic.c:183 [inline] kasan_check_range+0x13d/0x180 mm/kasan/generic.c:189 memcpy+0x39/0x60 mm/kasan/shadow.c:66 memcpy include/linux/fortify-string.h:191 [inline] tpg_fill_plane_pattern drivers/media/common/v4l2-tpg/v4l2-tpg-core.c:2545 [inline] tpg_fill_plane_buffer+0x1325/0x38e0 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c:2626 vivid_fillbuff+0x1ac1/0x3f00 drivers/media/test-drivers/vivid/vivid-kthread-cap.c:469 vivid_thread_vid_cap_tick+0x88b/0x2360 drivers/media/test-drivers/vivid/vivid-kthread-cap.c:729 vivid_thread_vid_cap+0x5d2/0xaf0 drivers/media/test-drivers/vivid/vivid-kthread-cap.c:868 kthread+0x3e5/0x4d0 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Memory state around the buggy address: ffffc9000dbe2f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc9000dbe2f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc9000dbe3000: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ^ ffffc9000dbe3080: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ffffc9000dbe3100: 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. 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