Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4387939pxj; Tue, 8 Jun 2021 13:04:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvpSF2Kx5NwTwYCYl405fQnJU0Oo1qgJFAUjG+jGEXymSHqynQhUrhK79ISnDYjvQ0cPa3 X-Received: by 2002:a17:906:5293:: with SMTP id c19mr24930767ejm.245.1623182690454; Tue, 08 Jun 2021 13:04:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623182690; cv=none; d=google.com; s=arc-20160816; b=XgVIPlrUOflUIWpGsG4DWEhoehwi36dytAfmH8EBX7/MmD3HAiZA9Q5EAdAaN5qtoI ohxDHbBBiKISx2m26VibIq7LSu3r54xdlK+S9HGhvJivZn+Jkj0VJmdbnQsDU1Xf0maN AK3XcevUN547nAuzw79CyRU6no5BJJ4APotMAts34H3tosAopR6wnXmhCkeG7BTKkDO8 2mWFLgMToZsfu49N8u3qH6uyaPdjdhWR2pJjR7d8ztyl76qXO11tHZwZ9xTfRgxIjKX4 gOPpNOQoPU+DZ5fdh5T9BWppmM1Y3EtWabNoEgN+AXo/oZDazuezkE1UF1XemoFEvH3/ 3x6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=po2LgWMZnX8goRzJmDW/0dlxb0eSuDZDRmohq89k3KM=; b=Ncgbw40dkMCIsu0c/Ui+mjbuKRwXQYoFdiikRJVwNw859qhrwomW6AgBOpR39GT7Lr sEFbb5ksgjuC4nBTb9yGfHYgRuOn41MNesKFIFM02enO5btzlIDLrlJJ50u3GPeh+KlL vsTR5I4oeVM0+svKkGA2Sm3DrHrrmPAoOqLCco865NUxIQWgpaF92PKC0Z2Fp3+S6j2P DdHZWu4AZg1t1SUI34eqqsh2y0Ry/d3NxRSV7VvCbXvXvFAyLt6ysb4J9fh5kOGUhcfV 0vDRXORSmmyVRddXY3F6GyjqrC+pBKSzBoaw9Ev0MbeLsZ6Yks1DpguM8n+Ig040C+2E lXFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=PYMTnzq0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hp35si596409ejc.369.2021.06.08.13.04.13; Tue, 08 Jun 2021 13:04:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=PYMTnzq0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234757AbhFHUDv (ORCPT + 99 others); Tue, 8 Jun 2021 16:03:51 -0400 Received: from mail.skyhub.de ([5.9.137.197]:33794 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234833AbhFHUDt (ORCPT ); Tue, 8 Jun 2021 16:03:49 -0400 Received: from zn.tnic (p200300ec2f16b100e640acc4c45ae2c4.dip0.t-ipconnect.de [IPv6:2003:ec:2f16:b100:e640:acc4:c45a:e2c4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 5E2771EC03F0; Tue, 8 Jun 2021 22:01:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1623182514; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=po2LgWMZnX8goRzJmDW/0dlxb0eSuDZDRmohq89k3KM=; b=PYMTnzq0mXyTXTFZtvyiSeXFxdGKt1tb0cdF5VAGOtoruMBIc5if76S1lM4/oCOMn4JTaE U+EVlNph1Y3OU0RKdVNYMPYdXb/V+MJ5M59Bzm/sa6uQkVqL2gsV8OOi0QrygRqwKhx+9c FcSbuHlG7b8ijyirg2bBEM4ynFyb+X0= Date: Tue, 8 Jun 2021 22:01:50 +0200 From: Borislav Petkov To: Linus Torvalds Cc: Michael Kelley , James Morris , Sasha Levin , Mike Rapoport , x86-ml , lkml , James Morris Subject: Re: [GIT PULL] x86/urgent for v5.13-rc5 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 08, 2021 at 12:22:50PM -0700, Linus Torvalds wrote: > On Tue, Jun 8, 2021 at 11:33 AM Borislav Petkov wrote: > > > > Linus, maybe we should at least give it a try and see whether someone > > complains and revert, potentially...? > > I already merged the change that did that. Oh yeah, I meant: let's leave it in and try it and only revert if there's trouble. > It might be worth adding a comment about the verified Windows behavior > here, but I think otherwise we're all done. How's that (comment re-flowed): diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index 1e720626069a..b58cdc70f86b 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c @@ -1084,17 +1084,18 @@ void __init setup_arch(char **cmdline_p) #endif /* - * Find free memory for the real mode trampoline and place it - * there. - * If there is not enough free memory under 1M, on EFI-enabled - * systems there will be additional attempt to reclaim the memory - * for the real mode trampoline at efi_free_boot_services(). + * Find free memory for the real mode trampoline and place it there. If + * there is not enough free memory under 1M, on EFI-enabled systems + * there will be additional attempt to reclaim the memory for the real + * mode trampoline at efi_free_boot_services(). * - * Unconditionally reserve the entire first 1M of RAM because - * BIOSes are know to corrupt low memory and several - * hundred kilobytes are not worth complex detection what memory gets - * clobbered. Moreover, on machines with SandyBridge graphics or in - * setups that use crashkernel the entire 1M is reserved anyway. + * Unconditionally reserve the entire first 1M of RAM because BIOSes + * are known to corrupt low memory and several hundred kilobytes are not + * worth complex detection what memory gets clobbered. Windows does the + * same thing for very similar reasons. + * + * Moreover, on machines with SandyBridge graphics or in setups that use + * crashkernel the entire 1M is reserved anyway. */ reserve_real_mode(); Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette