Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6778972imu; Mon, 3 Dec 2018 02:40:13 -0800 (PST) X-Google-Smtp-Source: AFSGD/VwaoK6x40CvdCXROzrTC3IU1EkumqlaBtkgxszrcw7s/uPPNlmHnle46d0iZqKOOLRn9v1 X-Received: by 2002:a17:902:e20b:: with SMTP id ce11mr10403779plb.251.1543833613771; Mon, 03 Dec 2018 02:40:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543833613; cv=none; d=google.com; s=arc-20160816; b=ZJDmgcwlTZtyVO/ZFuZ/y/XXHvPIfReE192ttMDSv5jfFUei67T5s7/womqLqRqwEZ joLxovObNROANwtxunt5+LwQXqO3aK5nCqV7yAUTKUzYtiHn7Lkdh6QSiVFwOESrCJge aqDiVd0663ZNybdLA0mx3bdsnBhnUx2TkqWmwIWwLEoNXIPUENpB9Ev7KB+6ne5aqFKS aNOPRQ/sF5NWWLMte81VqenGq7s25lD0gQLQ9zdyd/AUsKA0IMoQfL6ZchgT3aj5oP+j QNBNUPp6kGjHhkltv9yJ3jzFsCMk8reUjClcFOTfR1njVDyJ8vRWBO/1n1aDARuEE3xz 96wA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=xUe2QJRP2fKySQWcis9VnqmRnKu99EIlBbO1LRcnh14=; b=vv+yzb1JQg4YvOlSWKDosFgN7D2ySOUafubNBFIFSfmvx7XfraWNLWh1qxCOf4chn9 UGD4CBnQ0gtYxuAwppRS8eT7YVHR6lGjLX/ssEzLkfi95Zi1sSLDMd/50qN72sxBh9Kf yk1dJVXxDmrOBY59IeTMJjRDKPSoEIHnVnwxN6LEK0HVP/x3Y5lRhUXlwW7NH1UtcMCW x8Nxp14SVACeLljBtxDMDREfhYETXfJ7hEVJbflAYVPxYzLpxh2fdJHoQuNroDt152sx 3gTfSHyLF7H8EbxLyO2CLXO+LDrWnnGx7PUq5jNK9reAO1cjLFHSc3JjC5TpFGanOdfy aulQ== ARC-Authentication-Results: i=1; mx.google.com; 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 x23si11968931pgk.272.2018.12.03.02.39.58; Mon, 03 Dec 2018 02:40:13 -0800 (PST) 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; 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 S1726180AbeLCKio (ORCPT + 99 others); Mon, 3 Dec 2018 05:38:44 -0500 Received: from mx2.suse.de ([195.135.220.15]:46224 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725907AbeLCKio (ORCPT ); Mon, 3 Dec 2018 05:38:44 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id A9849AC39; Mon, 3 Dec 2018 10:38:14 +0000 (UTC) From: Juergen Gross To: linux-kernel@vger.kernel.org, x86@kernel.org Cc: sstabellini@kernel.org, hpa@zytor.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, Juergen Gross Subject: [PATCH] x86/boot: clear rsdp address in boot_params for broken loaders Date: Mon, 3 Dec 2018 11:38:11 +0100 Message-Id: <20181203103811.17056-1-jgross@suse.com> X-Mailer: git-send-email 2.16.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In case a broken boot loader doesn't clear its struct boot_params clear rsdp_addr in sanitize_boot_params(). This fixes commit e6e094e053af75 ("x86/acpi, x86/boot: Take RSDP address from boot params if available") e.g. for the case of a boot via systemd-boot. Fixes: e6e094e053af75 ("x86/acpi, x86/boot: Take RSDP address from boot params if available") Reported-by: Gunnar Krueger Tested-by: Gunnar Krueger Signed-off-by: Juergen Gross --- arch/x86/include/asm/bootparam_utils.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/include/asm/bootparam_utils.h b/arch/x86/include/asm/bootparam_utils.h index a07ffd23e4dd..f6f6ef436599 100644 --- a/arch/x86/include/asm/bootparam_utils.h +++ b/arch/x86/include/asm/bootparam_utils.h @@ -36,6 +36,7 @@ static void sanitize_boot_params(struct boot_params *boot_params) */ if (boot_params->sentinel) { /* fields in boot_params are left uninitialized, clear them */ + boot_params->acpi_rsdp_addr = 0; memset(&boot_params->ext_ramdisk_image, 0, (char *)&boot_params->efi_info - (char *)&boot_params->ext_ramdisk_image); -- 2.16.4