Description
The Linux::release / Build DEB Packages / Build deb packages job fails during DEB packaging of amdrocm-runtime-test7.15. The Debian helper dh_makeshlibs runs objdump -p on every .co file included in the package — including elf_bad_shoff.co, which is an intentionally malformed ELF test fixture generated by gen_evil_elfs.py. objdump correctly rejects it ("file format not recognized") and exits with code 1, causing the build to abort.
This was introduced by PR #7350 ([clr] do not allow clr to read out of bounds in some cases) in the 9e54f75→769f0f5 rocm-systems bump.
Context
| Platform |
Step |
Job ID |
| Linux |
Build DEB Packages |
88608761533 |
Log Excerpt
dh_makeshlibs -a -O--no-parallel
objdump: debian/amdrocm-runtime-test7.15/opt/rocm/core-7.15/share/hip/catch_tests/elf_bad_shoff.co: file format not recognized
dh_makeshlibs: error: objdump -p debian/amdrocm-runtime-test7.15/opt/rocm/core-7.15/share/hip/catch_tests/elf_bad_shoff.co returned exit code 1
make: *** [debian/rules:7: binary] Error 25
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2
Error building deb package: amdrocm-runtime-test7.15: Command '['dpkg-buildpackage', '-uc', '-us', '-b']' returned non-zero exit status 2.
❌ Build aborted due to an error at /__w/TheRock/TheRock/build_tools/packaging/linux/deb_package.py:472: 2
Suspected Contributing Changes (in bump 9e54f75→769f0f5)
86ae9b62 — [clr] do not allow clr to read out of bounds in some cases (#7350) PR
Introduces a new OOB test suite under projects/hip-tests/catch/unit/oob/, including gen_evil_elfs.py which generates deliberately malformed ELF files (elf_bad_shoff.co, elf_huge_shnum.co, etc.) as test fixtures. These malformed .co files are installed into share/hip/catch_tests/ and packaged in amdrocm-runtime-test. dh_makeshlibs calls objdump -p on all installed .co files and errors out on the corrupted ELF header.
Expectation
The amdrocm-runtime-test DEB package must build successfully. Malformed-ELF test fixtures should either be excluded from dh_makeshlibs processing or installed in a path not scanned by it.
Impact
Blocks DEB packaging for amdrocm-runtime-test7.15 on Linux for all GPU architectures. RPM packaging (Build RPM Packages) succeeded (rpm's find-debuginfo does not run objdump -p on .co files in the same way). No functional test or build stage failures — purely a packaging regression.
Description
The
Linux::release / Build DEB Packages / Build deb packagesjob fails during DEB packaging ofamdrocm-runtime-test7.15. The Debian helperdh_makeshlibsrunsobjdump -pon every.cofile included in the package — includingelf_bad_shoff.co, which is an intentionally malformed ELF test fixture generated bygen_evil_elfs.py.objdumpcorrectly rejects it ("file format not recognized") and exits with code 1, causing the build to abort.This was introduced by PR #7350 (
[clr] do not allow clr to read out of bounds in some cases) in the9e54f75→769f0f5rocm-systems bump.Context
Log Excerpt
Suspected Contributing Changes (in bump
9e54f75→769f0f5)86ae9b62—[clr] do not allow clr to read out of bounds in some cases (#7350)PRIntroduces a new OOB test suite under
projects/hip-tests/catch/unit/oob/, includinggen_evil_elfs.pywhich generates deliberately malformed ELF files (elf_bad_shoff.co,elf_huge_shnum.co, etc.) as test fixtures. These malformed.cofiles are installed intoshare/hip/catch_tests/and packaged inamdrocm-runtime-test.dh_makeshlibscallsobjdump -pon all installed.cofiles and errors out on the corrupted ELF header.Expectation
The
amdrocm-runtime-testDEB package must build successfully. Malformed-ELF test fixtures should either be excluded fromdh_makeshlibsprocessing or installed in a path not scanned by it.Impact
Blocks DEB packaging for
amdrocm-runtime-test7.15on Linux for all GPU architectures. RPM packaging (Build RPM Packages) succeeded (rpm'sfind-debuginfodoes not runobjdump -pon.cofiles in the same way). No functional test or build stage failures — purely a packaging regression.