Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp5226013ybl; Tue, 27 Aug 2019 01:06:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqw+Ka/g4pXN4xrFnN8UAi1MSibR4OSTv9xbxNQW+gITNz6INUQ3gUBfOZKBKq0sIvT3nJpZ X-Received: by 2002:a62:26c4:: with SMTP id m187mr25549085pfm.49.1566893215616; Tue, 27 Aug 2019 01:06:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566893215; cv=none; d=google.com; s=arc-20160816; b=IMdASOO38Qeg3WZkcOGre1GKI5MUNsFdTIz2jJKEMAcxIESbenOswBGNHpKrEheg0v I0tC/LChQi1Pw0EBrWw7DZPeTIwma2qgAVxV3ulyfuM8UWOuIhnmR7WLKIZANWxWFIUR lpPqSr7+C5bJaFQUmfBH9NacZL1YHcR3FGttLvT4FWOZRzrkn7rWJzOdEzHShxnulCLa 8I0dw5nYZHXDI7hBaDpDKSh3rVfVp8N2xRi/F7tTiw1q9oBexgn5gCdMxkYQK20kJDwl 0gOz+WcvieonjAuycUT/4nAPwB3YFkkDxkjJviAbV2dErBZgkPT47mIRBodxvrlp9zzc m+vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=x+3vXnozUgGfPUcnbL9tQKfpKz5VG7fHv7bmp4iOnXE=; b=BFyk8+qGnvrxHjQKX7yreXjuJm5f9tFcxuJqRCI3sykrtCxh4rPq31RBbVTIWgQLYR R1YMjACNyEjFRQH5Z2GvR9sXFRQIxVdo/IzZYJ/czUnE90BRiDHyf1xayS9QtI6buIfM oVp+YeFJVAnfmmGdWn9vlMPjLS76kNQV4XlDy7DsJmdcycre0EMnvbAeEZ//QFLf3VpZ yEuEjfuWDJuYxgagUiBDo/OtjG8StTapDun2Q3akA3MtVZIgunIoV82JsIM4gVZ6PNb+ YY7qLMbBJtgSLCFailBFWYidPKUfmMevSd7WOt9wYe84LI+N+Tr7dDqcr8IX8pVvl+WY w9JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0c9Uh15d; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g13si11391421pgp.405.2019.08.27.01.06.40; Tue, 27 Aug 2019 01:06:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0c9Uh15d; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732072AbfH0IFd (ORCPT + 99 others); Tue, 27 Aug 2019 04:05:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:35226 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732786AbfH0IF0 (ORCPT ); Tue, 27 Aug 2019 04:05:26 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 C22F822CED; Tue, 27 Aug 2019 08:05:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566893125; bh=ebZgYB6R0/vyzOKHPC4jX6y5EBXSalTY8oBL7udNUd4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0c9Uh15dDZhMw6neI9kL+P2y/kSa5UxcgSpZvqKVMnZ/L55buw1VH0KwPCFSRawOc ULKzs4KshSYPiINMJeEdNPOVaqAqjo0UD3deiSGbC6LXaLno/Uyb1F/ToqMVhMmeSP xZ/y4A3o4qfuRIduv53QJTJuzc7JrcSP9qx0HUl0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Neil MacLeod , Thomas Gleixner , John Hubbard Subject: [PATCH 5.2 129/162] x86/boot: Fix boot regression caused by bootparam sanitizing Date: Tue, 27 Aug 2019 09:50:57 +0200 Message-Id: <20190827072743.013028143@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190827072738.093683223@linuxfoundation.org> References: <20190827072738.093683223@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: John Hubbard commit 7846f58fba964af7cb8cf77d4d13c33254725211 upstream. commit a90118c445cc ("x86/boot: Save fields explicitly, zero out everything else") had two errors: * It preserved boot_params.acpi_rsdp_addr, and * It failed to preserve boot_params.hdr Therefore, zero out acpi_rsdp_addr, and preserve hdr. Fixes: a90118c445cc ("x86/boot: Save fields explicitly, zero out everything else") Reported-by: Neil MacLeod Suggested-by: Thomas Gleixner Signed-off-by: John Hubbard Signed-off-by: Thomas Gleixner Tested-by: Neil MacLeod Cc: stable@vger.kernel.org Link: https://lkml.kernel.org/r/20190821192513.20126-1-jhubbard@nvidia.com Signed-off-by: Greg Kroah-Hartman --- arch/x86/include/asm/bootparam_utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/x86/include/asm/bootparam_utils.h +++ b/arch/x86/include/asm/bootparam_utils.h @@ -59,7 +59,6 @@ static void sanitize_boot_params(struct BOOT_PARAM_PRESERVE(apm_bios_info), BOOT_PARAM_PRESERVE(tboot_addr), BOOT_PARAM_PRESERVE(ist_info), - BOOT_PARAM_PRESERVE(acpi_rsdp_addr), BOOT_PARAM_PRESERVE(hd0_info), BOOT_PARAM_PRESERVE(hd1_info), BOOT_PARAM_PRESERVE(sys_desc_table), @@ -71,6 +70,7 @@ static void sanitize_boot_params(struct BOOT_PARAM_PRESERVE(eddbuf_entries), BOOT_PARAM_PRESERVE(edd_mbr_sig_buf_entries), BOOT_PARAM_PRESERVE(edd_mbr_sig_buffer), + BOOT_PARAM_PRESERVE(hdr), BOOT_PARAM_PRESERVE(e820_table), BOOT_PARAM_PRESERVE(eddbuf), };