Skip to contentSkip to conversation

kgdb changes for v7.4

GIT PULL Merged Daniel Thompson 2 participants 2 messages Oct 28 – Oct 30

lore
Share & tools
lore
#0 lore raw

The following changes since commit 24a19b953e2a3d0ea5a8c4951a0ab8f32720c907:

Linux 7.3-rc7 (2026-10-11 20:04:55 -0700)

are available in the Git repository at:

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

for you to fetch changes up to 9ca9e8c857b55a081d5a1f8039b27cbb4d646b49:

kgdb: Fix buffer overflow in the qRcmd packet handler (2026-10-28 16:55:40 +0000)

----------------------------------------------------------------
kgdb patches for 7.4

Varied updates this cycle. Naveen Kumar Chaudhary fixed a memory leak when the environment is already full, eliminated to weird historical cruft (CMD_BUFLEN having different values in different files) and removed some dead code. Fang Xieyan tackled a family of related buffer overflows in the gdb remote protocol parsing (great fixes from a defensive coding point of view but not security relavent; gdb can already do anything it wants to).

----------------------------------------------------------------
Fang Xieyan (3):
kgdb: Fix buffer overflow in the 'm' packet handler
kgdb: Fix buffer overflow in the 'M' and 'X' packet handlers
kgdb: Fix buffer overflow in the qRcmd packet handler

Naveen Kumar Chaudhary (3):
kdb: fix memory leak in kdb_setenv() when environment is full
kdb: unify CMD_BUFLEN definition into kdb_private.h
kgdb: remove unreachable return in kgdb_reenter_check()

 kernel/debug/debug_core.c      |  2 --
 kernel/debug/gdbstub.c         | 55 ++++++++++++++++++++++++++++++++++++------
 kernel/debug/kdb/kdb_io.c      |  1 -
 kernel/debug/kdb/kdb_main.c    |  7 +++---
 kernel/debug/kdb/kdb_private.h |  3 ++-
 5 files changed, 52 insertions(+), 16 deletions(-)
merge bot Merged
#1 lore raw
The pull request you sent on Wed, 28 Oct 2026 17:09:21 +0000:

The pull request you sent on Wed, 28 Oct 2026 17:09:21 +0000:

Quoted 1 line

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

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

Thank you!

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