Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp5785267rwb; Tue, 17 Jan 2023 19:08:32 -0800 (PST) X-Google-Smtp-Source: AMrXdXtqT5Fr/eWW1JnkHm3O7efM9XeNBtr08OuXV4h3cdsQUi5+IjPXEQKSLvwCm4vjb2QYwyej X-Received: by 2002:a17:906:154e:b0:7b9:62ab:dc3f with SMTP id c14-20020a170906154e00b007b962abdc3fmr6770731ejd.1.1674011311920; Tue, 17 Jan 2023 19:08:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674011311; cv=none; d=google.com; s=arc-20160816; b=nUKl1xZHaEcJp82zsRfpHh1WqQLO5CrztKvJEaQknUK3Gtz4EeIH9DJ0AFneqdRBLB JLbPxoJFeILQrA0QbquftVAjJeQ/Lg22TVXNv27dOIWa6cbqSPFa9cjcyLvkuusykrvv hhCr/EuqLjFtXKZ9hkao9jGFVttrFiNzL1tpXQiO811CFmckVbBdpTLzGI0WD41IFoVa czAqVOIZYXEveVZN0rT1YSVRSY6Ga9SzxfmnPEmTP7ymnF/5GrxxYBPWY1Mu6kW4JW8D xDqPvDmMaNHUo5wOK/tqvx0o6czeFqCh8/xeGoVm0+1feoAx1yIjyXwapclgUxFxuIf9 4hSQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=SCpYgRmq69b6/9nwI4nlNw5U/U3mYH9SS4rlE1EJHiU=; b=VhZCwEOCj1vwpc+PReEA5BftOaxTebs2Mklj7CNZAVpSZVIjwHa8jCzwCMgsCx5cd7 aOdYPB5W+bust2MKosdWRfvCqf4lMgZ+0JTO0ISj0ZQOvrdOcuuREom6oyuvjsbD7q5E jxvvQqCE/Os9utQGlP0i6gdVRBoPFpgDW8EpvwkFFmD4yTZZct3S8YSW43whuWbmepFA AHQSAxVo9KFT629DOp1wiqFp/NcNNSSuSbOB37bo3gBUofdUaQCmu50oO05eonDgrpO6 S0utt1CWJJBFrhCc/oqGjGFh+sy8qcgTox1Qlpd0b388J5JiuMcTGXD30mqaLvpkotxK GIAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="sCdC/8rk"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gn28-20020a1709070d1c00b0086689c8fae9si5332050ejc.829.2023.01.17.19.08.20; Tue, 17 Jan 2023 19:08:31 -0800 (PST) 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; dkim=pass header.i=@linaro.org header.s=google header.b="sCdC/8rk"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229778AbjARCGj (ORCPT + 46 others); Tue, 17 Jan 2023 21:06:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229696AbjARCGg (ORCPT ); Tue, 17 Jan 2023 21:06:36 -0500 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BADEC521D9 for ; Tue, 17 Jan 2023 18:06:31 -0800 (PST) Received: by mail-ed1-x533.google.com with SMTP id s21so3486756edi.12 for ; Tue, 17 Jan 2023 18:06:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=SCpYgRmq69b6/9nwI4nlNw5U/U3mYH9SS4rlE1EJHiU=; b=sCdC/8rkCqqt/a18OV8/ciuvAtSFzsn5rvwQ6JF7c2X2ONJTikbbOfMQ3qz3SR/tGJ dHylXVs1VB2tIor+Y9J8cNOJkg+LIZcwrTD6LXHlH/QI/56TWMFVEzybo3ekpqaIqK2D SEoS8IuNBb7QiFEdDQkTJDfcgNsOP908WjbebshzbxMw29Lw+KlU+mZWR8ZaIZu8KJnS tB1e/y+YwKojIBFItFhp43Ef7TZnFD1ePImEabJpkbLUIMZt8M/mhXfm3fHOgZx5/J6V aabqwtPbWpJjZZwy+5ZDThK8+K6Aj5EEe6kWBhkgRvZoSVC2jWlXA58n4f/oQzdysSut Ztfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SCpYgRmq69b6/9nwI4nlNw5U/U3mYH9SS4rlE1EJHiU=; b=dlwrNgm1YuUnTi2k4Am1RK5QzEMYEweS30ZQBmYS46O+4BgsgP1iejAQ4lZzM2BqyP 43bfGTqx1VvJoQ1q4VJDKrNwooOY+poMsrOGNg8RfqyrY39QriJlmx9/vPytv+HmIOi3 K4p/by9WCzyb7+b/QFxYYX6tMyzPbhioL3jLO9t4FnfO53Q0GDCdmZnVcE/O158iA1Uo 7l8NGadebyC06QnKDMvPeet9qZFMYLhnHEsDCMlAQGE9NTMnxhMux5wgc+dMLlrD86GL EvX58KjRvnMObUq4g7caD2+ozrFRS6qkiHoTp95gShJw/+djrlyl/VHMQ9cfWvlbDUj+ WXLw== X-Gm-Message-State: AFqh2ko5Dn88GFgqlGeDQvj7Ev7sBRivVIpvLXsUBMvxNMXYFwgfvGzR 3VTJa1J7VWv9u9aZKE5sL3Gb6Q== X-Received: by 2002:a05:6402:501a:b0:47e:bdb8:9133 with SMTP id p26-20020a056402501a00b0047ebdb89133mr6465531eda.38.1674007590289; Tue, 17 Jan 2023 18:06:30 -0800 (PST) Received: from eriador.lan (dzccz6yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a085:4d00::8a5]) by smtp.gmail.com with ESMTPSA id kx1-20020a170907774100b0084d368b1628sm12702694ejc.40.2023.01.17.18.06.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 18:06:29 -0800 (PST) From: Dmitry Baryshkov To: robdclark@gmail.com, quic_abhinavk@quicinc.com, sean@poorly.run, airlied@gmail.com, daniel@ffwll.ch, sumit.semwal@linaro.org, christian.koenig@amd.com, Jiasheng Jiang Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linaro-mm-sig@lists.linaro.org Subject: Re: [PATCH] drm/msm/gem: Add check for kmalloc Date: Wed, 18 Jan 2023 04:06:12 +0200 Message-Id: <167400670547.1683873.1210769890022767222.b4-ty@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221212091117.43511-1-jiasheng@iscas.ac.cn> References: <20221212091117.43511-1-jiasheng@iscas.ac.cn> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 12 Dec 2022 17:11:17 +0800, Jiasheng Jiang wrote: > Add the check for the return value of kmalloc in order to avoid > NULL pointer dereference in copy_from_user. > > Applied, thanks! [1/1] drm/msm/gem: Add check for kmalloc https://gitlab.freedesktop.org/lumag/msm/-/commit/d839f0811a31 Best regards, -- Dmitry Baryshkov