From: Christoph Hellwig <hch@infradead.org>
To: David Matlack <dmatlack@google.com>
Cc: Christoph Hellwig <hch@infradead.org>,
kexec@lists.infradead.org, linux-kernel@vger.kernel.org,
linux-kselftest@vger.kernel.org, linux-pci@vger.kernel.org,
linux-riscv@lists.infradead.org,
Albert Ou <aou@eecs.berkeley.edu>,
Alexandre Ghiti <alex@ghiti.fr>,
Alex Williamson <alex@shazbot.org>,
Bjorn Helgaas <bhelgaas@google.com>,
Jacob Pan <jacob.pan@linux.microsoft.com>,
Jason Gunthorpe <jgg@nvidia.com>, Josh Hilke <jrhilke@google.com>,
Lukas Wunner <lukas@wunner.de>, Mike Rapoport <rppt@kernel.org>,
Palmer Dabbelt <palmer@dabbelt.com>,
Parav Pandit <parav@nvidia.com>,
Pasha Tatashin <pasha.tatashin@soleen.com>,
Paul Walmsley <pjw@kernel.org>,
Pranjal Shrivastava <praan@google.com>,
Pratyush Yadav <pratyush@kernel.org>,
Samiullah Khawaja <skhawaja@google.com>,
Shuah Khan <shuah@kernel.org>, Vipin Sharma <vipinsh@google.com>,
kexec <kexec-bounces@lists.infradead.org>
Subject: Re: [PATCH 01/18] liveupdate: Export symbols needed by modules
Date: Wed, 2 Dec 2026 23:53:38 -0800 [thread overview]
Message-ID: <axEgAvVcYmO606II@infradead.org> (raw)
In-Reply-To: <DNAF5ARP5PDX.U9IPGTUI5XB0@google.com>
On Wed, Dec 02, 2026 at 09:22:05AM -0800, David Matlack wrote:
> On Tue Dec 1, 2026 at 11:18 PM PST, Christoph Hellwig wrote:
> > On Wed, Dec 02, 2026 at 12:39:38AM +0000, David Matlack wrote:
> >> From: Vipin Sharma <vipinsh@google.com>
> >>
> >> Export liveupdate_register_file_handler() and
> >> liveupdate_unregister_file_handler() so that drivers built as modules
> >> can register Live Update file handlers.
> >
> > I don't see any such driver in this series. And the diea of allowing
> > reandom drivers to register this information feels wrong.
>
> The user in this series is the test driver added in patch 10
> (tools/testing/selftests/liveupdate/modules/luo_pci_test_driver.c),
Which of course does not count as a user. It's just code you make up,
not real code.
> which the selftests build as a module and load in the kernel. The other
> user will be vfio-pci, from the VFIO Live Update series, which is where
> this patch comes from:
>
> https://lore.kernel.org/kvm/20260714151505.3466855-1-vipinsh@google.com/
>
> To address the concern about random drivers, I see two options:
>
> A. Restrict these exports to the modules that need them, i.e.
> EXPORT_SYMBOL_FOR_MODULES(..., "vfio-pci,luo_pci_test_driver").
>
> B. Make the test driver built-in, behind a Kconfig option like the
> existing CONFIG_LIVEUPDATE_TEST, and drop this patch from this
> series. vfio-pci would still need exports though.
>
> Can you say more about what your concern is?
The concern is to add dangerous exports without in-tree actual users.
> Is it mainly about which
> modules can call these functions, or about drivers registering Live
> Update file handlers at all? If it's the latter, I'd like to understand
> it, since that's how drivers like vfio-pci are expected to preserve
The main concert is adding it without a real user, which is a complete
no-go. But even with a user like vfio-pci (which should have been part
of the series) this looks dangerous enough to not be exported globally.
---end quoted text---
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
next prev parent reply other threads:[~2026-12-03 7:53 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 0:39 [PATCH 00/18] selftests/liveupdate: Add PCI Live Update selftests David Matlack
2026-12-02 0:39 ` [PATCH 01/18] liveupdate: Export symbols needed by modules David Matlack
2026-12-02 7:18 ` Christoph Hellwig
2026-12-02 17:22 ` David Matlack
2026-12-03 7:53 ` Christoph Hellwig [this message]
2026-12-02 0:39 ` [PATCH 02/18] selftests/liveupdate: Exit with KSFT_SKIP when vmtest.sh skips a test David Matlack
2026-12-02 0:39 ` [PATCH 03/18] selftests/liveupdate: Build objects in $(OUTPUT) David Matlack
2026-12-02 0:39 ` [PATCH 04/18] selftests/liveupdate: Support building the kexec tests against nolibc David Matlack
2026-12-02 0:39 ` [PATCH 05/18] selftests/liveupdate: Build vmtest.sh's binaries with the Makefile David Matlack
2026-12-02 0:39 ` [PATCH 06/18] selftests/liveupdate: Support test definitions in vmtest.sh David Matlack
2026-12-02 0:39 ` [PATCH 07/18] selftests/liveupdate: Support kernel modules " David Matlack
2026-12-02 0:39 ` [PATCH 08/18] selftests/liveupdate: Support a different command line for each kernel David Matlack
2026-12-02 0:39 ` [PATCH 09/18] selftests/liveupdate: Run tests in subdirectories from run-vmtests.sh David Matlack
2026-12-02 0:39 ` [PATCH 10/18] selftests/liveupdate: Add a test driver for PCI Live Update David Matlack
2026-12-02 0:39 ` [PATCH 11/18] selftests/liveupdate: pci: Add a test with an endpoint below a root port David Matlack
2026-12-02 0:39 ` [PATCH 12/18] selftests/liveupdate: pci: Check PCI config writes with QEMU tracing David Matlack
2026-12-02 0:39 ` [PATCH 13/18] selftests/liveupdate: pci: Add a test with an endpoint on the root bus David Matlack
2026-12-02 0:39 ` [PATCH 14/18] selftests/liveupdate: pci: Add a test with an endpoint below a switch David Matlack
2026-12-02 0:39 ` [PATCH 15/18] selftests/liveupdate: pci: Test bus numbers with pci=assign-busses David Matlack
2026-12-02 0:39 ` [PATCH 16/18] selftests/liveupdate: pci: Test bus numbers with pci=hpbussize David Matlack
2026-12-02 0:39 ` [PATCH 17/18] selftests/liveupdate: pci: Test ARI Forwarding with pci=noari David Matlack
2026-12-02 0:39 ` [PATCH 18/18] selftests/liveupdate: pci: Test ACS with pci=config_acs David Matlack
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=axEgAvVcYmO606II@infradead.org \
--to=hch@infradead.org \
--cc=alex@ghiti.fr \
--cc=alex@shazbot.org \
--cc=aou@eecs.berkeley.edu \
--cc=bhelgaas@google.com \
--cc=dmatlack@google.com \
--cc=jacob.pan@linux.microsoft.com \
--cc=jgg@nvidia.com \
--cc=jrhilke@google.com \
--cc=kexec-bounces@lists.infradead.org \
--cc=kexec@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=lukas@wunner.de \
--cc=palmer@dabbelt.com \
--cc=parav@nvidia.com \
--cc=pasha.tatashin@soleen.com \
--cc=pjw@kernel.org \
--cc=praan@google.com \
--cc=pratyush@kernel.org \
--cc=rppt@kernel.org \
--cc=shuah@kernel.org \
--cc=skhawaja@google.com \
--cc=vipinsh@google.com \
/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