From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id h382OnJh9GqX+gEAWB0awg (envelope-from ) for ; Wed, 11 Nov 2026 07:37:06 -0500 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=HwAUqmAK; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id D72BA378002; Wed, 11 Nov 2026 07:37:06 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id E21ED1E04F for ; Wed, 11 Nov 2026 07:37:05 -0500 (EST) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6BD3C4BA79BC for ; Wed, 11 Nov 2026 12:37:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6BD3C4BA79BC Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=HwAUqmAK Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTP id DD4774BA9015 for ; Wed, 11 Nov 2026 12:36:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DD4774BA9015 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org DD4774BA9015 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1794400569; cv=none; b=QBzQ8dvyBPr0J/L5u5B90KiwgiDCyWP3jg9tjqGBwiPmWDnPdSAiwRxt07IpE685lWb8aAagnIHKcf4buMKCbvjo9wG/xHEFgJo8eHU/A5NaOyBfgQqZv7VH4tVoVzxCZ9IQVfLJ8qtpha0lnTIiPB7MCtJzk0HHcCj7ZIMsKrQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1794400569; c=relaxed/simple; bh=ssVMeQCBs7jFU1a+Mr0RsneFD5nznkj/SpU47Cnj6L4=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=mFitc1GMk6vRXbnzXdlnSs1YcO+iVvnsf3qV4psiaMol+ELkuH83xyJt5xKct4FGmYix+LdJh8g7lNKF0WtytAAri3G0cpyie0VH6cXlj4N4ONZti3wozvtKoZ0AUCee/DEiLNX+Z88H6Bec9j37KZDq/AmV/nFaDruX3XeRmmU= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=HwAUqmAK DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DD4774BA9015 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1794400568; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=qwVSe1/aGVESaL/qp7wsdOzgEZT2r644871b0SSKD44=; b=HwAUqmAKeDKDFxbx9wcJLZ1TflDS+6i6APb9ks1VzQvvaBEpu6AhHiZSkVEGgXJg+yR2Mq xUoshdwh5xm9pGUUnCs2pF//pocwio7VtJtfINX/XX+qOyjHk10N+q3NUIxqi2PMTAm7yn TazeyObReRGzgI2DD6wUiLyBMCl87Xw= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-126-OEZZSKnPOg-_ljTuuQiEdQ-1; Wed, 11 Nov 2026 07:36:07 -0500 X-MC-Unique: OEZZSKnPOg-_ljTuuQiEdQ-1 X-Mimecast-MFC-AGG-ID: OEZZSKnPOg-_ljTuuQiEdQ_1794400566 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-4a70b42bab0so31315325e9.1 for ; Wed, 11 Nov 2026 04:36:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794400566; x=1795005366; h=content-type:mime-version:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to:content-type; bh=qwVSe1/aGVESaL/qp7wsdOzgEZT2r644871b0SSKD44=; b=BNOriC8WuQsVa3i9wsfgEgMIcdvkM4hL8ji4tmxovjp/ulBuVtZM/Y7HTFi7z6jXUf 0LDRA6ak76hLmDtxyOylUmuH9p9v3fX3CvPOpxgxr1uqSYcB8Ley6wVt42okyU3sdhWb s3DqvqyfxIxWRXs32O9yIiVLv96/ip4gohO7vPbf6043S2zVcm5L6FeIwKL4uRMb2A/T 6QrL6fPctPLGWjCVrt9P+Tl0FJlxGJLLVXFm6jhjpmndWZW8brDMXERY1L5IjAdkBUvf T1Xp27cfS/yqEfqNppO3gHm9mBoO/QeBZOdMFq2aJFqudyZ7l1imG/0UYQJ4u1i2dj20 /q8g== X-Forwarded-Encrypted: i=1; AL+hErEy8cObEnRqdIa2OZ5xU8B4At0CFYzxx6kM8OQ7QhlvCyuFyKOK8+Akg9NW8URI4F/ZZcJ7eZfVAxqcrw==@sourceware.org X-Gm-Message-State: APuU4Z9QoKbls+aRotqHoryRGKN7Q+RLgN7/RLzmcjgVOtKnA32S9Vfz VNaFr6ygoLKfeDpHxUh8ik6t0lqaB/XaSOxHMMxUj4sTOTT4iWy8jCxQ6BTuubaSLK7dKOAemW/ ZAw9x6GRyQywPnn16YIV4zUWDcQEfCITvy1FbsVMwlyGp96aS5pyCQ0+/RWMiQcbIEVm5FEw= X-Gm-Gg: AYBFou2lszrCE+NocNn7byNQO363w8eWMewXY9juUCrA+JAcQJpcDhFI8WMbx5qA/Gl ilOq+2ezMOicTTQXNN7sYyPay19XjFOQ6B6EBvq1FXqpQsPED4Gnb5y82HBKqSNzzsmqBnBwi7e /bMwZcYYFoKdAYILCxcgwRP/dmXf6G3oEyVqB/mnasQ9kRHikkGEKYVyc4ShfFJFZXvfQmx4wq3 PE3OlW/78bic5h+B1kIauiys4ee50kF1A02qUJP4E/dxtUi1lg+/9zq5NFvT0TacKQqiGq4jZrz JfSbhgB+LucbQ7fuL3X68P/hFYjYTOxJIv7aW2TwEP//XsY7n03aSB4u2X2rJekHZhHyWWTU76h X29yLkXmpzbRr8Kng6+abN8x0M/zM6sbaAO4bAF2nr7FM X-Received: by 2002:a05:600c:1547:b0:4b4:a551:681a with SMTP id 5b1f17b1804b1-4ba0935bcdfmr42442355e9.3.1794400565737; Wed, 11 Nov 2026 04:36:05 -0800 (PST) X-Received: by 2002:a05:600c:1547:b0:4b4:a551:681a with SMTP id 5b1f17b1804b1-4ba0935bcdfmr42441705e9.3.1794400565237; Wed, 11 Nov 2026 04:36:05 -0800 (PST) Received: from localhost ([83.216.138.189]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4ba0204785dsm143452105e9.9.2026.11.11.04.36.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Nov 2026 04:36:04 -0800 (PST) From: Andrew Burgess To: Kevin Buettner , gdb-patches@sourceware.org Cc: Kevin Buettner Subject: Re: [PATCH 2/2] gdb/testsuite: test malformed agent expressions sent to gdbserver In-Reply-To: <20261110074218.1600179-3-kevinb@redhat.com> References: <20261110074218.1600179-1-kevinb@redhat.com> <20261110074218.1600179-3-kevinb@redhat.com> Date: Wed, 11 Nov 2026 12:36:03 +0000 Message-ID: <87o6bv5yvg.fsf@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: Dw8eqnT0xv6yRvJSmwnL2UCDkuAq-GOfyUhdAyNJ8v0_1794400566 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org Kevin Buettner 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