[5.10,0/1] vdec_vp9_if: add check for NULL for vsi->frm_bufs[vsi->new_fb_idx].buf.fb in vp9_swap_frm_bufs
Message ID | 20221028100539.30925-1-abelova@astralinux.ru |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp742159wru; Fri, 28 Oct 2022 03:29:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5hzmv46sw2ZcM66C8krgWW7MdDMIoc1s6lBlFMnogp9znxr73ePlENuabnFMmgjaSzA66S X-Received: by 2002:a05:6a00:807:b0:563:136f:a4fe with SMTP id m7-20020a056a00080700b00563136fa4femr53709370pfk.36.1666952994772; Fri, 28 Oct 2022 03:29:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666952994; cv=none; d=google.com; s=arc-20160816; b=BLgHI/sMc7kkVUSFrGuKI0W536+Qgm7yc3nh884g3PAwpHO8W/MB5ONfIUrPckN8jy n9h1Dpgq7DeUirTdnYrAd3lhrY3MeHH12Du5K4a8ITLiqX9dWtl9F2O/qGCIGAsFIlKo 6cRReyxBwexzOJ+jI6w5hzjHKPLx+4Ukt3gyKZ7pxRxXhlfySw/BdamAJOdJ/FF1Flnz TEtavAoaLpjAqBluqU+IGNGFsu6paupHhbRtQ9WbO/XKRnAotjRuN5eQLozmZAXBKDWJ /yl4rsEKQ+1ljSLfjhdY0aGl0oJp0LI9NIAa1Rs0zxlEuRnY3/jUlaeYqq7w12eAoYDf ESKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=iPjkftwsR9LqQ77Jtrv2Qgko283vLQTCezMdTMCIZ+s=; b=c9gfKqIHOb6W0zAJZGJHSk9CGBGz9Q1bkjd8+09t38RJ1pm90EOPQZ8d/tLPez9cIE EO8uhD154u6CdiwIL+uS2lhjsILsqQRk0/YPDcOfl57xq+aSuBP3nbXBCfkMGd3RyQ1C QRPXE6kb/fyKL/G9WkueYGBkxQo1XDTwutQU5MHa1epb5amUqW7UbV+lIaa5YyUx5bib PJn97Kfnuidh5K8hO7GIV5INSGb7s1AfOqB8uj5LEydpo/Ivm5zlXt28y6QipkbxatFu arvXpmbcLKv3fFhyswIpcc0d9D9eOlpbMLP5sN07CtSQET8eH5F4fs9wbJMqTnSLjcNe oTlQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pc7-20020a17090b3b8700b00211780dcde8si5431769pjb.124.2022.10.28.03.29.42; Fri, 28 Oct 2022 03:29:54 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229851AbiJ1KPk (ORCPT <rfc822;chrisfriedt@gmail.com> + 99 others); Fri, 28 Oct 2022 06:15:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230097AbiJ1KPd (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 28 Oct 2022 06:15:33 -0400 Received: from mail.astralinux.ru (mail.astralinux.ru [217.74.38.119]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1A1F1B94C6; Fri, 28 Oct 2022 03:15:26 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mail.astralinux.ru (Postfix) with ESMTP id C5D261863FB9; Fri, 28 Oct 2022 13:05:49 +0300 (MSK) Received: from mail.astralinux.ru ([127.0.0.1]) by localhost (rbta-msk-vsrv-mail01.astralinux.ru [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id MwiZZI5VNg5o; Fri, 28 Oct 2022 13:05:49 +0300 (MSK) Received: from localhost (localhost [127.0.0.1]) by mail.astralinux.ru (Postfix) with ESMTP id 76F3E1863F7D; Fri, 28 Oct 2022 13:05:49 +0300 (MSK) X-Virus-Scanned: amavisd-new at astralinux.ru Received: from mail.astralinux.ru ([127.0.0.1]) by localhost (rbta-msk-vsrv-mail01.astralinux.ru [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id NhTW9b_4Lqs3; Fri, 28 Oct 2022 13:05:49 +0300 (MSK) Received: from rbta-msk-lt-106062.astralinux.ru (unknown [10.177.20.20]) by mail.astralinux.ru (Postfix) with ESMTPSA id C06461863FB9; Fri, 28 Oct 2022 13:05:48 +0300 (MSK) From: Anastasia Belova <abelova@astralinux.ru> To: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Anastasia Belova <abelova@astralinux.ru>, Tiffany Lin <tiffany.lin@mediatek.com>, Andrew-CT Chen <andrew-ct.chen@mediatek.com>, Mauro Carvalho Chehab <mchehab@kernel.org>, Matthias Brugger <matthias.bgg@gmail.com>, linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, lvc-project@linuxtesting.org Subject: [PATCH 5.10 0/1] vdec_vp9_if: add check for NULL for vsi->frm_bufs[vsi->new_fb_idx].buf.fb in vp9_swap_frm_bufs Date: Fri, 28 Oct 2022 13:05:38 +0300 Message-Id: <20221028100539.30925-1-abelova@astralinux.ru> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747926902305817309?= X-GMAIL-MSGID: =?utf-8?q?1747926903437570295?= |
Series |
vdec_vp9_if: add check for NULL for vsi->frm_bufs[vsi->new_fb_idx].buf.fb in vp9_swap_frm_bufs
|
|
Message
Anastasia Belova
Oct. 28, 2022, 10:05 a.m. UTC
Null-pointer dereference was found with static analysis tools in version 5.10. Seems this file doesn't exist since 5.18. This file was moved to /drivers/media/platform/mediatek/vcodec/vdec/vdec_vp9_if.c. Maybe it is necessary to create another patch for these updates.
Comments
On Fri, Oct 28, 2022 at 01:05:38PM +0300, Anastasia Belova wrote: > Null-pointer dereference was found with static analysis tools > in version 5.10. Seems this file doesn't exist since 5.18. > This file was moved to > /drivers/media/platform/mediatek/vcodec/vdec/vdec_vp9_if.c. > Maybe it is necessary to create another patch for these updates. Fix this in Linus's tree first, and then worry about any potential need for stable backports. thanks, greg k-h