Received: by 2002:ab2:2441:0:b0:1f3:1f8c:d0c6 with SMTP id k1csp113323lqe; Thu, 4 Apr 2024 00:57:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXudhawPHn6StMtvNGxngBDauhKOEioNaBsAljEtpGI9yOZTutSIsBer9ioYiQXHo+ri7RbEnwzzW4snqEVR5bQbdFn4M/SWpXNRD1RWg== X-Google-Smtp-Source: AGHT+IGyd/G/uBKaOdef7kuhv4e36Qrrc1zYZYecQJBm8t+m6HdW84MXj+VkbgbaFfZtLkFg/juy X-Received: by 2002:a05:6a21:3995:b0:1a3:a775:25b0 with SMTP id ad21-20020a056a21399500b001a3a77525b0mr2226704pzc.4.1712217426340; Thu, 04 Apr 2024 00:57:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712217426; cv=pass; d=google.com; s=arc-20160816; b=Fb1qFlXvGbR7jBEuMCuJ55SC1pyas9wMSA6ODMKRxxEpWr88y8W4DAe6z2Xa/zd+Df fCiw7OTlNFEeBmGxcihse9z2cibQfthqzInSfbP738/mmomt/90Z/dlGqkQh4/dJ/HO0 6LlNsp9aY3YFzzEdr4iADc1UXETGQ6+MnuoXtDnY0/ggePAV+bNqHx8l05H48Jpgrp+n f4VMdA+aTKTjTmp/sHFbKi+z4hz9mFIRr5DubrsJrYP5F1JxXQ1FOHDB2sXr7EB2KzJ9 ukfOJxTNo72roLX0zTZQ/eZvux2xUPb8g5h4S4sISh/AA/KHF3RFs+4oI7ylEUFdDFlg iiwA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:sender:dkim-signature; bh=odFAKmC43zCLxTG764+1o/hwl874kgnzDh7JyeKWm6g=; fh=9sHlT4wbRg6X+KLofzFLrMv4fTz9pwg9uk6FjJiLNDs=; b=f8CYRWgPaeL0iytgBmmw1e+4D4NUhx6gX8eHbu5/dlC6CwrNG9w7PNzchEpnn6MmMG jLCyERoCfuZsbvXC4+WWpkFD6n9grQj/lExyfdYtvMhDMN8npTYDV2vue9WXdJeZKFqk e/yaLsiCEIwnTYtH2yxWcDztyUTDhbhv0CoWnOAGGf/YyiQPJ03YBAdkMJGietAv4VBk bu9317VUhTg76qoIBardecvZfpwHMxdnhLZJfQQNQhzWqwWxutoyUu6oVs7gs6VOpvGg ZBIWarok6SvC9DFlRTz2vjp8Q47Gp/xbrWdM7wvXaJ0Yfo0zCZhdRhyJIMcb3bgQXVoE p25Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=mMKe+mtz; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-131059-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131059-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q16-20020a17090ad39000b002a25c1c5c9esi1185441pju.54.2024.04.04.00.57.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 00:57:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131059-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=mMKe+mtz; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-131059-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131059-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 08E8428B63C for ; Thu, 4 Apr 2024 07:57:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EDFA35CDD0; Thu, 4 Apr 2024 07:57:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="mMKe+mtz" Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8DA4345970 for ; Thu, 4 Apr 2024 07:56:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712217421; cv=none; b=Zt2VKbfDUqm2u5ai7A2pdOLedXgODSn2X0j6iPeUvMdZSWWnKa9nk8QvzuB4HYiPOw23uFkGdeBg/BlpS2ldLbxVHlICtYFG88XSFGoivWvLEfjKMXuW4feEwdQvJiAzKkFQjvNXFuirML4H8xejmmk3JyE4DmTijFYRaug+hXk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712217421; c=relaxed/simple; bh=10QNrCSrA4VuJN4sCZdigL3fgs1LMuQX/LQrpISoH78=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=C2yoj/KRW28nAJjTCsJa9Razpwkf9AoGL0W38dOyrzRlQ2fh2TRihmrwmp5qwTFeoGlRitq6P5UO3DMTK/Xy2Ic0yMH5YCRwvntW2UbG5ZUV1ZtaM1FG9xScbBlGNZcmmSPNMdcSKGGoDbMRDepC5HDmnLm28R/Xl5xG7d9P4mY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=mMKe+mtz; arc=none smtp.client-ip=209.85.128.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-4162b5ba333so1284665e9.1 for ; Thu, 04 Apr 2024 00:56:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712217418; x=1712822218; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=odFAKmC43zCLxTG764+1o/hwl874kgnzDh7JyeKWm6g=; b=mMKe+mtzpNiodqhwF7625gIwNaYEOLcroacUP+mOEgt6TG+wzQiRL9/Bb5Fra/gSi3 Ze8lMpT7QRVFyZOZ+ON8aXh0uO8Tt9Gy/4bhByD6ph86n7tVz6kNDR0h6Kr47zCJMmqW nL8uIno/7OqI+bAidGjQ8Y9EM4+447oa7rN3BdOsx14MajnjbgjZjvze04Cl8CnGbQNs n0o3WOrl7ItT2YWdgMV1PXQuxJAiRc/v5Bl5hxJRy0MbvEJ0sBoK3f5CfOHa5j5TtAjX XHwVRUHpjvuY9vuWn8rjY3WRI3V2rVJaD/WT11Y9GL8UdzHvOZuGBCOrDiU71GdpVNS7 GHYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712217418; x=1712822218; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=odFAKmC43zCLxTG764+1o/hwl874kgnzDh7JyeKWm6g=; b=JIO9C/dAgc+pi3rTVomZDsf1ddN0tKAUVvYXFErwbYYj4RVVMMou3d57NEyI8U7ICm R+h5DkgxRX3yW7ELTa2fRRWGyDkLgVAejWebMx4roDzzulNCnVvtQqBwa0UyuH3BjL4d H9Vpzohazrx1OFaAw2FW5wPUxDKWADWjsYFpHRq3H7JB/lIXzxKN9R8PaNWo5nk97qgd KmjvO1Q/71UyIa9RhmyKpBUDGRxXVrh+CkI5GVLz60JGKXWNQEJKibPlHRUE7OBWFQWn f+sSB58dakDLJBkuX3DAcoay7Ye36F1LTC+Icry1p3Vz/7jFWzXZ0f1nINVFylQT3MuT md6g== X-Forwarded-Encrypted: i=1; AJvYcCXN3eXTtidHzuYWUtOhR1t38sCkbdpDkJgcTxUlw9NvtuppnpZlaqiIzPALdALWOvHDx2nIlSfBw4T/lNiMzo6wu8VxAPfwwYvYaFFm X-Gm-Message-State: AOJu0YzEO+kdDhkDBXJJALDunFzGBUPKDdF6SC2H1Q+d9ZiNtGXMW9XZ S0jIK4VlFx5UsD/Qw1QFsGtu8N3BYKNOc/dH+rpvT1ON3eLVAoIM X-Received: by 2002:a05:600c:22c8:b0:414:e0af:9b9f with SMTP id 8-20020a05600c22c800b00414e0af9b9fmr1388695wmg.30.1712217417484; Thu, 04 Apr 2024 00:56:57 -0700 (PDT) Received: from gmail.com (84-236-113-97.pool.digikabel.hu. [84.236.113.97]) by smtp.gmail.com with ESMTPSA id u12-20020a05600c19cc00b0041469869d11sm1694549wmq.47.2024.04.04.00.56.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 00:56:56 -0700 (PDT) Sender: Ingo Molnar Date: Thu, 4 Apr 2024 09:56:54 +0200 From: Ingo Molnar To: Brian Gerst Cc: Dave Hansen , Javier Pello , linux-kernel@vger.kernel.org, x86@kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" Subject: Re: [PATCH 1/1] x86/mm/pae: Align up pteval_t, pmdval_t and pudval_t to avoid split locks Message-ID: References: <20240401185451.6897208962d3fc47a12ffb5a@otheo.eu> <20240401185712.a80deeb2fddeded0ad42cc04@otheo.eu> <8ee463af-fdbf-4514-bb6e-bf2fd61fbc06@intel.com> <20240402192314.a9b4e05637444314f47557e4@otheo.eu> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: * Brian Gerst wrote: > > > It's not a technical reason. It's a practical one: I don't want > > > to spend time reviewing the fixes and dealing with the fallout > > > and regressions that the fixes might cause. > > > > Yeah, so it's an indirect technical argument: fixes *with > > tradeoffs* like this one have a future maintenance & robustness > > cost. Fixes without tradeoffs are fine of course. > > What tradeoffs are there with this patch? This would not affect the > page tables, since those are already properly aligned. Forcing > alignment of stack variables is only a problem if it tickles a > compiler bug. It creates extra constraints on stack layout that wasn't there before, so it can only be an invariant if the compiler can reorder variables, or make the stack layout worse (introducing more holes). Thanks, Ingo