From: luca.boccassi@gmail.com
To: kexec@lists.infradead.org
Cc: linux-mm@kvack.org, rppt@kernel.org, pasha.tatashin@soleen.com,
pratyush@kernel.org, linux-kernel@vger.kernel.org,
Luca Boccassi <luca.boccassi@gmail.com>
Subject: [PATCH v10 0/4] liveupdate: bug fix for session name and new ioctl to read it
Date: Fri, 24 Apr 2026 00:44:19 +0100 [thread overview]
Message-ID: <20260423234753.3873095-1-luca.boccassi@gmail.com> (raw)
From: Luca Boccassi <luca.boccassi@gmail.com>
A series of patches matured while implementing LUO support in userspace
in systemd.
- reject session names that are either empty strings or too long
- add new ioctl to retrieve session name from FD, so that userspace
can query it without string parsing in procfs
Both changes come with a follow-up patch add test coverage via the
existing selftest.
v2: apply one fix from bot review about cleanup on error path:
https://sashiko.dev/#/patchset/20260415184536.1155220-1-luca.boccassi%40gmail.com
the other comments are invalid: luo is not a kmod, and the write hooks are not set up
v3: add test case to liveupdate selftest
v4: split test case in separate follow-up patch
v5: add r-b tag, merge series with LIVEUPDATE_SESSION_GET_NAME ioctl
as they both change the same unit test source file, to avoid merge conflicts
add '__u32 reserved' to the UAPI struct
v6: add more test cases as suggested
more verbose commit message
fix docstring
v7: apply suggestion from review bot to stub out setattr ops,
like it was done in 22bdf3d6581a
v8: add new patches to reject session names that are empty or too long
v9: fixes following review comments on LUO_SESSION_MAGIC
v10: split out LUO_SESSION_MAGIC patch as it is undergoing more discussions,
and the other two patches are independent aside from adding test cases
to the same unit test source file
Luca Boccassi (4):
liveupdate: reject LIVEUPDATE_IOCTL_CREATE_SESSION with invalid name
length
selftests/liveupdate: add test cases for
LIVEUPDATE_IOCTL_CREATE_SESSION calls with invalid length
liveupdate: add LIVEUPDATE_SESSION_GET_NAME ioctl
selftests/liveupdate: add test cases for LIVEUPDATE_SESSION_GET_NAME
include/uapi/linux/liveupdate.h | 21 ++++
kernel/liveupdate/luo_session.c | 17 +++
.../testing/selftests/liveupdate/liveupdate.c | 113 ++++++++++++++++++
3 files changed, 151 insertions(+)
--
2.47.3
next reply other threads:[~2026-04-23 23:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-23 23:44 luca.boccassi [this message]
2026-04-23 23:44 ` [PATCH v10 1/4] liveupdate: reject LIVEUPDATE_IOCTL_CREATE_SESSION with invalid name length luca.boccassi
2026-04-23 23:44 ` [PATCH v10 2/4] selftests/liveupdate: add test cases for LIVEUPDATE_IOCTL_CREATE_SESSION calls with invalid length luca.boccassi
2026-04-23 23:44 ` [PATCH v10 3/4] liveupdate: add LIVEUPDATE_SESSION_GET_NAME ioctl luca.boccassi
2026-04-23 23:44 ` [PATCH v10 4/4] selftests/liveupdate: add test cases for LIVEUPDATE_SESSION_GET_NAME luca.boccassi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260423234753.3873095-1-luca.boccassi@gmail.com \
--to=luca.boccassi@gmail.com \
--cc=kexec@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=pasha.tatashin@soleen.com \
--cc=pratyush@kernel.org \
--cc=rppt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox