🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #3167

Re: [PATCH] headers: Preserve 'change-id' header in rebase / cherry-pick.

#3167
From: "brian m. carlson"
Date: Sun, 15 Nov 2026 16:24
46 lines
11646 bytes
--YUXQPdstHNQkas1A
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 2026-11-15 at 11:03:05, Ewout ter Hoeven wrote:
> On 2026-04-07 at 23:28, brian m. carlson wrote:
> > Absent some well-defined documentation describing what it means, I don't
> > see how it could provide good value.
>=20
> A concrete use case could be stacked pull/merge requests.
>=20
> GitHub's stacked PRs (CLI in github/gh-stack) and GitLab's experimental
> "glab stack" both have to answer "is this rewritten commit the same
> change as before?" after every rebase. Without an identity that
> survives rewrites they guess from branch names, recorded bases and
> patch IDs, and the guesses fail in practice:

I don't think that's going to be helpful there.  Users can modify
change-id headers in commits, so they can't be trusted as a source of
unmodified data.  Only if the server does the rebase can it have
confidence that things haven't changed.

Otherwise, a malicious user could get a review on v1 of a series and
send out a completely different v2 with the same change-ids such that
the server would honour the existing review and accept the malicious
code.
--=20
brian m. carlson (they/them)
Toronto, Ontario, CA
Speaking for myself only

--YUXQPdstHNQkas1A
Content-Type: application/pgp-signature; name=signature.asc

-----BEGIN PGP SIGNATURE-----

wr0EABYKAG8Fgmr53LcJEHwMSWKIh6KBRxQAAAAAAB4AIHNhbHRAbm90YXRpb25z
LnNlcXVvaWEtcGdwLm9yZypubcrOgtSsYcKx9MtXLAt6phqzEOgjT8w0vdD9qgBr
FiEECCzmip28ZfuD0cORfAxJYoiHooEAADmcAP95gi1sWfwPy7cZg2jS4ubdCN9I
+bRluE72wLj/IfT/zwEAo3YO1wqBVTdnRXE2KQp25xD0cPLmrTSGqdJeBA8WVwA=
=llEe
-----END PGP SIGNATURE-----

--YUXQPdstHNQkas1A--
Technical Details
Message-ID: <avnct0KGKN3a76lB@fruit.crustytoothpaste.net>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-75492-linux-kernel-git=dewy.ru
References: <CAH7WC73-4p0RrqKNSh2G-xfpfO7QHZiXHbU_UFRkM3Q=bMWTDw@mail.gmail.com> <adWTKt20ISC3qz2g@fruit.crustytoothpaste.net> <GV4P192MB328727D81CAED2956E2C682BC07D2@GV4P192MB3287.EURP192.PROD.OUTLOOK.COM>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-75492-linux-kernel-git=dewy.ru
From: sandals@crustytoothpaste.net ("brian m. carlson")
Newsgroups: linux.kernel.git
Subject: Re: [PATCH] headers: Preserve 'change-id' header in rebase /
 cherry-pick.
Date: Sun, 15 Nov 2026 16:24:24 +0000
Organization: Usenet Network
Message-ID: <avnct0KGKN3a76lB@fruit.crustytoothpaste.net>
References: <CAH7WC73-4p0RrqKNSh2G-xfpfO7QHZiXHbU_UFRkM3Q=bMWTDw@mail.gmail.com>
 <adWTKt20ISC3qz2g@fruit.crustytoothpaste.net>
 <GV4P192MB328727D81CAED2956E2C682BC07D2@GV4P192MB3287.EURP192.PROD.OUTLOOK.COM>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
	protocol="application/pgp-signature"; boundary="YUXQPdstHNQkas1A"
Injection-Info: usenet.network;
	logging-data="1849315"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:hdnk+4pZFQi4c7lnFT/rXwkd2W8= sha256:wUHN6IIPnojob0DQwaQR9qWsLEIHUK0W2D3BLgYkpds=
	sha1:KxFMKQ6VUq7eW0Z19y4rFNST5LY= sha256:ZCxiJ4kNj2+V53mAn36O43sMtaE+OBR6ZDRuvN4TED8=
