From: Andrew Burgess <aburgess@redhat.com>
To: Kevin Buettner <kevinb@redhat.com>, gdb-patches@sourceware.org
Cc: Kevin Buettner <kevinb@redhat.com>
Subject: Re: [PATCH 2/2] gdb/testsuite: test malformed agent expressions sent to gdbserver
Date: Wed, 11 Nov 2026 12:36:03 +0000 [thread overview]
Message-ID: <87o6bv5yvg.fsf@redhat.com> (raw)
In-Reply-To: <20261110074218.1600179-3-kevinb@redhat.com>
Kevin Buettner <kevinb@redhat.com> writes:
> Add gdb.server/agent-expr-length.exp, which uses "maintenance packet"
> to send gdbserver agent expressions whose declared length exceeds the
> hex data present in the packet, or which lack the comma after the
> length. They are sent as breakpoint conditions and commands (Z0) and
> as tracepoint conditions and actions (QTDP). The test checks that
> gdbserver survives each one and, by reading the tracepoint definitions
> back with qTfP/qTsP, that the malformed parts are dropped instead of
> being stored with an uninitialized tail, while the well-formed
> conditions and actions alongside them are kept.
>
> Against a gdbserver without the previous commit's fix, the test shows
Hi Kevin,
Please don't split tests from fixes like this. When looking back at
commits using e.g. `git blame` it's super annoying to find a commit with
not associated tests. I then have to go and dig around in the git
history to see if a test was added later. It's a small thing, but
keeping the tests with the change just makes peoples (my) life that
little bit easier.
> the heap disclosure (a tracepoint condition read back with 63 bytes of
> heap contents beyond the single byte sent), and gdbserver crashes on
> the expressions with a huge declared length.
>
> This is a test for CVE-2026-121996.
>
> Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=34969
>
> Assisted-by: LLM
Maybe this is why you split it off?
I'm all in on LLM use, and I'd be in favour of it for helping create
both GDB patches and test patches. But I just don't see how the current
copyright assignment can be compatible with LLM generated code.
I do see a path to getting LLM code into GDB, which goes:
1. Convince GDB project to accept code under DCO rather than copyright
assignment,
2. If we no longer need to assign copyright, then using LLM generated
code is a project choice. Convince GDB project to accept LLM
generated code.
3. There's no step 3!
But if we want to start accepting LLM code now then I think someone need
to propose a patch which actually makes it clear where we do or do not
accept LLM code. We (the GDB project) also need to document how we see
this interacting with copyright assignment. I mean, we (GDB project)
might say we hare happy to risk assigning copyright to FSF for LLM
generated testsuite code, but are FSF happy to receive it?
If not then the policy has actually become "testsuite is no longer
copyright assigned to FSF". This all needs to be checked (with FSF) and
a proper policy written down.
I don't think this should be decided in some thread hanging off some
random testsuite patch.
I'm really not anti-llm, I make use of these tools for patch review, and
planning work in GDB, and I'd like to be able to use it more
extensively. I think by dragging their heels for so long the FSF have
messed up on this topic, and honestly, I think the right path for GDB is
to move away from FSF copyright assignment.
Hopefully we can find a way to get this fix and a suitable test merged
without having to resolve the whole llm question.
Thanks,
Andrew
next prev parent reply other threads:[~2026-11-11 12:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-10 7:07 [PATCH 0/2] PR gdb/server/34969 Kevin Buettner
2026-11-10 7:07 ` [PATCH 1/2] gdbserver: reject malformed agent expressions in gdb_parse_agent_expr Kevin Buettner
2026-11-10 7:07 ` [PATCH 2/2] gdb/testsuite: test malformed agent expressions sent to gdbserver Kevin Buettner
2026-11-11 12:36 ` Andrew Burgess [this message]
2026-11-10 12:58 ` [PATCH 0/2] PR gdb/server/34969 Eli Zaretskii
2026-11-10 15:15 ` Simon Marchi
2026-11-11 6:13 ` Kevin Buettner
2026-11-11 12:37 ` Eli Zaretskii
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=87o6bv5yvg.fsf@redhat.com \
--to=aburgess@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=kevinb@redhat.com \
/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