Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1897878rdb; Sat, 2 Dec 2023 14:09:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IH0Op17JjDWG8maeftTqURfwswC0TkTY2Xlq3xfCbt5q2P5DppcVokPOrKh6OWPQRVicAbe X-Received: by 2002:a9d:7982:0:b0:6d8:57d9:23cd with SMTP id h2-20020a9d7982000000b006d857d923cdmr6411670otm.22.1701554942850; Sat, 02 Dec 2023 14:09:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701554942; cv=none; d=google.com; s=arc-20160816; b=QkeDjKNZEGVFK5VSHYY6kekLBEt+V+4Q0TmzFJkC8UEL/KGlhPnM9AOHfbecLu9Rsu pnywSbbiNOs0EOgUlEe/2lwDV4LYVWZ0WBx+8Lc6A53+rAJMCeriFcmebR98ze9bYBfd zsXlSsyUW3vsKGCIQwLdgEgN+malUVGfSKh7M/Xve7wpq6yNaMzAz31q2vkUoCw1eeoc gFfKYj9ghScaDinvGwHDSzkbeKO6UyA/qh6DLqa0ijnyPRCIVL2JiyUgENknjKoTS37G RjiBlXF4ttbngjBZtT947G/vmqN12D715ZTqwG7ekRusFM5wvwbBcFCpbuGn5UE965eO rsEg== 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 :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=gBnQbPIaKZ1FnI4i+KfUpDsqKQ/SRB/Q4CkBHEZWQ+s=; fh=TcImnZ1GqypNs1sa5u9MlImZKPTgjB8nc3r2rhiWdx4=; b=DdUnTnUSIlEKg8YdSIprgo5yeIyYQLpOsin8BMNGX4au+N44DK1/CG+xvp7FNIj4o/ NQ88cXNTEXZLDuJOHBi4JnI7E7gXS70W8iVVJJHmo3AB077WE5j4S2f9iEfpy0xkIyVW e1QG6YakMCuullFwj2v9yJvKsr1fNCnYaylCGDWpIp6C0+8P0BIjHc3g3F8dplZvAwCi 3ieaDXIugR/SQub6ZU3ZurHRWQLobiOz1BQ5fMZlGHwBiSdxZ37L5qQL8eP6U7XXr4GI qTkR82pQfA+3MONYnwQ9JKqIuzWxtMREiKcz98cB3FtYvw8EJrD60TMs6EMb93bEfrKV 7BUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uPfywUtF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id r22-20020a635d16000000b005c200c132ddsi5209425pgb.601.2023.12.02.14.09.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Dec 2023 14:09:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uPfywUtF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id 62F028088A91; Sat, 2 Dec 2023 14:09:00 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232365AbjLBWIq (ORCPT + 99 others); Sat, 2 Dec 2023 17:08:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229531AbjLBWIp (ORCPT ); Sat, 2 Dec 2023 17:08:45 -0500 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F498118 for ; Sat, 2 Dec 2023 14:08:51 -0800 (PST) Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2c9b9191722so44463211fa.1 for ; Sat, 02 Dec 2023 14:08:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701554929; x=1702159729; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=gBnQbPIaKZ1FnI4i+KfUpDsqKQ/SRB/Q4CkBHEZWQ+s=; b=uPfywUtFhR8c5xi6/Qgy3ymOSXmuLeeo1+KUvlM8WrITbezBgmVJjSsSL1Kl27rmVD RsNIa7VJ0c5YnZ5Cb0era8/aWqAp1kAVuqMcqwizMcnphe39h3JaNNWgLfnOc2aOfif7 6pjAx7rvbxf9znkLatLkmbKlhepZsCy9IwKUJXPhpykOvKUQBXttzugqApaQbKEnJl9k ULAn1wsNS4vzEoLUsMyRrc8l61lQGozs8zly++NBs9bqWR2qkV8a7O08BdHsaNG+CJyg 6OeAST238gS2573L7tMj+FviEtVvETsqobLj3ax/WiOQ/RtY1sphjaccaYTdvKhyB5R8 VWWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701554929; x=1702159729; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=gBnQbPIaKZ1FnI4i+KfUpDsqKQ/SRB/Q4CkBHEZWQ+s=; b=UNVKA64NnSI5sXZB3Sdc+HZsh0/QbPSjdjRXjY7fMYLL2FtIjrMVPHBmzx1cmmpQTb nUy1ik7hVx9Gztg/bW64Lp+WFOASKfoz6/dfNCoIiQ1iKW80Sb9RxbNmNs4otTR3PBQu fEYiBlcPw5rxK2fwEQgjF/C9+4sOeAG+8QGByCOv77catb0LL/ff8QXZNCICWbHP329T B2/iig8xlclyZFtiu9JqPjmY2pDPJWH2TEwW5JblnrmlPS30xkO4XjjIHA0C8dyaDAVj yI2d7NXkMwlA/h1NJva4ZxSJHP/8ywbxBFgTHGK6auRZgSVUC3vdCwfOmf3EKxwGUveA L91Q== X-Gm-Message-State: AOJu0YxSqt7h7MBKO7n3uucIoHece8q3MnGQjTBe1QTp/CAfYomkzvKC 5UqNuHiY6KvvwtR4t8JtR/nhNQ== X-Received: by 2002:a2e:b0ca:0:b0:2c9:f57f:fcf6 with SMTP id g10-20020a2eb0ca000000b002c9f57ffcf6mr410723ljl.37.1701554929583; Sat, 02 Dec 2023 14:08:49 -0800 (PST) Received: from ?IPV6:2001:14ba:a0db:1f00::8a5? (dzdqv0yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::8a5]) by smtp.gmail.com with ESMTPSA id p21-20020a2eba15000000b002c9eca858a0sm344305lja.137.2023.12.02.14.08.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 02 Dec 2023 14:08:49 -0800 (PST) Message-ID: <124cf6d1-16b8-45e1-997c-24f176f59e20@linaro.org> Date: Sun, 3 Dec 2023 00:08:46 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] drm/msm/gpu: Fix null-pointer dereference in zap_shader_load_mdt Content-Language: en-GB To: Kunwu Chan , robdclark@gmail.com, quic_abhinavk@quicinc.com, sean@poorly.run, marijn.suijten@somainline.org, airlied@gmail.com, daniel@ffwll.ch, jordan@cosmicpenguin.net, konrad.dybcio@linaro.org Cc: kunwu.chan@hotmail.com, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org References: <20231123033329.27477-1-chentao@kylinos.cn> From: Dmitry Baryshkov 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=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Sat, 02 Dec 2023 14:09:00 -0800 (PST) On 23/11/2023 05: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 > --- > drivers/gpu/drm/msm/adreno/adreno_gpu.c | 4 ++++ > 1 file changed, 4 insertions(+) Reviewed-by: Dmitry Baryshkov -- With best wishes Dmitry