Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2361983iog; Sun, 26 Jun 2022 13:50:56 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tpG3sBZiL+80xmNAzVsGn+NKmGoPXJ7K3DDR4qzlYRjap3521T55rwgWIVtgSi3YwAiZzN X-Received: by 2002:a17:907:7f8d:b0:711:d8db:2714 with SMTP id qk13-20020a1709077f8d00b00711d8db2714mr9778986ejc.63.1656276655975; Sun, 26 Jun 2022 13:50:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656276655; cv=none; d=google.com; s=arc-20160816; b=ZhgimPYVsb3I7PI8a31mgDnY6oD9fgjESkYqZHpj6AWwCFt2FCxSoAq8zBtRbILZlY yPnaIckuhMW83mm2Mt82qcIO8zAGlUJUq1+rWTcj8LbHGLJYyFKYqUT8UXidoebRk+jg RxSsL199vfSA5+4oYBv2Phin3DyA90nRur39yBZJNAsqOlPaf4oERmIrYbU/cAhix3sn lneA1DDj7u0iAUm3G7g5sVhQ+NdMGlE6hIZ+CUp00C2HazPjTyoMnzEEfch/fbuWSCkh ffEG+YQMz0bHW2gZvn7ZWnTbf94Y/9UhcZ+y/tc4szo/hKFVrzhSJ++LlwPJA5Jj/ews ArCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ZgLetThySYV51Aytz6mh0N038I4xXTGk9aBFCM9zRec=; b=wERKON+Xof+Qxq+qwSIL7w6mVjBJts0S/TJYWt904h+FoMmT3bW1earUU6e/ife/Na ljRKi27wO6s4K5QgfSG62acDo1bJ7e8JwjDoQ4zN2RYhRBRriF4/NkGUxZKPhdqIYzDF KjMrzTXFOQOsI/ibDBKvzf69weNf1WF5QpO9472PHPGkU9StbuKHJNHov+Tq4nCi69Ax pVNNvB75q+OkAMN7XEvJAW98WQI3wp/znQujBwAXursSfx3KrNitV8fKMx+poeQn6iGi sCfJxdiE0BK+C5FTDzfm1FHNPRP3YzR2N6EJAyZEn/KOCYivwxmlxgq4b9JLUhdoPkSq uGFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=a2Yt5gzz; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hv13-20020a17090760cd00b0070c68cedb18si10277322ejc.806.2022.06.26.13.50.32; Sun, 26 Jun 2022 13:50:55 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=a2Yt5gzz; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232181AbiFZUGY (ORCPT + 99 others); Sun, 26 Jun 2022 16:06:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232066AbiFZUGW (ORCPT ); Sun, 26 Jun 2022 16:06:22 -0400 Received: from mail-qk1-x72f.google.com (mail-qk1-x72f.google.com [IPv6:2607:f8b0:4864:20::72f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD7275FA1 for ; Sun, 26 Jun 2022 13:06:21 -0700 (PDT) Received: by mail-qk1-x72f.google.com with SMTP id k20so5707438qkj.1 for ; Sun, 26 Jun 2022 13:06:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=ZgLetThySYV51Aytz6mh0N038I4xXTGk9aBFCM9zRec=; b=a2Yt5gzzM3yzj5vSUuIuvXaPNDCciwPVd7rzWq4cowkgBqcx+0pxMCgMZCVbN+25eN Ony8G9mj9cbyeEOSU5Me4xp2a17SHxR5i1r5/mmdtI6HyBXGax89T3xQf7UNNHdJRpfc J6YqrilbDb8wGPvT7Hb6VNr0P0ByVQgFF+OLRvsF4c2C/c6TEnY2IAPnFPnrPH5ly5fN MuXffAihwZOCAxMzFwCNm1snokHyBLhzOoGZCJABPNud0Cju1PpHaHNMXEe2iCiiIDgA pjh2RNHChebcQ6ZmAF+5zNHcKVVkpYI9/dVr7PnKms80UqujZdm0vmBr03b9x1qVLnKA nnrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ZgLetThySYV51Aytz6mh0N038I4xXTGk9aBFCM9zRec=; b=xyU/Ar1fIVu394MJWgaqUk8cpmSMhbygLTyUfbfArmDYwxN9bUHignZDztWSoDebX0 b0L763ZbleaOGA4MluJXOGu3UOPFuFFmn1Ilu+/n/o8jnmJRGORrg1ond6GATzVOMnvg ndhMyhLggZfu4DuEXypZC9FMA9m67MX/zidkvAg5JAuOPLI4H04Qy5GbPIKh4Rp4VhOT d8SZTxNO4lslQHuoso/F0y5WAArttQrIc3ZlFcsWtkRsfwxfzFdztvERgoFfT99EiCQy mFGCSxdEy+S80CIyzlMI5t8Q6ULmF1dKH1iQ07/Z/F3WOSi8wV/DCYGiS7/wWgGSVmRn bgvg== X-Gm-Message-State: AJIora+Ut6zZZl0iAbhVaD/hK6kDO01V6UTsp6DJwBsnVceOgC6W8fck ATiaIvV/9151ux4gSGdk+w== X-Received: by 2002:a05:620a:12f8:b0:6af:25af:f169 with SMTP id f24-20020a05620a12f800b006af25aff169mr1733612qkl.541.1656273980907; Sun, 26 Jun 2022 13:06:20 -0700 (PDT) Received: from localhost (c-73-219-103-14.hsd1.vt.comcast.net. [73.219.103.14]) by smtp.gmail.com with ESMTPSA id f1-20020a05620a280100b006a71c420460sm7540956qkp.22.2022.06.26.13.06.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Jun 2022 13:06:19 -0700 (PDT) Date: Sun, 26 Jun 2022 16:06:18 -0400 From: Kent Overstreet To: Joe Perches Cc: Andrew Morton , Linus Torvalds , David Laight , Petr Mladek , Steven Rostedt , Sergey Senozhatsky , Rasmus Villemoes , Matthew Wilcox , Miguel Ojeda , Andy Shevchenko , LKML , linux-mm Subject: Re: [RFC[ Alloc in vsprintf Message-ID: <20220626200618.jhxu5lg4w7o2irhr@moria.home.lan> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <355e912490dbaef8fe4e12df0201c3f5b439565d.camel@perches.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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 On Sun, Jun 26, 2022 at 12:53:26PM -0700, Joe Perches wrote: > In a reply to the printbufs thread, I wrote a proposal to use an > alloc to reduce stack in vsprintf when CONFIG_KALLSYMS is enabled. > > No one has replied to this but I think it's somewhat sensible. > > Thoughts? As functions get converted to printbufs the separate stack allocated buffers become unnecessary, because printbufs have helpers that do bounds checking and make outputting to the vsprintf buffer painless. So it's not necessary - I haven't fully converted symbol_string() yet but I'll do so by the time I mail out the next round of patches.