[GIT PULL] kgdb changes for v6.10
From: Daniel Thompson
Date: Sat May 18 2024 - 11:27:11 EST
Hi Linus
The following changes since commit 0bbac3facb5d6cc0171c45c9873a2dc96bea9680:
Linux 6.9-rc4 (2024-04-14 13:38:39 -0700)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/danielt/linux.git/ tags/kgdb-6.10-rc1
for you to fetch changes up to b2aba15ad6f908d1a620fd97f6af5620c3639742:
serial: kgdboc: Fix NMI-safety problems from keyboard reset code (2024-04-26 17:14:10 +0100)
----------------------------------------------------------------
kgdb patches for 6.10
Nine patches this cycle and they split into just three topics:
1. Adopt coccinelle's recommendation to adopt str_plural().
2. A set of seven patches to refactor kdb_read() to improve both code clarity
and it's discipline with respect to fixed size buffers. This isn't just a
refactor. Between them these also fix a cursor movement redraw problem and
two buffer overflows (one latent and one real, albeit difficult to
tickle).
3. Fix an NMI-safety problem when enqueuing kdb's keyboard reset code.
I wrote eight of the nine patches in this collection so many thanks to Doug
Anderson for the reviews. The changes that affects drivers/tty/serial is
acked by Greg KH.
Signed-off-by: Daniel Thompson <daniel.thompson@xxxxxxxxxx>
----------------------------------------------------------------
Daniel Thompson (8):
kdb: Fix buffer overflow during tab-complete
kdb: Use format-strings rather than '\0' injection in kdb_read()
kdb: Fix console handling when editing and tab-completing commands
kdb: Merge identical case statements in kdb_read()
kdb: Use format-specifiers rather than memset() for padding in kdb_read()
kdb: Replace double memcpy() with memmove() in kdb_read()
kdb: Simplify management of tmpbuffer in kdb_read()
serial: kgdboc: Fix NMI-safety problems from keyboard reset code
Thorsten Blum (1):
kdb: Use str_plural() to fix Coccinelle warning
drivers/tty/serial/kgdboc.c | 30 ++++++++-
kernel/debug/kdb/kdb_io.c | 153 ++++++++++++++++++++++----------------------
kernel/debug/kdb/kdb_main.c | 2 +-
3 files changed, 108 insertions(+), 77 deletions(-)