Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1815356rdb; Wed, 31 Jan 2024 09:49:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IH4BQgsF5hE4a2Y/Hrl/M4NQOaOni7a6irjc8QPvWPyFR3R6qWVVQXQLyrvsN46U/NOcoof X-Received: by 2002:aa7:c0cf:0:b0:55e:aca4:aab2 with SMTP id j15-20020aa7c0cf000000b0055eaca4aab2mr1664320edp.19.1706723378196; Wed, 31 Jan 2024 09:49:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706723378; cv=pass; d=google.com; s=arc-20160816; b=mOlsLTzZxGDdBGBrtCwkfFo+ZWTjje2vhEgBquyfMI2KFRVngHbiiKmOQd1RV4N9KR +H6rnGdt9sk5CevXK3dQDVaqgu7AnwPl9NhLsA7jggBaetp7mesiw7dSqyJMf6m73fVU 9Sc0b/8W5PRS4kaQBDKGwBvnYD/0Xplb2MenlFZ9aiYhiZzKEvmpChgfLMG5gzKvT00q WPk5OqUq/m8eFGg3Wc5SBY4aPkJziPPyWUTD6GYxZM2vv6t8Ov0vBK7PSr6Fib8SFXDe b1+uqGgNWvunEziS7rk6mSAfPmAJOkRbI/qFd9g9F/U2RI2/m4ytiiOTv6qoffOb7F2V 0e7A== 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=E6RF6oHOyisdh7IJgSnB/tHRIU7aiX32oELeK+JlnUw=; fh=8nXts9aIQ87+xIha6fu8bmqihIt4ebUKvg2rLT0kWTc=; b=Xkilc71PKWahNoXegRzqg04rsoeqOdgUU9U0hnQZamuWImEpn+oOkpc9n1DM80ZzEQ z69ovOAg7NV8h2I+NqagfecqsR/l8cetLhC25+elCqyENmZshb9Eu5hEjgcY0X4WmzAt /KW7Z33EFngE+U1eiwFabOy33c0Zum1i9qHSmye7bC74yETDz+14pBoqNODhOY+8Y4Sj tIbZ5mY1Wnx2nPzNdy/wKpgGKXvLV6ZYFjMixlSbu9NFMzyf/7U8SBjcPGfyMOLEkHj5 Zk+orw8/Rsp6PSSli26Uokig6a308vda8nwhNgXaRfQdd0ZJIgM2Lu1MVW5nMgHAktue bEPQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=K7UFPQwu; 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-46929-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46929-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org X-Forwarded-Encrypted: i=1; AJvYcCXVmWDuiV1DlBO4XLMd67OdaM8PFrLQ/C51jFelfYLFZlo4T4IE1s/kW0SH2Ow9pKdbqVB7cpFQq40le+am0jy/8wRYViT/NoV8DhLiYg== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 10-20020a50874a000000b0055e23113314si5121839edv.657.2024.01.31.09.49.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 09:49:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46929-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=@chromium.org header.s=google header.b=K7UFPQwu; 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-46929-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46929-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 EDF091F23746 for ; Wed, 31 Jan 2024 17:49:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A3DEB12DDB5; Wed, 31 Jan 2024 17:49:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="K7UFPQwu" Received: from mail-oi1-f182.google.com (mail-oi1-f182.google.com [209.85.167.182]) (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 68DA912CDBE for ; Wed, 31 Jan 2024 17:49:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706723369; cv=none; b=ixV75n1IQ5DwN6Ye/odZ+ZOqP2bivEVdWlte69uqq2IAcwghLZxtPIO6iy3cyC7mtUR4oDiONHhVQHTl1bfMSZ+xUhgo/KpyV8n6DYX/+dS9nhlf9fXXVj3wXRWFbAnjBghW2yLom2pjTO2IdNdNEaX56RzDQqjHfdZZAAI7qjU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706723369; c=relaxed/simple; bh=5BE3rI48gPKiRyCIeJRFwhcAnE7+fiHlRXlKvQEgPZk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=CrzLirlWFJKxUTwhzqvCeLdMJdEOhuzKtiX0qWlz64pLxEzxlIRCI5wuNy7kdzGWAwu5DaCZtLx2EljZ7JFiQ99oydpYdR0OHdCS2Od6wFDE330yko8hnvr7I4AXU9UyHrfBqr1ABqp42dFNkY8VIR0WiJwPxflC7PG9Fr8glsw= 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=K7UFPQwu; arc=none smtp.client-ip=209.85.167.182 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-oi1-f182.google.com with SMTP id 5614622812f47-3bd5c4cffefso56566b6e.1 for ; Wed, 31 Jan 2024 09:49:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1706723367; x=1707328167; 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=E6RF6oHOyisdh7IJgSnB/tHRIU7aiX32oELeK+JlnUw=; b=K7UFPQwuK50txT0dyMiEMKTKgx7Z2zsoZ3NiO6iV/EN3kd+/vKdZ+ziyQ4Lf946SOm +cUFQPivS5eYEdOCeA00F1Lh+dAqi+8cDfMhoYJE6cqYE9NFBSD5jx4gPXFTcZ4CR85A eSv8249ppndhm33Si39J9tt2ingE3m0vCuFJ4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706723367; x=1707328167; 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=E6RF6oHOyisdh7IJgSnB/tHRIU7aiX32oELeK+JlnUw=; b=FDYJleJJaM6BkG+4Z8/F9FPHrrkx90t+/ty33s7IPNK5/vY12Gh5TcnEkx0rPM8WXB hBBklb01Fao6T9jKvGtI9tzkgYHP+gk9nIbUXzTie7sJj8jzoDyqhvL2v8tVe2wUMnxe bjXrnP/xHJw4DDi+qaEEAyRc7D4I40FP1LKvrUrwI+6RFTdRpez1+6c8Fp1j34/MobYl 8vV8oQUaMjM5ZtjXYxLBxyNGl/dckS/SOunx4uzIo7HxKj6mnXFDvix0OLl1IoQCNGbz //unU/SiMCnwUkZQQkLpQFjiEKHwvjBo1I0XsulFnIpGANcDlbbEjC+GoqOzFtg2SHA4 RneA== X-Gm-Message-State: AOJu0YxX4FWhmEg2IvNJSRvFDjEwzI4qDa3A9OWcx5MjKgEOQoZi4szh 4+0RC1iraqNlADgrBtWmdVwI5dMkYaRsRilfcGyfw2iYK/q4xK0/BWdyH6pONd2wcOfc1bQNg/0 ZwXmbEYndpLvFfRP9LoUIdVgdOnmlSN+xRRMU X-Received: by 2002:a05:6871:5a9a:b0:218:888f:54c7 with SMTP id oo26-20020a0568715a9a00b00218888f54c7mr2620332oac.47.1706723367499; Wed, 31 Jan 2024 09:49:27 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240122152905.2220849-1-jeffxu@chromium.org> <87a5ong41h.fsf@meer.lwn.net> In-Reply-To: <87a5ong41h.fsf@meer.lwn.net> From: Jeff Xu Date: Wed, 31 Jan 2024 09:49:15 -0800 Message-ID: Subject: Re: [PATCH v7 0/4] Introduce mseal() To: Jonathan Corbet 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jan 29, 2024 at 2:37=E2=80=AFPM Jonathan Corbet wr= ote: > > 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 complete= . We're super excited about introducing this as a general safety measure for all of Linux! Thanks -Jeff > Thanks, > > jon