Skip to contentSkip to conversation

kgdb changes for v6.10

GIT PULL Merged Daniel Thompson 2 participants 2 messages May 18, 2024 – May 19, 2024

lore
Share & tools
lore
#0 lore raw

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.

----------------------------------------------------------------
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(-)
merge bot Merged
#1 lore raw
The pull request you sent on Sat, 18 May 2024 16:26:55 +0100:

The pull request you sent on Sat, 18 May 2024 16:26:55 +0100:

Quoted 1 line

git://git.kernel.org/pub/scm/linux/kernel/git/danielt/linux.git/ tags/kgdb-6.10-rc1

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/a76056285f5d64740b461d70b062225ba80f0ac2

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html