From: Andrew Burgess <aburgess@redhat.com>
To: gdb-patches@sourceware.org
Cc: Andrew Burgess <aburgess@redhat.com>
Subject: [PATCH 0/5] gdbserver: fix buffer overflow issue in QTDPsrc packet
Date: Mon, 16 Nov 2026 11:10:06 +0000 [thread overview]
Message-ID: <cover.1794827178.git.aburgess@redhat.com> (raw)
This started as a simple patch to fix a buffer overflow in QTDPsrc
(patch #2). But grew a little along the way.
Patch #1 is a general spring clean of the code I ended up touching.
Then patches #3, #4, and #5 fix additional issues that I spotted along
the way.
There is undoubtedly other similar bugs in the gdbserver code, but I
really wanted to limit the size of this series, so I've cut myself off
here. I suspect I'll follow up with a few additional fixes over the
next few weeks.
Thanks,
Andrew
--
Andrew Burgess (5):
gdbserver: clean up some older code in tracepoint.cc
gdbserver: prevent buffer overrun for QTDPsrc packet
gdbserver: improve packet parsing in tracepoint.cc
gdbserver: don't leak trace variable names if reusing variable numbers
gdbserver: use unique_xmalloc_ptr to avoid memory leaks
.../gdb.server/invalid-tracepoint-packets.exp | 453 ++++++++++++++++++
gdbserver/tracepoint.cc | 434 +++++++++++------
2 files changed, 735 insertions(+), 152 deletions(-)
create mode 100644 gdb/testsuite/gdb.server/invalid-tracepoint-packets.exp
base-commit: 5678a7bfceb3a6ea18bcde1ae68f7e96c43c998b
--
2.25.4
next reply other threads:[~2026-11-16 11:10 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-16 11:10 Andrew Burgess [this message]
2026-11-16 11:10 ` [PATCH 1/5] gdbserver: clean up some older code in tracepoint.cc Andrew Burgess
2026-11-16 11:10 ` [PATCH 2/5] gdbserver: prevent buffer overrun for QTDPsrc packet Andrew Burgess
2026-11-19 19:51 ` Keith Seitz
2026-11-23 17:15 ` Andrew Burgess
2026-11-23 17:57 ` Keith Seitz
2026-11-16 11:10 ` [PATCH 3/5] gdbserver: improve packet parsing in tracepoint.cc Andrew Burgess
2026-11-16 11:10 ` [PATCH 4/5] gdbserver: don't leak trace variable names if reusing variable numbers Andrew Burgess
2026-11-16 11:10 ` [PATCH 5/5] gdbserver: use unique_xmalloc_ptr to avoid memory leaks Andrew Burgess
2026-11-19 19:52 ` [PATCH 0/5] gdbserver: fix buffer overflow issue in QTDPsrc packet Keith Seitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1794827178.git.aburgess@redhat.com \
--to=aburgess@redhat.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox