From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.45 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796381272; b=foNtS2YKAKLsU7J7NvHsQQFqP3Amvg9vztmbUz0Qx5T/FOlsFa8Oc3ff3Lb6yX1U/yNa oo35NjBny4Q/5sa+3ds94qxQx4T1Lti6wCb3GnEtzJ0uVCnGf62sQTfieJfzkKzyit2Kd 7sYcrI6h72mdDHXfIdnjGDemxElhFRGMHfuCnQ/aj/4/oRDjmBoE+Lc6qyk9uBsibKSxZ I3X82SCjHBF5PyQAPCIQhlxQgQ4DB0WRs+B5tdPDZ4dXo03YPmYxbtx2f9v6BDxXLM3l7 KodvFZipWtz4kxuKINE7KZ+YnUhvHJz1t7hmMd2gSpDH+Icu/eVwWB68T6ud7D+1CzQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796381272; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:MIME-Version:Content-Type: X-Developer-Signature:X-Developer-Key:Content-Transfer-Encoding; bh=qchowmzWSPekYXG2JQMKSDmzr7evSo2cDb0W1spiSPg=; b=DFg2iVb6ekGvHhA30Y6GY3lbUc8kXs6Yr7SA/FGT83lD5mrhl1DNdfLLGoQf/7IQJAJ1 GXvJPuXgCuXabAwO/sFR4W2KXA/d+zkBejqLneHqp9ZH3QwII6bAM5FX8rZJez7/cw0j/ ptOxb9untL7fnGyq0LqevW3B3ly7hurjP+Wa3an01vcbmXTx1Dd9pZl3Kh+iXvUNBA+Vd OOfsp6JCmmr2vXX1wel0wjGINGV6ka9DqKhsWBGJXsoZsNZvlDUW3W+vj11TCzOvIhWxx KVv5E6qOfKyTDnIyN7bYHIQvkwGXMCLYyMdem0M8OrBnPjns6sCTT4uAiYXwVAmz1GQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass header.d=baylibre.com header.i=@baylibre.com header.a=rsa-sha256 header.s=google header.b=JGeWTBTf; arc=none smtp.remote-ip=209.85.128.45 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DBE4E606A684 for ; Fri, 4 Dec 2026 10:47:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DBE4E606A684 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.a=rsa-sha256 header.s=google header.b=JGeWTBTf Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-4a5177d78c7so7448305e9.2 for ; Fri, 04 Dec 2026 02:47:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1796381270; x=1796986070; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:message-id:date :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to :content-type; bh=qchowmzWSPekYXG2JQMKSDmzr7evSo2cDb0W1spiSPg=; b=JGeWTBTfu3LFOEvNJzVqs+cF30lzlt8D6O4uBJ/HAaK/Tu9QPpi9C/7Q3Iymz/rZ+g g/ywmGlP+5dNjRQN8D0qlF+3kk9oQ89mmOcQBBYk+bycj7LBu/49e15XXPswuOg0Q7kU xDZMJsVQOcaTV/dSfkUKzSEZVdq9id82wV14PFB7Yv00QxPHCD+sK6pWJGUdB0thD9AU Rd4+7seEN7ab95qbr4MgFZ0n9/Pgk+wI2lK2sDGvNdroPPwy6TE8Rhi0EYptC0qt0i40 eGqxwSlmsOnz99tKhoel7cHw6ZV4d4+p6Q6AMdPXQ4AaJIWZWj8W04m3nWrB12xibDIP Wh3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796381270; x=1796986070; h=content-transfer-encoding:content-type:mime-version:message-id:date :subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to:content-type; bh=qchowmzWSPekYXG2JQMKSDmzr7evSo2cDb0W1spiSPg=; b=FI+8mXKobJnWowz+i2DRXPmhLrG1z/aGA0sHb5H/9YwQreOOKD4HaOBD92ys56TWPT QGzGZ1mKU2NMeJmq8pmQE1PYcOzn+nnrSGTtbHeNcNPe/afPARl4iDOw6E/8O3pw8bF3 Qcj4wc+IcFD3b7J1n5aKQjYGt/pVhPKAL0y5W96xZ3FmykahoELIXpKdou9Zyax5/BQ3 F5rQrXdG/qRQPjlcshvZJQ6ZTfKlk1ffovqrutfcHtFvWsmwko5+o4Sw2CRSV5E1erUw PyzA7IDKkZu2vxv4y4xdlJg68LKVt+L7ggKkdXNrKG9Q+gvvJSK4auxQNOUM6zTcRR2g aesA== X-Forwarded-Encrypted: i=1; AL+hErEQiq1MBYg1/hq+3sk8l2veV9Bb4QCl/c0vMfd9GxGJhKM4Is/vd1yjxLGkNRDGMP4o1hY=@vger.kernel.org X-Gm-Message-State: APuU4Z8j0KhkH3JdJRHgqFy/shi1VRaP+PBCWNjc/NXOoVwLPloq24l6 gjI+0RQlOlzKaWRKVCl1n8uPonueuXCqz7aUWEijbF2PFiTD3+Z3uTKzYFYhv1Wxgxs= X-Gm-Gg: AZFdTZdv0VKDOFjz8XHbJH0zD6sZQpV5WWtyl63WrHCayvVXwRZWCyhTQkYnT5IU9Z/ ViMcIH+/XW0PXoNqjk9A3F7/2GSsZonXPIQOdt0C7aYouoGgbUhQuMUWhskahFyKZrWwb4MByqk CjTsS5IF+cejNLKa7K+nRXjJlRxSTgZ70rgQiiB/KwNixHckBE8+mml5tydgcJzocrn8BSOHhT4 5zGAGjWyxIfKOY+Y2WDMOZrUbrfPoupTyYUr/Z4ntKctzZZ+totF9ERiTE14tFE5zYqoBbkDMx8 AH51Z1KyCBKObinCLZERZm7c/9EnCzGMyjmLliFR3pcMBVZozoe8Cv4bj2bSY2+KZfAqVGVi1ZU EFoFSi7wEOb4HzUpuJjaydECL77dflAa1abgQAgNbkAmRxC0vLjsT+B7pEhoiqmyFLQFtB0WbBW /jxh4vad05G6R9D8KDUoaBXnNxKFi1gKe4mtQlt22KXS8I2t7YSyiRWjBeRahrGAb3K8Dzksiyf 3e/klAxmohx+7FZfJDRHd2itexDDnlMTaB14pESQTgmj/KqHo/8+CWc2bugx0yc3Hl6OuO+QMYy WliKD54JK3EFzoo3MCMZnjUpannPmYoxocEeMUsGNLgjt6F2PWTexiBltfNiU7gNHudRcwAL/ZZ 2KUIK4YVLTgPlXNiv X-Received: by 2002:a05:600c:3543:b0:4bb:e5d9:d50 with SMTP id 5b1f17b1804b1-4bbeb8bd0cdmr29810665e9.27.1796381270223; Fri, 04 Dec 2026 02:47:50 -0800 (PST) Received: from localhost (p200300f65f125a08416a865ccfdfa883.dip0.t-ipconnect.de. [2003:f6:5f12:5a08:416a:865c:cfdf:a883]) by smtp.gmail.com with UTF8SMTPSA id 5b1f17b1804b1-4bbe0030c6fsm161027025e9.2.2026.12.04.02.47.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 02:47:49 -0800 (PST) From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= 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@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 , Mathieu Poirier , linux-remoteproc@vger.kernel.org, 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@vger.kernel.org, kvm@vger.kernel.org, linux-pci@vger.kernel.org, Nipun Gupta , Nikhil Agarwal , Ioana Ciornei , Longfang Liu , Jason Gunthorpe , Yishai Hadas , Shameer Kolothum , Kevin Tian , Julian Ruess , Ankit Agrawal , Brett Creeley , Giovanni Cabiddu , =?utf-8?q?Micha=C5=82_Winiarski?= , Eric Auger , Mostafa Saleh , Pranjal Shrivastava , Simon Song , qat-linux@intel.com, virtualization@lists.linux.dev, intel-xe@lists.freedesktop.org, Haiyang Zhang , Wei Liu , Dexuan Cui , "Michael S. Tsirkin" , linux-hyperv@vger.kernel.org, Abel Vesa , Pengutronix Kernel Team , Fabio Estevam , 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 Subject: [PATCH v3 00/11] driver core: Disable driver overriding by default Date: Fri, 4 Dec 2026 11:47:18 +0100 Message-ID: X-Mailer: git-send-email 2.47.3 X-Mailing-List: kvm@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Developer-Signature: v=1; a=openpgp-sha256; l=5845; i=u.kleine-koenig@baylibre.com; h=from:subject:message-id; bh=mSUwsHvk2u1tJS27kNQtvYwzwwFTooCcu/2NkCLXvhQ=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBrEpo2vSulTT6uvAyyLtkTkoZyYdpGbpSoZg3Zp wRrnaWuVI6JATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCaxKaNgAKCRCPgPtYfRL+ TidDCAChxb8s0BfLmRTSfuKAJO1OErZKC0AVjWY1mcE1PjVnPiuHTNP+Y7QU+lTiPwLZd68L7vD 1gVNO92UM2lBe5O7eAV+cZAr9YutFTC8r0HBeo+4n5R2E9vXIktNeziPpA/XoRmkpBmp3rUC9vV 7WJBb6j4g2Z0HEsvYi/mMkSbRMC0LolDZC97ubEcWo15im/KreqnPOy6bAh1KBEbXDDpdK8abjU 1RSBs2RZoNJ5qlGVwxCd4gJG05Ur9f2XdFwXr57x4ipisiadGE7zOwMvsWxnZ6gDv+rSnFrgL8y uGMrUEoz2x2+gsBV44wNT0WlgwTSDtriOC4HwGyVg3GqFBmn X-Developer-Key: i=u.kleine-koenig@baylibre.com; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 Content-Transfer-Encoding: 8bit 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 - patch #7: vfio: Allow untainted use of driver_override Alex Williamson (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 - patch #9: clk: imx: scu: Allow untainted use of driver_override Stephen Boyd Brian Masney Jerome Brunet - patch #10: slimbus: qcom-ngd-ctrl: Allow untainted use of driver_override Srinivas Kandagatla - patch #11: ASoC: samsung: i2s: Allow untainted use of driver_override Liam Girdwood Mark Brown Jaroslav Kysela (?) Takashi Iwai (?) 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