Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1129327rwb; Tue, 27 Sep 2022 08:47:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5P2JQ4P6ND3txPscZErLBjZ9j+6MalLavpLToSJbTJ0ivuXJTas97ampyMilhqgT1/EGIH X-Received: by 2002:a17:90a:8046:b0:205:de11:4867 with SMTP id e6-20020a17090a804600b00205de114867mr3194059pjw.198.1664293646970; Tue, 27 Sep 2022 08:47:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664293646; cv=none; d=google.com; s=arc-20160816; b=liFEzn41Spa33Ol6Sn+kO7fuGGme0S1HU2b7u/GbgvSR94/eXA73UyCyo2JXq6Qqu4 z0D4wcze1t8bYP+ep+d/DK4cwTIyeGf12TW+a1WN5rtOgTtRvMWpsZZoZysSKRawfCzj SBxb5qioxCNRGv6Qh0mIo3jFdoEH4/9gMT/mW0r6i8WYQBiHD7vRsLG7tAsnrwaFTaUh HMiX3PI1TYLH5LA0wK6KuxMcvMQSO2KsyUScoiz5TmGB5K/kTnojc8BijODXJCwRqSci Ty2TKc8ePdMxzW5T2VTCz/FRK94WSEwWFker8T0A9zlZHf/GYDSZRqzne8j1nwZZ2H/p xgFA== 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=VrZh9m58PWood5PMlL5O1s0ykGyB3vBTBmoN+U1k+Gk=; b=qFvbtUZZD8ECDLEACnP4ODB/nthW5xIzuZU9eFtyiwszJgHf1zlaaVGr3ugNKDZVsd Z/DDp3nnl3utsDAihMck6F6HV7DhPALCClxx+EchPAK4KSS8jZPg+5+E35lhGf83YSyU OL7Cj1GAFxQIecmTnSnO5NDoOCQisak1kRmNnYr+RJWzPsvAQqy7uNdraxOojvtBnfJg cEFgUIYTu0G0BYKVIQiZkLVbmkAdXlxE4J/bJDS21sPAK1BR9P27wdoMag1vtfneiuQw cllZ2o3w5+L8cLn03/XjG1q7lVIC6cuOVwzm+VFf+bvAO5GnaB7NAlad9mGHtL0l+Ua3 I4mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=d5MdXlSL; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z18-20020aa791d2000000b005411ea1e33esi2324536pfa.71.2022.09.27.08.47.14; Tue, 27 Sep 2022 08:47:26 -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=@linuxfoundation.org header.s=korg header.b=d5MdXlSL; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231838AbiI0PD2 (ORCPT + 99 others); Tue, 27 Sep 2022 11:03:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231317AbiI0PDY (ORCPT ); Tue, 27 Sep 2022 11:03:24 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D926E5102; Tue, 27 Sep 2022 08:03:21 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8865A619E8; Tue, 27 Sep 2022 15:03:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6DB9FC433D6; Tue, 27 Sep 2022 15:03:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1664291000; bh=TjcSzBBanTXK9bISi1tMaoT2eQOdPKXGFS9vAez03hw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=d5MdXlSLnohNkvwbt8HvoMYnsDggYtGIUy/LZqZPtE/McheiG102UQga24y6t+ghk TljYJTQJrRHlsAjUh64ai/leI345kroHUhkJyBMV8hoR1FhSzMlce4GzFrvu8heRBV Y30omur2J5ercolZSe+TGlTQPkB3feoQk5j/C2AM= Date: Tue, 27 Sep 2022 17:03:17 +0200 From: Greg Kroah-Hartman To: Miguel Ojeda Cc: Linus Torvalds , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, patches@lists.linux.dev, Jarkko Sakkinen , Kees Cook , Alex Gaynor , Wedson Almeida Filho , Joe Perches , Andy Whitcroft , Dwaipayan Ray , Lukas Bulwahn Subject: Re: [PATCH v10 15/27] scripts: checkpatch: diagnose uses of `%pA` in the C side as errors Message-ID: References: <20220927131518.30000-1-ojeda@kernel.org> <20220927131518.30000-16-ojeda@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220927131518.30000-16-ojeda@kernel.org> X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Tue, Sep 27, 2022 at 03:14:46PM +0200, Miguel Ojeda wrote: > The `%pA` format specifier is only intended to be used from Rust. > > `checkpatch.pl` already gives a warning for invalid specificers: > > WARNING: Invalid vsprintf pointer extension '%pA' > > This makes it an error and introduces an explanatory message: > > ERROR: Invalid vsprintf pointer extension '%pA' - '%pA' is only intended to be used from Rust code > > Suggested-by: Kees Cook > Co-developed-by: Alex Gaynor > Signed-off-by: Alex Gaynor > Co-developed-by: Wedson Almeida Filho > Signed-off-by: Wedson Almeida Filho > Co-developed-by: Joe Perches > Signed-off-by: Joe Perches > Signed-off-by: Miguel Ojeda > --- > scripts/checkpatch.pl | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) Reviewed-by: Greg Kroah-Hartman