Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp774202lqt; Fri, 19 Apr 2024 09:59:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWcWspScCvnIP4zFMmz+fss4DFW3NfkKUgZ8W4UXNVRxMptoiKSxGDqCbtnLmwVQb3WLGc8TwXSTg3oUlShHhaI88NZ3fVGzyAPCQeW0Q== X-Google-Smtp-Source: AGHT+IGD0kdMJ0oWXGXoYd71Tt/LHtXvks+KiRKy/Zics5cZd1GkKKTzA5ImdiHc2lAVMwpl3o7t X-Received: by 2002:a17:90a:f40f:b0:2a5:5334:e223 with SMTP id ch15-20020a17090af40f00b002a55334e223mr2580080pjb.24.1713545984466; Fri, 19 Apr 2024 09:59:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713545984; cv=pass; d=google.com; s=arc-20160816; b=ucLxgMAdUnmjDVA3qFEr/4gfSDzqhju8vj8Li7u+pbVWQkGiy5mtq74GoMlseWKfl4 cecKrJJU3wFww/BBEm3ZJ4nYnZ7trHZWDX8px5DWrgDpYtUscYo3FIdgJC87M/RDOdeV QE9Te0hqmqw5t3t6LfAdxg3PYlNhW8Y0enxSFDt0P30m+qCD21cKro4ZAz+lmEYVmWEO I4uTMl36yuoXYvGKhB9hFJUGL9szKrXTQeENgf4TWXh7i1yoUR+qYlr4Tzx8I8MEwml5 o6X5rxJ+//L2MME6qKDvVyMtxFP30aaHGgeMOFee7x67g75Hz7Fp/2gmRdpoVVHBNsCY AvRA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=kVNwgu4JPeB6eynEStUY3+kq/ddcwhur3c1oEj+7sXs=; fh=UhqJN3borLzjwfCEbHwFPleEba6TOtCLM3UqdtbVVC8=; b=dWc7YdRkLHCRZXnyamj0FSBv4G2VCP5smy0Ft/a1RzRNqCBHZfIS4BCWgO6PcyibVw kB9nRN6igZzV3K4JYJewmbBq7novuQOMI3asY/lZ9ONeD1s1RXnOe5llxtyp/4y5QChW 0fsh0C2s4MMo25IlvZtz4CWBYgzTYPKxdfNOiFUZr5W+lm+nT2UN6c1UImYJdrpNJFio Dv7LhwyxFC1fiyze9oBiJlT1xT2wdWT7xj15/l1SsovM3qZn29PhJjSHKI+iFmwlZZcz sUajf+6hO7CkkpVMiY2Cf+YPEZbFNN9xAU9lAO7uymZbSHnc+bklf/RN+jfGwlE0oPYz 57jA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EDLXBmZ+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-151799-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151799-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. [139.178.88.99]) by mx.google.com with ESMTPS id o21-20020a656155000000b005dc432da142si3423787pgv.479.2024.04.19.09.59.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 09:59:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151799-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EDLXBmZ+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-151799-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151799-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 D30882868A2 for ; Fri, 19 Apr 2024 16:58:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 40BFE137C36; Fri, 19 Apr 2024 16:58:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="EDLXBmZ+" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6497328F0; Fri, 19 Apr 2024 16:58:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713545916; cv=none; b=OagjQWS019TYUpHKXOISFl7KJekx8gy9Fmtgt2Vfoqi80/L4mHKMSlh2pzpdTMl27DqaFyCbAfhIT7995TE53h5oBwQOd9XB3VIT8FBl4ZTu6D617fqtDE0XLSSjtnnQJtRyUU0r9oj/KpWE3oypJ/4OQan1z1f5BjvJIZMCSgo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713545916; c=relaxed/simple; bh=HIgCb+JE6x/kqPa8JPKJqEjhxyfPx7QjED0kmm5TGiw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tC/TG6c3Qilw9gQwsHYXse1KFtTxpp4MrZ7ssLzUVS6TTDT2za6w96lHoLgFMpVplcspev//J/A8y9p9mLJlz6U/0owXT4nnqYEhW/qWlbtyFj7XSyk9jivQxRswtaSGaNviIwDu23cFn9S0amcZF1A+cEPb9dS+uMbD/8X6Nyc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=EDLXBmZ+; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 171ABC072AA; Fri, 19 Apr 2024 16:58:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713545916; bh=HIgCb+JE6x/kqPa8JPKJqEjhxyfPx7QjED0kmm5TGiw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EDLXBmZ+NXfb6opY7MuJxTpeo266f1cEmqQM8duZzC9duFXiqaaX8XRqWBVmOvp7B Pd3pSBAiqX6a7O8yFfFnlfJtUw/gG5x5vbDFHJbin1uEvBc3aIttdSnREvEyrGVffR 614xm7U9Hp2rY8IH7hdr9/FNA9s34y82Gpyj9tmn9jviMXcZaHdIzpcq2TFEHNeflw IWvd9qzowSceuA5o8+wfJcViVCLFRsmLZUSqTYOWcHsu8tFzncBr0TPr6iXsTg9dx0 xPANVXlAuL5k6fq9u1L9+YIGZZKEybdRQLQHed82syMf0swc7yiVCD7EA/gBvyJr9z cvFgOiY2rIddA== Date: Fri, 19 Apr 2024 17:58:26 +0100 From: Will Deacon To: Zayd Qumsieh Cc: Hector Martin , Catalin Marinas , Marc Zyngier , Mark Rutland , Justin Lu , Ryan Houdek , Mark Brown , Ard Biesheuvel , Mateusz Guzik , Anshuman Khandual , Oliver Upton , Miguel Luis , Joey Gouly , Christoph Paasch , Kees Cook , Sami Tolvanen , Baoquan He , Joel Granados , Dawei Li , Andrew Morton , Florent Revest , David Hildenbrand , Stefan Roesch , Andy Chiu , Josh Triplett , Oleg Nesterov , Helge Deller , Zev Weiss , Ondrej Mosnacek , Miguel Ojeda , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Asahi Linux Subject: Re: [PATCH 0/4] arm64: Support the TSO memory model Message-ID: <20240419165826.GB4020@willie-the-truck> References: <20240416022242.89623-1-zayd_qumsieh@apple.com> 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: <20240416022242.89623-1-zayd_qumsieh@apple.com> User-Agent: Mutt/1.10.1 (2018-07-13) On Mon, Apr 15, 2024 at 07:22:41PM -0700, Zayd Qumsieh wrote: > >I'm probably going to make myself hugely unpopular here, but I have a > >strong objection to this patch series as it stands. I firmly believe > >that providing a prctl() to query and toggle the memory model to/from > >TSO is going to lead to subtle fragmentation of arm64 Linux userspace. > > It's definitely not our intent to fragment the ecosystem. > The goal of this memory ordering is to simplify emulation layers that benefit from this. > If you have suggestions to reduce the risk of it being misused outside of emulators, we'd be happy to look into it. Once you have exposed this toggle via prctl(), it doesn't really matter what your intentions where. It will get used outside of emulation laters and we'll be stuck supporting it. Will