From: "Uwe Kleine-König" <u.kleine-koenig@baylibre.com>
To: Danilo Krummrich <dakr@kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Bjorn Helgaas <bhelgaas@google.com>,
Alex Williamson <alex@shazbot.org>,
Stephen Boyd <sboyd@kernel.org>,
Brian Masney <bmasney+clk@redhat.com>,
Jerome Brunet <jbrunet+clk@baylibre.com>,
Srinivas Kandagatla <srini@kernel.org>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>,
Takashi Iwai <tiwai@suse.com>, Gary Guo <gary@garyguo.net>
Cc: "Jonathan Corbet" <corbet@lwn.net>,
"Shuah Khan" <skhan@linuxfoundation.org>,
"Randy Dunlap" <rdunlap@infradead.org>,
"Rafael J. Wysocki" <rafael@kernel.org>,
"Johan Hovold" <johan@kernel.org>,
"Michael Kelley" <mhklinux@outlook.com>,
linux-doc@vger.kernel.org, driver-core@lists.linux.dev,
linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org,
linux-spi@vger.kernel.org,
"Bjorn Andersson" <andersson@kernel.org>,
"Mathieu Poirier" <mathieu.poirier@linaro.org>,
linux-remoteproc@vger.kernel.org,
"Eric Farman" <farman@linux.ibm.com>,
"Matthew Rosato" <mjrosato@linux.ibm.com>,
"Halil Pasic" <pasic@linux.ibm.com>,
"Vineeth Vijayan" <vneethv@linux.ibm.com>,
"Peter Oberparleiter" <oberpar@linux.ibm.com>,
"Heiko Carstens" <hca@linux.ibm.com>,
"Vasily Gorbik" <gor@linux.ibm.com>,
"Alexander Gordeev" <agordeev@linux.ibm.com>,
"Christian Borntraeger" <borntraeger@linux.ibm.com>,
"Sven Schnelle" <svens@linux.ibm.com>,
"Tony Krowiak" <akrowiak@linux.ibm.com>,
"Jason Herne" <jjherne@linux.ibm.com>,
"Harald Freudenberger" <freude@linux.ibm.com>,
"Holger Dengler" <dengler@linux.ibm.com>,
linux-s390@vger.kernel.org, kvm@vger.kernel.org,
linux-pci@vger.kernel.org, "Nipun Gupta" <nipun.gupta@amd.com>,
"Nikhil Agarwal" <nikhil.agarwal@amd.com>,
"Ioana Ciornei" <ioana.ciornei@nxp.com>,
"Longfang Liu" <liulongfang@huawei.com>,
"Jason Gunthorpe" <jgg@ziepe.ca>,
"Yishai Hadas" <yishaih@nvidia.com>,
"Shameer Kolothum" <skolothumtho@nvidia.com>,
"Kevin Tian" <kevin.tian@intel.com>,
"Julian Ruess" <julianr@linux.ibm.com>,
"Ankit Agrawal" <ankita@nvidia.com>,
"Brett Creeley" <brett.creeley@amd.com>,
"Giovanni Cabiddu" <giovanni.cabiddu@intel.com>,
"Michał Winiarski" <michal.winiarski@intel.com>,
"Eric Auger" <eric.auger@redhat.com>,
"Mostafa Saleh" <smostafa@google.com>,
"Pranjal Shrivastava" <praan@google.com>,
"Simon Song" <xinmengs@nvidia.com>,
qat-linux@intel.com, virtualization@lists.linux.dev,
intel-xe@lists.freedesktop.org,
"Haiyang Zhang" <haiyangz@microsoft.com>,
"Wei Liu" <wei.liu@kernel.org>,
"Dexuan Cui" <decui@microsoft.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
linux-hyperv@vger.kernel.org, "Abel Vesa" <abelvesa@kernel.org>,
"Pengutronix Kernel Team" <kernel@pengutronix.de>,
"Fabio Estevam" <festevam@gmail.com>,
linux-clk@vger.kernel.org, imx@lists.linux.dev,
linux-arm-kernel@lists.infradead.org,
linux-arm-msm@vger.kernel.org, linux-sound@vger.kernel.org,
"Sylwester Nawrocki" <s.nawrocki@samsung.com>
Subject: [PATCH v3 00/11] driver core: Disable driver overriding by default
Date: Fri, 4 Dec 2026 11:47:18 +0100 [thread overview]
Message-ID: <cover.1796376468.git.u.kleine-koenig@baylibre.com> (raw)
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
next reply other threads:[~2026-12-04 10:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 10:47 Uwe Kleine-König [this message]
2026-12-04 10:47 ` [PATCH v3 08/11] uio: Allow untainted use of driver_override Uwe Kleine-König
2026-12-04 11:21 ` Michael S. Tsirkin
2026-12-04 17:40 ` [PATCH v3 00/11] driver core: Disable driver overriding by default Danilo Krummrich
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=cover.1796376468.git.u.kleine-koenig@baylibre.com \
--to=u.kleine-koenig@baylibre.com \
--cc=abelvesa@kernel.org \
--cc=agordeev@linux.ibm.com \
--cc=akrowiak@linux.ibm.com \
--cc=alex@shazbot.org \
--cc=andersson@kernel.org \
--cc=ankita@nvidia.com \
--cc=bhelgaas@google.com \
--cc=bmasney+clk@redhat.com \
--cc=borntraeger@linux.ibm.com \
--cc=brett.creeley@amd.com \
--cc=broonie@kernel.org \
--cc=corbet@lwn.net \
--cc=dakr@kernel.org \
--cc=decui@microsoft.com \
--cc=dengler@linux.ibm.com \
--cc=driver-core@lists.linux.dev \
--cc=eric.auger@redhat.com \
--cc=farman@linux.ibm.com \
--cc=festevam@gmail.com \
--cc=freude@linux.ibm.com \
--cc=gary@garyguo.net \
--cc=giovanni.cabiddu@intel.com \
--cc=gor@linux.ibm.com \
--cc=gregkh@linuxfoundation.org \
--cc=haiyangz@microsoft.com \
--cc=hca@linux.ibm.com \
--cc=imx@lists.linux.dev \
--cc=intel-xe@lists.freedesktop.org \
--cc=ioana.ciornei@nxp.com \
--cc=jbrunet+clk@baylibre.com \
--cc=jgg@ziepe.ca \
--cc=jjherne@linux.ibm.com \
--cc=johan@kernel.org \
--cc=julianr@linux.ibm.com \
--cc=kernel@pengutronix.de \
--cc=kevin.tian@intel.com \
--cc=kvm@vger.kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-hyperv@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=linux-remoteproc@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=liulongfang@huawei.com \
--cc=mathieu.poirier@linaro.org \
--cc=mhklinux@outlook.com \
--cc=michal.winiarski@intel.com \
--cc=mjrosato@linux.ibm.com \
--cc=mst@redhat.com \
--cc=nikhil.agarwal@amd.com \
--cc=nipun.gupta@amd.com \
--cc=oberpar@linux.ibm.com \
--cc=pasic@linux.ibm.com \
--cc=perex@perex.cz \
--cc=praan@google.com \
--cc=qat-linux@intel.com \
--cc=rafael@kernel.org \
--cc=rdunlap@infradead.org \
--cc=s.nawrocki@samsung.com \
--cc=sboyd@kernel.org \
--cc=skhan@linuxfoundation.org \
--cc=skolothumtho@nvidia.com \
--cc=smostafa@google.com \
--cc=srini@kernel.org \
--cc=svens@linux.ibm.com \
--cc=tiwai@suse.com \
--cc=virtualization@lists.linux.dev \
--cc=vneethv@linux.ibm.com \
--cc=wei.liu@kernel.org \
--cc=xinmengs@nvidia.com \
--cc=yishaih@nvidia.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