Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp1832005rdb; Sat, 20 Jan 2024 16:17:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IGaSPIyfHqtzUVKul/576my79ZBQ5Dwumwrlk5RIkqbdiIwfM0a+CcKPYRVTIFiGjC2aTXr X-Received: by 2002:a17:906:1b5a:b0:a2c:dfa:4f7 with SMTP id p26-20020a1709061b5a00b00a2c0dfa04f7mr1132804ejg.82.1705796223587; Sat, 20 Jan 2024 16:17:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705796223; cv=pass; d=google.com; s=arc-20160816; b=dNcWHjjIs8Acmuu/0JbCP3whzb14Bz4iYsx3ruYS1feH1jw3TAz0mMNCLg7wbZuTHH nLjI5iZxOk4+RLgBnuV8sNkaOhlCfxWNqsHhk78saoBV+n/zr2Bq6gAVd7d0Ot2uki3m MDSophsGgr0l3vGtmH4YFlELrO0aLMLS/0NuzTq9q+YqaSWTY46LVHTPQk97uRrACP4B bjA24KsHMpsnj6Sv4lZnTRoFt3RPWnYp3hKo0yEPksYVBDKTxroxngORqm+RDUND8sUD yKsqNN4qUn1A25PkRycO1kvEuvt6PAQOQH4O6CuVfm0em2cfuNeT3hCV5/FL/NJhLEDw vyvg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=VGx1uUqBJNwaB067t1zS9OZh+thLjfiev6N5olOliBQ=; fh=xMl587vXI5kOCKEoPFkr581xosP9RXC+/C90z5mzwa8=; b=paRnwM2GGMZKis33Y1WHQ3ZC5LShDCSoljUn9+/Ht7Ju4WTvrWO7W52v9RiyH4Xb8H X43TaNbRvCV/89xbEVtkUawvdAayn31WiHC2NwELqM8yItr2F9IJ2B0eRT68YN610RBw oclHsYjCPypKIKwg/GgYMhpXzAq0wApeHPKJ9/IIuLFO5r8DeaCgcqRG/oR75BVscTo3 9xngr1LLqSIBgxaI7KTZKqGD8h5aIugUdrkTfZxAmkrCAaCG/k5Ag/YnVspNPSP2y7cp hg7x6fvx9GLOaQwoY9JJZNkQm0m73sxP+KVdB8YKyauF3jvexY0N/OgsGeBSQgAlM2Er 5LUQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=jb6xoVCm; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-31942-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31942-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id w3-20020a17090652c300b00a26ea1b1406si9257485ejn.890.2024.01.20.16.17.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Jan 2024 16:17:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31942-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=jb6xoVCm; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-31942-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31942-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.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 54AE01F22309 for ; Sun, 21 Jan 2024 00:17:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E273E657; Sun, 21 Jan 2024 00:16:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="jb6xoVCm" Received: from mail-oo1-f50.google.com (mail-oo1-f50.google.com [209.85.161.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 AC2CE361 for ; Sun, 21 Jan 2024 00:16:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705796213; cv=none; b=iIGV2VLXy6MQFH8lRM9y/8t8R+eu6LmLoAoWmelUyFK+A4viYH/QF+AMQlp7n2QLAsVqvW+WE9ANflPNxsc9NIjrsTp9ui9+7Lq6AgNL6kT0a+EUeRv1YJwhUcGyCdEdMzdG6AWFQAqdu3GIOrykri50kH7C0CmoLHsrnDytrdQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705796213; c=relaxed/simple; bh=/C66J7wkQwwS2IqQ96WKFgsVf+pRy97LkmCeeYhVdP4=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=YwnKWebeCCjZiq1oHkwXqUFZaCd5ExFr8Y0spj9KZXg/AcnkkBB94ZbY/fs3mh1PJeymyC/WKdg8wYDUCMVOjsAXMdFOOXwxtUXuD0YZw/jIN6uNb6tbkgidZFEcKzJTFQ3BJL5MCrhP7a3gspkwLjLCQDVHGnf6bMNJ7mhDDvs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=jb6xoVCm; arc=none smtp.client-ip=209.85.161.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-oo1-f50.google.com with SMTP id 006d021491bc7-59502aa878aso940294eaf.1 for ; Sat, 20 Jan 2024 16:16:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1705796211; x=1706401011; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=VGx1uUqBJNwaB067t1zS9OZh+thLjfiev6N5olOliBQ=; b=jb6xoVCm4erIHuii7QR+BQMXQW1udD1XI2eGpmGrRN07v1b8g2Dans3F6BK64Hguzm agWG9o5d4WAs+bSZfi/Q6SQQaidl50E81tkc5ANVEDAw1sEsgqRkaAHEwRGh5ZQ0NAbL EjhBG8lpCf1gr06FhT8gVyDJyUCm3wAkpYBL4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705796211; x=1706401011; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VGx1uUqBJNwaB067t1zS9OZh+thLjfiev6N5olOliBQ=; b=WivO3GxGzvBN4m5orIFqGI6D3Y32F5k4B+WlGLkbkIh9WROhynnrUj5qoIKNTnajib SnyEHlQXW54F6cyzgHW7bE2aNnpl5sOUK12FGIxvLQDPUi3qHshlGAaK332l/Ulx5QdE /xFUjA3k4yIAskpHJMk4svwNV4U9445kKLJqfsSWaAuQYIF/LNf9mrKPVX9qRwjm9TG/ vBy03lpwZCzVxqYf2EGHe0bJBvqVXArGUFrJMqS6tIJzCtotMxp7CdIjZxCEcD3/cP1/ p3LyEEYPeWdytdT5RxRB66MnSq0DI60UWFep+SkSZjpPKwg1bHeZTPQooLS9y1jXVta6 LATg== X-Gm-Message-State: AOJu0Yw3UOBiqBIziT1IYKnUSkYJkX0gUGG91syso4BZZjZEvrGobCLs 2CgiglnGcrzkptxOAJxhyOnOQ+fgPvaFkNPcgTfd/AToCQoAAFiai0/4l2deNgJix8UlTe94YkC 0myBRxJ1UljDwAdjuV/0e0az42GoEeiy/6HA9 X-Received: by 2002:a05:6870:2e06:b0:210:8df6:3b04 with SMTP id oi6-20020a0568702e0600b002108df63b04mr2269701oab.102.1705796210854; Sat, 20 Jan 2024 16:16:50 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231212231706.2680890-1-jeffxu@chromium.org> <20231212231706.2680890-12-jeffxu@chromium.org> <78111.1705764224@cvs.openbsd.org> In-Reply-To: From: Jeff Xu Date: Sat, 20 Jan 2024 16:16:39 -0800 Message-ID: Subject: Re: [RFC PATCH v3 11/11] mseal:add documentation To: Linus Torvalds Cc: Theo de Raadt , =?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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Jan 20, 2024 at 8:40=E2=80=AFAM Linus Torvalds wrote: > > On Sat, 20 Jan 2024 at 07:23, Theo de Raadt wrote: > > > > There is an one large difference remainig between mimmutable() and msea= l(), > > which is how other system calls behave. > > > > We return EPERM for failures in all the system calls that fail upon > > immutable memory (since Oct 2022). > > > > You are returning EACESS. > > > > Before it is too late, do you want to reconsider that return value, or > > do you have a justification for the choice? > > I don't think there's any real reason for the difference. > > 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. -Jeff > Linus