Project

General

Profile

Bug #10447

ACPI binaries should be reproducible

Added by Joshua M. Clulow 10 months ago. Updated 10 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
cmd - userland programs
Start date:
2019-02-25
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:

Description

When running wsdiff against two workspaces with no changes to the ACPI tools, I noticed they nonetheless appear to have some differences:

usr/sbin/iasl
NOTE: ELF .rodata difference detected.

43468,43471c43468,43471
< 1315720   i   m   e   :       %   s       %   s  \n  \0   0   0   :   1
<         3a656d69 20732520 000a7325 313a3030
< 1315740   1   :   4   6  \0   F   e   b       2   5       2   0   1   9
<         36343a31 62654600 20353220 39313032
---
> 1315720   i   m   e   :       %   s       %   s  \n  \0   0   1   :   2
>         3a656d69 20732520 000a7325 323a3130
> 1315740   9   :   5   8  \0   F   e   b       2   5       2   0   1   9
>         38353a39 62654600 20353220 39313032

usr/sbin/acpixtract
NOTE: ELF .rodata difference detected.

314,315c314,315
< 0005220   0   0   :   1   1   :   2   7  \0   F   e   b       2   5    
<         313a3030 37323a31 62654600 20353220
---
> 0005220   0   1   :   2   9   :   3   5  \0   F   e   b       2   5    
>         323a3130 35333a39 62654600 20353220

usr/sbin/acpidump
NOTE: ELF .rodata difference detected.

442,443c442,443
< 0007320   8   X  \n   %   s  \n  \n  \0   0   0   :   1   1   :   2   7
<         250a5838 000a0a73 313a3030 37323a31
---
> 0007320   8   X  \n   %   s  \n  \n  \0   0   1   :   2   9   :   3   5
>         250a5838 000a0a73 323a3130 35333a39

It would appear that these timestamps are included in support of an unhelpful command-line option:

root@jenkins-oi0:~# /usr/sbin/acpidump --help
Illegal option: --
Usage: acpidump [options]
Options:
...
  -v                  Display version information
  -vd                 Display build date and time
...

The output of -vd is, e.g.,

root@jenkins-oi0:~# /usr/sbin/acpidump -vd

Intel ACPI Component Architecture
ACPI Binary Table Dump Utility version 20180629
Copyright (c) 2000 - 2018 Intel Corporation

Build date/time: Feb 24 2019 00:53:37

We should figure out a way to patch this out of our copy of the tools. Note that we don't necessarily just want to patch the source in the tree directly. See notes in #9824 for how we're managing ACPI updates.

History

#1

Updated by Joshua M. Clulow 10 months ago

  • Description updated (diff)

Also available in: Atom PDF