From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=166.70.13.233 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796406467; b=m1v/Q7VS82GHRSGfV1ZTD1wxtjdEwJA13KJq8ptuLS5+nFreyQ2h+rEjVfSoX8nEmIJ0 qyZfN5b9Fzxhf0VVkqEXJ73GEX1eHctQJ6onS+4vIfmd2AVGgDmpeOXhIGFcxJ1iVwVRy +9qCPR6DHMzhZhtjl5QdjBvj5Yd4RNILADF/Cq+dGCrQrYJpRBTf/zfpOyG+QX6TZZDgi QuliC7w5t/CX8UoSGJ00UwRmI6FAapxgGeY4sAkmWHsM7u8ggL+FpXa8rSRjRt+WbUGlT j6aOiWDwt6JSrkxusUNcrFKhDwZYLAKfp25AzwccBcuBXGcqdOloa6z/XFhxbHGCVYw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796406467; h=DMARC-Filter:DKIM-Signature:Received:Received:From:To:Cc:In-Reply-To: References:Date:Message-ID:User-Agent:MIME-Version:Content-Type: X-XM-SPF:X-XM-AID:X-Spam-Checker-Version:X-Spam-Level:X-Spam-Status: X-Spam-Report:X-Spam-DCC:X-Spam-Combo:X-Spam-Relay-Country: X-Spam-Timing:Subject:X-SA-Exim-Connect-IP:X-SA-Exim-Rcpt-To: X-SA-Exim-Mail-From:X-SA-Exim-Scanned; bh=At6hzvLmrHbJ/LSGLy9cSwPkbjSz3YxYDvb7uHeDu1M=; b=sTZ20m1j5rg+vKEjaOqqo6kaYg6BSeitpE0fbcZD86bmt4NHRLBhsFil4vth9CIosT1d wClUxQZ7js1NHTWGv2ajGOhNMUklyIhMu9SyX11n/NnOk+xYhcsjXybCtcJkEuoDqFsCc KyzDOVr4prOZzDS9N+xz1/mUMRKw19raDKpJqUQ+FH4weyxcKx86WPq5GMwzKNpbzat76 bAVgSNSO/u9DK73l0D0Nno4LhVruvJfcqM+hn7ylh1zLMV20YlL3FA/9vaPm6zKGGzw/k zTseqoZ42hif5rIz9UnlUsdXaoQnGVpAQ26F5ffmMmYm1oZX7YvM3DWjyB+7F8JHI2A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=xmission.com; spf=pass smtp.mailfrom=xmission.com; dkim=pass header.d=xmission.com header.i=@xmission.com header.a=rsa-sha256 header.s=xmission header.b=rhCUOAZV; arc=none smtp.remote-ip=166.70.13.233 Received: from out03.mta.xmission.com (out03.mta.xmission.com [166.70.13.233]) (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 smtp.subspace.kernel.org (Postfix) with ESMTPS id 0130E606A322 for ; Fri, 4 Dec 2026 17:47:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0130E606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=xmission.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=xmission.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=xmission.com header.i=@xmission.com header.a=rsa-sha256 header.s=xmission header.b=rhCUOAZV DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=simple/simple; d=xmission.com; s=xmission; h=Subject:Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Br+RPLM5bkfTWCk96pljBDToIxJHTlzg9rBVVTZHqag=; b=rhCUOAZVhn+nZ/cJkL2f6zUGnc ZY7yKb/I2gsrzo08/3Db5+I98bL12oRabNqgwEBLWJ3oo/mQCiAhi7SauDOqQC6isdskMmlx0zXRi 0e/4zHAaBHI2JgcixtN/8toi6+YIYCTRQ7nqr49cg1VN8/GiV3zebUpCdVjJ9ivZMbxs=; Received: from in01.mta.xmission.com ([166.70.13.51]:49576) by out03.mta.xmission.com with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1xZXNj-00F9Ac-I4; Fri, 04 Dec 2026 10:47:39 -0700 Received: from ip72-198-196-98.om.om.cox.net ([72.198.196.98]:58486 helo=email.froward.int.ebiederm.org.xmission.com) by in01.mta.xmission.com with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1xZXNi-00FQL6-O7; Fri, 04 Dec 2026 10:47:39 -0700 From: "Eric W. Biederman" To: Adrian Ratiu Cc: git@vger.kernel.org, Junio C Hamano , Patrick Steinhardt , "brian m . carlson" In-Reply-To: <366b8c310dcf1f03046cae422e7ac5c0eb618c9d.1795455594.git.adrian.ratiu@collabora.com> (Adrian Ratiu's message of "Mon, 30 Nov 2026 15:43:25 +0200") References: <366b8c310dcf1f03046cae422e7ac5c0eb618c9d.1795455594.git.adrian.ratiu@collabora.com> Date: Fri, 04 Dec 2026 11:47:34 -0600 Message-ID: <8733sddjk9.fsf@email.froward.int.ebiederm.org> User-Agent: Gnus/5.13 (Gnus v5.13) X-Mailing-List: git@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain X-XM-SPF: eid=1xZXNi-00FQL6-O7;;;mid=<8733sddjk9.fsf@email.froward.int.ebiederm.org>;;;hst=in01.mta.xmission.com;;;ip=72.198.196.98;;;frm=ebiederm@xmission.com;;;spfnum=0;;;sPf=pass X-XM-AID: U2FsdGVkX1+bu3jMT8YZC9AmDP2X5mTfQyWKZ6VKarc= X-Spam-Level: X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.1 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.4979] * 0.7 XMSubLong Long Subject * 0.0 T_TM2_M_HEADER_IN_MSG BODY: No description available. * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa07 1397; Body=1 Fuz1=1 Fuz2=1] * 0.0 T_TooManySym_01 4+ unique symbols in subject X-Spam-DCC: XMission; sa07 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ;Adrian Ratiu X-Spam-Relay-Country: X-Spam-Timing: total 329 ms - load_scoreonly_sql: 0.05 (0.0%), signal_user_changed: 11 (3.3%), b_tie_ro: 10 (2.9%), parse: 0.70 (0.2%), extract_message_metadata: 2.5 (0.8%), get_uri_detail_list: 0.85 (0.3%), tests_pri_-2000: 2.7 (0.8%), tests_pri_-1000: 1.85 (0.6%), tests_pri_-950: 0.94 (0.3%), tests_pri_-900: 0.73 (0.2%), tests_pri_-90: 70 (21.2%), check_bayes: 69 (20.9%), b_tokenize: 4.4 (1.4%), b_tok_get_all: 7 (2.1%), b_comp_prob: 2.4 (0.7%), b_tok_touch_all: 51 (15.4%), b_finish: 1.09 (0.3%), tests_pri_0: 219 (66.8%), check_dkim_signature: 0.60 (0.2%), check_dkim_adsp: 3.7 (1.1%), poll_dns_idle: 0.91 (0.3%), tests_pri_10: 2.1 (0.6%), tests_pri_500: 10 (3.1%), rewrite_mail: 0.00 (0.0%) Subject: Re: [PATCH v3 4/4] object-file-convert: copy unknown commit headers unchanged X-SA-Exim-Connect-IP: 166.70.13.51 X-SA-Exim-Rcpt-To: sandals@crustytoothpaste.net, ps@pks.im, gitster@pobox.com, git@vger.kernel.org, adrian.ratiu@collabora.com X-SA-Exim-Mail-From: ebiederm@xmission.com X-SA-Exim-Scanned: No (on out03.mta.xmission.com); SAEximRunCond expanded to false I don't understand what the problem is with the behavior that was deliberately added in commit 08a45903cb32 ("object-file-convert: convert commits that embed signed tags"). Fundamentally if a header holds a object id the code needs to know about the header or the commit can not be converted. Ignoring that possibility will result in inconsistent and improper conversions that affect the structure of the git tree. When git isn't converting commits it doesn't matter so I also don't see a problem with the two code paths being different, as the difference is in their fundamental responsibilities. My sense is that deliberately failing is better than generating a garbage commit. I think that should definitely be the default. Fundamentally the code must be updated whenever someone adds a new header that adds additional object ids. For me the question is how does the code reasonably detect new headers with object ids and fail those while allowing the other non-problematic cases to work. The paths I see are whitelisting all headers. Or having something that scans the unknown like and causes the conversion to fail if it includes anything that looks like an object id. It might make sense to add a warning in the ordinary commit case about headers that we don't know how to commit. How do we prevent creating a corrupt git archive? If there are such headers the converted archive will be corrupt when the non-converted archive is fine. Eric