Re: [PATCH v5] driver core: enforce device_lock for driver_match_device()
From: Mark Brown
Date: Tue Jan 20 2026 - 12:38:57 EST
On Tue, Jan 20, 2026 at 04:03:03PM +0100, Danilo Krummrich wrote:
> I don't have a machine to reproduce it, but for debugging it would probably help
> to not actually take the lock in __driver_attach(), but only acquire / release
> the corresponding lockdep map. If my suspicion is correct, we should see a
> lockdep splat pointing out the issue.
I tried lockdep but didn't see anything different. Instrumenting with
printk() tells me it's deadlocking trying to attach arm-smmu on Juno
(that's a v1 SMMU on this platform), I'll try to poke further but it'll
likely be tomorrow at the earliest.
Attachment:
signature.asc
Description: PGP signature