Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp3154450rdd; Sat, 13 Jan 2024 19:49:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IFcqXg95bcQi1ML6Y/x+vxo2yHRBDsLsHfgJV1W61u/oaWIOAm4wIxc4kvEfsnsFO/fpuyz X-Received: by 2002:a05:6602:5c1:b0:7bb:56b1:339e with SMTP id w1-20020a05660205c100b007bb56b1339emr4548669iox.15.1705204150684; Sat, 13 Jan 2024 19:49:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705204150; cv=none; d=google.com; s=arc-20160816; b=q1+MmVwRP1BdDGyYMdFqKwuO5357KjVWS89bhMBiLxlJMSYHihNsri9vcqwoQU9Fy8 y/9kWTzYJBeE4Kwi4JaeOOv8xsW134JdoLzINT89e3L1LaOzjkenAU8aKYX9ZBOzUAVk 1EQ8OEw9xPHGgPvsjRd7glsWw8o6sk54Z8SJvngMJe4euE0Jr7YvWsxKan4fHtRfS0EW oAKUp5u2DAjVJMHt1S9Sqg8i0WZjdegBIw8RIWS7b2ofkAFbrvvAN/ntV4uQ+Iv2foSk qGgihtR0/WwZvlI2wy1jMfKvTOSca1F+okXi0XLNpty5IxjjoYeGjAd8FNdew103b2Pu zssA== ARC-Message-Signature: i=1; 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=Fi83qxC7DN9Mrs6Lcn/FzkFtPxyAqAamlzctaT7s4iw=; fh=UMjvu8KvjmUo/Sji1F3mVF1EIf5tyevyrVBN+t8zack=; b=O5y2qgofuCzp3ikHENyn3SKaxXBBFLJ3XGgmzN7FbOpL9coTJYFtMImv3pMlxxRqpS D1akvEoIEeIIrIOU595lDE0aNyWwbpaDOSXtKTe7BGjhLoCFRYvUlIxZoE0cHUMwT4PF HdfNKHmHenor87RHDZ40F9qqRVMMsxYeg2mxEpos/vzMpupBXw9o1JrwoAVQldWTDVdo bjQVbvfEvWujWDlC6HQjH04RWL0sX6+KcfZ0f7uZRC9CKQWoMPIdvlZPeSLQ2QTTFYo5 zDgSrxq0Vp5U+P25eK40w9lOLG6xd7LtRquE7HxNNzExGTAm57uJrNhOMsu8TvH41Egd 39jA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Yqkrz5kD; spf=pass (google.com: domain of linux-kernel+bounces-25393-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25393-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id mo5-20020a1709030a8500b001d4bccbc42esi6177648plb.396.2024.01.13.19.49.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Jan 2024 19:49:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-25393-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Yqkrz5kD; spf=pass (google.com: domain of linux-kernel+bounces-25393-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25393-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 4E254282A95 for ; Sun, 14 Jan 2024 03:49:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A51241852; Sun, 14 Jan 2024 03:49:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="Yqkrz5kD" Received: from mail-oa1-f48.google.com (mail-oa1-f48.google.com [209.85.160.48]) (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 620FA17E8 for ; Sun, 14 Jan 2024 03:48:59 +0000 (UTC) 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-oa1-f48.google.com with SMTP id 586e51a60fabf-204520717b3so5220871fac.0 for ; Sat, 13 Jan 2024 19:48:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1705204138; x=1705808938; 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=Fi83qxC7DN9Mrs6Lcn/FzkFtPxyAqAamlzctaT7s4iw=; b=Yqkrz5kDxiv7/zEltjfmZnF4yjdyjTHO5kBf6lFurdpZoic3jit7KTS9IPzHyeuPHE pRSNWfPJcTIsReLo8+e2Y/QNzJZmixySqYa0mISR80xLx0mnoFY34fstVtZ1aJuD9xkg B723f0RnZH1aiAru7vUAJfh2D1Q0Twx1ES2fM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705204138; x=1705808938; 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=Fi83qxC7DN9Mrs6Lcn/FzkFtPxyAqAamlzctaT7s4iw=; b=gwmC0puSCUm59flxNefuk6sH91PnhRSYnYTQLFBF89cKw78l7yNOjt8naHO4KrWvjp ELRIi2X5GQ7uxWVS1IXZwGtH/W4YxSeKLvuvkyg4UYX3/1pywIZ7W+R+2BDzS2orEAzD FdzwjaBpyoYZsuwO+OEfZO4QEoAOyoVYDzeK1vK/CCbLknpiYl7lpZ3kfmaffqsK2dKY YxdSyHL6A3zCS7J25lGwrMSpnWLOx3AT2POiDZpnO6R6MATPZWY8x+iW3hbPrpLPUezL cJq0nzJGOBx1QbZhDNrbWjZYjZa9vQm/xkrElPv9f99Mp/QZ//ST81mDHVQzInTP2zBd Eovw== X-Gm-Message-State: AOJu0YzWGuYAIHx2lElXG7IZ7auQ7EF6h/2LOBEIDnUIiGlCWLXcL8x3 XUqaOOyIY/ms4hkhMphmY2g/Jwsjkvkz0y5rIcNs1fFjwopJ X-Received: by 2002:a05:6870:5cca:b0:202:ffc8:c6bb with SMTP id et10-20020a0568705cca00b00202ffc8c6bbmr5841416oab.4.1705204138403; Sat, 13 Jan 2024 19:48:58 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240111234142.2944934-1-jeffxu@chromium.org> <20240111234142.2944934-3-jeffxu@chromium.org> <202401131146.F017DB5870@keescook> In-Reply-To: <202401131146.F017DB5870@keescook> From: Jeff Xu Date: Sat, 13 Jan 2024 19:48:46 -0800 Message-ID: Subject: Re: [PATCH v6 2/4] mseal: add mseal syscall To: Kees Cook Cc: rdunlap@infradead.org, akpm@linux-foundation.org, jannh@google.com, sroettger@google.com, willy@infradead.org, gregkh@linuxfoundation.org, torvalds@linux-foundation.org, usama.anjum@collabora.com, 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 Sat, Jan 13, 2024 at 11:48=E2=80=AFAM Kees Cook = wrote: > > On Thu, Jan 11, 2024 at 11:41:39PM +0000, jeffxu@chromium.org wrote: > > diff --git a/include/linux/mm.h b/include/linux/mm.h > > index f5a97dec5169..345667583b03 100644 > > --- a/include/linux/mm.h > > +++ b/include/linux/mm.h > > @@ -30,6 +30,7 @@ > > #include > > #include > > #include > > +#include > > I think the arm64 build failure is from this include -- it's happening > too early and some of the arm defines aren't available yet? > good point, I will try fixing it. Thanks! -Jeff > -Kees > > -- > Kees Cook