Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2662180iog; Mon, 20 Jun 2022 01:48:11 -0700 (PDT) X-Google-Smtp-Source: AGRyM1unJ/uBqY/dy6wHyO1o3uIQBtsaFmWzqitW8hWSL9XQE1MeOxty3MzL+wPc40WdA4q7nS8H X-Received: by 2002:a17:902:e80b:b0:168:b645:849e with SMTP id u11-20020a170902e80b00b00168b645849emr22634296plg.26.1655714891079; Mon, 20 Jun 2022 01:48:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655714891; cv=none; d=google.com; s=arc-20160816; b=UwnB4AvwmK7lVaCm9QZsWF/pNDTSRiThPD6e38AtAWMCxvlLjomjRhIucAvjSfGkaN ruc/LHxEjEWPPjZUdfk8x4WPEJu4bEkXmzZbmFQ0AAYytYa8J3raSLkXJusnD8MPPZ0m VlxGcsg3GE2ukSXKALY1ZWVj2s3SbRAhntatN6tJIyoJX3F6kdH+PNI+WphO2V6E8qFK P4xj/AF2aEJA6pCe9143yB87TZeibx14qbBuGmvJW2/8cH/DphXHB0g7E/n9afM7Um3L SEWwjz5iZqqa9+MSIldwABXgMveGIT/dAzHWYvqugQEwLh91jKj1Y27n/+r44lJE2riT uvAA== 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=WqOxFpaZ4zpGgiHsmC0qLzuVE5fQHwG3pmKsw2HgFVc=; b=jtyDhWamq+6yK/rWB4pJms5aaxiTLlyzcN1CWxCNmfCyS8eKixZydmJGgTwosIw6zg IQgYMn9b6ylIETSr0DqVICrBv0XfaprehGDgfebBK0uaUGHPr5UaehgjIR3joU9lPps2 rRU8/mrSSLc1jNLsAJ68prTPKYK76WWBGyG/Ne577PAL800iDTEdzUifjUWF4eBu8M4l Zeezf84Mb5PwcJ67zwfHdVeg1cjDL/GdzUYz5n1OQGlfP0Fy1bQugRwmMjEtWbEwK8xv Q1bfLntCUABoacgCHNB2IKDKlHB2qk9LgcRkGEPdviFrrgMM707HEePYoEct/inU5+nC U02Q== 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 h184-20020a636cc1000000b0040cac3380d6si3830647pgc.683.2022.06.20.01.47.56; Mon, 20 Jun 2022 01:48:11 -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 S239668AbiFTIA6 convert rfc822-to-8bit (ORCPT + 99 others); Mon, 20 Jun 2022 04:00:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238799AbiFTIA5 (ORCPT ); Mon, 20 Jun 2022 04:00:57 -0400 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.86.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3AA5F10FFC for ; Mon, 20 Jun 2022 01:00:55 -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-403-45IbctrUOuGrwcXUsijd8g-1; Mon, 20 Jun 2022 09:00:53 +0100 X-MC-Unique: 45IbctrUOuGrwcXUsijd8g-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, 20 Jun 2022 09:00:50 +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, 20 Jun 2022 09:00:50 +0100 From: David Laight To: 'Matthew Wilcox' CC: 'Kent Overstreet' , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , "pmladek@suse.com" , "rostedt@goodmis.org" , "enozhatsky@chromium.org" , "linux@rasmusvillemoes.dk" Subject: RE: [PATCH v4 00/34] Printbufs - new data structure for building strings Thread-Topic: [PATCH v4 00/34] Printbufs - new data structure for building strings Thread-Index: AQHYhD6oUJ9HZdIC7US1XHhH4yp3Qa1XsEIg///6OQCAAEQQIA== Date: Mon, 20 Jun 2022 08:00:50 +0000 Message-ID: <576df7d75e3745cbacd3d265349d1a4a@AcuMS.aculab.com> References: <20220620004233.3805-1-kent.overstreet@gmail.com> <0a5901f8460f452a89c9b0cda32fb833@AcuMS.aculab.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: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 From: Matthew Wilcox > Sent: 20 June 2022 05:55 > > On Mon, Jun 20, 2022 at 04:19:31AM +0000, David Laight wrote: > > I really think that is a bad idea. > > printk() already uses a lot of stack, anything doing a recursive > > call is just making that worse. > > Especially since these calls can often be in error paths > > which are not often tested and can already be on deep stacks. > > You made this complaint last time and I challenged you to provide data. > You have not, as yet, provided data. There is already an issue with printk() needing 2k of stack and 'blowing' the stack in the stack overflow check. This is with KASAN, but that that probably doesn't make a massive difference - especially since it has more stack to play with. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)