From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 15E44606A323 for ; Sun, 29 Nov 2026 07:27:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=AI4J/Ibh Received: by kanga.kvack.org (Postfix) id 100DB6B05B0; Sun, 29 Nov 2026 02:27:55 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 0B1CF6B05B1; Sun, 29 Nov 2026 02:27:55 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F09A56B05B2; Sun, 29 Nov 2026 02:27:54 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id D61926B05B0 for ; Sun, 29 Nov 2026 02:27:54 -0500 (EST) Received: from smtpin16.hostedemail.com (lb01a-stub [10.200.18.249]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 581F7120240 for ; Sun, 29 Nov 2026 07:27:54 +0000 (UTC) X-FDA: 85487327268.16.95EB7F3 Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) by imf28.hostedemail.com (Postfix) with ESMTP id BCED0C000B for ; Sun, 29 Nov 2026 07:27:51 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20260515 header.b="AI4J/Ibh"; spf=pass (imf28.hostedemail.com: domain of sashiko-bot@kernel.org designates 172.234.252.31 as permitted sender) smtp.mailfrom=sashiko-bot@kernel.org; dmarc=pass (policy=quarantine) header.from=kernel.org ARC-Seal: i=1; a=rsa-sha256; d=hostedemail.com; s=arc-20220608; cv=none; t=1795937271; b=1GIX7jOTsa0QJxopTYVmh9+pQXWEEOmJ5SgGqpddSbg4OM7s7PCm+fn4m3BdI0t0jdIpSl fT5j5aSeyk+HSVspbhCHtfyhKxst4kLMQqTyheAdpnyiRJ97DlNg+O8OKbF9QpwdYD+pEN 6VA8kYOZ610jQq3pXiMDSI/8y4LjhG8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1795937271; h=from:from:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=yQ5GPXQWKBQ62gmzTwlyv27dABr3+XoYK3Dkgguhx1Q=; b=Ds6g9XNz/fLdhm/p6cqULj963AuDcMMnLQ7zc8Rs8CapoKQ9JOfkT3ux3a7vWWyq40AJ91 ITZeAM1++0siiksmubP2VRIEHe+B9O3L9+nobNCCD04petrT4gVb4FlgX334dQdOA0FPrx riMiHUT8YGn5SybsTlMMXdLJdjaMHFA= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20260515 header.b="AI4J/Ibh"; spf=pass (imf28.hostedemail.com: domain of sashiko-bot@kernel.org designates 172.234.252.31 as permitted sender) smtp.mailfrom=sashiko-bot@kernel.org; dmarc=pass (policy=quarantine) header.from=kernel.org 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 Reply-To: sashiko-reviews@lists.linux.dev 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-Rspam-User: X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: BCED0C000B X-Stat-Signature: w11htm1z6gzgtkmd76qx3mkhk3jfccqa X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=4.0.1 X-HE-Tag: 1795937271-716421 X-HE-Meta: U2FsdGVkX1/+bTV+QF9rk03zq6sKzmZtAorzF+c47FrFmPlnvX3Zu/0TSzgjDhuxN0o/z0znuJU6tqFt7L+PFavqW/UpwsGnKuT8T3p2pJDzWoJtHuIYkM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hlnMjPG8CswhC66M4NxMDbM5a4vasHaoqB3+fjhztTv3SeKFP+ImeoC3J67ZnMowDmx0URLJFRycozHZv+cCzRvW+Jro1KqZD4isBC/4y+dZnkPbRorji0DnAcSc+g0LCHve9z6ao5Uj6X+XtB/xq16kEXp/HHZoYuc92u35YHgrC4G7yw3wdYtQhU4zKSUG5L3lByPwUCghPxs8pYb65Jtne97MT6QGWndK2MAvQMG3wZI0191LFWxEvnjXIBQGCG6KKnuQ3EbHp+rImgCeuMDuHYJizcFM+L9yx1tqhqCLhpqtj20xKoXD4UHuFSqqflnidFxDvLavZcMQkFF9Y714sbh2Yq/ytFN92+MpYGIDETfyWJUvKtCMwygMdFKI3wJOS14jLMS5MofkKa+FoH31C6wio2MJFAdmJ1vhO4IehqcBQBqOa0xDGZff1UWTePL1JrDRh/kHxDyMLmjjJHyqfqXvqcAHyxy5WhyWFzVx/gXhragiGYz1El3DoSrJkmGyM0cAzaPShbQPX99ZkpnrPYVDQoIKy9yQTlzLiJjWGlRfJ4qJ6DPdVTFnLHbJHTSEqD3DGlww6vUzkH5GRoiP80Naele4vyHJJWKZJVrt5ivFGfFkPhx/a1Q== Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: 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