* [PATCH v3 00/11] driver core: Disable driver overriding by default
@ 2026-12-04 10:47 Uwe Kleine-König
2026-12-04 10:47 ` [PATCH v3 10/11] slimbus: qcom-ngd-ctrl: Allow untainted use of driver_override Uwe Kleine-König
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Uwe Kleine-König @ 2026-12-04 10:47 UTC (permalink / raw)
To: Danilo Krummrich, Greg Kroah-Hartman, Bjorn Helgaas,
Alex Williamson, Stephen Boyd, Brian Masney, Jerome Brunet,
Srinivas Kandagatla, Liam Girdwood, Mark Brown, Jaroslav Kysela,
Takashi Iwai, Gary Guo
Cc: Jonathan Corbet, Shuah Khan, Randy Dunlap, Rafael J. Wysocki,
Johan Hovold, Michael Kelley, linux-doc, driver-core,
linux-kernel, linux-trace-kernel, linux-spi, Bjorn Andersson,
Mathieu Poirier, linux-remoteproc, Eric Farman, Matthew Rosato,
Halil Pasic, Vineeth Vijayan, Peter Oberparleiter, Heiko Carstens,
Vasily Gorbik, Alexander Gordeev, Christian Borntraeger,
Sven Schnelle, Tony Krowiak, Jason Herne, Harald Freudenberger,
Holger Dengler, linux-s390, kvm, linux-pci, Nipun Gupta,
Nikhil Agarwal, Ioana Ciornei, Longfang Liu, Jason Gunthorpe,
Yishai Hadas, Shameer Kolothum, Kevin Tian, Julian Ruess,
Ankit Agrawal, Brett Creeley, Giovanni Cabiddu,
Michał Winiarski, Eric Auger, Mostafa Saleh,
Pranjal Shrivastava, Simon Song, qat-linux, virtualization,
intel-xe, Haiyang Zhang, Wei Liu, Dexuan Cui, Michael S. Tsirkin,
linux-hyperv, Abel Vesa, Pengutronix Kernel Team, Fabio Estevam,
linux-clk, imx, linux-arm-kernel, linux-arm-msm, linux-sound,
Sylwester Nawrocki
Hello,
here comes v3 of this series, compared to v2[1] the following things
changed:
- reshuffled the series to have patches which I consider adequately
acked by maintainers to be picked up (that is patch #2 (spi) for
sure, I'd say #3-#5 (remoteproc, s390/*) are fine, too).
- Added a patch by Peter Oberparleiter that was created in reply to
v2's patch #4
- Dropped a =1 in patch #1's commit log that I failed to adapt for the
changed parameter usage, thanks to Michael Kelley.
As before this series closes the possibility for root-triggered oopses
which happen for many drivers when bound to devices they don't match to
without the driver_override mechanism. With this series drivers must
explicitly allow matching devices using driver_override. If a driver is
missed, this can be easily addressed by setting the new driver flag (as
done in patches #2 and later) and for end-users there is a kernel
parameter that can be set without source changes to restore the current
behaviour (with a taint however).
Danilo Krummrich wrote that he expects a stable branch won't be needed
and just taking the whole patch set via driver-core should be fine. I'd
give him the responsibility to judge if the patches without maintainer
feedback should be picked, too. If you're such a maintainer, an ack
would be helpful for sure. That would be:
- patch #6: PCI: Allow untainted driver_override for PCI stub drivers
Bjorn Helgaas <bhelgaas@google.com>
- patch #7: vfio: Allow untainted use of driver_override
Alex Williamson <alex@shazbot.org> (I assume that one is fine, too,
given he is the author of the patch)
- patch #8: uio: Allow untainted use of driver_override
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
- patch #9: clk: imx: scu: Allow untainted use of driver_override
Stephen Boyd <sboyd@kernel.org>
Brian Masney <bmasney+clk@redhat.com>
Jerome Brunet <jbrunet+clk@baylibre.com>
- patch #10: slimbus: qcom-ngd-ctrl: Allow untainted use of driver_override
Srinivas Kandagatla <srini@kernel.org>
- patch #11: ASoC: samsung: i2s: Allow untainted use of driver_override
Liam Girdwood <lgirdwood@gmail.com>
Mark Brown <broonie@kernel.org>
Jaroslav Kysela <perex@perex.cz> (?)
Takashi Iwai <tiwai@suse.com> (?)
Gary Guo mentioned an alternative for some busses in
https://lore.kernel.org/lkml/DN4RPY231N71.1XDIB9HKGBU0O@garyguo.net . I
didn't check/understood his proposal in detail, but I think for all the
busses that don't have their own override management the approach from
this patch set is the way to go. For the busses mentioned by Gary (CDX,
PCI, s390/css, s390/ap, spi, and vdpa) the special handling can be
discussed separately.
@Gary: Please speak up if I misjudged that and this series needs
adaption.
Best regards
Uwe
[1] https:/lore.kernel.org/lkml/cover.1795171088.git.u.kleine-koenig@baylibre.com
Alex Williamson (3):
s390/vfio: Allow untainted use of driver_override
PCI: Allow untainted driver_override for PCI stub drivers
vfio: Allow untainted use of driver_override
Peter Oberparleiter (1):
s390/cio: Allow untainted use of driver_override
Uwe Kleine-König (7):
driver core: Disable driver overriding by default
spi: spidev: Allow untainted use of driver_override
remoteproc: Allow untainted use of driver_override
uio: Allow untainted use of driver_override
clk: imx: scu: Allow untainted use of driver_override
slimbus: qcom-ngd-ctrl: Allow untainted use of driver_override
ASoC: samsung: i2s: Allow untainted use of driver_override
.../admin-guide/kernel-parameters.txt | 6 +++
Documentation/admin-guide/tainted-kernels.rst | 54 ++++++++++---------
drivers/base/bus.c | 51 ++++++++++++++++++
drivers/clk/imx/clk-scu.c | 1 +
drivers/pci/pci-pf-stub.c | 1 +
drivers/pci/pci-stub.c | 1 +
drivers/rpmsg/rpmsg_ctrl.c | 1 +
drivers/rpmsg/rpmsg_ns.c | 5 +-
drivers/s390/cio/device.c | 1 +
drivers/s390/cio/vfio_ccw_drv.c | 1 +
drivers/s390/crypto/vfio_ap_drv.c | 1 +
drivers/slimbus/qcom-ngd-ctrl.c | 1 +
drivers/spi/spidev.c | 1 +
drivers/uio/uio_dmem_genirq.c | 1 +
drivers/uio/uio_hv_generic.c | 1 +
drivers/uio/uio_pci_generic.c | 1 +
drivers/uio/uio_pdrv_genirq.c | 1 +
drivers/vfio/cdx/main.c | 1 +
drivers/vfio/fsl-mc/vfio_fsl_mc.c | 1 +
.../vfio/pci/hisilicon/hisi_acc_vfio_pci.c | 3 +-
drivers/vfio/pci/ism/main.c | 3 +-
drivers/vfio/pci/mlx5/main.c | 3 +-
drivers/vfio/pci/nvgrace-gpu/main.c | 3 +-
drivers/vfio/pci/pds/pci_drv.c | 3 +-
drivers/vfio/pci/qat/main.c | 3 +-
drivers/vfio/pci/vfio_pci.c | 3 +-
drivers/vfio/pci/virtio/main.c | 3 +-
drivers/vfio/pci/xe/main.c | 3 +-
drivers/vfio/platform/vfio_amba.c | 1 +
drivers/vfio/platform/vfio_platform.c | 1 +
include/linux/device.h | 19 +------
include/linux/device/driver.h | 2 +
include/linux/panic.h | 3 +-
include/trace/events/module.h | 3 +-
kernel/panic.c | 3 +-
sound/soc/samsung/i2s.c | 1 +
tools/debugging/kernel-chktaint | 9 ++++
37 files changed, 145 insertions(+), 55 deletions(-)
base-commit: 0b5bb03d26a268f2606e3f574b277a1105136328
--
2.47.3
^ permalink raw reply [flat|nested] 5+ messages in thread* [PATCH v3 10/11] slimbus: qcom-ngd-ctrl: Allow untainted use of driver_override
2026-12-04 10:47 [PATCH v3 00/11] driver core: Disable driver overriding by default Uwe Kleine-König
@ 2026-12-04 10:47 ` Uwe Kleine-König
2026-12-04 10:47 ` [PATCH v3 11/11] ASoC: samsung: i2s: " Uwe Kleine-König
2026-12-04 17:40 ` [PATCH v3 00/11] driver core: Disable driver overriding by default Danilo Krummrich
2 siblings, 0 replies; 5+ messages in thread
From: Uwe Kleine-König @ 2026-12-04 10:47 UTC (permalink / raw)
To: Danilo Krummrich, Greg Kroah-Hartman, Srinivas Kandagatla
Cc: linux-arm-msm, linux-sound
The driver is expected to be bound to devices using a driver
override---see the respective use of device_set_driver_override()---and
so should be allowed to match via that mechanism.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
---
drivers/slimbus/qcom-ngd-ctrl.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/slimbus/qcom-ngd-ctrl.c b/drivers/slimbus/qcom-ngd-ctrl.c
index a29e57303046..5ac4dee87f6f 100644
--- a/drivers/slimbus/qcom-ngd-ctrl.c
+++ b/drivers/slimbus/qcom-ngd-ctrl.c
@@ -1849,6 +1849,7 @@ static struct platform_driver qcom_slim_ngd_driver = {
.driver = {
.name = QCOM_SLIM_NGD_DRV_NAME,
.pm = &qcom_slim_ngd_dev_pm_ops,
+ .support_driver_override = true,
},
};
--
2.47.3
^ permalink raw reply related [flat|nested] 5+ messages in thread* [PATCH v3 11/11] ASoC: samsung: i2s: Allow untainted use of driver_override
2026-12-04 10:47 [PATCH v3 00/11] driver core: Disable driver overriding by default Uwe Kleine-König
2026-12-04 10:47 ` [PATCH v3 10/11] slimbus: qcom-ngd-ctrl: Allow untainted use of driver_override Uwe Kleine-König
@ 2026-12-04 10:47 ` Uwe Kleine-König
2026-12-04 12:37 ` Mark Brown
2026-12-04 17:40 ` [PATCH v3 00/11] driver core: Disable driver overriding by default Danilo Krummrich
2 siblings, 1 reply; 5+ messages in thread
From: Uwe Kleine-König @ 2026-12-04 10:47 UTC (permalink / raw)
To: Danilo Krummrich, Greg Kroah-Hartman, Liam Girdwood, Mark Brown,
Jaroslav Kysela, Takashi Iwai
Cc: Sylwester Nawrocki, linux-sound
The driver is expected to be bound to devices using a driver
override---see the respective use of device_set_driver_override()---and
so should be allowed to match via that mechanism.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
---
sound/soc/samsung/i2s.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sound/soc/samsung/i2s.c b/sound/soc/samsung/i2s.c
index 8a938d0d79f9..fdddd3d4eb65 100644
--- a/sound/soc/samsung/i2s.c
+++ b/sound/soc/samsung/i2s.c
@@ -1740,6 +1740,7 @@ static struct platform_driver samsung_i2s_driver = {
.name = "samsung-i2s",
.of_match_table = of_match_ptr(exynos_i2s_match),
.pm = pm_ptr(&samsung_i2s_pm),
+ .support_driver_override = true,
},
};
--
2.47.3
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH v3 11/11] ASoC: samsung: i2s: Allow untainted use of driver_override
2026-12-04 10:47 ` [PATCH v3 11/11] ASoC: samsung: i2s: " Uwe Kleine-König
@ 2026-12-04 12:37 ` Mark Brown
0 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2026-12-04 12:37 UTC (permalink / raw)
To: Uwe Kleine-König
Cc: Danilo Krummrich, Greg Kroah-Hartman, Liam Girdwood,
Jaroslav Kysela, Takashi Iwai, Sylwester Nawrocki, linux-sound
[-- Attachment #1: Type: text/plain, Size: 304 bytes --]
On Fri, Dec 04, 2026 at 11:47:29AM +0100, Uwe Kleine-König wrote:
> The driver is expected to be bound to devices using a driver
> override---see the respective use of device_set_driver_override()---and
> so should be allowed to match via that mechanism.
Acked-by: Mark Brown <broonie@kernel.org>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v3 00/11] driver core: Disable driver overriding by default
2026-12-04 10:47 [PATCH v3 00/11] driver core: Disable driver overriding by default Uwe Kleine-König
2026-12-04 10:47 ` [PATCH v3 10/11] slimbus: qcom-ngd-ctrl: Allow untainted use of driver_override Uwe Kleine-König
2026-12-04 10:47 ` [PATCH v3 11/11] ASoC: samsung: i2s: " Uwe Kleine-König
@ 2026-12-04 17:40 ` Danilo Krummrich
2 siblings, 0 replies; 5+ messages in thread
From: Danilo Krummrich @ 2026-12-04 17:40 UTC (permalink / raw)
To: Uwe Kleine-König
Cc: Greg Kroah-Hartman, Bjorn Helgaas, Alex Williamson, Stephen Boyd,
Brian Masney, Jerome Brunet, Srinivas Kandagatla, Liam Girdwood,
Mark Brown, Jaroslav Kysela, Takashi Iwai, Gary Guo,
Jonathan Corbet, Shuah Khan, Randy Dunlap, Rafael J. Wysocki,
Johan Hovold, Michael Kelley, linux-doc, driver-core,
linux-kernel, linux-trace-kernel, linux-spi, Bjorn Andersson,
Mathieu Poirier, linux-remoteproc, Eric Farman, Matthew Rosato,
Halil Pasic, Vineeth Vijayan, Peter Oberparleiter, Heiko Carstens,
Vasily Gorbik, Alexander Gordeev, Christian Borntraeger,
Sven Schnelle, Tony Krowiak, Jason Herne, Harald Freudenberger,
Holger Dengler, linux-s390, kvm, linux-pci, Nipun Gupta,
Nikhil Agarwal, Ioana Ciornei, Longfang Liu, Jason Gunthorpe,
Yishai Hadas, Shameer Kolothum, Kevin Tian, Julian Ruess,
Ankit Agrawal, Brett Creeley, Giovanni Cabiddu,
Michał Winiarski, Eric Auger, Mostafa Saleh,
Pranjal Shrivastava, Simon Song, qat-linux, virtualization,
intel-xe, Haiyang Zhang, Wei Liu, Dexuan Cui, Michael S. Tsirkin,
linux-hyperv, Abel Vesa, Pengutronix Kernel Team, Fabio Estevam,
linux-clk, imx, linux-arm-kernel, linux-arm-msm, linux-sound,
Sylwester Nawrocki
On Fri Dec 4, 2026 at 11:47 AM CET, Uwe Kleine-König wrote:
> Danilo Krummrich wrote that he expects a stable branch won't be needed
> and just taking the whole patch set via driver-core should be fine. I'd
> give him the responsibility to judge if the patches without maintainer
> feedback should be picked, too. If you're such a maintainer, an ack
> would be helpful for sure. That would be:
On this point, I think it makes sense to provide some general context.
For a treewide series that is a consequence of a subsystem API change, and given
that the changes are sufficiently trivial or purely mechanical, it should
usually be fine if not all of the patches have explicit ACKs (and as always this
is also a case by case consideration).
In my opinion it is more important to make sure the underlying change (which is
often the more interesting one) has enough visibility to the other affected
subsystems and drivers and that people have enough time to have the chance to
chime in.
IOW, the interesting part is not necessarily the one that touches another
subsystem's files. This patch series is a great example of this: It is the first
patch of the series which touches driver-core code that is a change for every
bus that uses the driver-core's driver_override feature, whereas the other 10
patches are purely mechanical to preserve the existing behavior in some places.
That said, I do of course prefer to gather as many explicit ACKs as possible and
I usually send a few reminders before picking up treewide series (which the
driver-core has regularly).
(For this series, you already did this in your cover letters; thanks for doing
this!)
With regards to routing, my experience has been that (most) people consider it
unnecessary noise to have to pick up trivial or mechanical changes that
originate from another subsystem changing its API (contract).
When I generalized the subsystem-specific driver_override implementations in the
driver core, I offered to route the conversions through the corresponding
subsystem trees, since some were not entirely trivial.
I remember that Linus questioned whether splitting them across those trees had
any advantage, given that they were adaptations to a driver-core interface
change, and indeed, nobody seemed interested in picking them up themselves.
> - patch #6: PCI: Allow untainted driver_override for PCI stub drivers
> Bjorn Helgaas <bhelgaas@google.com>
>
> - patch #7: vfio: Allow untainted use of driver_override
> Alex Williamson <alex@shazbot.org> (I assume that one is fine, too,
> given he is the author of the patch)
>
> - patch #8: uio: Allow untainted use of driver_override
> Greg Kroah-Hartman <gregkh@linuxfoundation.org>
>
> - patch #9: clk: imx: scu: Allow untainted use of driver_override
> Stephen Boyd <sboyd@kernel.org>
> Brian Masney <bmasney+clk@redhat.com>
> Jerome Brunet <jbrunet+clk@baylibre.com>
>
> - patch #10: slimbus: qcom-ngd-ctrl: Allow untainted use of driver_override
> Srinivas Kandagatla <srini@kernel.org>
>
> - patch #11: ASoC: samsung: i2s: Allow untainted use of driver_override
> Liam Girdwood <lgirdwood@gmail.com>
> Mark Brown <broonie@kernel.org>
> Jaroslav Kysela <perex@perex.cz> (?)
> Takashi Iwai <tiwai@suse.com> (?)
I'll pick this up soon and give it a few more days in driver-core-testing with
ACKs (and of course objections) still welcome.
Thanks,
Danilo
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-12-04 17:40 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04 10:47 [PATCH v3 00/11] driver core: Disable driver overriding by default Uwe Kleine-König
2026-12-04 10:47 ` [PATCH v3 10/11] slimbus: qcom-ngd-ctrl: Allow untainted use of driver_override Uwe Kleine-König
2026-12-04 10:47 ` [PATCH v3 11/11] ASoC: samsung: i2s: " Uwe Kleine-König
2026-12-04 12:37 ` Mark Brown
2026-12-04 17:40 ` [PATCH v3 00/11] driver core: Disable driver overriding by default Danilo Krummrich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox