[GIT PULL] kgdb changes for v7.4
From: Daniel Thompson
Date: Wed Oct 28 2026 - 13:15:22 EST
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).
Signed-off-by: Daniel Thompson (RISCstar) <danielt@xxxxxxxxxx>
----------------------------------------------------------------
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(-)