From: Pasha Tatashin <pasha.tatashin@soleen.com>
To: Christian Brauner <brauner@kernel.org>
Cc: Pasha Tatashin <pasha.tatashin@soleen.com>,
luca.boccassi@gmail.com, kexec@lists.infradead.org,
linux-mm@kvack.org, graf@amazon.com, rppt@kernel.org,
pratyush@kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v8 3/6] liveupdate: add LUO_SESSION_MAGIC magic inode type
Date: Mon, 20 Apr 2026 16:39:20 +0000 [thread overview]
Message-ID: <dik6oamo2qluybxvyai2y6tq6fk3hun3rk2kxb5hdissaj6xbq@n2n2nm4qq75g> (raw)
In-Reply-To: <20260420-buchung-panne-57e262f5057f@brauner>
> > > Right, you're now sharing the same inode among all luo sessions. So
> > > you've gained the ability to recognize luo inodes via fstatfs() but you
> > > still can't compare two luo session file descriptors for equality using
> > > stat() which is a major win and if you're doing this work anyway, let's
> >
> > Luca, is there a specific use case in userspace where we need to compare
> > LUO sessions for equality?
> >
> > Christian's proposed solution of using unique inodes provides a standard
> > VFS interface, but it introduces some memory overhead and, more
> > importantly, a performance overhead due to the extra metadata
> > allocations required during the performance-critical kexec blackout
> > window.
>
> I'm excited to be convinced that the memory and performance overhead
> matters for luo file descriptors in any shape or form. Userspace manages
> processes using file descriptors via pidfs - systemd exclusively so. So
> even if luo session fds are created at the same rate and amount like
> processes you can rest assured that it will be fine.
That is fair, I do not mind having an inode per-session.
> Let me turn the argument around: You are adding a full-fledged
> filesystem to the kernel for the sole purpose of providing a separate
> filesystem type. Why are you bloating the whole kernel for this? Use
> the anonymous inode api that allocates a separate inode, use your own
> inode operations and then add an ioctl on top of luo if that's all you
> need. If this is a proper fs, please do it properly and with foresight.
That's exactly what we added initially: an anonymous inode, and a way to
identify if it is a session by poking /proc/ for the [luo_session]
prefix. However, I understand that is not ideal. I originally thought a
luo agent would never need to verify if an FD belongs to a LUO session,
but since userspace will need this capability, I am ok with doing it the
right way.
> This whole patchset is based on an idea of mine and I don't need to see
> it twisted into oblivion otherwise I'll just do it myself and properly.
I do not think that is happening.
> I definitely want to be able to compare luo session by fd sooner or
> later and retroactively bolting this on with the next hack because you
> have userspace depend on the single inode stuff is not going to fly.
Sounds good.
> You also need to have LSM filtering on what may be persisted and LUO in
> general. All of that falls out for free _trivially_ if you modify the
> code to what I did. It is incredibly easy to do. To me this is ducking
> behind questionable arguments to get something merged as quickly as
> possible.
+1.
Pasha
next prev parent reply other threads:[~2026-04-20 16:39 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-18 16:28 [PATCH v8 0/6] liveupdate: new ioctl, change session inode type, bug fixes luca.boccassi
2026-04-18 16:28 ` [PATCH v8 1/6] liveupdate: reject LIVEUPDATE_IOCTL_CREATE_SESSION with invalid name length luca.boccassi
2026-04-19 15:06 ` Pasha Tatashin
2026-04-18 16:28 ` [PATCH v8 2/6] selftests/liveupdate: add test cases for LIVEUPDATE_IOCTL_CREATE_SESSION calls with invalid length luca.boccassi
2026-04-19 15:11 ` Pasha Tatashin
2026-04-18 16:28 ` [PATCH v8 3/6] liveupdate: add LUO_SESSION_MAGIC magic inode type luca.boccassi
2026-04-20 12:26 ` Christian Brauner
2026-04-20 14:22 ` Luca Boccassi
2026-04-20 14:57 ` Pasha Tatashin
2026-04-20 15:05 ` Christian Brauner
2026-04-20 14:55 ` Pasha Tatashin
2026-04-20 14:59 ` Luca Boccassi
2026-04-20 15:28 ` Christian Brauner
2026-04-20 15:57 ` Pasha Tatashin
2026-04-20 16:39 ` Pasha Tatashin [this message]
2026-04-18 16:28 ` [PATCH v8 4/6] selftests/liveupdate: add test case for LUO_SESSION_MAGIC luca.boccassi
2026-04-18 16:28 ` [PATCH v8 5/6] liveupdate: add LIVEUPDATE_SESSION_GET_NAME ioctl luca.boccassi
2026-04-18 16:28 ` [PATCH v8 6/6] selftests/liveupdate: add test cases for LIVEUPDATE_SESSION_GET_NAME luca.boccassi
2026-04-19 15:12 ` Pasha Tatashin
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=dik6oamo2qluybxvyai2y6tq6fk3hun3rk2kxb5hdissaj6xbq@n2n2nm4qq75g \
--to=pasha.tatashin@soleen.com \
--cc=brauner@kernel.org \
--cc=graf@amazon.com \
--cc=kexec@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=luca.boccassi@gmail.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