Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2421102rdb; Tue, 3 Oct 2023 23:54:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG1Yvlw86vSthLQCfy/lW9otrGPlBiJcmsCcVOewv0jdHLPi606QsksFnx8prH1eH8D2w9w X-Received: by 2002:a17:90a:fe05:b0:279:11db:2fe1 with SMTP id ck5-20020a17090afe0500b0027911db2fe1mr1371814pjb.31.1696402491263; Tue, 03 Oct 2023 23:54:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696402491; cv=none; d=google.com; s=arc-20160816; b=iMv1woM2l6QfKsVMur8kmjHGFOchlK+mwitL7dM1zrPgGS+jRP83s2bjXNo6PyhqmG fSHCDiySsYfvIzrbLtqkUzi8qz1hlqn9xvAuEWkj3sdR20erP4vgDifOB159crTKYpo0 wYlT0f08fWapy6/y9sayVUClIx7UGjj/QN6R/UZVfH/Onp9dCndgK91Fl1M+lvjMpTT7 E1LpvJJ3cn+A2fe7L3XpQz8p1ltCUr3iA3QgkhqYhf4wrJSkoyb67fkDjecmejg+XpXY mW4xTjf4AJk3AB/BwqD91rfRJaDojqylIVOtmUPWof6fkB7w9UauNlvhMwJ8W/9teQMm SD4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id; bh=iQx0S+OY92XhAxTxQkKQe92f70vxk6Qd7A6H0ofTku0=; fh=yEPyaNN5qw4o7iT/cY4oB1pHIr+Atbb/lZlSKjr/SkU=; b=aid+/EkI2f5V6ALD3FY2yglUm8m0koqE4sVGBFidQ8uNWh4a1ANBBQCrJGIwFE/gbQ 2w/6uCioNbQ/7nKK24kWucuptzPgY4e+lZwG7hE6h6wKcUPJzeuSptXqUbBg/OwnXV1U nlfW74dM73j2P1Ky/zfuiYWrHpWduDWG6S1+cMbXdoxCJhqolmI9JnoPObZn8yLEjZDV j+jbbKpHFoG4scuPIGFaN0kv3kKfN8skBOnZIhf+j/3s/A1VyveQQ98Y1nQJk6hQnBSb 2n4fWRKxtG8EeeaHef7BE1i7yOxvL9dY5LkHqxYzCp9OFTDHpJ67cIvqVuZeemr/mcoj OUmg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xs4all.nl Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id ds12-20020a17090b08cc00b0026f3395cd7fsi893627pjb.184.2023.10.03.23.54.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 23:54:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xs4all.nl Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 577F281BFAA1; Tue, 3 Oct 2023 23:54:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241456AbjJDGyf (ORCPT + 99 others); Wed, 4 Oct 2023 02:54:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232770AbjJDGyf (ORCPT ); Wed, 4 Oct 2023 02:54:35 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2979CAC; Tue, 3 Oct 2023 23:54:32 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 155FBC433C7; Wed, 4 Oct 2023 06:54:28 +0000 (UTC) Message-ID: <54962983-fa23-4ecc-9874-f59a1387cf70@xs4all.nl> Date: Wed, 4 Oct 2023 08:54:27 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/2] media: mediatek: vcodec: Fix encoder access NULL pointer Content-Language: en-US, nl From: Hans Verkuil To: Irui Wang , Mauro Carvalho Chehab , Matthias Brugger , angelogioacchino.delregno@collabora.com, nicolas.dufresne@collabora.com, Yunfei Dong Cc: Project_Global_Chrome_Upstream_Group@mediatek.com, linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Maoguang Meng References: <20230926101909.15030-1-irui.wang@mediatek.com> <36356e37-9abd-4dec-a716-9822b67bd0fa@xs4all.nl> In-Reply-To: <36356e37-9abd-4dec-a716-9822b67bd0fa@xs4all.nl> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 03 Oct 2023 23:54:49 -0700 (PDT) Ping! Is this a fix for 6.6 or not? Regards, Hans On 02/10/2023 12:24, Hans Verkuil wrote: > On 26/09/2023 12:19, Irui Wang wrote: >> Need to set the private data with encoder device, or will access >> NULL pointer in encoder handler. >> >> Fixes: 1972e32431ed ("media: mediatek: vcodec: Fix possible invalid memory access for encoder") >> >> Signed-off-by: Irui Wang >> --- >> drivers/media/platform/mediatek/vcodec/encoder/venc_vpu_if.c | 3 ++- >> 1 file changed, 2 insertions(+), 1 deletion(-) >> >> diff --git a/drivers/media/platform/mediatek/vcodec/encoder/venc_vpu_if.c b/drivers/media/platform/mediatek/vcodec/encoder/venc_vpu_if.c >> index d299cc2962a5..ae6290d28f8e 100644 >> --- a/drivers/media/platform/mediatek/vcodec/encoder/venc_vpu_if.c >> +++ b/drivers/media/platform/mediatek/vcodec/encoder/venc_vpu_if.c >> @@ -138,7 +138,8 @@ int vpu_enc_init(struct venc_vpu_inst *vpu) >> vpu->ctx->vpu_inst = vpu; >> >> status = mtk_vcodec_fw_ipi_register(vpu->ctx->dev->fw_handler, vpu->id, >> - vpu_enc_ipi_handler, "venc", NULL); >> + vpu_enc_ipi_handler, "venc", >> + vpu->ctx->dev); >> >> if (status) { >> mtk_venc_err(vpu->ctx, "vpu_ipi_register fail %d", status); > > Is this a fix that should go to 6.6? > > Regards, > > Hans