Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp629140rdb; Thu, 22 Feb 2024 14:30:59 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVB3iN7K+qMbg6YdI2TRFHqVREJvxUbdE7JuhoE6v9RcvJnzwqjCCNQTEBzWElEtTKNiALq6h9socmQavxG9HQHgng4tt3ipyYLIrhcIw== X-Google-Smtp-Source: AGHT+IFcoZ9fm7cnboewuhRLrdlm89jl62hBN27XhgiN5arzEan1w8qDT3aNhlvyb/geVBZCOQbr X-Received: by 2002:a0c:cd03:0:b0:68f:3295:245a with SMTP id b3-20020a0ccd03000000b0068f3295245amr479046qvm.4.1708641059330; Thu, 22 Feb 2024 14:30:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708641059; cv=pass; d=google.com; s=arc-20160816; b=ZJqSZzQU5ZcXEgyZYWLiFjnEQl8XqnL9Ks4k7OnfEStpwOTM1ffhwWbLG6Sx2K3Uvo VW4UPkb+Fy77m4VfL2PfdwBfXrTVqj+Q5L15LH3Gs6zNoNydpZULKxUdkeudMOYRlVX2 J8+dd1jDqLmNCaJ3LyrlghgGhN7vipYRNfIXek1IMUIRYKLQ7SM5iFSMASom3ZLwzwHr vMg1JVzuwde4Y9wF3tJgDCUrMcNCZulWxJd57zhVl7Y61eOYNFmD4L3dFi2Wj3U8rWGe SP81jurrKLi1MLgdc91YrVW1RAyeQYVtR169KrFZ7Cr25LQZFnOz+EEkhlnTUM7YzBRk GhsA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:cc:to:from; bh=9K2TkXTtpGHwF4trUhJe9FBOVST8II0WVSKn8XHMPHk=; fh=e9V1ywPlh+jl5eyK/JF8UvDmdr+81yvNmLTaM1HcKnk=; b=i74hOAVV2GWmw/6gA2Sq/vWlE8ZcGJZtEi0AeajOrGIkDhJTZ/hyhMg0LIDUfDXzS7 u6nbke+lFMoj+dX2J6HXAPTB9KVcMfNsQLsFvrtnwmnHZep2nksQxE4QhGiuZdc0ExhD l228K7ncNL+PVugYyZyHb7PxHMpMrM1S7VGIwzgEl2MM5ezYf8ptSg12XjidZ498XnjY 6pLTNET1Ati/KEFj2zZEzTcxd36cmJFl1IOWbpPk5leBldi4cO427NPCMgJMzd/8T8LN o/PsdBZHLwDicbSgDZFcG2Pphp3UHegQdTNWwvoSs9syjKvLLc66J2J0zL3VUlKKv2vi q5VQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=aculab.com dmarc=pass fromdomain=aculab.com); spf=pass (google.com: domain of linux-kernel+bounces-77465-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77465-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id fo10-20020ad45f0a000000b0068fcf25e0c0si909994qvb.407.2024.02.22.14.30.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 14:30:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77465-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=aculab.com dmarc=pass fromdomain=aculab.com); spf=pass (google.com: domain of linux-kernel+bounces-77465-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77465-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 149CE1C20D90 for ; Thu, 22 Feb 2024 22:30:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CBE7C17BC2; Thu, 22 Feb 2024 22:30:53 +0000 (UTC) Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.86.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A7BE1DDB0 for ; Thu, 22 Feb 2024 22:30:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.58.86.151 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708641053; cv=none; b=iQH7vgwvyFR+JMYce8g2LmsyV+SA5t2SwF4jQ1CCJ51/Fbbe+PCXlQoUO71SiCUFYcVyDD/nFuR7AbsJxaHjlTXZEDoT359ZmcvtzSgDmf1YYz4y4KfcWnLo5DVynXubstJ3SEBV7JXn2p03D6ICSmr+A4AW93pSCNrzXMviKhg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708641053; c=relaxed/simple; bh=9K2TkXTtpGHwF4trUhJe9FBOVST8II0WVSKn8XHMPHk=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: MIME-Version:Content-Type; b=BZodE53ZdY+x81XWdU+XkJYWKNBMOoFDgeMAIW5YPPuOA82otMbmC5PZ1l39iUnyEutC/OCA0j3bRxP96NygAcKFjAHr0HWS7NmRy6vJj0lIRklkGF6Wct5S4wU8bCb2WFxer1uZGJ17t0ySQfDBGub3ekiwDD7rzxCq4mo0Hew= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ACULAB.COM; spf=pass smtp.mailfrom=aculab.com; arc=none smtp.client-ip=185.58.86.151 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ACULAB.COM Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=aculab.com Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with both STARTTLS and AUTH (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-23-5HTgjfU-MUShVYi32w2fHw-1; Thu, 22 Feb 2024 22:30:47 +0000 X-MC-Unique: 5HTgjfU-MUShVYi32w2fHw-1 Received: from AcuMS.Aculab.com (10.202.163.4) by AcuMS.aculab.com (10.202.163.4) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Thu, 22 Feb 2024 22:30:46 +0000 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.048; Thu, 22 Feb 2024 22:30:46 +0000 From: David Laight To: 'Justin Stitt' , Andy Whitcroft , Joe Perches , Dwaipayan Ray , Lukas Bulwahn CC: "linux-kernel@vger.kernel.org" , Lee Jones , "linux-hardening@vger.kernel.org" , Kees Cook , "Finn Thain" Subject: RE: [PATCH v2] checkpatch: add check for snprintf to scnprintf Thread-Topic: [PATCH v2] checkpatch: add check for snprintf to scnprintf Thread-Index: AQHaZRMM8CNyJsqITEut/pZzq7c0N7EW8e/A Date: Thu, 22 Feb 2024 22:30:46 +0000 Message-ID: References: <20240221-snprintf-checkpatch-v2-1-9baeb59dae30@google.com> In-Reply-To: <20240221-snprintf-checkpatch-v2-1-9baeb59dae30@google.com> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 RnJvbTogSnVzdGluIFN0aXR0DQo+IFNlbnQ6IDIxIEZlYnJ1YXJ5IDIwMjQgMjI6MTINCj4gDQo+ IEkgYW0gZ29pbmcgdG8gcXVvdGUgTGVlIEpvbmVzIHdobyBoYXMgYmVlbiBkb2luZyBzb21lIHNu cHJpbnRmIC0+DQo+IHNjbnByaW50ZiByZWZhY3RvcmluZ3M6DQo+IA0KPiAiVGhlcmUgaXMgYSBn ZW5lcmFsIG1pc3VuZGVyc3RhbmRpbmcgYW1vbmdzdCBlbmdpbmVlcnMgdGhhdA0KPiB7dn1zbnBy aW50ZigpIHJldHVybnMgdGhlIGxlbmd0aCBvZiB0aGUgZGF0YSAqYWN0dWFsbHkqIGVuY29kZWQg aW50byB0aGUNCj4gZGVzdGluYXRpb24gYXJyYXkuICBIb3dldmVyLCBhcyBwZXIgdGhlIEM5OSBz dGFuZGFyZCB7dn1zbnByaW50ZigpDQo+IHJlYWxseSByZXR1cm5zIHRoZSBsZW5ndGggb2YgdGhl IGRhdGEgdGhhdCAqd291bGQgaGF2ZSBiZWVuKiB3cml0dGVuIGlmDQo+IHRoZXJlIHdlcmUgZW5v dWdoIHNwYWNlIGZvciBpdC4gIFRoaXMgbWlzdW5kZXJzdGFuZGluZyBoYXMgbGVkIHRvDQo+IGJ1 ZmZlci1vdmVycnVucyBpbiB0aGUgcGFzdC4gIEl0J3MgZ2VuZXJhbGx5IGNvbnNpZGVyZWQgc2Fm ZXIgdG8gdXNlIHRoZQ0KPiB7dn1zY25wcmludGYoKSB2YXJpYW50cyBpbiB0aGVpciBwbGFjZSAo b3IgZXZlbiBzcHJpbnRmKCkgaW4gc2ltcGxlDQo+IGNhc2VzKS4gIFNvIGxldCdzIGRvIHRoYXQu Ig0KDQpXaGl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