Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2737281iog; Mon, 27 Jun 2022 01:39:49 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s1LKuM2fjmJfC3GNP57DfmW4sn9VHcC4E1mUdUD/GdtfdXzNdwBT0pJbyaZiMsTb/lnkPZ X-Received: by 2002:a63:8541:0:b0:40d:c8d4:b7a0 with SMTP id u62-20020a638541000000b0040dc8d4b7a0mr8560031pgd.60.1656319189134; Mon, 27 Jun 2022 01:39:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656319189; cv=none; d=google.com; s=arc-20160816; b=AQnE1GMrrj7BZCSY6oSe+IY0O5/fKlu/3YVVoq0IUEymySOt5Za2IQ609MmGm9CK7V VO4nhKEG4HBxwUVF94heXxF4SsFW8nhOtCRUPo6JFNA739dqkdCe9l0oE1duZiReUY0+ QTD5KbgUZylCtcFGg8PrSNbijf1F5HSmtpYn/DzW1ne+AnzvSZIo2W2V0SKQo3qQR4IF 2mNkc1KFJBeqb2m3ng4NYa1Ug6k1Ml8Q9V3LVVQgyraCtiPswH4NlcBXdGt6FqGKTKe0 JMDq29U9a641OscxqSAX0r81dugCGeAUPLHD+LuD9H/LrF3EDiu0qqx/BZC0BWZb6CjH 5HwQ== 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=H47eYE8Bks4HrEauCwSp1UVvAKMeAQPtIojpRZB6Wfo=; b=LjrtTR5cNS83XJF8y8qVhk3dboadGksFTIQuJSie0qi+cTHs7yqymDHM+PJQ8foHaG H6E01xa2QygKfbvpU8Yn8gJ0RdNPBlzPYrBJ27ir792mQWMCDC6Klj634gvhOxgU80/E Jp5NsYgFK+UoVnVJk9vOf0JH6p+RbF1/p1/0Q2FlnQr/wFQjyP6UxQaF07bZ4DURaAAT 8eLIVcaXRyin82yWNJgXFbbTkWOYR//bn60k6M6LlYffgGjsTsoOyH6IUK2GacZFzMyq pSf8Xj9XylmBJX4SOUrCJt10zmd/edWwG0MCf8BUVgHcIRIQIrOMT74sxcDa69YY1hDX jzNw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i8-20020a17090332c800b0015d168a0c7fsi16739709plr.94.2022.06.27.01.39.37; Mon, 27 Jun 2022 01:39:49 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233510AbiF0IZg (ORCPT + 99 others); Mon, 27 Jun 2022 04:25:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233445AbiF0IZc (ORCPT ); Mon, 27 Jun 2022 04:25:32 -0400 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.85.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 73A696178 for ; Mon, 27 Jun 2022 01:25:30 -0700 (PDT) Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-54-1jANicmsPmWfA7kUguPDXg-1; Mon, 27 Jun 2022 09:25:27 +0100 X-MC-Unique: 1jANicmsPmWfA7kUguPDXg-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.36; Mon, 27 Jun 2022 09:25:26 +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.036; Mon, 27 Jun 2022 09:25:26 +0100 From: David Laight To: 'Linus Torvalds' , Joe Perches CC: Andrew Morton , Petr Mladek , Steven Rostedt , Sergey Senozhatsky , Rasmus Villemoes , Matthew Wilcox , Miguel Ojeda , "Kent Overstreet" , Andy Shevchenko , LKML , linux-mm Subject: RE: [RFC[ Alloc in vsprintf Thread-Topic: [RFC[ Alloc in vsprintf Thread-Index: AQHYiZoSZNRPYrXujUmM6V+Dm+02461i46rg Date: Mon, 27 Jun 2022 08:25:26 +0000 Message-ID: References: <20220620004233.3805-1-kent.overstreet@gmail.com> <0a5901f8460f452a89c9b0cda32fb833@AcuMS.aculab.com> <20220620150514.3tjy5dv7pv5frcwd@moria.home.lan> <53d77ae6101a0f24cfb694174d4c7699424c57e8.camel@perches.com> <20220621005752.ohiq5besmy3r5rjo@moria.home.lan> <355e912490dbaef8fe4e12df0201c3f5b439565d.camel@perches.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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 RnJvbTogTGludXMgVG9ydmFsZHMNCj4gU2VudDogMjYgSnVuZSAyMDIyIDIxOjE5DQouLg0KPiBU aGF0IGRvZXMgcmVxdWlyZSB0ZWFjaGluZyB0aGUgc3ByaW50X3N5bWJvbCgpIGZ1bmN0aW9ucyB0 aGF0IHRoZXkNCj4gbmVlZCB0byB0YWtlIGEgImxlbmd0aCBvZiBidWZmZXIiIGFuZCByZXR1cm4g aG93IG11Y2ggdGhleSB1c2VkLCBidXQNCj4gdGhhdCB3b3VsZCBzZWVtIHRvIGJlIGEgc2Vuc2li bGUgdGhpbmcgYW55d2F5LCBhbmQgd2hhdCB0aGUgY29kZQ0KPiBzaG91bGQgYWx3YXlzIGhhdmUg ZG9uZT8NCg0KSXQgbmVlZHMgdG8gcmV0dXJuIHRoZSAnbGVuZ3RoIGl0IHdvdWxkIGhhdmUgdXNl ZCcuDQpXaGlsZSBvY2Nhc2lvbmFsbHkgdXNlZnVsIEknbSBwcmV0dHkgc3VyZSB0aGlzIGlzIGFj dHVhbGx5DQphIHNpZGUgZWZmZWN0IG9mIHRoZSB3YXMgdGhhdCBsaWJjIHNucHJpbnRmKCkgd2Fz IG9yaWdpbmFsbHkNCmltcGxlbWVudGVkIChzcHJpbnRmKCkgaGFkIGFuIG9uLXN0YWNrIEZJTEUp Lg0KDQpJbiBhbnkgY2FzZSBpdCBtaWdodCBiZSBzaW1wbGVzdCB0byBwYXNzIGFsbCB0aGVzZSBm dW5jdGlvbnMNCnRoZSB3cml0ZSBwb2ludGVyIGFuZCBidWZmZXIgbGltaXQgYW5kIGhhdmUgdGhl bSByZ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