Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp640110ybl; Fri, 30 Aug 2019 05:08:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqy4o89AzND6oD+77vOIv63ff960dLHVvMmOwIikTYfEmzPIbANqrepyBaJIM8Y5bzoQAlOy X-Received: by 2002:aa7:9253:: with SMTP id 19mr3703214pfp.126.1567166883661; Fri, 30 Aug 2019 05:08:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567166883; cv=none; d=google.com; s=arc-20160816; b=l4V28DyMSSbGMauMLFCe7QL74oV7+hsV33B5r3j+GQH3HODBWM9cxtHJCNDcIrq6F8 2gLjnFM7WuwAWU156wrqiHpCBNyKXz0V0bge4jixYAE3tHGElmhTJuqvCY8Ty88QaKl6 4K+lo1X0VCAGL8eOnHlUV/Ru0RhXI/px+NQhDszBPJAJCJd0LX8muMLCjcmI4W2d6Jjb +N72wQ2JUmCO2kRkQd6hkGsWWlg8KhhJIU/3IoPjEAeeIsV3sd2z7BNZHf10odkw5u2+ 2twub1Og0nkJJZeIgdlBenFHlSWgQA4YcE0k5uBkauqE99zMZtGjOLrQ5pke5WF5RxXl rtQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=RCHxQ6cXEN6KpI/OORI6cKvc7L9evkX9PwLL1fEn7fI=; b=e9MStz4BdQ3K5cspVn8x7tr/zHxINVudX07CQHDTGDFkxXQMi1p5f0fkpZCi4eiGcb I/PYBm2LUPPNwUWuIL05OFmwC4TeVEl+llmIjS7DHrwcqPMMyYfYDZwLw6cIuu7TNvU4 A1ku32AdBZT9Sx8b0HTYyV28/42//iywCdQ1CUgu7xxWKp5qW+omCuB3msyX+peSt1rA N3XSzip7t2ThU32Xtmtn52tZ3j5VrwJkNYG871oQv5XHzk5LnCaBQs/DwhAkwyzg5Omk 3DWbao2w84rCiuC2/ivbj/kZeegXYCiY5kWLP59hs+BDXmxTzHvKJsh48Z/vK6UvS6Hc EtJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=E1GLbcF0; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c22si4383115plo.375.2019.08.30.05.07.46; Fri, 30 Aug 2019 05:08:03 -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=E1GLbcF0; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727896AbfH3MGk (ORCPT + 99 others); Fri, 30 Aug 2019 08:06:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:60072 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727525AbfH3MGk (ORCPT ); Fri, 30 Aug 2019 08:06:40 -0400 Received: from localhost (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (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 3C56D21721; Fri, 30 Aug 2019 12:06:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567166799; bh=h4NN9a2T8DqLmatt6itTbHbXgwma3IAOuyxfowNmtk4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=E1GLbcF0a7cqDh0hfT0zlQlkRAI0swhBVHJ/GHvgDI8nASZzV5YceuQllv+9nVTN2 H38bMEugduIeyxjV2jWG5ucaVv+iE3N05ibUlM5USJKtECjCQ1opwKBA1MMdEgMapR M07Gz2B4utQYP4+Fb5pWMUQc4pG1HenJDNXbz2LA= Date: Fri, 30 Aug 2019 08:06:38 -0400 From: Sasha Levin To: "Kirill A. Shutemov" Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, "Kirill A . Shutemov" , Borislav Petkov , "H. Peter Anvin" , Ingo Molnar , Thomas Gleixner , x86-ml Subject: Re: [PATCH AUTOSEL 5.2 51/76] x86/boot/compressed/64: Fix boot on machines with broken E820 table Message-ID: <20190830120638.GW5281@sasha-vm> References: <20190829181311.7562-1-sashal@kernel.org> <20190829181311.7562-51-sashal@kernel.org> <20190829221723.eicsws3q7gp6nx37@box> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20190829221723.eicsws3q7gp6nx37@box> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 30, 2019 at 01:17:23AM +0300, Kirill A. Shutemov wrote: >On Thu, Aug 29, 2019 at 02:12:46PM -0400, Sasha Levin wrote: >> From: "Kirill A. Shutemov" >> >> [ Upstream commit 0a46fff2f9108c2c44218380a43a736cf4612541 ] >> >> BIOS on Samsung 500C Chromebook reports very rudimentary E820 table that >> consists of 2 entries: >> >> BIOS-e820: [mem 0x0000000000000000-0x0000000000000fff] usable >> BIOS-e820: [mem 0x00000000fffff000-0x00000000ffffffff] reserved >> >> It breaks logic in find_trampoline_placement(): bios_start lands on the >> end of the first 4k page and trampoline start gets placed below 0. >> >> Detect underflow and don't touch bios_start for such cases. It makes >> kernel ignore E820 table on machines that doesn't have two usable pages >> below BIOS_START_MAX. >> >> Fixes: 1b3a62643660 ("x86/boot/compressed/64: Validate trampoline placement against E820") >> Signed-off-by: Kirill A. Shutemov >> Signed-off-by: Borislav Petkov >> Cc: "H. Peter Anvin" >> Cc: Ingo Molnar >> Cc: Thomas Gleixner >> Cc: x86-ml >> Link: https://bugzilla.kernel.org/show_bug.cgi?id=203463 >> Link: https://lkml.kernel.org/r/20190813131654.24378-1-kirill.shutemov@linux.intel.com >> Signed-off-by: Sasha Levin > >Please postpone backporting the patch (and into other trees). There's a >fixup for it: > >http://lore.kernel.org/r/20190826133326.7cxb4vbmiawffv2r@box Sure. Should I just queue it up for a week or two later (along with the fixes), or do you want to let me know when? -- Thanks, Sasha