[Kgdb-bugreport] [PATCH V9] kdb: Fix the deadlock issue in KDB debugging.

2024-04-08 Thread liu.yec
From: LiuYe Currently, if CONFIG_KDB_KEYBOARD is enabled, then kgdboc will attempt to use schedule_work() to provoke a keyboard reset when transitioning out of the debugger and back to normal operation. This can cause deadlock because schedule_work() is not NMI-safe. The stack trace below shows

Re: [PATCH v2] kdb: replace deprecated strncpy

2024-04-08 Thread Justin Stitt
On Fri, Apr 5, 2024 at 2:51 AM Daniel Thompson wrote: > > > len_tmp = strlen(p_tmp); > > - strncpy(cp, p_tmp+len, len_tmp-len + 1); > > + strscpy(cp, p_tmp+len, len_tmp-len + 1); > > Again, I really don't think the third argument

Re: [Kgdb-bugreport] [PATCH V8] kdb: Fix the deadlock issue in KDB debugging.

2024-04-08 Thread Andy Shevchenko
On Mon, Apr 8, 2024 at 4:46 AM LiuYe wrote: > >Wed, Apr 03, 2024 at 02:11:09PM +0800, liu@h3c.com kirjoitti: ... > >Ouch. > >Please, read this > >https://www.kernel.org/doc/html/latest/process/submitting-patches.html#backtraces-in-commit-messages > >and modify the commit message