Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1359962lqp; Mon, 15 Apr 2024 04:23:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWT/nT6Jqh5EWterjKs8XETtzc9bHxFYcdH2h+ga1Dpji5iBCYzo7FoTGvv7dRw+RaxIDicaKILLxmG8pCmcJhx5o/oZmIkcE3XwRmD2g== X-Google-Smtp-Source: AGHT+IGzle/+7hpXIdb0ZNtR+v6YNCR8wTGuVj9x2pxocXLH7p6vCb95AVbkiD/28u1v9g9iboCL X-Received: by 2002:a05:620a:3886:b0:78d:76f9:1790 with SMTP id qp6-20020a05620a388600b0078d76f91790mr10803686qkn.77.1713180220410; Mon, 15 Apr 2024 04:23:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713180220; cv=pass; d=google.com; s=arc-20160816; b=K4dPH8OX7YtiJ8CV13akTnvmcqtr5m64eMA42qZqNyQaNlj0Xh+QMBVz5Ondycglp4 +cbDTdexnRLkmaC3KzT01KNdsb5sA0zCRm2HvRQZ9elkORl6JUKTaAgTufc1CRymHBKw Xl4/7E+oqp6qQazbTL8UakQxOH1axXFSNRB64Dr7315gQrtVnE3vDPg1f8V43gHKgnQE W3TawzpPYOSiHlD7P43Ant05mr1y3CbWvj2aKmh+WUrTMhlFrcOxsMf3CXfO0dCufoa5 jkLb5Cj9ivCq6Ly/pn5KY7opeZnV2Q1sRyasB262kDZ8YSF1a2O1RwpDWet4ixbphowa /o1g== 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=CziQs7aMhj9OpqRoP90aag71n2YIwOeug3nO8I1cP8g=; fh=VzeClG5YsGCmp8MGzAVlE6qAJLgiS2KZfJ/Kz6dWke4=; b=XElg5kJcpyG2CtQi+LFGnERRU6yuryGLg7VA9H1G1OPfBVV8ZX4oZXAkKDKEadCjiP BPyohiFcEFmq6bQ98YbpeShYmXUhP8hn/LHWyzVOJ9V7W1j+NDMTBWCOcfAARNZN6upJ hfIeoD+tZ95FJTc61Mk3iLSO5RzVYUUPGXu3mAyexJk3X3Y5NVeMCzJtqBesdXwnBupx NGDDDcSVHViUM8yiNqkprfTQCs90IBpP0ErjUQDe7kDQQsMW/x2ONzu/6wkMC36bwBkY IDA4REmoQFthYUoyHqQtKjYZOWIN9xUdp6PTFdXs9TPy0qiSh3m4GKr4Fmf1/KCSnxj6 NDvA==; 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-144984-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144984-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. [147.75.199.223]) by mx.google.com with ESMTPS id l14-20020a37f50e000000b0078ede305e4dsi3658080qkk.167.2024.04.15.04.23.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 04:23:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-144984-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; 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-144984-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144984-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 27DBA1C22401 for ; Mon, 15 Apr 2024 11:23:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1A50F5FB98; Mon, 15 Apr 2024 11:23:26 +0000 (UTC) Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.85.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 E1B83657A3 for ; Mon, 15 Apr 2024 11:23:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.58.85.151 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713180205; cv=none; b=egzuErBBZ5YNER0u98hn/HOT6t3cHu1QKLA7aV5GiJh/rKXHUc1uqfc87K14CiyHWLPG+q8qTkXX8IIi/L4uRisF3JN7n8rAlKrpyKtopZYNVIU2qTUYzNqPM6S56o8LBLyXL7Ue/ipc3JpowQBbtHTxO4U3Jc7rgrcFka1qcoY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713180205; c=relaxed/simple; bh=CziQs7aMhj9OpqRoP90aag71n2YIwOeug3nO8I1cP8g=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: MIME-Version:Content-Type; b=D1g8uDZJXy4agd8PRuA2F7SyN/KO/pdu6NWAR6ck7Gky5+iVTUchhIopF6ExbT0W2LohDgTT6veAzdZ4gBbiRMsEbHTzZ5yHAccCuYS7xh9lA3/65UbVoRYyfGdGWVAJrEP8fxad4dswpDTRDtOrv5gMHYPGeJfQpKLblY2zQo0= 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.85.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-136-tjcp8qf9PhOVYCuOrOzRpw-1; Mon, 15 Apr 2024 12:23:17 +0100 X-MC-Unique: tjcp8qf9PhOVYCuOrOzRpw-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; Mon, 15 Apr 2024 12:22:41 +0100 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.048; Mon, 15 Apr 2024 12:22:41 +0100 From: David Laight To: 'Kees Cook' , Justin Stitt CC: Chandan Babu R , "Darrick J. Wong" , "linux-xfs@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-hardening@vger.kernel.org" Subject: RE: [PATCH] xfs: replace deprecated strncpy with strscpy_pad Thread-Topic: [PATCH] xfs: replace deprecated strncpy with strscpy_pad Thread-Index: AQHajCVvxad4w+xafUuF+MG1sYW+JbFpNItw Date: Mon, 15 Apr 2024 11:22:41 +0000 Message-ID: <1a75240d27bb4f2abe3cfae49b2f7605@AcuMS.aculab.com> References: <20240405-strncpy-xfs-split1-v1-1-3e3df465adb9@google.com> <202404090921.A203626A@keescook> <202404110829.D3A5A56@keescook> In-Reply-To: <202404110829.D3A5A56@keescook> 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 RnJvbTogS2VlcyBDb29rDQo+IFNlbnQ6IDExIEFwcmlsIDIwMjQgMTY6MzINCj4gDQo+IE9uIFdl ZCwgQXByIDEwLCAyMDI0IGF0IDAxOjQ1OjIxUE0gLTA3MDAsIEp1c3RpbiBTdGl0dCB3cm90ZToN Cj4gPiBPbiBUdWUsIEFwciA5LCAyMDI0IGF0IDk6MjLigK9BTSBLZWVzIENvb2sgPGtlZXNjb29r QGNocm9taXVtLm9yZz4gd3JvdGU6DQo+ID4gPiA+DQo+ID4gPiA+IC0gICAgIC8qIDEgbGFyZ2Vy IHRoYW4gc2JfZm5hbWUsIHNvIHRoaXMgZW5zdXJlcyBhIHRyYWlsaW5nIE5VTCBjaGFyICovDQo+ ID4gPiA+IC0gICAgIG1lbXNldChsYWJlbCwgMCwgc2l6ZW9mKGxhYmVsKSk7DQo+ID4gPiA+ICAg ICAgIHNwaW5fbG9jaygmbXAtPm1fc2JfbG9jayk7DQo+ID4gPiA+IC0gICAgIHN0cm5jcHkobGFi ZWwsIHNicC0+c2JfZm5hbWUsIFhGU0xBQkVMX01BWCk7DQo+ID4gPiA+ICsgICAgIHN0cnNjcHlf cGFkKGxhYmVsLCBzYnAtPnNiX2ZuYW1lKTsNCj4gPiA+DQo+ID4gPiBJcyBzYnAtPnNiX2ZuYW1l IGl0c2VsZiBOVUwtdGVybWluYXRlZD8gVGhpcyBsb29rcyBsaWtlIGFub3RoZXIgY2FzZSBvZg0K PiA+ID4gbmVlZGluZyB0aGUgbWVtdG9zdHIoKSBoZWxwZXI/DQo+ID4gPg0KPiA+DQo+ID4gSSBz ZW50IGEgcGF0Y2ggWzFdLg0KPiA+DQo+ID4gT2J2aW91c2x5IGl0IGRlcGVuZHMgb24geW91ciBp bXBsZW1lbnRhdGlvbi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