From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3FEF3606A69B for ; Sun, 29 Nov 2026 07:27:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=wClyI88S; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=AI4J/Ibh DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Reply-To:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Date: Content-Transfer-Encoding:Content-Type:References:In-Reply-To:Cc:To:Subject: From:Message-ID:MIME-Version:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=yQ5GPXQWKBQ62gmzTwlyv27dABr3+XoYK3Dkgguhx1Q=; b=wClyI88SnUbldCoOmqIDQVjsF6 JDSEEPXzjyKQOI9zNNUZKcODoQ0XVLJpqLcrNuBIbqSMPzpC9LQf4gxoHjq8QsnAb6nBNFm/Ogbfp WWX/lAF3Q+Tqz4cE2QCw5m4YfiwuWdiIMDeKmIjlU48Zvw9USIOtVGMu74DaW7JT4ynMR0tTT4MV9 JmJMEqGA856C7D0hHu8Vge/7qPE18hjjP5ag/8vDzuihmqpfU9WQsewpGLoq5Rr4CsCJgEsyeZ7Mt SM+d5it9jjl1hideS08KbiMDInX+0NxVZ7zgrcnuobNYFQkS0Rj4lCI08Ncq5SxW49ql3zEywK6li jlY5W97g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXZKB-00000001em3-3LHX; Sun, 29 Nov 2026 07:27:51 +0000 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXZKB-00000001eln-1Grq for kexec@lists.infradead.org; Sun, 29 Nov 2026 07:27:51 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id AC58942AC1; Sun, 29 Nov 2026 07:27:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1D3F41F0089B; Sun, 29 Nov 2026 07:27:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795937270; bh=yQ5GPXQWKBQ62gmzTwlyv27dABr3+XoYK3Dkgguhx1Q=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=AI4J/IbhxzBkhybEE/acIKlHCc3mwIijN8HDLQHwZDtdGTd0UfhAUa1PCLct/wqH/ PJ9O+WLrZS/GaPrn/Njze4I04Jh+0QsR4WjGpQWdnrIVGCr6IISprL5UBIhA3hAZUm qb7i8N6srQ84woW6uMrcLwLXIOh1WwVoDBUUYWEhrx9Ql6xCfSiTeH1MDyuPxKev8g 9WEUqRdd/wVs6SKklx7A66Xbet9fPM5sJLy0i0Iks56jZV4GPOTi5aPitWrg7VP3No IfQGEjp3uxCiF2sJd46B+J251eEK61xwrS+e7JHxdV+uY7F+1RO7pRQeeNLNCBRQel 56A7nLPSC8XqQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 2/2] selftests/liveupdate: add seal-after-preserve kexec test To: "Long Wei" , rppt@kernel.org, pasha.tatashin@soleen.com, pratyush@kernel.org Cc: shuah@kernel.org, akpm@linux-foundation.org, linux-mm@kvack.org, kexec@lists.infradead.org, hewenliang4@huawei.com In-Reply-To: <20261128072444.1114964-3-longwei27@huawei.com> References: <20261128072444.1114964-1-longwei27@huawei.com> <20261128072444.1114964-3-longwei27@huawei.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sun, 29 Nov 2026 07:27:49 +0000 X-BeenThere: kexec@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sashiko-reviews@lists.linux.dev Sender: "kexec" X-Spam-Status: No, score=-10.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 X-Archived-By: Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Medium] selftests/liveupdate: missing __NR_fcntl64 fallback in LUO_FCNTL_NR -- commit b099e7f10e3cdd248ce57bd488ae708e0afbe3d7 Author: Long Wei selftests/liveupdate: add seal-after-preserve kexec test This commit adds a kexec selftest that preserves an unsealed memfd, adds F_SEAL_GROW after preservation, and verifies that both the memfd contents and the seal survive across a kexec reboot. > diff --git a/tools/testing/selftests/liveupdate/luo_seal_after_preserve.c= b/tools/testing/selftests/liveupdate/luo_seal_after_preserve.c > new file mode 100644 > index 0000000000000..12e6731c9235a > --- /dev/null > +++ b/tools/testing/selftests/liveupdate/luo_seal_after_preserve.c > @@ -0,0 +1,170 @@ [ ... ] > +/* > + * Prefer SYS_fcntl when the libc defines it (glibc, musl); fall back to > + * __NR_fcntl which is the only name nolibc provides. > + */ > +#ifdef SYS_fcntl > +#define LUO_FCNTL_NR SYS_fcntl > +#else > +#define LUO_FCNTL_NR __NR_fcntl > +#endif [Severity: Medium] Does LUO_FCNTL_NR fail to compile on 32-bit architectures that use the generic syscall table? In include/uapi/asm-generic/unistd.h, __NR_fcntl is only defined when __BITS_PER_LONG =3D=3D 64; 32-bit targets such as riscv32 only define __NR_fcntl64 (and SYS_fcntl64 in libc), as seen in tools/include/nolibc/sys.h:_sys_dup2(). Without falling back to SYS_fcntl64 or __NR_fcntl64, building kselftests on those architectures fails with an undeclared __NR_fcntl identifier. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261128072444.1114= 964-1-longwei27@huawei.com?part=3D2