Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5048215pxv; Wed, 28 Jul 2021 01:38:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzidL3oOuXvaD1vAmKEugGI51sCadFM9PB9xCPvYcHUAi7qJOOElc5dRGSqpFFJQ3O4jWi7 X-Received: by 2002:a5d:84d2:: with SMTP id z18mr22874945ior.130.1627461508688; Wed, 28 Jul 2021 01:38:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627461508; cv=none; d=google.com; s=arc-20160816; b=F0nmleBteV/kfNYEQCXhOFkoU2YYvcrSLhhzHZTPOKalwCu2sXc/jZ8d4N9Dt7kD6/ aRDCDG+f1HFrt917httORC+ePgHTNMzQluxN7pFHh+qSk5+G5NWJtztmBs7amUPX8PI/ XUea9KYnsdz8QBy+uoSlYvPRX6fT8eV5fa+MnRigwCUgwYjWz7cB+xfA5lkLYr1HHmbK lgFwnIrz54gV/GeiMpCB7Uwkslsr3aT9aPiudscFXtfmRANDjytX3UaJGBA1PhhBrxRQ MfgMX5dzYb2TuIjSnpoCjxkb4l8TYTxXBscqN+sAAe55l7xPsPpHUWbXtxeJl82DIhTb fhhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=fXVYhH9jchW4AzocWcvwbb9wcb0tq6byQ8YhnMW0hLU=; b=Zta0Xb7FYEckPJFuBgD98VeNBK+5RsJy9za3EOMv0dwVAlJSwku0rCDlx8QXaifPC/ wBlBLbJD6/xqYlaRrNPsjIzU/F7k82GbgdrbJtSP6RqgG0FdzBBFArDdqEdvhVtMTmnz gK2tW8HbTReYkwsRmSPBfir5cCDdtAwPFdawc05F19KHaS0e4ib85Imvp2X/LOBzb1Dg tpOjOu4UqaPYiZUBJsOvCdSTdYjrvFt5aabop4LuReGfe/HhxH+52XvsxJbwAIk9OQ8U pzdCDQrU4ky22klHkQQAMvbB3hEg/CZ8slPNSVcESDS9Fm8gpPYNvqnH8IBscVoFd+uF rKYg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r8si5908797jar.122.2021.07.28.01.38.17; Wed, 28 Jul 2021 01:38:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234963AbhG1Igu (ORCPT + 99 others); Wed, 28 Jul 2021 04:36:50 -0400 Received: from eu-smtp-delivery-151.mimecast.com ([185.58.86.151]:35876 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230501AbhG1Igu (ORCPT ); Wed, 28 Jul 2021 04:36:50 -0400 Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) (Using TLS) by relay.mimecast.com with ESMTP id uk-mta-175-gJF64QSnPY6TlszXg-ZCaA-1; Wed, 28 Jul 2021 09:36:46 +0100 X-MC-Unique: gJF64QSnPY6TlszXg-ZCaA-1 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) by AcuMS.aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Wed, 28 Jul 2021 09:36:44 +0100 Received: from AcuMS.Aculab.com ([fe80::994c:f5c2:35d6:9b65]) by AcuMS.aculab.com ([fe80::994c:f5c2:35d6:9b65%12]) with mapi id 15.00.1497.023; Wed, 28 Jul 2021 09:36:44 +0100 From: David Laight To: 'Geert Uytterhoeven' , Len Baker CC: Kees Cook , Andy Gross , "Bjorn Andersson" , Magnus Damm , Santosh Shilimkar , "linux-hardening@vger.kernel.org" , linux-arm-msm , Linux Kernel Mailing List , Linux-Renesas , Linux ARM Subject: RE: [PATCH] drivers/soc: Remove all strcpy() uses in favor of strscpy() Thread-Topic: [PATCH] drivers/soc: Remove all strcpy() uses in favor of strscpy() Thread-Index: AQHXgfS6PeASd7OmzkqPc7xYqoccEatYEvhA Date: Wed, 28 Jul 2021 08:36:44 +0000 Message-ID: <80f4574c9f6c4c6780735b0fffd83363@AcuMS.aculab.com> References: <20210725151434.7122-1-len.baker@gmx.com> In-Reply-To: Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=C51A453 smtp.mailfrom=david.laight@aculab.com 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogR2VlcnQgVXl0dGVyaG9ldmVuDQo+IFNlbnQ6IDI2IEp1bHkgMjAyMSAwOTowMw0KPiAN Cj4gSGkgTGVuLA0KPiANCj4gT24gU3VuLCBKdWwgMjUsIDIwMjEgYXQgNToxNSBQTSBMZW4gQmFr ZXIgPGxlbi5iYWtlckBnbXguY29tPiB3cm90ZToNCj4gPiBzdHJjcHkoKSBwZXJmb3JtcyBubyBi b3VuZHMgY2hlY2tpbmcgb24gdGhlIGRlc3RpbmF0aW9uIGJ1ZmZlci4gVGhpcw0KPi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W1fYXJlYXM7IGkrKykg ew0KPiA+ICAgICAgICAgICAgICAgICBjb25zdCBzdHJ1Y3QgcjhhNzc5YTBfc3lzY19hcmVhICph cmVhID0gJmluZm8tPmFyZWFzW2ldOw0KPiA+ICAgICAgICAgICAgICAgICBzdHJ1Y3QgcjhhNzc5 YTBfc3lzY19wZCAqcGQ7DQo+ID4gKyAgICAgICAgICAgICAgIHNpemVfdCBhcmVhX25hbWVfc2l6 ZTsNCj4gDQo+IEkgd291bGRuJ3QgbWluZCBhIHNob3J0ZXIgbmFtZSwgbGlrZSAibiIuDQo+IA0K PiA+DQo+ID4gICAgICAgICAgICAgICAgIGlmICghYXJlYS0+bmFtZSkgew0KPiA+ICAgICAgICAg ICAgICAgICAgICAgICAgIC8qIFNraXAgTlVMTGlmaWVkIGFyZWEgKi8NCj4gPiAgICAgICAgICAg ICAgICAgICAgICAgICBjb250aW51ZTsNCj4gPiAgICAgICAgICAgICAgICAgfQ0KPiA+DQo+ID4g LSAgICAgICAgICAgICAgIHBkID0ga3phbGxvYyhzaXplb2YoKnBkKSArIHN0cmxlbihhcmVhLT5u YW1lKSArIDEsIEdGUF9LRVJORUwpOw0KPiA+ICsgICAgICAgICAgICAgICBhcmVhX25hbWVfc2l6 ZSA9IHN0cmxlbihhcmVhLT5uYW1lKSArIDE7DQo+ID4gKyAgICAgICAgICAgICAgIHBkID0ga3ph bGxvYyhzaXplb2YoKnBkKSArIGFyZWFfbmFtZV9zaXplLCBHRlBfS0VSTkVMKTsNCj4gPiAgICAg ICAgICAgICAgICAgaWYgKCFwZCkgew0KPiA+ICAgICAgICAgICAgICAgICAgICAgICAgIGVycm9y ID0gLUVOT01FTTsNCj4gPiAgICAgICAgICAgICAgICAgICAgICAgICBnb3RvIG91dF9wdXQ7DQo+ ID4gICAgICAgICAgICAgICAgIH0NCj4gPg0KPiA+IC0gICAgICAgICAgICAgICBzdHJjcHkocGQt Pm5hbWUsIGFyZWEtPm5hbWUpOw0KPiA+ICsgICAgICAgICAgICAgICBzdHJzY3B5KHBkLT5uYW1l LCBhcmVhLT5uYW1lLCBhcmVhX25hbWVfc2l6ZSk7DQoNCllvdSBjYW4ganVzdCB1c2UgbWVtY3B5 KCkuDQoNCglEYXZpZA0KDQotDQpSZWdpc3RlcmVkIEFkZHJlc3MgTGFrZXNpZGUsIEJyYW1sZXkg Um9hZCwgTW91bnQgRmFybSwgTWlsdG9uIEtleW5lcywgTUsxIDFQVCwgVUsNClJlZ2lzdHJhdGlv biBObzogMTM5NzM4NiAoV2FsZXMpDQo=