[GIT PULL] Driver core fixes for 7.4-rc1

From: Danilo Krummrich

Date: Sun Oct 25 2026 - 16:17:03 EST


Hi Linus,

Please pull these driver-core fixes.

These fixes arrived late in the cycle and missed the main driver-core pull
request for 7.4-rc1.

Thanks,
Danilo

The following changes since commit 72d3fcf802c45d00b300f25b848a93c3a2bd7c7e:

Linux 7.3-rc5 (2026-09-27 13:55:01 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/driver-core/driver-core.git tags/driver-core-7.4-rc1-2

for you to fetch changes up to 187a62f99da29b1a55602b0d401a783d8dc86161:

driver core: take parent lock in async device attach (2026-10-16 22:36:09 +0200)

----------------------------------------------------------------
Driver core fixes for 7.4-rc1

- Make parent-lock requirements per device type instead of per bus,
fixing a use-after-free on USB disconnect by limiting the requirement
to USB interfaces, which retain a reference to their parent

- Honor parent-lock requirements during deferred and asynchronous
probing, fixing USB interface probe races, including duplicate
endpoint creation attempts in sysfs

----------------------------------------------------------------
Johan Hovold (2):
driver core: fix parent lock use-after-free on USB disconnect
driver core: take parent lock on deferred probe

Mario Peter (1):
driver core: take parent lock in async device attach

drivers/base/base.h | 1 +
drivers/base/bus.c | 32 +++++++++++++++++++++++---------
drivers/base/dd.c | 90 +++++++++++++++++++++++++++++++++++++++++++++++++-----------------------------------------
drivers/usb/core/driver.c | 1 -
drivers/usb/core/message.c | 1 +
include/linux/device.h | 5 +++++
include/linux/device/bus.h | 3 ---
7 files changed, 79 insertions(+), 54 deletions(-)