Control: tags 1140167 +patch

On 2026-06-16, Vagrant Cascadian wrote:
> On 2026-06-16, Kris Van Hees wrote:
>> The reproduced reports failure for the dtrace-tests deb due to the kernel
>> version string that is included in the USDT ELF notes.  The kernel versions
>> on the two systems (orginal and comparison system) are not the same, and
>> thus this is flagged as a failure and it also affects the build-id which is
>> therefore different.
>>
>>         6.12.88+deb13-arm64
>>         #1 SMP Debian 6.12.88-1 (2026-05-15)
>>
>> vs
>>
>>         6.12.90+deb13-cloud-arm64
>>         #1 SMP Debian 6.12.90-1 (2026-05-22)
>
> This is highly unlikely to be arm specific, just you happened to get the
> same kernel on the other tested architectures.
>
> Most likely this is due to
>
>   GNUmakefile:KERNELS ?= $(shell uname -r)
>
> ... or various other calls to "uname -r" which somehow get embedded in
> the binaries.

Those were all false leads. It seems embedding some utsname data is the
culprit...


> Ideally this can be patched out of your package, as relying on the
> kernel version matching is unlikely to be the same over the course of
> days, months or years as security updates for the kernel come out.
>
> I will take a quick stab at patches...

The attached patch seems to fix this issue as well as embedded hostname
and domainname as a side-benefit!

Not sure if there are unintended consequences to removing this
information; not very familiar with dtrace to be able to evaluate that.

live well,
  vagrant
From: Vagrant Cascadian <[email protected]>
Date: Tue, 16 Jun 2026 13:32:29 -0700
X-Dgit-Generated: 2.0.7-1.1~5 32b0b6c474637eb38dc93b315f833b0f58bf5c25
Subject: libdtrace/dt_link.c: Do not call note_add_utsname.


---

diff --git a/libdtrace/dt_link.c b/libdtrace/dt_link.c
index 6d73388..d3675f2 100644
--- a/libdtrace/dt_link.c
+++ b/libdtrace/dt_link.c
@@ -398,8 +398,6 @@ create_elf64(dtrace_hdl_t *dtp, dtrace_prog_t *pgp, int fd, uint_t flags)
 	if (!(flags & DTRACE_D_STRIP)) {
 		if (note_add_version(usdt) == -1)
 			goto fail;
-		if (note_add_utsname(usdt) == -1)
-			goto fail;
 	}
 
 	dt_free(dtp, usdt);

Attachment: signature.asc
Description: PGP signature

Reply via email to