From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.3 required=3.0 tests=BAYES_00, BUG6152_INVALID_DATE_TZ_ABSURD,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,INVALID_DATE_TZ_ABSURD, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A4CEBC4727C for ; Sat, 26 Sep 2020 01:55:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 58BDC207C4 for ; Sat, 26 Sep 2020 01:55:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="mUHNaRSI"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="TRE5aTUk" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729914AbgIZBzd (ORCPT ); Fri, 25 Sep 2020 21:55:33 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:59956 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728967AbgIZBz3 (ORCPT ); Fri, 25 Sep 2020 21:55:29 -0400 From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1601085327; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=57u1up5OwTRuChPL+apaowPVX45DIfqc12a7a1X2m3g=; b=mUHNaRSIQ2lefxBD1NquljUQQlTK1vrbHXstHJdSO90BERFRWFmDWvViN/bAQsKGfqRreh T5LkXI5eukPI9WDKQnuTS0CFnv98GuBfTudh3FDtxAYO+cXMu9hlpgvpRhLjjbHNU2NMAZ LXUZBGNY62aovAitJzR8lIQ/N0wl3ms02FSxl7Z9I7KJgb8bw2gp6YdwYTGCuVcYNxCq9N qYNaije0wElKuZIEjYYZLBbhktFZijLVIVjABeEyenKlIEBFdRENoccz0Dre3S7hQHi9v/ YMjxnb3PbVQiqZrewuoCxXfDjUcCABhIAL4/BhoAg2mJJqgz5UVjNeLgu8ejaQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1601085327; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=57u1up5OwTRuChPL+apaowPVX45DIfqc12a7a1X2m3g=; b=TRE5aTUko7Y81LL4BMvlYBjhjnDY6T87/MklWQ53gwPEYxx6UMbwdw+BoxZdmf9VnyoEeU lM0tGILZGsRrXzAQ== To: Petr Mladek Cc: Sergey Senozhatsky , Sergey Senozhatsky , Steven Rostedt , Linus Torvalds , Greg Kroah-Hartman , Thomas Gleixner , Marek Szyprowski , linux-kernel@vger.kernel.org Subject: [PATCH next 2/2] printk: reduce setup_text_buf size to LOG_LINE_MAX Date: Sat, 26 Sep 2020 04:01:26 +0206 Message-Id: <20200926015526.8921-3-john.ogness@linutronix.de> In-Reply-To: <20200926015526.8921-1-john.ogness@linutronix.de> References: <20200926015526.8921-1-john.ogness@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org @setup_text_buf only copies the original text messages (without any prefix or extended text). It only needs to be LOG_LINE_MAX in size. Signed-off-by: John Ogness --- kernel/printk/printk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index 270f19b60e6f..c3eb97f93668 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -1103,7 +1103,7 @@ static unsigned int __init add_to_rb(struct printk_ringbuffer *rb, return prb_record_text_space(&e); } -static char setup_text_buf[CONSOLE_EXT_LOG_MAX] __initdata; +static char setup_text_buf[LOG_LINE_MAX] __initdata; void __init setup_log_buf(int early) { -- 2.20.1