Re: [PATCH v5 4/4] kdb: Switch to use safer dbg_io_ops over console APIs

2020-06-03 Thread Sumit Garg
On Wed, 3 Jun 2020 at 17:12, Daniel Thompson wrote: > > On Wed, Jun 03, 2020 at 03:02:02PM +0530, Sumit Garg wrote: > > On Wed, 3 Jun 2020 at 13:55, Petr Mladek wrote: > > > > > > On Wed 2020-06-03 12:52:15, Sumit Garg wrote: > > > > In kgdb context, calling console handlers aren't safe due to

Re: [PATCH v5 4/4] kdb: Switch to use safer dbg_io_ops over console APIs

2020-06-03 Thread Petr Mladek
On Wed 2020-06-03 10:18:30, Daniel Thompson wrote: > On Wed, Jun 03, 2020 at 10:25:04AM +0200, Petr Mladek wrote: > > On Wed 2020-06-03 12:52:15, Sumit Garg wrote: > > > In kgdb context, calling console handlers aren't safe due to locks used > > > in those handlers which could in turn lead to a

Re: [PATCH v5 4/4] kdb: Switch to use safer dbg_io_ops over console APIs

2020-06-03 Thread Daniel Thompson
On Wed, Jun 03, 2020 at 03:02:02PM +0530, Sumit Garg wrote: > On Wed, 3 Jun 2020 at 13:55, Petr Mladek wrote: > > > > On Wed 2020-06-03 12:52:15, Sumit Garg wrote: > > > In kgdb context, calling console handlers aren't safe due to locks used > > > in those handlers which could in turn lead to a

Re: [PATCH v5 4/4] kdb: Switch to use safer dbg_io_ops over console APIs

2020-06-03 Thread Sumit Garg
On Wed, 3 Jun 2020 at 13:55, Petr Mladek wrote: > > On Wed 2020-06-03 12:52:15, Sumit Garg wrote: > > In kgdb context, calling console handlers aren't safe due to locks used > > in those handlers which could in turn lead to a deadlock. Although, using > > oops_in_progress increases the chance to

Re: [PATCH v5 4/4] kdb: Switch to use safer dbg_io_ops over console APIs

2020-06-03 Thread Daniel Thompson
On Wed, Jun 03, 2020 at 10:25:04AM +0200, Petr Mladek wrote: > On Wed 2020-06-03 12:52:15, Sumit Garg wrote: > > In kgdb context, calling console handlers aren't safe due to locks used > > in those handlers which could in turn lead to a deadlock. Although, using > > oops_in_progress increases the

Re: [PATCH v5 4/4] kdb: Switch to use safer dbg_io_ops over console APIs

2020-06-03 Thread Petr Mladek
On Wed 2020-06-03 12:52:15, Sumit Garg wrote: > In kgdb context, calling console handlers aren't safe due to locks used > in those handlers which could in turn lead to a deadlock. Although, using > oops_in_progress increases the chance to bypass locks in most console > handlers but it might not be

[PATCH v5 4/4] kdb: Switch to use safer dbg_io_ops over console APIs

2020-06-03 Thread Sumit Garg
In kgdb context, calling console handlers aren't safe due to locks used in those handlers which could in turn lead to a deadlock. Although, using oops_in_progress increases the chance to bypass locks in most console handlers but it might not be sufficient enough in case a console uses more locks