Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp116946lqp; Mon, 10 Jun 2024 21:26:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUXp7hc1ibT+vyM/oAPGQQ77JjxbBAhHMTBCf/Ert/a3oR3cA7KkTnvYhUB5yBB+3T8ZnqcdFS8+GgobbkA7iyPeTfj4uN+0lg6prvqzw== X-Google-Smtp-Source: AGHT+IFXiS/+rZCDNafk5MzWWKP0hPIQ7ZEGQUwLa38khrY+wG0pH7shPzn2UYGinSORxSMxKCGb X-Received: by 2002:a05:6122:319a:b0:4eb:5cb9:f219 with SMTP id 71dfb90a1353d-4eb5cb9f4a2mr9901944e0c.0.1718079992639; Mon, 10 Jun 2024 21:26:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718079992; cv=pass; d=google.com; s=arc-20160816; b=UAzIwn+lVVHv51/zYuuyQ9ar6+mZ0nwUut8RUmgneVNNBMPGMyOAPaNN+F+GDWmdTi MjlADkDEQk3VtsjljY5yVWt0uHl8mKsp8S8bRHziRgUDQ9wCTJc+UXWVuhYEPSu9owXT 8UAr2x87QDRgYBvpx2nPWS7cCeXzrsBmPEuHohShzA2AxXCXZpJfU1yPGGykOK3h9nPC GdndH2jXQDIKe7aq+g8ol2c4UYyTO72tcstFTMsVO97pA9op7RzjSbSBToPWKkRStp2E GRfRHlNAejHCR2EB/y9vuMl8APXKMGbTctzxRkXCFqYaCcmxlZj1+PUW0a/kfvAIwtgP CVDQ== 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=IyZsNH9Sc1x7yXcWCuPg478ZMDctoHgE18epfdz43V0=; fh=pUNesxWfTCZzMZm68Gx9NK8Lf4gyruEtF+JLnH0zz7M=; b=yO7lkN3vs7qmEuF18nEW5al1m3bV8NMgyuoMjSofcSoSlCtg9CTR/xzBaprXMRACjA 9ieut4i1PP+yTWT30O0V2mahb3bhTLXXz0pAWe1ecIxQiYxxDokYg9qeH33X5Lo5OLAU gFRW/C008PhLFTIvIZOJ+nucAD48MP3CfF55XkJkoO9Ip0PbtTcgVS/8YMDgKbt5bCCc igY07xLa6Em29zZFcptTezxE3nFLKnyWuFN4Gw4kyRcxsCxnpdnWyRTOMaCd6LHOAU8W aBVmL9Ei7zAQvnC1E+hLlkxQamL0BgIgsnPFCBAnnW2BWNBGdsVI8NXAR92kybpBGpIA O22w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=XktSqz4x; 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-209247-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209247-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6b063702b2fsi89246216d6.373.2024.06.10.21.26.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 21:26:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209247-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=@chromium.org header.s=google header.b=XktSqz4x; 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-209247-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209247-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 58C531C21BFC for ; Tue, 11 Jun 2024 04:26:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BAD4C16FF38; Tue, 11 Jun 2024 04:26:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="XktSqz4x" Received: from mail-oa1-f46.google.com (mail-oa1-f46.google.com [209.85.160.46]) (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 6F8A32570 for ; Tue, 11 Jun 2024 04:26:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718079983; cv=none; b=oIbpiMXLDCCuTHl/IhYB5iH1yShZMdkN/beAvFRlBjwAiib3EvXw8WwPeDUBggsFemLO6ojGZ5wAaQMfe6yEr/QVwpm4BsCDHjvVyTdn30XlphQbTZeiJTw7ZfsXAjT1Hl2NV0sCKXPz6LYMeTx9H0nEb4kmjWqt70GHHBVU9e0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718079983; c=relaxed/simple; bh=uO0RrhHuqyUcZ8FW/DdPkgw2Q1fkZ4XCBhNFadXwJsQ=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=uhoAvMk0ScqYPySismqyr1dK6ojIkgPTVoImMzk2dDbgd2nBMdTWmYJRwnZPsggSBEYyNoDH70KxUsFsavxs4KheergifJARSHaMROzuAZHR+BYWTUCBX043ippFuzpQhEInDSxY33YgfKt48lSzvItYK01/mIUtcuYnFXeBgp0= 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=XktSqz4x; arc=none smtp.client-ip=209.85.160.46 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-f46.google.com with SMTP id 586e51a60fabf-254c56efe06so853883fac.2 for ; Mon, 10 Jun 2024 21:26:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1718079981; x=1718684781; 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=IyZsNH9Sc1x7yXcWCuPg478ZMDctoHgE18epfdz43V0=; b=XktSqz4xmelYHg93JGxvMVTjG4+hK/MtIsfy2LirxpdzlAbqy7smmi58FFKvkJ/1lu dPWKGiX3gmdEClWdEvIKuLnFxy7DwIgaeHcDQCZySxdDsXuIp9LNHkkutYmOucuvEEqR LEfwAytIRla7u75ACHPC535Hr0h4qCSToy1CA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718079981; x=1718684781; 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=IyZsNH9Sc1x7yXcWCuPg478ZMDctoHgE18epfdz43V0=; b=lrvwMZEqDLJp1+Cme4TInsvD/PAgX4Ex0E7ZghYw58ZlIQEAVa+lwviVtYcaFz1/6F 6/E8SdHRrpS2ZR0SDMsB5s9x17XfoH/hcmDdyetECvoW/snJIOqUFOPP2H/Lbaj86SSt rZ693aGnQF2xO/XMKjGoujFJJbtB7WqeZmMVqWp2O5DURTdLY/0CvXzCIxx+2TReyrMm w9fiBb1Xt7+2MtqG8MsdDV2BUrQs1iV7J9M/GkQorFBmBKnl+BMQYHuP472auevql56o bRtk3XapRHgp+vr6J7dnTteLrUSPliTB+mf36jAH7Q/1XWbCzn/O9+dFSwItrdUF2IWK +7aQ== X-Forwarded-Encrypted: i=1; AJvYcCXMfIXs/XfotHGcl3Ve75KtF1OiaIO5uNuzD7LQ4fp/apMnLFmnbBCGy/IHxxpBlpC46zjFE0RfFGfE2UgTEjAoq3zQWA193dtovrQn X-Gm-Message-State: AOJu0YydYfTIzjP76bYwKvtfhyfi0Y2+zrJQRab48stAfvXtEaBCF+EA uGtCd61IulCLi4IW8jDkL1RZ0SmwIhgrSiEgUKJq+AdG+f6TDnc1/afAVYirUUKbkvIZ0wOtT5t gbcDl/UmIyjUMGfjhwMTRr8LLUiq2L4Y85u57 X-Received: by 2002:a05:6870:56a4:b0:254:826f:a9d9 with SMTP id 586e51a60fabf-254827023d3mr11111691fac.39.1718079981520; Mon, 10 Jun 2024 21:26:21 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240608021023.176027-1-jhubbard@nvidia.com> <20240608021023.176027-2-jhubbard@nvidia.com> In-Reply-To: <20240608021023.176027-2-jhubbard@nvidia.com> From: Jeff Xu Date: Mon, 10 Jun 2024 21:26:10 -0700 Message-ID: Subject: Re: [PATCH 1/5] selftests/mm: mseal, self_elf: fix missing __NR_mseal To: John Hubbard Cc: Andrew Morton , Shuah Khan , Andrei Vagin , Axel Rasmussen , Christian Brauner , David Hildenbrand , Kees Cook , Kent Overstreet , "Liam R . Howlett" , Muhammad Usama Anjum , Peter Xu , Rich Felker , linux-mm@kvack.org, linux-kselftest@vger.kernel.org, LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi On Fri, Jun 7, 2024 at 7:10=E2=80=AFPM John Hubbard w= rote: > > The selftests/mm build isn't exactly "broken", according to the current > documentation, which still claims that one must run "make headers", > before building the kselftests. However, according to the new plan to > get rid of that requirement [1], they are future-broken: attempting to > build selftests/mm *without* first running "make headers" will fail due > to not finding __NR_mseal. > > Therefore, add __NR_mseal, to a new mseal_helpers.h file. That file is > small right now, but subsequent patches will add a lot more content to > it. > > [1] commit e076eaca5906 ("selftests: break the dependency upon local > header files") > > Fixes: 4926c7a52de7 ("selftest mm/mseal memory sealing") > Cc: Jeff Xu > Signed-off-by: John Hubbard Reviewed-by: Jeff Xu Tested-by: Jeff Xu > --- > tools/testing/selftests/mm/mseal_helpers.h | 5 +++++ > tools/testing/selftests/mm/mseal_test.c | 1 + > tools/testing/selftests/mm/seal_elf.c | 1 + > 3 files changed, 7 insertions(+) > create mode 100644 tools/testing/selftests/mm/mseal_helpers.h > > diff --git a/tools/testing/selftests/mm/mseal_helpers.h b/tools/testing/s= elftests/mm/mseal_helpers.h > new file mode 100644 > index 000000000000..b922d453a014 > --- /dev/null > +++ b/tools/testing/selftests/mm/mseal_helpers.h > @@ -0,0 +1,5 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > + > +#ifndef __NR_mseal > +#define __NR_mseal 462 > +#endif > diff --git a/tools/testing/selftests/mm/mseal_test.c b/tools/testing/self= tests/mm/mseal_test.c > index 41998cf1dcf5..20949617a036 100644 > --- a/tools/testing/selftests/mm/mseal_test.c > +++ b/tools/testing/selftests/mm/mseal_test.c > @@ -17,6 +17,7 @@ > #include > #include > #include > +#include "mseal_helpers.h" > > /* > * need those definition for manually build using gcc. > diff --git a/tools/testing/selftests/mm/seal_elf.c b/tools/testing/selfte= sts/mm/seal_elf.c > index f2babec79bb6..4053951a535c 100644 > --- a/tools/testing/selftests/mm/seal_elf.c > +++ b/tools/testing/selftests/mm/seal_elf.c > @@ -16,6 +16,7 @@ > #include > #include > #include > +#include "mseal_helpers.h" > > /* > * need those definition for manually build using gcc. > -- > 2.45.2 >