Re: [Kgdb-bugreport] [PATCH] tty: serial: kgdboc: fix mutex locking order for configure_kgdboc()

2023-01-12 Thread Sergey Senozhatsky
On (23/01/12 16:40), Petr Mladek wrote: > On Wed 2023-01-11 17:23:55, Petr Mladek wrote: > > On Wed 2023-01-11 15:57:10, John Ogness wrote: > > > Several mutexes are taken while setting up console serial ports. In > > > particular, the tty_port->mutex and @console_mutex are taken: > > > > > > se

[Kgdb-bugreport] [PATCH v2] tty: serial: kgdboc: fix mutex locking order for configure_kgdboc()

2023-01-12 Thread John Ogness
Several mutexes are taken while setting up console serial ports. In particular, the tty_port->mutex and @console_mutex are taken: serial_pnp_probe serial8250_register_8250_port uart_add_one_port (locks tty_port->mutex) uart_configure_port register_console (locks @cons

Re: [Kgdb-bugreport] [PATCH] tty: serial: kgdboc: fix mutex locking order for configure_kgdboc()

2023-01-12 Thread Petr Mladek via Kgdb-bugreport
On Wed 2023-01-11 17:23:55, Petr Mladek wrote: > On Wed 2023-01-11 15:57:10, John Ogness wrote: > > Several mutexes are taken while setting up console serial ports. In > > particular, the tty_port->mutex and @console_mutex are taken: > > > > serial_pnp_probe > > serial8250_register_8250_port