* [PATCH v3 04/11] s390/vfio: 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:58 ` Anthony Krowiak
2026-12-04 10:47 ` [PATCH v3 07/11] vfio: " Uwe Kleine-König
` (2 subsequent siblings)
3 siblings, 1 reply; 7+ messages in thread
From: Uwe Kleine-König @ 2026-12-04 10:47 UTC (permalink / raw)
To: Danilo Krummrich, Greg Kroah-Hartman
Cc: Alex Williamson, 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
From: Alex Williamson <alex@shazbot.org>
The vfio_ap and vfio_ccw drivers bind devices through driver_override.
With the introduction of the support_driver_override flag in the core
driver struct, it's now required for drivers to declare themselves as
driver_override compatible, otherwise driver_override bindings will be
denied or generate a kernel taint.
Set the support_driver_override flag on the vfio_ap and vfio_ccw driver
structs.
Signed-off-by: Alex Williamson <alex@shazbot.org>
Acked-by: Harald Freudenberger <freude@linux.ibm.com>
Acked-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Signed-off-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
---
drivers/s390/cio/vfio_ccw_drv.c | 1 +
drivers/s390/crypto/vfio_ap_drv.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/drivers/s390/cio/vfio_ccw_drv.c b/drivers/s390/cio/vfio_ccw_drv.c
index 7546bd137e4e..77765cde87f7 100644
--- a/drivers/s390/cio/vfio_ccw_drv.c
+++ b/drivers/s390/cio/vfio_ccw_drv.c
@@ -375,6 +375,7 @@ static struct css_driver vfio_ccw_sch_driver = {
.drv = {
.name = "vfio_ccw",
.owner = THIS_MODULE,
+ .support_driver_override = true,
},
.subchannel_type = vfio_ccw_sch_ids,
.irq = vfio_ccw_sch_irq,
diff --git a/drivers/s390/crypto/vfio_ap_drv.c b/drivers/s390/crypto/vfio_ap_drv.c
index 8e69ed286bb9..2d47dc643269 100644
--- a/drivers/s390/crypto/vfio_ap_drv.c
+++ b/drivers/s390/crypto/vfio_ap_drv.c
@@ -62,6 +62,7 @@ static struct ap_driver vfio_ap_drv = {
.on_config_changed = vfio_ap_on_cfg_changed,
.on_scan_complete = vfio_ap_on_scan_complete,
.ids = ap_queue_ids,
+ .driver.support_driver_override = true,
};
static void vfio_ap_matrix_dev_release(struct device *dev)
--
2.47.3
^ permalink raw reply related [flat|nested] 7+ messages in thread* Re: [PATCH v3 04/11] s390/vfio: Allow untainted use of driver_override
2026-12-04 10:47 ` [PATCH v3 04/11] s390/vfio: Allow untainted use of driver_override Uwe Kleine-König
@ 2026-12-04 10:58 ` Anthony Krowiak
0 siblings, 0 replies; 7+ messages in thread
From: Anthony Krowiak @ 2026-12-04 10:58 UTC (permalink / raw)
To: Uwe Kleine-König, Danilo Krummrich, Greg Kroah-Hartman
Cc: Alex Williamson, Eric Farman, Matthew Rosato, Halil Pasic,
Vineeth Vijayan, Peter Oberparleiter, Heiko Carstens,
Vasily Gorbik, Alexander Gordeev, Christian Borntraeger,
Sven Schnelle, Jason Herne, Harald Freudenberger, Holger Dengler,
linux-s390, kvm
On 12/4/26 5:47 AM, Uwe Kleine-König wrote:
> From: Alex Williamson <alex@shazbot.org>
>
> The vfio_ap and vfio_ccw drivers bind devices through driver_override.
> With the introduction of the support_driver_override flag in the core
> driver struct, it's now required for drivers to declare themselves as
> driver_override compatible, otherwise driver_override bindings will be
> denied or generate a kernel taint.
>
> Set the support_driver_override flag on the vfio_ap and vfio_ccw driver
> structs.
>
> Signed-off-by: Alex Williamson <alex@shazbot.org>
> Acked-by: Harald Freudenberger <freude@linux.ibm.com>
> Acked-by: Christian Borntraeger <borntraeger@linux.ibm.com>
> Signed-off-by: Peter Oberparleiter <oberpar@linux.ibm.com>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
> ---
> drivers/s390/cio/vfio_ccw_drv.c | 1 +
> drivers/s390/crypto/vfio_ap_drv.c | 1 +
> 2 files changed, 2 insertions(+)
>
> diff --git a/drivers/s390/cio/vfio_ccw_drv.c b/drivers/s390/cio/vfio_ccw_drv.c
> index 7546bd137e4e..77765cde87f7 100644
> --- a/drivers/s390/cio/vfio_ccw_drv.c
> +++ b/drivers/s390/cio/vfio_ccw_drv.c
> @@ -375,6 +375,7 @@ static struct css_driver vfio_ccw_sch_driver = {
> .drv = {
> .name = "vfio_ccw",
> .owner = THIS_MODULE,
> + .support_driver_override = true,
> },
> .subchannel_type = vfio_ccw_sch_ids,
> .irq = vfio_ccw_sch_irq,
> diff --git a/drivers/s390/crypto/vfio_ap_drv.c b/drivers/s390/crypto/vfio_ap_drv.c
> index 8e69ed286bb9..2d47dc643269 100644
> --- a/drivers/s390/crypto/vfio_ap_drv.c
> +++ b/drivers/s390/crypto/vfio_ap_drv.c
> @@ -62,6 +62,7 @@ static struct ap_driver vfio_ap_drv = {
> .on_config_changed = vfio_ap_on_cfg_changed,
> .on_scan_complete = vfio_ap_on_scan_complete,
> .ids = ap_queue_ids,
> + .driver.support_driver_override = true,
Acked-by: Anthony Krowiak <akrowiak@linux.ibm.com>
> };
>
> static void vfio_ap_matrix_dev_release(struct device *dev)
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v3 07/11] vfio: 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 04/11] s390/vfio: Allow untainted use of driver_override Uwe Kleine-König
@ 2026-12-04 10:47 ` Uwe Kleine-König
2026-12-04 10:47 ` [PATCH v3 08/11] uio: " Uwe Kleine-König
2026-12-04 17:40 ` [PATCH v3 00/11] driver core: Disable driver overriding by default Danilo Krummrich
3 siblings, 0 replies; 7+ messages in thread
From: Uwe Kleine-König @ 2026-12-04 10:47 UTC (permalink / raw)
To: Danilo Krummrich, Greg Kroah-Hartman, Alex Williamson
Cc: Gary Guo, 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, Yuan Yao, Simon Song, kvm,
qat-linux, virtualization, intel-xe, Yuan Yao
From: Alex Williamson <alex@shazbot.org>
Driver overrides are the standard mechanism for binding vfio drivers
to devices. With the introduction of the support_driver_override flag
in the core driver struct, it's now required for drivers to declare
themselves as driver_override compatible, otherwise driver_override
bindings will be denied or generate a kernel taint.
Set the support_driver_override flag on the driver struct across all
vfio drivers.
Signed-off-by: Alex Williamson <alex@shazbot.org>
Reviewed-by: Brett Creeley <brett.creeley@amd.com>
Reviewed-by: Mostafa Saleh <smostafa@google.com>
Reviewed-by: Ankit Agrawal <ankita@nvidia.com>
Reviewed-by: Yuan Yao <yaoyuan0329os@gmail.com>
Reviewed-by: Pranjal Shrivastava <praan@google.com>
Reviewed-by: Longfang Liu <liulongfang@huawei.com>
Reviewed-by: Ioana Ciornei <ioana.ciornei@nxp.com> # for vfio-fsl-mc
Reviewed-by: Yuan Yao <yaoyuan@linux.alibaba.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
---
drivers/vfio/cdx/main.c | 1 +
drivers/vfio/fsl-mc/vfio_fsl_mc.c | 1 +
drivers/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 +
13 files changed, 22 insertions(+), 9 deletions(-)
diff --git a/drivers/vfio/cdx/main.c b/drivers/vfio/cdx/main.c
index 28dc8c825600..fb7679bf92fd 100644
--- a/drivers/vfio/cdx/main.c
+++ b/drivers/vfio/cdx/main.c
@@ -358,6 +358,7 @@ static struct cdx_driver vfio_cdx_driver = {
.match_id_table = vfio_cdx_table,
.driver = {
.name = "vfio-cdx",
+ .support_driver_override = true,
},
.driver_managed_dma = true,
};
diff --git a/drivers/vfio/fsl-mc/vfio_fsl_mc.c b/drivers/vfio/fsl-mc/vfio_fsl_mc.c
index 15b05b8c0c90..1603f81e0257 100644
--- a/drivers/vfio/fsl-mc/vfio_fsl_mc.c
+++ b/drivers/vfio/fsl-mc/vfio_fsl_mc.c
@@ -597,6 +597,7 @@ static struct fsl_mc_driver vfio_fsl_mc_driver = {
.remove = vfio_fsl_mc_remove,
.driver = {
.name = "vfio-fsl-mc",
+ .support_driver_override = true,
},
.driver_managed_dma = true,
};
diff --git a/drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c b/drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c
index c82c59246a3f..5c56aff8db01 100644
--- a/drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c
+++ b/drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c
@@ -1737,7 +1737,8 @@ static struct pci_driver hisi_acc_vfio_pci_driver = {
.id_table = hisi_acc_vfio_pci_table,
.probe = hisi_acc_vfio_pci_probe,
.remove = hisi_acc_vfio_pci_remove,
- .driver = { .pm = pm_ptr(&hisi_acc_vf_pm_ops) },
+ .driver = { .pm = pm_ptr(&hisi_acc_vf_pm_ops),
+ .support_driver_override = true },
.err_handler = &hisi_acc_vf_err_handlers,
.driver_managed_dma = true,
};
diff --git a/drivers/vfio/pci/ism/main.c b/drivers/vfio/pci/ism/main.c
index cce3bdf1f070..263b377e87c4 100644
--- a/drivers/vfio/pci/ism/main.c
+++ b/drivers/vfio/pci/ism/main.c
@@ -399,7 +399,8 @@ static struct pci_driver ism_vfio_pci_driver = {
.id_table = ism_device_table,
.probe = ism_vfio_pci_probe,
.remove = ism_vfio_pci_remove,
- .driver = { .pm = pm_ptr(&ism_vfio_pm_ops) },
+ .driver = { .pm = pm_ptr(&ism_vfio_pm_ops),
+ .support_driver_override = true },
.err_handler = &ism_vfio_err_handlers,
.driver_managed_dma = true,
};
diff --git a/drivers/vfio/pci/mlx5/main.c b/drivers/vfio/pci/mlx5/main.c
index ebcc22bcb754..41695d975ad3 100644
--- a/drivers/vfio/pci/mlx5/main.c
+++ b/drivers/vfio/pci/mlx5/main.c
@@ -1456,7 +1456,8 @@ static struct pci_driver mlx5vf_pci_driver = {
.id_table = mlx5vf_pci_table,
.probe = mlx5vf_pci_probe,
.remove = mlx5vf_pci_remove,
- .driver = { .pm = pm_ptr(&mlx5vf_pm_ops) },
+ .driver = { .pm = pm_ptr(&mlx5vf_pm_ops),
+ .support_driver_override = true },
.err_handler = &mlx5vf_err_handlers,
.driver_managed_dma = true,
};
diff --git a/drivers/vfio/pci/nvgrace-gpu/main.c b/drivers/vfio/pci/nvgrace-gpu/main.c
index 5ddec340b73b..946da32c61ff 100644
--- a/drivers/vfio/pci/nvgrace-gpu/main.c
+++ b/drivers/vfio/pci/nvgrace-gpu/main.c
@@ -1438,7 +1438,8 @@ static struct pci_driver nvgrace_gpu_vfio_pci_driver = {
.id_table = nvgrace_gpu_vfio_pci_table,
.probe = nvgrace_gpu_probe,
.remove = nvgrace_gpu_remove,
- .driver = { .pm = pm_ptr(&nvgrace_gpu_pm_ops) },
+ .driver = { .pm = pm_ptr(&nvgrace_gpu_pm_ops),
+ .support_driver_override = true },
.err_handler = &nvgrace_gpu_vfio_pci_err_handlers,
.driver_managed_dma = true,
};
diff --git a/drivers/vfio/pci/pds/pci_drv.c b/drivers/vfio/pci/pds/pci_drv.c
index cf7e33d4d17b..1fcef987f1b0 100644
--- a/drivers/vfio/pci/pds/pci_drv.c
+++ b/drivers/vfio/pci/pds/pci_drv.c
@@ -184,7 +184,8 @@ static struct pci_driver pds_vfio_pci_driver = {
.id_table = pds_vfio_pci_table,
.probe = pds_vfio_pci_probe,
.remove = pds_vfio_pci_remove,
- .driver = { .pm = pm_ptr(&pds_vfio_pm_ops) },
+ .driver = { .pm = pm_ptr(&pds_vfio_pm_ops),
+ .support_driver_override = true },
.err_handler = &pds_vfio_pci_err_handlers,
.driver_managed_dma = true,
};
diff --git a/drivers/vfio/pci/qat/main.c b/drivers/vfio/pci/qat/main.c
index 69448fa57df4..8a616f9b6494 100644
--- a/drivers/vfio/pci/qat/main.c
+++ b/drivers/vfio/pci/qat/main.c
@@ -695,7 +695,8 @@ static struct pci_driver qat_vf_vfio_pci_driver = {
.id_table = qat_vf_vfio_pci_table,
.probe = qat_vf_vfio_pci_probe,
.remove = qat_vf_vfio_pci_remove,
- .driver = { .pm = pm_ptr(&qat_vf_pm_ops) },
+ .driver = { .pm = pm_ptr(&qat_vf_pm_ops),
+ .support_driver_override = true },
.err_handler = &qat_vf_err_handlers,
.driver_managed_dma = true,
};
diff --git a/drivers/vfio/pci/vfio_pci.c b/drivers/vfio/pci/vfio_pci.c
index e7c012febe91..fde2c3fc88eb 100644
--- a/drivers/vfio/pci/vfio_pci.c
+++ b/drivers/vfio/pci/vfio_pci.c
@@ -260,7 +260,8 @@ static struct pci_driver vfio_pci_driver = {
.remove = vfio_pci_remove,
.sriov_configure = vfio_pci_sriov_configure,
.err_handler = &vfio_pci_err_handlers,
- .driver = { .pm = pm_ptr(&vfio_pci_pm_ops) },
+ .driver = { .pm = pm_ptr(&vfio_pci_pm_ops),
+ .support_driver_override = true },
.driver_managed_dma = true,
};
diff --git a/drivers/vfio/pci/virtio/main.c b/drivers/vfio/pci/virtio/main.c
index 123ff5193812..1e02a8fd4a61 100644
--- a/drivers/vfio/pci/virtio/main.c
+++ b/drivers/vfio/pci/virtio/main.c
@@ -222,7 +222,8 @@ static struct pci_driver virtiovf_pci_driver = {
.id_table = virtiovf_pci_table,
.probe = virtiovf_pci_probe,
.remove = virtiovf_pci_remove,
- .driver = { .pm = pm_ptr(&virtiovf_pm_ops) },
+ .driver = { .pm = pm_ptr(&virtiovf_pm_ops),
+ .support_driver_override = true },
.err_handler = &virtiovf_err_handlers,
.driver_managed_dma = true,
};
diff --git a/drivers/vfio/pci/xe/main.c b/drivers/vfio/pci/xe/main.c
index 7dab3e024aa8..e0ab61f604de 100644
--- a/drivers/vfio/pci/xe/main.c
+++ b/drivers/vfio/pci/xe/main.c
@@ -592,7 +592,8 @@ static struct pci_driver xe_vfio_pci_driver = {
.id_table = xe_vfio_pci_table,
.probe = xe_vfio_pci_probe,
.remove = xe_vfio_pci_remove,
- .driver = { .pm = pm_ptr(&xe_vfio_pm_ops) },
+ .driver = { .pm = pm_ptr(&xe_vfio_pm_ops),
+ .support_driver_override = true },
.err_handler = &xe_vfio_pci_err_handlers,
.driver_managed_dma = true,
};
diff --git a/drivers/vfio/platform/vfio_amba.c b/drivers/vfio/platform/vfio_amba.c
index fa754f203b2d..2c87caf1b7f7 100644
--- a/drivers/vfio/platform/vfio_amba.c
+++ b/drivers/vfio/platform/vfio_amba.c
@@ -137,6 +137,7 @@ static struct amba_driver vfio_amba_driver = {
.id_table = vfio_amba_ids,
.drv = {
.name = "vfio-amba",
+ .support_driver_override = true,
},
.driver_managed_dma = true,
};
diff --git a/drivers/vfio/platform/vfio_platform.c b/drivers/vfio/platform/vfio_platform.c
index a4d3ace3e02d..93d06032cdde 100644
--- a/drivers/vfio/platform/vfio_platform.c
+++ b/drivers/vfio/platform/vfio_platform.c
@@ -116,6 +116,7 @@ static struct platform_driver vfio_platform_driver = {
.remove = vfio_platform_remove,
.driver = {
.name = "vfio-platform",
+ .support_driver_override = true,
},
.driver_managed_dma = true,
};
--
2.47.3
^ permalink raw reply related [flat|nested] 7+ messages in thread* [PATCH v3 08/11] uio: 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 04/11] s390/vfio: Allow untainted use of driver_override Uwe Kleine-König
2026-12-04 10:47 ` [PATCH v3 07/11] vfio: " Uwe Kleine-König
@ 2026-12-04 10:47 ` 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
3 siblings, 1 reply; 7+ messages in thread
From: Uwe Kleine-König @ 2026-12-04 10:47 UTC (permalink / raw)
To: Danilo Krummrich, Greg Kroah-Hartman
Cc: Michael Kelley, Haiyang Zhang, Wei Liu, Dexuan Cui,
Michael S. Tsirkin, linux-kernel, linux-hyperv, kvm
uio drivers support being matched to devices using the driver_override
mechanism. Add .support_driver_override = true to continue having
this mechanism work for them without tainting the kernel.
Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Tested-by: Michael Kelley <mhklinux@outlook.com> # uio_hv_generic.c change only
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
---
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 +
4 files changed, 4 insertions(+)
diff --git a/drivers/uio/uio_dmem_genirq.c b/drivers/uio/uio_dmem_genirq.c
index 263c1ebc2d57..71992431770e 100644
--- a/drivers/uio/uio_dmem_genirq.c
+++ b/drivers/uio/uio_dmem_genirq.c
@@ -309,6 +309,7 @@ static struct platform_driver uio_dmem_genirq = {
.driver = {
.name = DRIVER_NAME,
.of_match_table = of_match_ptr(uio_of_genirq_match),
+ .support_driver_override = true,
},
};
diff --git a/drivers/uio/uio_hv_generic.c b/drivers/uio/uio_hv_generic.c
index dff92dcbb10d..255c2b5730f6 100644
--- a/drivers/uio/uio_hv_generic.c
+++ b/drivers/uio/uio_hv_generic.c
@@ -407,6 +407,7 @@ static struct hv_driver hv_uio_drv = {
.id_table = hv_uio_id_table,
.probe = hv_uio_probe,
.remove = hv_uio_remove,
+ .driver.support_driver_override = true,
};
static int __init
diff --git a/drivers/uio/uio_pci_generic.c b/drivers/uio/uio_pci_generic.c
index c0cab3adb7b0..9785df9fc5de 100644
--- a/drivers/uio/uio_pci_generic.c
+++ b/drivers/uio/uio_pci_generic.c
@@ -140,6 +140,7 @@ static struct pci_driver uio_pci_driver = {
.name = "uio_pci_generic",
.id_table = NULL, /* only dynamic id's */
.probe = probe,
+ .driver.support_driver_override = true,
};
module_pci_driver(uio_pci_driver);
diff --git a/drivers/uio/uio_pdrv_genirq.c b/drivers/uio/uio_pdrv_genirq.c
index 87e43821ab0c..022178248962 100644
--- a/drivers/uio/uio_pdrv_genirq.c
+++ b/drivers/uio/uio_pdrv_genirq.c
@@ -261,6 +261,7 @@ static struct platform_driver uio_pdrv_genirq = {
.driver = {
.name = DRIVER_NAME,
.of_match_table = of_match_ptr(uio_of_genirq_match),
+ .support_driver_override = true,
},
};
--
2.47.3
^ permalink raw reply related [flat|nested] 7+ messages in thread* Re: [PATCH v3 08/11] uio: Allow untainted use of driver_override
2026-12-04 10:47 ` [PATCH v3 08/11] uio: " Uwe Kleine-König
@ 2026-12-04 11:21 ` Michael S. Tsirkin
0 siblings, 0 replies; 7+ messages in thread
From: Michael S. Tsirkin @ 2026-12-04 11:21 UTC (permalink / raw)
To: Uwe Kleine-König
Cc: Danilo Krummrich, Greg Kroah-Hartman, Michael Kelley,
Haiyang Zhang, Wei Liu, Dexuan Cui, linux-kernel, linux-hyperv,
kvm
On Fri, Dec 04, 2026 at 11:47:26AM +0100, Uwe Kleine-König wrote:
> uio drivers support being matched to devices using the driver_override
> mechanism. Add .support_driver_override = true to continue having
> this mechanism work for them without tainting the kernel.
>
> Reviewed-by: Michael Kelley <mhklinux@outlook.com>
> Tested-by: Michael Kelley <mhklinux@outlook.com> # uio_hv_generic.c change only
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
This patch is just a technicality, if the rest is merged, this part is
ok. Without taking any position on the rest, this one:
Acked-by: Michael S. Tsirkin <mst@redhat.com>
> ---
> 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 +
> 4 files changed, 4 insertions(+)
>
> diff --git a/drivers/uio/uio_dmem_genirq.c b/drivers/uio/uio_dmem_genirq.c
> index 263c1ebc2d57..71992431770e 100644
> --- a/drivers/uio/uio_dmem_genirq.c
> +++ b/drivers/uio/uio_dmem_genirq.c
> @@ -309,6 +309,7 @@ static struct platform_driver uio_dmem_genirq = {
> .driver = {
> .name = DRIVER_NAME,
> .of_match_table = of_match_ptr(uio_of_genirq_match),
> + .support_driver_override = true,
> },
> };
>
> diff --git a/drivers/uio/uio_hv_generic.c b/drivers/uio/uio_hv_generic.c
> index dff92dcbb10d..255c2b5730f6 100644
> --- a/drivers/uio/uio_hv_generic.c
> +++ b/drivers/uio/uio_hv_generic.c
> @@ -407,6 +407,7 @@ static struct hv_driver hv_uio_drv = {
> .id_table = hv_uio_id_table,
> .probe = hv_uio_probe,
> .remove = hv_uio_remove,
> + .driver.support_driver_override = true,
> };
>
> static int __init
> diff --git a/drivers/uio/uio_pci_generic.c b/drivers/uio/uio_pci_generic.c
> index c0cab3adb7b0..9785df9fc5de 100644
> --- a/drivers/uio/uio_pci_generic.c
> +++ b/drivers/uio/uio_pci_generic.c
> @@ -140,6 +140,7 @@ static struct pci_driver uio_pci_driver = {
> .name = "uio_pci_generic",
> .id_table = NULL, /* only dynamic id's */
> .probe = probe,
> + .driver.support_driver_override = true,
> };
>
> module_pci_driver(uio_pci_driver);
> diff --git a/drivers/uio/uio_pdrv_genirq.c b/drivers/uio/uio_pdrv_genirq.c
> index 87e43821ab0c..022178248962 100644
> --- a/drivers/uio/uio_pdrv_genirq.c
> +++ b/drivers/uio/uio_pdrv_genirq.c
> @@ -261,6 +261,7 @@ static struct platform_driver uio_pdrv_genirq = {
> .driver = {
> .name = DRIVER_NAME,
> .of_match_table = of_match_ptr(uio_of_genirq_match),
> + .support_driver_override = true,
> },
> };
>
> --
> 2.47.3
>
^ permalink raw reply [flat|nested] 7+ 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
` (2 preceding siblings ...)
2026-12-04 10:47 ` [PATCH v3 08/11] uio: " Uwe Kleine-König
@ 2026-12-04 17:40 ` Danilo Krummrich
3 siblings, 0 replies; 7+ 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] 7+ messages in thread