Content-Disposition: inline
List-ID: <git.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id C2C9A114A0D; Sun, 15 Nov 2026 19:24:51 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.051
X-Spam-Status: No, score=-3.051 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (3072-bit key)
	header.d=crustytoothpaste.net
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id ewRWZK6xYCWV;
	Sun, 15 Nov 2026 19:24:46 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=git+bounces-75492-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=crustytoothpaste.net
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id C8BC6114A0C; Sun, 15 Nov 2026 19:24:37 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 610BC2B49D; Sun, 15 Nov 2026 16:24:36 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1794759874;
	b=HDG0uTr02MIH/a1HVSogw6ozFB4tTjx0wLsZgpEh+EjboAm+LGI1o0+xFzn6mZ1Qq2yk
	 dguazuTCPYE3BPF1/ugU3EBmAcE2puGyFX2VzNbIrpm+pLSHwR9UgfR0tLuEtmPJeyyYk
	 bW2DUvDue/IDQrs1T7zW4B0XS+/kF8P8uW8kKV8oh83gBncAk9Z5J8NRI8scvjhsVurrL
	 6Z2UqajZuLJ+HUqk3m9hDi8Ezv3fvwjmofEzVHThUugBmeALUAxV5oh9oQwApZ62BlmW9
	 6EpQZDI3ggDNlg19KNCUJ45HGwrs2yj8l1LZXUKADBw+bGnH7Q/Uem4aRF1mkYU8s1Q==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794759874;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date:
	 From:To:Cc:Subject:Message-ID:Mail-Followup-To:References:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type:
	 Content-Disposition:In-Reply-To:User-Agent;
	bh=dINMq3iTJ++IWlBTja7D2FcDd14bvTrcBY7n7yu1QnU=;
	b=I/KXQ/xoEjS1YeuAeBDNxdvaHNe2yYWTZn1t/lN+YsQNwu+NyuYrqL7GK5e7S16flGTf
	 7IKS8VZK4ZpmvmmmGieMrK8TgJfQG9uWQI/1SMijlpwEOmvrbT1CRD93QxiGzts9RVTX4
	 X00G+HxBX1APDe5pEAmtr05Mm/3mXJeBG/f8BMRkSIglBYGpmeWxBTNAiisdqD9lAc99J
	 nWVVHYmAsNnRbnDuqKSnDrgShOXTIzpxGLeOxiRiTKZsssnlerHgjF7d2X9TnMkEBHSx1
	 oKawavLkn2lBl4nPJ+/C/QuWXox9ttDYh2M7osK9yEdzGaedq0LMQMEx5jq0zpXTBxQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=crustytoothpaste.net header.i=@crustytoothpaste.net header.a=rsa-sha256 header.s=default header.b=rKpDLP8j;
	dmarc=pass header.from=crustytoothpaste.net;
	spf=pass smtp.mailfrom=crustytoothpaste.net;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 597F2606A32E;
	Sun, 15 Nov 2026 16:24:34 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (3072-bit key) header.d=crustytoothpaste.net header.i=@crustytoothpaste.net header.a=rsa-sha256 header.s=default header.b=rKpDLP8j
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=172.105.7.114
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794759873;
	b=BIgIom82Uahix+Lr/u2Loy1oOVUt+jx5Qdx8x77bv6n8eHOUwQZWQjKgAjgtUCEWe8uV
	 tCZPqAf3u2wgUSekegmNiGzM58P0q3jSISeCyhMamawsyXSAr5bTCuuA2vQMKFS0nqLLJ
	 jLTuUtIZ3Atl9xnvB2coySN3YAHjb6nTXMAwuD0Hsw2+zc/VoaCtKnpTJH8ybokJTIcM8
	 gdKZ4hTPJDphQNCN+Cq/XKAxspR2xWAy2CpQvE/qR2uVMt3ex0WCdRsXCaKZTTZD4shUq
	 e7FVnECVRuzzPqneBQwiy9rK6qsBnvT1QXSrpBeE0985ngCvTPY6uGNxMf0Oej5Dt4Q==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794759873;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:
	 Content-Disposition:In-Reply-To:User-Agent;
	bh=dINMq3iTJ++IWlBTja7D2FcDd14bvTrcBY7n7yu1QnU=;
	b=DadW6kbQ7jwIrLE0I5S5wkafTooIrJSZYRKtG3PbWnV0AS5zwwASee8UECpvJca5eZjb
	 +j1c9YYKcY5NMr4jqVnepo2Q3LZOGN6gt54RAWltk8+atEFrFs48BMuZck7GV2Ftx9zCH
	 UKWL+0jCmbaqwo7SNZ8esByig3Za2Hi58Xyo1gL9Q8nC41G4IDdzWdp8xmh0Bz68bjh/j
	 aCTtcro9x9ytsJ+9hBfzsMAGqQzaFQlm4Pe5Yh9pm1QGYpD+HeUL1s1OYJbe7z1YSOVvV
	 1Nm1FON5TOzXPboJ/ACghs+SffoZLf1tyCle2N/jcR5JmTBxlnixvEIn0rJ2h62Muug==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=crustytoothpaste.net;
	spf=pass smtp.mailfrom=crustytoothpaste.net;
	dkim=pass header.d=crustytoothpaste.net header.i=@crustytoothpaste.net header.a=rsa-sha256 header.s=default header.b=rKpDLP8j;
	arc=none smtp.remote-ip=172.105.7.114
