From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965203AbeBMQcv (ORCPT ); Tue, 13 Feb 2018 11:32:51 -0500 Received: from mail-wm0-f44.google.com ([74.125.82.44]:33133 "EHLO mail-wm0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964869AbeBMQcs (ORCPT ); Tue, 13 Feb 2018 11:32:48 -0500 X-Google-Smtp-Source: AH8x227LnROJY2e2CLJNiFxs4ieAvmfzAhm1A07fFBj0cZA4rSEd+T9txGIVPG9lDNkr4Q9vFJlLBA== Date: Tue, 13 Feb 2018 17:32:44 +0100 From: Ingo Molnar To: Juergen Gross , "H. Peter Anvin" Cc: linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, x86@kernel.org, lenb@kernel.org, rafael.j.wysocki@intel.com, hpa@zytor.com, tglx@linutronix.de, mingo@redhat.com Subject: Re: [PATCH] x86/acpi: check rsdp address received via bootparams to be valid Message-ID: <20180213163244.j2zuxyhs4kbfhwgj@gmail.com> References: <20180116135730.19216-1-jgross@suse.com> <20180116154630.ke53suvokynj73qd@gmail.com> <432c21ab-24d8-1e70-a471-ad8a14357d4e@suse.com> <20180116163529.rc5j23oqmwk45rp5@gmail.com> <4a8b0233-9bb8-3c95-0a08-93a5ceffc231@suse.com> <20180117153404.qnv3tjf6jhk4xijs@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Juergen Gross wrote: > So what about the following: > > From version 0x020e on (current version without my patches is 0x020d) > the boot loader will write its supported version or'ed with 0x8000 into > the same version field. So we can be sure any added fields are filled > with real data or the information has been evaluated by the boot loader, > if the returned version included that field. If the boot loader finds > the kernel supports a version < 0x020e it won't return its supported > version. This seems like a usable workaround to me, as long as everyone involved agrees with it. I've removed the patches for the time being. Thanks, Ingo