From patchwork Tue Nov 3 20:34:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 317149 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=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT 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 DA25FC388F7 for ; Tue, 3 Nov 2020 20:54:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 98567223C7 for ; Tue, 3 Nov 2020 20:54:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604436876; bh=dGwbCaoW3NhpIRo/YLoSJwE+F6E9u8gdotNpRMmooxA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=gX8ka8DbgsNITeacmzYGgU9mug5iXCfTYrBm8LcivS9NY8gru1GaauqW8navSE9u9 92nadKmFVGLjqYQww7RbePn9IGwUSPgo/7kVTp0trVv0VWbMFS/77bNP+2bFSsdJIH zJBOZXBdcV+VryPsrR1QOBUYjYOX0T/B+a0y/cj8= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732602AbgKCUye (ORCPT ); Tue, 3 Nov 2020 15:54:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:53662 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732596AbgKCUyc (ORCPT ); Tue, 3 Nov 2020 15:54:32 -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 513C4223AC; Tue, 3 Nov 2020 20:54:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604436871; bh=dGwbCaoW3NhpIRo/YLoSJwE+F6E9u8gdotNpRMmooxA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=n85i9m4Vp26heyd8aCu4uF8pCScnG6Yh80fwVwZ4Egw3BMW7Izcj8NWIEf5PPhbV8 e89Js110two7/qqT1pJj1M3qIKbYwvQJkB2wBvG0Dru05/27rAv3NZtJ2lF2dulkkZ HP079m+KEnBXadS9NZUR4I6NNs8FNN0fdLMzbkxQ= 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 5.4 048/214] printk: reduce LOG_BUF_SHIFT range for H8300 Date: Tue, 3 Nov 2020 21:34:56 +0100 Message-Id: <20201103203254.640267006@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201103203249.448706377@linuxfoundation.org> References: <20201103203249.448706377@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@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 6db3e310a5e42..96fc45d1b686b 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -594,7 +594,8 @@ config IKHEADERS 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