From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DD5F823D290 for ; Tue, 25 Nov 2025 16:11:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764087118; cv=none; b=oE8uKM/YQpNoeyYV68Pgqpg631SC7iUQJAfmUGism6CymMl0w4Nqjl2PDxcmqaj5Ml81Cg/ZL3lq4apWDsq1i2u2MiMohao1cJ1iogTiYAyJeALs44rinbbE1w6otgvvcfRvYBDXGKCIPuTy/9sJqKua9ee64wPImLbQUMh9/n0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764087118; c=relaxed/simple; bh=BuZrTAyq8hriBu1hSQ7Fw+Kj5Pru8BEFikgqu5lpwuo=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=H7MkPHsqSPrRrb4BhaeAfRU3XiHLQJsv3BZUBQOCFKaCmk30NN+Nu7bHADyPPxwKtJXPujgPX4SKzAtJKERkf3fpcjPkuEbbJt068eNpPcbgzP2QsSK9LHr9ifrhaEwQCH6fHl1/6M1OPET6VNQlBp+2YV5qaK6K/BG+9Bx4SZ0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Bwj3FjFX; arc=none smtp.client-ip=209.85.216.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Bwj3FjFX" Received: by mail-pj1-f45.google.com with SMTP id 98e67ed59e1d1-34585428e33so5663871a91.3 for ; Tue, 25 Nov 2025 08:11:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764087116; x=1764691916; darn=vger.kernel.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=BuZrTAyq8hriBu1hSQ7Fw+Kj5Pru8BEFikgqu5lpwuo=; b=Bwj3FjFXPs8a9wS4amr9YpCAspdsOrVG+yRJxZr2qr6loVDR6a3GJwV3TjG1K8ugjR vb5S+yxFAPW9Zvh0bJCcpUCMx5xrAICNUxgzAslfUCG8NtfxFr9nsLZOjTVIYCgGYgZo rflo4WKrMrdP8hxRbe1Zxu/c6+JkS5a2dcY/DXQePpvgEUIxNGObAKh3OzYb4SZRkHsj fmcQoA2cu7YcMftfOzTbsK/uPJzRYfI1r5V2nOApzvSWEnOmR6oVQ5vnx0Iqs37qvuGC /QjidajXjx81vY3bbI3KEsxuqnUS+NV4moyeLLXirYgr/FSVCHfJ6llaevGVx7cL19t5 XOfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764087116; x=1764691916; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=BuZrTAyq8hriBu1hSQ7Fw+Kj5Pru8BEFikgqu5lpwuo=; b=DZSlV7+PcHMPfjAmkElbyGOX2T2+h7yV4XrWIKAoraPjM4txEFzeIpN5FJT8iiSRUq UuBnwFEz9m1OKQsY+jxTB3pMax2SpXt4S0aPfSNC7b9nBYjJWfZ4jTlQ9xzDBM3OwNV3 Ch9aUsU9PFrX+aDJbgYRfjVpf3bN0U8r5ZVrven7yclGRHksw2AwsPavPLcc3dFiAsGX Mv0qtHDxoQ8okoK1Rz9tT3sYaIK4QuN/VHJR1m44YBj/BZ34WqmNh0zszP003JLw8cz4 WirCRUqnC7ldiTEWtLgBw7uZXVPJB0uyliekKYE79OWQPkVRbKMVM1J1xAyT9dkzVC5W L6vA== X-Forwarded-Encrypted: i=1; AJvYcCVGd3ufX2RZFJhJ1E3vxpZ6txdx69e6KQoQOkJrt1Ep0rkGama3Du7bsrSbFPazmphy5tVoZNs83jo=@vger.kernel.org X-Gm-Message-State: AOJu0YyQZok+HMOe1DlaNhai9hvVz+ceLX3x/TX+0XWN/fLwIBUqmk/3 JqzW0yKgOtClsL8NNKD2A7wmJDkYPqfz9WuoX9YTY1bCFRwlyLOy8un2 X-Gm-Gg: ASbGncuDCstzjwAkj6MnW2bCuurLf0Dr+8gFuNtOBv+j7lx0Oqfgodrc/W11kRP6A2e lSWz//2umFfQTcBcH4wzcNbXQuSAWZsgn8v2j+JWHclJPrIeQ42BYS3iId5FPJvKjJ7hWI/oJ0/ v/F39JxJP22+pJMzf47AF+8wuDm5Clfr1dvDQScBBSK6/hCRsjp2px2vQXrvtGdHaz8F58kEZ+3 GChDAvtb7fbWVsMy5E29qYhCfcP4VE9llxjdPE+0C4qnLmgv/b9sfl8sywB1SQGzFlADtfI4ttf JgMZwJTawAv8HjtSetF1rcsfKzOrxL7hTu/ZAroBnneRAvHSDJB+SRds7456/izeEmg4ZNepwON MiwnR3FzwHsiN79maa+6h3IUwqA08kOd2QQ+GBieXrmNxJ9dQ/YzZujFP5LADQiNNUh3au4FSdr l7k6ccc85XuDUBMfO+Lw/XODTB4TjSJZp83j0jJ0/IxDcHU7PKgRqedJ1S7Bi5MuZ3sg== X-Google-Smtp-Source: AGHT+IEWXlqC42ig+eSywfDNQtEHaCjz4s5p+M3v/+IuUcUyKtCw+yNJ/t4+Y0x5LwSh4SzxUB/PrQ== X-Received: by 2002:a17:90b:384f:b0:340:ac7c:6387 with SMTP id 98e67ed59e1d1-34733e2d4a5mr19048369a91.7.1764087116050; Tue, 25 Nov 2025 08:11:56 -0800 (PST) Received: from ?IPv6:2401:4900:8fce:eb65:99e9:53c:32e6:4996? ([2401:4900:8fce:eb65:99e9:53c:32e6:4996]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3475ff9fed2sm1369564a91.6.2025.11.25.08.11.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Nov 2025 08:11:55 -0800 (PST) Message-ID: <43f43063b81da41b693d5eb8178d5c55ebaaa168.camel@gmail.com> Subject: Re: [PATCH RESEND v6] checkpatch: add uninitialized pointer with __free attribute check From: ally heev To: Krzysztof Kozlowski , Dwaipayan Ray , Lukas Bulwahn , Joe Perches , Jonathan Corbet , Andy Whitcroft Cc: workflows@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Dan Carpenter , David Hunter , Shuah Khan , Viresh Kumar , Nishanth Menon , Stephen Boyd , linux-pm , dan.j.williams@intel.com, Geert Uytterhoeven , James Bottomley Date: Tue, 25 Nov 2025 21:41:47 +0530 In-Reply-To: <58393a1f-272b-41be-9ebd-ae03678cb738@kernel.org> References: <20251125-aheev-checkpatch-uninitialized-free-v6-1-70e8bb1e9175@gmail.com> <58393a1f-272b-41be-9ebd-ae03678cb738@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.2-0+deb13u1 Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Tue, 2025-11-25 at 16:09 +0100, Krzysztof Kozlowski wrote: > On 25/11/2025 14:32, Ally Heev wrote: > > uninitialized pointers with __free attribute can cause undefined > > behavior as the memory randomly assigned to the pointer is freed > > automatically when the pointer goes out of scope. > > add check in checkpatch to detect such issues. > >=20 > > Suggested-by: Dan Carpenter > > Link: https://lore.kernel.org/all/8a4c0b43-cf63-400d-b33d-d9c447b7e0b9@= suswa.mountain/ > > Link: https://lore.kernel.org/all/58fd478f408a34b578ee8d949c5c4b4da4d4f= 41d.camel@HansenPartnership.com/ > > Acked-by: Dan Williams > > Signed-off-by: Ally Heev >=20 >=20 >
> This is a friendly reminder during the review process. >=20 > It looks like you received a tag and forgot to add it. >=20 > If you do not know the process, here is a short explanation: > Please add Acked-by/Reviewed-by/Tested-by tags when posting new versions > of patchset, under or above your Signed-off-by tag, unless patch changed > significantly (e.g. new properties added to the DT bindings). Tag is > "received", when provided in a message replied to you on the mailing > list. Tools like b4 can help here. However, there's no need to repost > patches *only* to add the tags. The upstream maintainer will do that for > tags received on the version they apply. >=20 > Please read: > https://elixir.bootlin.com/linux/v6.12-rc3/source/Documentation/process/s= ubmitting-patches.rst#L577 >=20 > If a tag was not added on purpose, please state why and what changed. >
>=20 >=20 > Best regards, > Krzysztof Oopsie. I should have sent a new version instead of resending a failed one. I have updated the `UNINITIALIZED_PTR_WITH_FREE` error description in the checkpatch doc as outlined in v6 changelog, so, didn't add a Reviewed-by tag For some reason gmail blocked me from sending v6 to everyone in the patch except me. b4 thought it successfully sent the patch and incremented the version number. So, I had to resend it Thanks, Ally