Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3213906pxb; Mon, 9 Nov 2020 05:46:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJzchnK+Ykhc5tfOMmzfqV9OZTtgqCDmoJdhfn36nT90uIJpON2hdMoRAGTyQk3eSKMMCCmH X-Received: by 2002:a17:906:c43:: with SMTP id t3mr14661658ejf.219.1604929573919; Mon, 09 Nov 2020 05:46:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604929573; cv=none; d=google.com; s=arc-20160816; b=HuCvP4H3YmXfx1Kl3f8OK1/zjSAtEEEZgMCnJ9sl6asfNhJNkfw0Ek+1LiyjbktuTE LZAYEK1uDCCKrDjJKN9quC/o/NJun9oMje5rS5Y8POdhWOagLn2ZsfRvA4NLO1czDZZW SxI09AvKbxPMkJ11LPnYi4yrKaynnARkd5cFNGBzY/+qaOWZWl2K9ayPM3LLRrC+a1xR rzroPX4BZ5139MmMgBc4N1VbcUAbFSW3lnC5JfDTN6WaYPzO72IWKbgl/Pwonv3JSHyy oU0YI+sN00cXFp8duIm5SnwcvdXrJNPhQGtjC1+yXNCldOVZiDE5B5S5bG5LiaSymdaT tnyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=4u3IUB1SMukvPTluuPuqrGTmxAKCFvaRvyI633d493I=; b=zkmhHJ1eufB4rhk5+m5UTiXdxVNe/qVkA/frv5kc+HgiDigVxe5pvPULFetssrgLPX GpCBw2yVb9OOt/SMItxd3TG2JmDlpCaWIKe25T1HCo5WC44PZ5vRfDzIy3KLQ0gqCazt gQTjMSMJEkv5IE64khum5Sp6JQTwn/j/qz9cWuMt/9ZRK+lrUl+vI+Ylt5w7+KzZ7gQK tXg6SUS2bHpS/qR3Oz5VWKhWflsEV7R56Y8LcPniCJXMYyiaBaWh2PkreOASi2Nk99bz o3ZcsghPW/6/yN9oJL+quLY38J5WT6vGgFZKBxe7RCU99PtI7tQi+ihVLUwXG36K73lT j6iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=v0YA0tx0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u1si7187302edp.86.2020.11.09.05.45.50; Mon, 09 Nov 2020 05:46:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=v0YA0tx0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730529AbgKINm2 (ORCPT + 99 others); Mon, 9 Nov 2020 08:42:28 -0500 Received: from mail.kernel.org ([198.145.29.99]:55000 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730536AbgKINAx (ORCPT ); Mon, 9 Nov 2020 08:00:53 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 57F49216C4; Mon, 9 Nov 2020 13:00:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604926852; bh=xNOtbpodwxIfYFkm/QNmfkGu1hrR7x9Tgi5laYWWz7Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=v0YA0tx01GHwFlWP7x5WwT2CAFKi9EDcu0Y3Wx0NRRKAj8mlrcAzZz7sXhWS5Xn7S 0KgpIJhnYr8UfGd+FODKDiFC+sDU+zPv6tYjTte+CcIeYRZuO2ApfFlSzTkx72EPs7 UZKDpwVvuZMFdhVp8f/VzwX6JUIYrPtYBeCOeiMA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , John Ogness , Sergey Senozhatsky , "Steven Rostedt (VMware)" , Petr Mladek , Sasha Levin Subject: [PATCH 4.9 027/117] printk: reduce LOG_BUF_SHIFT range for H8300 Date: Mon, 9 Nov 2020 13:54:13 +0100 Message-Id: <20201109125026.943723887@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201109125025.630721781@linuxfoundation.org> References: <20201109125025.630721781@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: John Ogness [ Upstream commit 550c10d28d21bd82a8bb48debbb27e6ed53262f6 ] The .bss section for the h8300 is relatively small. A value of CONFIG_LOG_BUF_SHIFT that is larger than 19 will create a static printk ringbuffer that is too large. Limit the range appropriately for the H8300. Reported-by: kernel test robot Signed-off-by: John Ogness Reviewed-by: Sergey Senozhatsky Acked-by: Steven Rostedt (VMware) Signed-off-by: Petr Mladek Link: https://lore.kernel.org/r/20200812073122.25412-1-john.ogness@linutronix.de Signed-off-by: Sasha Levin --- init/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init/Kconfig b/init/Kconfig index b331feeabda42..0a615bdc203a4 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -822,7 +822,8 @@ config IKCONFIG_PROC config LOG_BUF_SHIFT int "Kernel log buffer size (16 => 64KB, 17 => 128KB)" - range 12 25 + range 12 25 if !H8300 + range 12 19 if H8300 default 17 depends on PRINTK help -- 2.27.0