Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1955958rwd; Thu, 18 May 2023 21:35:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5oHaJb8mvTV/tNAxAKo9qs0Cmz4XHp5rx1tXa01v1jBMwX4be1eRmuJ/wT2MnomPgzgRfg X-Received: by 2002:a05:6a00:1ad4:b0:63b:8eeb:77b8 with SMTP id f20-20020a056a001ad400b0063b8eeb77b8mr1521538pfv.13.1684470950741; Thu, 18 May 2023 21:35:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684470950; cv=none; d=google.com; s=arc-20160816; b=C4BQVugAOXpHrZ0A+b8ob59bYZmUzTTL4DfjoQh6UKXyxN6ps6RUuRs3lGa2uK8W+a n7QvGVRagKqfRNDzvYEGn9WmBGBWpwOkkTnI7v7fxdZpNvwdgrCIeqLCXu4c6btchZIg UwrGomirHTPEOs3SkVwBXu3gBYO6T5qrEdZlU2uSsA55EXi5WreepZXeLa3j7qO03VQU BeC2FysQJuCq6IasCqQZwNS10P89v03K8btpJLFukrU9w6EAm/4u+Glq4+ezAeimgxdH besTRvm66HoNM8FiJkyhtcxYSQJ3UdWJZNQO44bFEvXMkZwsUOWzPsfMfcJE65gNxvvq cogQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=iOiBfpLle6Gi5Vqn7d5zcbeqcAGVB/cx7aZwFnLEQjE=; b=jT5W9zjc6ES8AbmWchh9OnmkXt/aUzzKcfPh7sqFt0WBoyTDH1wTfWloBz3EjTRahR QLjhUfALnsQdH+1SLNug/D1xgNcjqujbGDWqTmeV9jSBCo90VDUUHVrfRjphZk9+ECd8 BUaVo9IbEbQ55/I/4wJG+EcIxSX2tyB66YRxYWle+CHHmcnb2D0w/DJpQNDMUII/tS4S WTrw4gcH12q5nmYpG/0Qlbpu8jcQqBiXdLFKyHeIUUIQdt5fJAufLcphdoljuVPR6XzK HVA7Aa+zzsBNciVaVJkcbJoH2SdHWBn4iOuboY7cP2RNSO64HYC4Y08ySE44ybA76tz1 qyyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=M4LfsQRf; 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 i14-20020a056a00004e00b0063d45a6d0e5si3297220pfk.17.2023.05.18.21.35.38; Thu, 18 May 2023 21:35:50 -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; dkim=pass header.i=@linaro.org header.s=google header.b=M4LfsQRf; 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 S229978AbjESEQY (ORCPT + 99 others); Fri, 19 May 2023 00:16:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229732AbjESEQW (ORCPT ); Fri, 19 May 2023 00:16:22 -0400 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADD7C10F3 for ; Thu, 18 May 2023 21:16:20 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-30636edb493so224044f8f.1 for ; Thu, 18 May 2023 21:16:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684469779; x=1687061779; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=iOiBfpLle6Gi5Vqn7d5zcbeqcAGVB/cx7aZwFnLEQjE=; b=M4LfsQRfZLH8eZr583rnEXDxZ1YR2akpiiNlcESNINRmRUVnIKwJ1EXPb/QYYNn/If 8VXV5eCwWFZzcstNvnO4lcW7ZPl5koeph7YJvTU7Js2Ya6XlpojAJe+YXq7Dq6QgLuGh reVgrz+2T1GljEAeuTWCsthUWBz/QZl9g/WGYIF/gVs7OLXegfWnBPVb8WHu3XOsWeGU Fq2LMnom73QdwcH0zA5IQNufz/NAxYkmqGYeZlHLGLjvYO2jI4N8daCwFqld8wAFTB3r oMNGUtbTP9oTppZJvvlBj1RkfNbe5IxHrcBiBbYkEX0lEAfEsnU6+iReQZ4wIR28/abZ 1T/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684469779; x=1687061779; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=iOiBfpLle6Gi5Vqn7d5zcbeqcAGVB/cx7aZwFnLEQjE=; b=jAtxBx4w9MVGph+nURvJM7oeU7MtAsuqQoVmTMPlbHz5u8irzuE8Y1NwxuzmfdPABO nCfDVKEf07i3dfe0Fz/i0+RFQrz5NEJ6ECoVb6MeI63zLyBT3pfoQz0nWxWxmvZdGJ4S zc6+erQiP5fDxzXBUhcF46OIYLNpVHH+GBo2sxBwk1q9fpkj9uOus7Iom8hXnqoupaKv QSf0JkwFqqlzfQysJUsB4tk5Th96kSBuN9rrgUietR/LOeD+OwWXJoFq/PyGXrDFxhtm CyNgMizqFzdgtuiLqXr9xO8BgvyhHXFfVp5H6Zvob88zINwv4Wg7Kh034ZdwVZA5nIWf jSbQ== X-Gm-Message-State: AC+VfDybxEJq+NKgBklzVsqAsZrqqLkWBfM7rJBFYJvzRiBm6TDl3xfQ FDCl9GhFpuDO1WR7UShtjQvSeg== X-Received: by 2002:a5d:534d:0:b0:304:7bbf:7c1e with SMTP id t13-20020a5d534d000000b003047bbf7c1emr2822166wrv.4.1684469779096; Thu, 18 May 2023 21:16:19 -0700 (PDT) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id s2-20020a5d4ec2000000b0030647d1f34bsm3967241wrv.1.2023.05.18.21.16.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 May 2023 21:16:17 -0700 (PDT) Date: Fri, 19 May 2023 07:16:14 +0300 From: Dan Carpenter To: Sukrut Bellary Cc: Abel Vesa , Srinivas Kandagatla , Amol Maheshwari , Arnd Bergmann , Greg Kroah-Hartman , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Shuah Khan Subject: Re: [PATCH] misc: fastrpc: Fix double free of 'buf' in error path Message-ID: <28c6814d-1863-41fa-a471-35a3ccf4447c@kili.mountain> References: <20230518100829.515143-1-sukrut.bellary@linux.com> <9194ebdf-f335-4cd6-bf89-bb4f86a57784@kili.mountain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Thu, May 18, 2023 at 07:45:22PM -0700, Sukrut Bellary wrote: > > > > > > Reviewed-by: Shuah Khan > > > Signed-off-by: Sukrut Bellary > > > --- > > ^^^ > > Put testing caveats here instead, where it will be removed from the > > git log. > > > > Shall I add "This is based on static analysis only. Compilation tested" > here > or > is it not required to mention this for all the fixes? > Can you please recommend what's is the preferred method I need to follow? You can't go wrong with always adding it. The untested part is useful to know. Also it's good to know how a bug is found so we can say if it's affecting user and so we can improve our processes going forward. regards, dan carpenter