Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp275447rdb; Mon, 29 Jan 2024 01:40:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IF8YoADck6KNWfwzGNzh60roN5B6L7GYy3lLDiGFaECXEILHw+fOoUPuoj3wkbbMUfIM30Q X-Received: by 2002:a05:6a20:9195:b0:199:29c4:b4b2 with SMTP id v21-20020a056a20919500b0019929c4b4b2mr7230338pzd.29.1706521208284; Mon, 29 Jan 2024 01:40:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706521208; cv=pass; d=google.com; s=arc-20160816; b=MUTIaeFgcbkh3PkzgXMRQ8s05qcHFtdlQsNOu9RnyVDrEKXIAu9nKpDA38qX9KRxb3 B31Q+T/F77eXgBWZQJkg/fIyJG7Tn1xAJKZ+5Nx8NJQ7awdAy9mRwnqtclSH2ta22XB8 FIe3Ews3UY3xymvowLXBD0shEJkF4WHGJIbD3gQdSlq1ymtZD+8PH3LqJUMKpuSdRnPs XaDCyJQdEOHi36cfh0Lmk1pMan2l/AVO+Lx1oksi35b0BPRBqarLX0Pto2vbD7AuaX4a YHD5UkozNLWHwXdo+s8RAfCS8zu0jeX5LEu4ClcZ8kQRUngS2YS+KUDW59MWnXgjUoMA UbqQ== 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=xaq6GMMiSWKpV3vfwhO/Qauwj30MaFSJQmTvX2vGZKs=; fh=KE3UP6sVfXmqmRzIdM+QbACuXSj6QxhYMBexuQnjomI=; b=aXGql/Wh14MLhdLqoz/WZgp3LKTd7XMdqnO/SP9AXfoeQBPwHuKPIy/M1pcXi+LJyi 0yApLRLj8IslUTfsHncXtIPsrfAGdSLLb+ASDyjox0aQazFzQ11A6NBlFXYj++F85Puo PoId9bhpygjjaQI0wakR7gFaLdIDQLEDgWqtRqf4emrpxnvEC2RVAY9IUQOl8QidQS9W 3XYaahDVP61CedhAw42bPcApx0wE/SaHxzIbTCLaLSakVgSUya5Oq8ryAItHLZSplNKr t7Gailf8CCmYuFjB4uK9XfnSs97s4vFZ/BcEBQZC3p/Jwlmdi396h02NqGD7yl0bBpuF Kozg== 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-42481-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42481-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id s12-20020a63770c000000b005d5ac1f8a41si3727252pgc.632.2024.01.29.01.40.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 01:40:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-42481-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::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-42481-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42481-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id CBAC5284A03 for ; Mon, 29 Jan 2024 09:40:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 202FB55784; Mon, 29 Jan 2024 09:40:00 +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 DD89A55E4B for ; Mon, 29 Jan 2024 09:39:57 +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=1706521199; cv=none; b=cow9kCPnKL7QHdrBfic/xbFSK0sZUsIihUJIjho7fAMm/7mmlrjry3qj9g1BQ317G4+ZuDpqz2jYU3oj9y2t10w1agHc5z/Kb7zdd4xJpAN3zst97fF3NaHJ5WiR1p3/FBjIToWNZ3+Ez6czqiGaK6EtzZNbmtRu8lcHJErqiEQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706521199; c=relaxed/simple; bh=xaq6GMMiSWKpV3vfwhO/Qauwj30MaFSJQmTvX2vGZKs=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: MIME-Version:Content-Type; b=kLug6Mg09pE5lz2DeWhHCrJEStBRfNuNzqTw6XFzr5mT+U8SJNE7BIBDij3R1YqPs0Nl2h4r4jtEhD8ppUGjUlyVjEPjv8jyVQiAFeJlLfFsAlj0wqHJlAgp0JyCDasyuxsI3byPLXuiO5jui5jqKVbemiM4zdP++XkN7ruLdn0= 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-55-ICbmqgjGPH61LlJx9jyMGA-1; Mon, 29 Jan 2024 09:39:55 +0000 X-MC-Unique: ICbmqgjGPH61LlJx9jyMGA-1 Received: from AcuMS.Aculab.com (10.202.163.6) by AcuMS.aculab.com (10.202.163.6) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Mon, 29 Jan 2024 09:39:28 +0000 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.048; Mon, 29 Jan 2024 09:39:28 +0000 From: David Laight To: 'Lee Jones' CC: Rasmus Villemoes , "linux-kernel@vger.kernel.org" , "linux-hardening@vger.kernel.org" , "Andrew Morton" , Petr Mladek , "Steven Rostedt" , Andy Shevchenko , Sergey Senozhatsky , Crutcher Dunnavant , Juergen Quade Subject: RE: [PATCH 1/1] lib/vsprintf: Implement ssprintf() to catch truncated strings Thread-Topic: [PATCH 1/1] lib/vsprintf: Implement ssprintf() to catch truncated strings Thread-Index: AQHaT3pqpS+sRHqV5U2M6pwWmFnMHbDtupAwgALQcwCAAAFuYA== Date: Mon, 29 Jan 2024 09:39:28 +0000 Message-ID: <7054dcbfb7214665afedaea93ce4dbad@AcuMS.aculab.com> References: <20240125083921.1312709-1-lee@kernel.org> <20240125103624.GC74950@google.com> <54e518b6dd9647c1add38b706eccbb4b@AcuMS.aculab.com> <20240129092440.GA1708181@google.com> In-Reply-To: <20240129092440.GA1708181@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 Li4uDQo+ID4gSSdtIHN1cmUgdGhhdCB0aGUgc2FmZXN0IHJldHVybiBmb3IgJ3RydW5jYXRlZCcg aXMgdGhlIGJ1ZmZlciBsZW5ndGguDQo+ID4gVGhlIGEgc2VyaWVzIG9mIHN0YXRlbWVudHMgbGlr ZToNCj4gPiAJYnVmICs9IHh4eChidWYsIGJ1Zl9lbmQgLSBidWYsIC4uLi4uKTsNCj4gPiBjYW4g YWxsIGJlIGNhbGxlZCB3aXRoIGEgc2luZ2xlIG92ZXJmbG93IGNoZWNrIGF0IHRoZSBlbmQuDQo+ ID4NCj4gPiBGb3JnZXQgdGhlIGNoZWNrLCBhbmQgdGhlIGxlbmd0aCBqdXN0IGNvbnRhaW5zIGEg dHJhaWxpbmcgJ1wwJw0KPiA+IHdoaWNoIG1pZ2h0IGNhdXNlIGNvbmZ1c2lvbiBidXQgaXNuJ3Qg Z29pbmcgdG8gaW1tZWRpYXRlbHkNCj4gPiBicmVhayB0aGUgd29ybGQuDQo+IA0KPiBzbnByaW50 ZigpIGRvZXMgdGhpcyBhbmQgaGFzIGJlZW4gcHJvdmVuIHRvIGNhdXNlIGJ1ZmZlci1vdmVyZmxv d3MuDQo+IFRoZXJlIGhhdmUgYmVlbiBtdWx0aXBsZSBhcnRpY2xlcyBhdXRob3JlZCBkZXNjcmli aW5nIHdoeSB1c2luZw0KPiBzbnByaW50ZigpIGlzIG5vdCBnZW5lcmFsbHkgYSBnb29kIGlkZWEg Zm9yIHRoZSBtYXNzZXMgaW5jbHVkaW5nIHRoZSAyDQo+IGxpbmtlZCBpbiB0aGUgY29tbWl0IG1l c3NhZ2U6DQoNCnNucHJpbnRmKCkgcmV0dXJucyB0aGUgbnVtYmVyIG9mIGJ5dGVzIHRoYXQgd291 bGQgaGF2ZS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