Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp24581rdh; Mon, 18 Dec 2023 10:25:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IG42V6Z8Kh6Unhz6Oa4Bz0oF8ubJTNSPOqlQrlKDQ+kS8/5TtjLJA9N0CnMPoTR5TBj1Nk5 X-Received: by 2002:a05:6a00:f9b:b0:6d5:73b1:3cd4 with SMTP id ct27-20020a056a000f9b00b006d573b13cd4mr3912874pfb.64.1702923918137; Mon, 18 Dec 2023 10:25:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702923918; cv=none; d=google.com; s=arc-20160816; b=00irS7zLQSYfNRlG0ClegjUNAaapBfAyv9U8oTSN8RfbSRCtg7wuYPw2JxGiupMIyy DuttXgwOATvFRwlgO9UdzAPBX9kd5QHLzwvQWLi7JB5S3FLjh5FYCPKYx/J+VA6a46gz +urXcoovwP5yw73ibAz077tOn6cCfmBFCUCW6V3yR6aSSK5TBnaceC+eGm9GyOv+s4sr xmCnJLdtLPjVkGmhKsE3NIxjhLZMnqZEEphDFX++jJXdDgYkQzP8vPaaUW324sAzueLA ty+EpRIXDk5DIwgdN0uqA529a7z0HXJTs4LotBC+ICRfzE7X7UPELcM8P5K6JADRMwyK zzIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=K7sgkRtVisP9xKbtxGq9Lyo1Wk1uBMZgN/6zxmy3tj4=; fh=CHSKSK1VZ8mhl3T2IYcq71a/i0+KxMACcjEP8luz5tA=; b=yOCy0C8k7NBaL6N/eHQyYza6gjK3yRpB7cSYPJVnEd2RuP5pARGgcoOZYN2ju+jWZY EjHmJXngnugonMdp5QyU10CuJMex6x34tCKArCQ1uypDVzwSyt+9u0DS+f+yGm7bSL0D v5bbPdG/atUOBt2X0eNCkSjzoBZvVc+PGrU0D7q8qxFqr+jf4M0kzNeJ4FAjzC4/xRGr WmvsVxwNmO7r15Ea1jrrtx3AR0PBnT5tZ3jz1c2WVxJ/SFjO12XFKHon458pqesq9lsh y4SsZergOgIA3+C/ZT8nZK4ws9AMUgvcJ7dEYcDwgvmgEDmVI/9a4almNnkDY/IBuzy/ uDew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=lcoClL5r; spf=pass (google.com: domain of linux-kernel+bounces-4241-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4241-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id y5-20020a056a001c8500b006d53371062csi3436053pfw.268.2023.12.18.10.25.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 10:25:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-4241-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=lcoClL5r; spf=pass (google.com: domain of linux-kernel+bounces-4241-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4241-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 67B1DB22783 for ; Mon, 18 Dec 2023 18:24:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DAAF15D734; Mon, 18 Dec 2023 18:24:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="lcoClL5r" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0EDF91DFDE for ; Mon, 18 Dec 2023 18:24:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1BDB5C433C8; Mon, 18 Dec 2023 18:24:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1702923877; bh=657RT1T9y1phDXkS/PHN8nnyPlTK2iy7Gb6uK7ychM4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=lcoClL5r5VFKM+Vwx2E8RTpZRVRehkx37EPGW7dnqKX0wceVFir7l7S4oxOh+3KWB TdQ+jFzYNIdNRFQ8cX69IusNvbaA/9i/lw3vCOct1gj8RbHp6NRhgv8bUNlh+9aRdH i7/a0+HnsVql6jO5M/f7JBSj1zX/vN7oCl6Iyz64= Date: Mon, 18 Dec 2023 10:24:36 -0800 From: Andrew Morton To: Yuntao Wang Cc: linux-kernel@vger.kernel.org, kexec@lists.infradead.org, x86@kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Jonathan Corbet , Eric Biederman , Baoquan He Subject: Re: [PATCH v5 3/3] x86/kexec: use pr_err() instead of pr_debug() when an error occurs Message-Id: <20231218102436.4378f51a36525ce770f6cd30@linux-foundation.org> In-Reply-To: <20231217033528.303333-4-ytcoode@gmail.com> References: <20231217033528.303333-1-ytcoode@gmail.com> <20231217033528.303333-4-ytcoode@gmail.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sun, 17 Dec 2023 11:35:28 +0800 Yuntao Wang wrote: > When an error is detected, use pr_err() instead of pr_debug() to output > log message. > > In addition, remove the unnecessary return from set_page_address(). > > ... > > --- a/arch/x86/kernel/kexec-bzimage64.c > +++ b/arch/x86/kernel/kexec-bzimage64.c > @@ -424,7 +424,7 @@ static void *bzImage64_load(struct kimage *image, char *kernel, > * command line. Make sure it does not overflow > */ > if (cmdline_len + MAX_ELFCOREHDR_STR_LEN > header->cmdline_size) { > - pr_debug("Appending elfcorehdr= to command line exceeds maximum allowed length\n"); > + pr_err("Appending elfcorehdr= to command line exceeds maximum allowed length\n"); > return ERR_PTR(-EINVAL); > } https://lkml.kernel.org/r/20231213055747.61826-4-bhe@redhat.com has already changed this to call kexec_dprintk(). I'll skip this patch.