Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1907478rdb; Wed, 31 Jan 2024 12:51:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IGvIoF6z4tq/y2b9fjeIc1oDeT8U2Os/s4dYMM0yJ48tbfxe4t3xFAPj2rC/zhz75WIHKnc X-Received: by 2002:a05:6122:1823:b0:4b6:b43f:1b04 with SMTP id ay35-20020a056122182300b004b6b43f1b04mr2784898vkb.9.1706734315668; Wed, 31 Jan 2024 12:51:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706734315; cv=pass; d=google.com; s=arc-20160816; b=tBiqd+H6359ahQJ/MKa5o6ri531pEtRmCDQCthmeDN7Kpz2+Lv3sxyJY/jZvImZaSE CSMODEF7KvafFXFsrCNpdY8JlcqfLOasYN7tsXVv4PsV4q4MJNqPjDoosJmoBPqXNGSO 40joYuEbqX5RX0mjYv2g+eJCP76lk1xM0YQlfeKN1UnipUmGjUXt2oE4CILkEroGWR65 HwKcGZDMpbkJYJdUGj8+t/Gt0HYcLPD+a+zsucr/58Q0Fmy4iLoEAaEEFnt0RBiIKN0N 8X1tc+NjfvmmBM40kfPnEYaHySXoBfAWhkIkzTZoQv0jq7ptOvM3bHHyFDWsSHQexwWD RAXg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature:dkim-filter; bh=8074FH1QslNr+keTLp0xQItj4SG0X91J96NvtdBhqvs=; fh=2NswlogeKt8W/4a1qU49PvXicuDEqCw6msgZUc88MVE=; b=OZbQSC5I4HehL5NVRXn9WYq3gDiJeovAglKck50Ze6Z4OP9SyZiSetvYeG/Pbre1yp 2zLzyiWoxQsP6Urmz/NIRNvV62BnMYZVyvScNCgHnh4adrq7GvD72XHGlCQJcQ2Ul95a tpO5WbFYYA1Llu47lsyBYE9FK//XOa5f5yuQruhhO15iXiTFWM82O2+zv3u7jhI6faEe IawHNa0JjfdikqpmgVFKxclwCPHXPOuzrFbuyXd7aUjlcDVUoCXLvNqYuR6oJ5cMPacU mA7OaIPawmyCPZlzJy4AhwAJ0GNb1ystOeXNMilNm8tuxuC4ecR2pAlIa3udADN6w4Ox 0e1w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=XtKDfsAJ; arc=pass (i=1 spf=pass spfdomain=lwn.net dkim=pass dkdomain=lwn.net dmarc=pass fromdomain=lwn.net); spf=pass (google.com: domain of linux-kernel+bounces-47101-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47101-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lwn.net X-Forwarded-Encrypted: i=1; AJvYcCW6N6afWYILRbrVvgptbxUTQOX5foTI9Vev3ZDwRmcCTebbUPRhY8Uu0HUi1aC0HVm006d65fpkI4q/EI14LyxFqmwCQhzEvLjsUDRQwQ== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id jv3-20020a05621429e300b0068c6deb83c5si1720224qvb.615.2024.01.31.12.51.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 12:51:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47101-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=XtKDfsAJ; arc=pass (i=1 spf=pass spfdomain=lwn.net dkim=pass dkdomain=lwn.net dmarc=pass fromdomain=lwn.net); spf=pass (google.com: domain of linux-kernel+bounces-47101-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47101-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lwn.net 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 4E93F1C21B26 for ; Wed, 31 Jan 2024 20:51:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 04C1D38DD4; Wed, 31 Jan 2024 20:51:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lwn.net header.i=@lwn.net header.b="XtKDfsAJ" Received: from ms.lwn.net (ms.lwn.net [45.79.88.28]) (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 4EC8031A61; Wed, 31 Jan 2024 20:51:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.79.88.28 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706734308; cv=none; b=jcqbGf5iHempM6tv05m9O3HoUUZ21sb8ZV1FwznWE4R0/c1gJuecNURMSNwCQzessPXS2peAdJn61u6IRO5z0wtjMax6BA2bYszQMouoNY1B++ow6FC0R5suvero537XklBqatb/Ph0NsNjL4ZqodWXmAcBeHXssbWSZ9vrWjwk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706734308; c=relaxed/simple; bh=vybbYYq9hxEE/rnqs38OpgiASw61KAQjmuklQgJTdi4=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=jfkFxSOnWzmZtfUTV2SdQ4bbrCBnzROYZYal+M9knMC09Gz15RfISnelwBoklW2+zacgoNeTX4Z1TN7daZTUjFlujU+B96k4+1KG3hyZGR4UI6czA7JIvK91FOIFCvs2mB16XYgozq9spYNwkudCb6xqNoLckA6CcaxZklD4RFc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lwn.net; spf=pass smtp.mailfrom=lwn.net; dkim=pass (2048-bit key) header.d=lwn.net header.i=@lwn.net header.b=XtKDfsAJ; arc=none smtp.client-ip=45.79.88.28 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lwn.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lwn.net DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net 3C92247A94 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203; t=1706734303; bh=8074FH1QslNr+keTLp0xQItj4SG0X91J96NvtdBhqvs=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=XtKDfsAJjEO4xLQz8MDxx5apYR7PQdBYvZPl1xN7hNAPvrciKLwN8XM8IRQ5a6j8B ZyGPuTViZj0wLUeCJoflQTen8at7cZNKLlBy6/bbiVEvXrsUTRLN5ZpbLsjDTgAILS GIE1CrP4Xd/fT2N9tv6RXZh4H210n+qpBzbOZHZ6CuJB8y/BDdJsyN6uQxofzQow4r ZCxE9hVyZitmqzfyNgGngA1KuNfAG5b9b6hCyjASEjGJQYcwtQSOr2+bjWBnuXdry5 58wh4c8E6sAQQofeFSENZHWDv7NfgAcLQHq03KjQDQ6BxhtlRHMgGpBORXzGpKCf7x Sc3nVD8auGIjA== Received: from localhost (unknown [IPv6:2601:280:5e00:7e19::646]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id 3C92247A94; Wed, 31 Jan 2024 20:51:43 +0000 (UTC) From: Jonathan Corbet To: Jeff Xu Cc: akpm@linux-foundation.org, keescook@chromium.org, jannh@google.com, sroettger@google.com, willy@infradead.org, gregkh@linuxfoundation.org, torvalds@linux-foundation.org, usama.anjum@collabora.com, rdunlap@infradead.org, jeffxu@google.com, 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, deraadt@openbsd.org Subject: Re: [PATCH v7 0/4] Introduce mseal() In-Reply-To: References: <20240122152905.2220849-1-jeffxu@chromium.org> <87a5ong41h.fsf@meer.lwn.net> Date: Wed, 31 Jan 2024 13:51:42 -0700 Message-ID: <87le854469.fsf@meer.lwn.net> 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=utf-8 Content-Transfer-Encoding: quoted-printable Jeff Xu writes: > On Mon, Jan 29, 2024 at 2:37=E2=80=AFPM Jonathan Corbet = wrote: >> >> jeffxu@chromium.org writes: >> >> > Although the initial version of this patch series is targeting the >> > Chrome browser as its first user, it became evident during upstream >> > discussions that we would also want to ensure that the patch set >> > eventually is a complete solution for memory sealing and compatible >> > with other use cases. The specific scenario currently in mind is >> > glibc's use case of loading and sealing ELF executables. To this end, >> > Stephen is working on a change to glibc to add sealing support to the >> > dynamic linker, which will seal all non-writable segments at startup. >> > Once this work is completed, all applications will be able to >> > automatically benefit from these new protections. >> >> Is this work posted somewhere? Having a second - and more generally >> useful - user for this API would do a lot to show that the design is, in >> fact, right and useful beyond the Chrome browser. >> > Stephen conducted a PoC last year, it will be published once it is comple= te. > We're super excited about introducing this as a general safety measure > for all of Linux! We're excited too, something like mseal() seems like a good thing to have. My point, though, is that it would be good to see this second (and more general) user of the API *before* merging it. As others have noted, once mseal() is in a released kernel, it will be difficult to change if adjustments turn out to be necessary. Thanks, jon