X-Received: from complex.crustytoothpaste.net (complex.crustytoothpaste.net [172.105.7.114])
	(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 smtp.subspace.kernel.org (Postfix) with ESMTPS id E79EC606A327
	for <git@vger.kernel.org>; Sun, 15 Nov 2026 16:24:32 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E79EC606A327
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=crustytoothpaste.net
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=crustytoothpaste.net
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=crustytoothpaste.net;
	s=default; t=1794759866;
	bh=1J5Hf66MQmJ+0rfRIA8L+52u4U2QSFsx3IwO4tYE7GE=;
	h=Date:From:To:Cc:Subject:References:Content-Type:
	 Content-Disposition:In-Reply-To:From:Reply-To:Subject:Date:To:CC:
	 Resent-Date:Resent-From:Resent-To:Resent-Cc:In-Reply-To:References:
	 Content-Type:Content-Disposition;
	b=rKpDLP8jm3sSnMiAAFLqckj/xCPgtVojiYm5I6xF1RS5IZzDqFrwnEwb6CUpk0rIz
	 wIYl7M14zL0gTSL9leIRkYz+3D3Y3AWZcKlLuzIx9JcN7j5rhDngwyKSCaZXStNAN5
	 gcJYj7oQ23bcKjgPR+IbmoDvd8gaIr4FH8zGlYB9eAs/sB/mQz/i5loEZDucQADc/8
	 1gg47ZaKS3V263JflOfFNdxsdXF+P0OlHb6NUYwwlxffezOWex2/iiVoqXThg7a+Pq
	 2JazdW2SmidtAEkRt/kNumMi0wVDMGmBs7OAc3QlNMzOr9ElLSCZeiNHie3PS9sXRs
	 Ut0X+rkuAJPGHcQzp027eaHMSB08SB2JNHsoCApZ1xI/KqAP/ZumPhgl2olPfGew7J
	 +M2egoNt6jWU0r7C/0Vvo4cVDs0H044KKE88F/eY7fybsh2xY2Ra872laCXfWqWVOD
	 edk/z3mZMjHZn9PhzukX6q36p0EwW60itST2QCYLp9bJRj/vCl8
X-Received: from fruit.crustytoothpaste.net (unknown [IPv6:2607:f2c0:f00f:f901:ebc9:13c:f282:e7b2])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by complex.crustytoothpaste.net (Postfix) with ESMTPSA id E7F9E200AA;
	Sun, 15 Nov 2026 16:24:25 +0000 (UTC)
X-Cc: Matt Stark <msta@google.com>, git@vger.kernel.org, ps@pks.im,
	gitster@pobox.com, phillip.wood@dunelm.org.uk,
	Martin von Zweigbergk <martinvonz@google.com>, remo@buenzli.dev,
	Edwin Kempin <ekempin@google.com>, schacon@gmail.com,
	philipmetzger@bluewin.ch, konstantin@linuxfoundation.org,
	newren@gmail.com, tytso@mit.edu, nico@cryptonector.com,
	rikingcoding@gmail.com
X-Mail-Followup-To: "brian m. carlson" <sandals@crustytoothpaste.net>,
	Ewout ter Hoeven <ewoutterhoeven@live.nl>,
	Matt Stark <msta@google.com>, git@vger.kernel.org, ps@pks.im,
	gitster@pobox.com, phillip.wood@dunelm.org.uk,
	Martin von Zweigbergk <martinvonz@google.com>, remo@buenzli.dev,
	Edwin Kempin <ekempin@google.com>, schacon@gmail.com,
	philipmetzger@bluewin.ch, konstantin@linuxfoundation.org,
	newren@gmail.com, tytso@mit.edu, nico@cryptonector.com,
	rikingcoding@gmail.com
X-Mailing-List: git@vger.kernel.org
X-List-Post: <mailto:git@vger.kernel.org>
X-List-Help: <mailto:git+help@vger.kernel.org>
X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:git+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <GV4P192MB328727D81CAED2956E2C682BC07D2@GV4P192MB3287.EURP192.PROD.OUTLOOK.COM>
X-User-Agent: Mutt/2.4.1 (2026-07-04)