Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp268008rdh; Thu, 23 Nov 2023 03:37:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IHjMg5oUxFs6fzOwpGWuzmyCQoyTi5IGXhSVzf+KNdrUQBbxypCyRpkm2EjLMvj1iWV5Z8+ X-Received: by 2002:a05:6a00:10d1:b0:6c3:6148:570f with SMTP id d17-20020a056a0010d100b006c36148570fmr6063104pfu.33.1700739470814; Thu, 23 Nov 2023 03:37:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700739470; cv=none; d=google.com; s=arc-20160816; b=L5NuO8T72hd5GRAUynyPTS8cLrCtGRiQIhsrkjcWVSitEC5kqFMZpLOMU8/9T7Z/0C I5NrNQIpDZOszmTpOhCrt6UDRwWBv2Ie8zCFpLJCgXZSut2van0FLV+TIL2IZkuGqSJA 9l1nro5aX5TzoFbR4E5NRCbs3p9WOCGZFkxjuxlQhcCPpHRoCFBTyxqq3yuops14ekZC R31nSXNsbZ0Ll4vBPFy6urfOWC6upk7HW5sRFZ4RIeY3nu9keHHQtBtfrc28rvpPi0zk +EKiLeXk0U4VRzpAitfU5b57yDL+OeOD287ivVoKvIrqGun/vHy9pXfyej6FQBqsaWlP F3KA== 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:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=nm0hbEIAX6bA2MYwiGpkCXzOiz2e3i3AxzXDyzNcE4Q=; fh=1BNjJ6zMbs3AZB7CvuoBTYQ/ALvJUcqES2K8sewULYU=; b=Uxls7SxJIrbiSx4TefibcvxlRpBOMzSn/a000McJxJYXWzR9ohSNqvrn1cqumzj4Z8 BIeOyFV7uNAjdEHShs/3gLqslg/1iaRjnIE1vgBbKrUePh87pwGOzT7z8HqogvLLmRsS 8IyQny8Oc501Gv0SHXuf0KyQotAcAgFu5+uMqBcRtQxD/HpXKuDfokxTehPlA6ExdFac 0MkmJ/ndAUtWfkSBKdkwsaF/kZRlyBYE25G6ixZvULdORj7G6WUE6avYyg+50qunW4ig h+2hijbOMAzGJXg2Hqi6TTKlFLJkQgEIjKpt0dlUlW35OZz0qR0T+RzrEK6XT27lQNpX eOsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RquwW1Ye; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id t22-20020a056a0021d600b006b69f056508si1102113pfj.149.2023.11.23.03.37.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 03:37:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RquwW1Ye; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id EB22A8074E1D; Thu, 23 Nov 2023 03:37:47 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345079AbjKWLhe (ORCPT + 99 others); Thu, 23 Nov 2023 06:37:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345034AbjKWLhc (ORCPT ); Thu, 23 Nov 2023 06:37:32 -0500 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D9099F for ; Thu, 23 Nov 2023 03:37:39 -0800 (PST) Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-507b9408c61so1014000e87.0 for ; Thu, 23 Nov 2023 03:37:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700739457; x=1701344257; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=nm0hbEIAX6bA2MYwiGpkCXzOiz2e3i3AxzXDyzNcE4Q=; b=RquwW1Ye3p1aVNFGsir4oDfm3BgrCV8QmxTC8hJ1RH3pT1kGkQIA5tz0WbYMvLcUAu TaaVgbysVT7zCe4i3Xp16pwNQk/BwdjWBeHz/jRQswjTlU8YDbzrjs7P83tBiW2JO2Qv dF8BC/q4sLVB1lQlbf5teKrUnUU+8hZ2s+kgCBcCy7Y9PNASAF0YC9+eh3XiyRdyvCzR qEH1ncyKsD/u/eXS9mO05PLVxAcp763+iC/e2pOQbdb9ZSMYKLohkvWkhGp2tlKHUpJg vih/ZNjVW2ATJuGPCup1pXii+/Eo0G6+SgloAYzwXJ8rDF/Saa9hkhZhBHs1pZSyvt+m U7XA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700739457; x=1701344257; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=nm0hbEIAX6bA2MYwiGpkCXzOiz2e3i3AxzXDyzNcE4Q=; b=bI1Vro7Mr1bXrSUJNuokSyuE341dd1m0938V3hi3jVaHosfwyxRBZ9Czp8ty9E/eWn fLcG+QshpChbSu7HWssJHyvPSCrA9MOSFEtkbMxZO7M+SpsVa6ibRitc8M1XhN8QqGJS I1c6ld2CER0Ujk2aOpDbbnY10th0Hc0obnWDbMVSl+0hAWu+9FVzwmWwcluuMR/WXXc5 jFkNtkcHJeamoyv9rNiSGgiETh4ICF4i+1YizwtjN5nRwdDrDsoR4AgN23EIdsmefsHG X32AgzLzTvbgTeiZhC+g2ZUIR5alFyTrp9TH8Sl/g6T7Vjj/TAVc/dfUX8Y+Z9v7xPpL 6+Qw== X-Gm-Message-State: AOJu0YxxNLFHSCj9MVe/8aGqRkKZ68/YWoPYSh0Wr18d+yYYX/Li9MNZ S9ybKui7b49gYEtOS85SnCfngg== X-Received: by 2002:ac2:43a5:0:b0:500:daec:2817 with SMTP id t5-20020ac243a5000000b00500daec2817mr3796344lfl.54.1700739457263; Thu, 23 Nov 2023 03:37:37 -0800 (PST) Received: from [172.30.204.221] (UNUSED.212-182-62-129.lubman.net.pl. [212.182.62.129]) by smtp.gmail.com with ESMTPSA id x15-20020a056512078f00b00507a96d17b3sm167232lfr.237.2023.11.23.03.37.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 23 Nov 2023 03:37:36 -0800 (PST) Message-ID: <70836806-5228-4b32-be97-f00a476bbe47@linaro.org> Date: Thu, 23 Nov 2023 12:37:33 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] drm/msm/gpu: Fix null-pointer dereference in zap_shader_load_mdt To: Kunwu Chan , robdclark@gmail.com, quic_abhinavk@quicinc.com, dmitry.baryshkov@linaro.org, sean@poorly.run, marijn.suijten@somainline.org, airlied@gmail.com, daniel@ffwll.ch, jordan@cosmicpenguin.net Cc: kunwu.chan@hotmail.com, linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20231123033329.27477-1-chentao@kylinos.cn> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <20231123033329.27477-1-chentao@kylinos.cn> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Thu, 23 Nov 2023 03:37:48 -0800 (PST) On 11/23/23 04:33, Kunwu Chan wrote: > kasprintf() returns a pointer to dynamically allocated memory > which can be NULL upon failure. Ensure the allocation was successful > by checking the pointer validity. > > Fixes: a9e2559c931d ("drm/msm/gpu: Move zap shader loading to adreno") > Signed-off-by: Kunwu Chan > --- Reviewed-by: Konrad Dybcio Konrad