Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp1840753rdb; Sat, 20 Jan 2024 16:51:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IFz/EBRJf7rMYLKKL/7/b41sUEyU9VA/87uo5TqI2EsBuIFfduzb9YaLiPmlcL7//IOPGbT X-Received: by 2002:a05:600c:1d03:b0:40e:66be:8c5f with SMTP id l3-20020a05600c1d0300b0040e66be8c5fmr602077wms.163.1705798267695; Sat, 20 Jan 2024 16:51:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705798267; cv=pass; d=google.com; s=arc-20160816; b=tl6NGbm+uoMoP2rxnYz8aJY8yK/1I8Qw0qqcdNe1QadX7yHrcPn5NcDGJxlci+MleD pwcordGcGzLGAzwX/YNMbOUBhJdqlCjZe5zLvZzdJ55UgoLQweHQoxp68SS7AqaSjp0u XsJ+Ps/ehJPtxIp9+5Kk/9iXgPuiPbpEkllXHQpL0EuPFPayCnBJLl4D+BE/U/G5KU0R J3AF/p5Dl1LxSsbYmHzbBBgmKgflg/r8ru5EVs/UXtAsU5dmPheViTph1G84xlFL415A 4pLintM6rt67Kc/mfVVUHtW71nBMG/sahbV9CSVh5Hf92x7tvbVSH63aZhJlXb8CqhlN 1M/g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:content-id:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:comments:references:in-reply-to :subject:cc:to:from:dkim-signature; bh=1RNgmvpuS79zYvBsIwvASJ98xe53iAvUKfaedlDiuEc=; fh=mhU4sLmQiBwJFToQ82ewEajZeFiA1Vj9m9LPsqqEcK8=; b=JTuMsBTWPzE1IvMTMEuSyN/8dFxV38Y5+AelmwyXjglTNb4fmbNDS9JVGst2KTvUra 1TFTXGBY7wDWqanH4axqPnTowh7Ye5dJSBCyQqtc9HmVAvVqzxx1CzDuo7xCLfRVN94E ffOCIXL+zArtb52BIMElutb3alCTAS4qj0jEgUvU+fg/fWR7Zl76aY4BoN0CNreFjyGI I0pAqqS80b8J/lq1KIwfllrCSkWGA3D6AQQbqvtpLhUrP7uzsC6RvZXW0tfWba/uS/Mk RsFHOzQuTeK84pi8zc3iV1QSxkqlReVKVJMuv/pLqNJTlC2Ba44wWYSbzwjU1JUAJRAD asTA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@openbsd.org header.s=selector1 header.b=xNrlzLrv; arc=pass (i=1 spf=pass spfdomain=openbsd.org dkim=pass dkdomain=openbsd.org); spf=pass (google.com: domain of linux-kernel+bounces-31943-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31943-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id s23-20020a056402037700b00559e4e52b4esi4029735edw.365.2024.01.20.16.51.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Jan 2024 16:51:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31943-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@openbsd.org header.s=selector1 header.b=xNrlzLrv; arc=pass (i=1 spf=pass spfdomain=openbsd.org dkim=pass dkdomain=openbsd.org); spf=pass (google.com: domain of linux-kernel+bounces-31943-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31943-linux.lists.archive=gmail.com@vger.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 869B61F22BE1 for ; Sun, 21 Jan 2024 00:43:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A3D0415E95; Sun, 21 Jan 2024 00:43:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=openbsd.org header.i=@openbsd.org header.b="xNrlzLrv" Received: from cvs.openbsd.org (cvs.openbsd.org [199.185.137.3]) (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 AFB8E14AAB; Sun, 21 Jan 2024 00:43:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=199.185.137.3 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705797815; cv=none; b=N2abBiUY7m71MNBXVi2HICiLqT5s7/IYVHh51nVw1i/BnPi5J3VFVXiHxj2FbC+vJ0VvjRypGAFgdWb2aGsn1BY2ndqDRNoYikzIOg0Dr1qXJxzg4NvQ9sZltCWEtCMtwYExnYkOHr+AphohFN/8AjS/7X2GsutR9C2MOksEoJI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705797815; c=relaxed/simple; bh=6zClxfyv71M0RluUbCbllO0533ZG0kWqfL4wR73NjHM=; h=From:To:cc:Subject:In-reply-to:References:MIME-Version: Content-Type:Date:Message-ID; b=tY2psya8QUMrKVNbFfMKW1/SjR5NNXIMlD1QVabFk9/hMCE0cM21Ir9Vxyrh1R2wGW4t8wjBYe0FGAs2U4fdyI3M4lIIFm5pVSddDm+xbcuf361J2cIy9d4XeMPJzfHUeurIowtEwtf6+wCUlT9Fr9tsZWa3Dc5iEQxJNSHWDy8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=openbsd.org; spf=pass smtp.mailfrom=openbsd.org; dkim=pass (2048-bit key) header.d=openbsd.org header.i=@openbsd.org header.b=xNrlzLrv; arc=none smtp.client-ip=199.185.137.3 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=openbsd.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=openbsd.org DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=selector1; bh=6zClxfyv71 M0RluUbCbllO0533ZG0kWqfL4wR73NjHM=; h=date:references:in-reply-to: subject:cc:to:from; d=openbsd.org; b=xNrlzLrvdn5TiEK+r0xytg+ig0YyyOzsG 5h72+KeTLSNfAWSgxuoV28p6LgEBSpKPm2uXpufBZ9QJ/n/+3TV+7DPPn/2NuEmrqFcBst 3q9SxFEPMPkmr5ofcpN1Y4nU2IINcyvAo8zpPHQBiQMvYNKFe3+DgFPjV/Mm1y8fRq8WKK bO+y+/L+iBqm1en9uyXnWDP+77ycPtFteeXzwjPFOq31DSjtchzRjeKcMZkkGWXCFazv7r LHMmUTP8KfXq5K8NgRv1dNfIh05fsSBsZnHoCRFpH0J2BNMMosJtSlzpVknRPVr38/fiY3 M318gjyH361AmN6EuvpAvkSoNnb6g== Received: from cvs.openbsd.org (localhost [127.0.0.1]) by cvs.openbsd.org (OpenSMTPD) with ESMTP id d3cb4755; Sat, 20 Jan 2024 17:43:32 -0700 (MST) From: "Theo de Raadt" To: Jeff Xu cc: Linus Torvalds , =?UTF-8?Q?Stephen_R=C3=B6ttger?= , Jeff Xu , akpm@linux-foundation.org, keescook@chromium.org, jannh@google.com, willy@infradead.org, gregkh@linuxfoundation.org, jorgelo@chromium.org, groeck@chromium.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mm@kvack.org, pedro.falcato@gmail.com, dave.hansen@intel.com, linux-hardening@vger.kernel.org Subject: Re: [RFC PATCH v3 11/11] mseal:add documentation In-reply-to: References: <20231212231706.2680890-1-jeffxu@chromium.org> <20231212231706.2680890-12-jeffxu@chromium.org> <78111.1705764224@cvs.openbsd.org> Comments: In-reply-to Jeff Xu message dated "Sat, 20 Jan 2024 16:16:39 -0800." 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-ID: <98518.1705797812.1@cvs.openbsd.org> Date: Sat, 20 Jan 2024 17:43:32 -0700 Message-ID: <44186.1705797812@cvs.openbsd.org> Jeff Xu wrote: > > Jeff - mind changing the EACESS to EPERM, and we'll have something > > that is more-or-less compatible between Linux and OpenBSD? > > > Sounds Good. I will make the necessary changes in the next version. Thanks! That is so awesome! On the OpenBSD side, I am close to landing our madvise / msync changes. Then we are mostly in sync. It was on my radar for a year, but delayed because I was ponderingn blocking the destructive madvise / msync ops on regular non-writeable pages. These ops remain a page-zero gadget against regular (mutable) readonly pages, and it bothers me. I've heard rumour this has been used in a nasty way, and I think the sloppily defined semantics could use a strict modernization.