Re: [PATCH] parport: Fix race between port and client registration
Sudip Mukherjee <[email protected]> Fri, 8 May 2026 11:27:56 +0100
| Newsgroups | gmane.linux.kernel.stable,gmane.linux.parport |
|---|---|
| Message-ID | <CADVatmM8DECzSBq4pCUUrLksa0YEBck9xDmKVYZw4cagv26GCQ@mail.gmail.com> |
On Tue, 5 May 2026 at 19:45, Ben Hutchings <[email protected]> wrote: > > The parport subsystem registers port devices before they are fully > initialised, resulting in a race condition where client drivers such > as lp can attach to ports that are not completely initialised or even > being torn down. Thanks Ben. > > When the port and client drivers are built as modules and loaded > around the same time during boot, this occasionally results in a > crash. I was able to make this happen reliably in a VM with a > PC-style parallel port by patching parport_pc to fail probing: <snip> > > Fixes: 6fa45a226897 ("parport: add device-model to parport subsystem") > Closes: https://bugs.debian.org/1130365 > Closes: https://lore.kernel.org/all/[email protected]/ > Cc: [email protected] > Signed-off-by: Ben Hutchings <[email protected]> Acked-by: Sudip Mukherjee <[email protected]> -- Regards Sudip