Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp5214676ybl; Tue, 27 Aug 2019 00:55:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqxfr8Gs/h8QE3IRlhoylOY4nglHy0VgqN8gnaGnCHzKybXbP1DGyP3vdE9AsElemtlzdQBR X-Received: by 2002:a17:902:654f:: with SMTP id d15mr21569784pln.253.1566892530078; Tue, 27 Aug 2019 00:55:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566892530; cv=none; d=google.com; s=arc-20160816; b=VYREIOp5KFOeKOIWu4wfm2Vvxr4HT9OKJfp1jcrN/miZXuNKm77JuSZw1Hcr/20q/U pha1ly5GTkA2dntTQZrm0a8EuQyeJ5JPTPiZUbDQdEmdTNjDeVQKPyv4naLhek+DBgN/ PSbCQ/cpX31Kj1q7wMDbOg6UYbEStO3ZegKXeeQjCPLrN1MOx0Uph+I1HyfR/shtbNKw BytwuK/3Wd//x4VH7RGC1pxZbQkFIXHTvHjntk+fltIzKcVVjiXnq4M/94BbY+OoPuHw sBaRFmlaXfKEANiNDjBq95ELvfMb3lnzhFf413AutzFGj3J5YVWaxspeyTxkemY3QMlK XLfA== 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=C/cLZJDRDWNidIY8bFWfswT2gckBKhT688w7tlCtLD8=; b=qbu+rYDsg2g+W9o0Jj9fSz7ZBSYPeMAIv8QCwMDC1zMryQ+87ZjK2SgT4Ml7g764l7 2qXL2LrOuy/CcKVU+Bm2MIrYVjxlJTIT/DiFieluoIGc4XbqBEU6CO+ieEwZTmHxWi2l FZuInmhwop2XQPFMGDg9jZLeXngnqXXaSES12fDeYD2bSwGHoAMe22IGX6eP1/cQEZEc lVMFm7C2r/+M7JYkoAVyEdquhBUifNubDd/5+6V33H4+D7jlRfce6QXDT3qjopQBLEVd 0vANqn/JoX9AGz5CrW8i+29MkpUeSc1814wiFed5WZa6JE65y3aa4bgXxwMkNtb8XpuN vYDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=adRBBCZ3; 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 y186si11166477pgd.440.2019.08.27.00.55.14; Tue, 27 Aug 2019 00:55:30 -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=adRBBCZ3; 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 S1729880AbfH0Hxr (ORCPT + 99 others); Tue, 27 Aug 2019 03:53:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:45312 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729873AbfH0Hxp (ORCPT ); Tue, 27 Aug 2019 03:53:45 -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 CF1E420828; Tue, 27 Aug 2019 07:53:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566892424; bh=Pox7UGSVc3exntObymrJZRHxDv/1qDz0hdp3/iMqotU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=adRBBCZ31prt3B01W367GPP6sNYUexX2L+XoJVRpNrnN4bCySdpUVpyRf7PTWxCMu de4Jl6VGIDQOMwKsbvw/EdAO8MfOF4hV8qoDQNLZV6XYBFDDwiWvq4Se28PNDDuHhS R/F1DoxpEdlcRxdeadUeXVee3dZcKDItFJPo9Mxs= 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 4.14 48/62] x86/boot: Fix boot regression caused by bootparam sanitizing Date: Tue, 27 Aug 2019 09:50:53 +0200 Message-Id: <20190827072703.277332229@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190827072659.803647352@linuxfoundation.org> References: <20190827072659.803647352@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 | 1 + 1 file changed, 1 insertion(+) --- a/arch/x86/include/asm/bootparam_utils.h +++ b/arch/x86/include/asm/bootparam_utils.h @@ -71,6 +71,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), };