Skip to content

Conversation

@laanwj
Copy link
Member

@laanwj laanwj commented Nov 24, 2020

Check both failure cases:

  • Use a glibc symbol from a version that is too new
  • Use a symbol from a library that is not in the allowlist

And also check a conforming binary.

Adding a similar check for Windows PE can be done in a separate PR.

Copy link
Member

@fanquake fanquake left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Concept ACK - thanks for putting this together. Will actually test shortly.

@fanquake
Copy link
Member

fanquake commented Dec 2, 2020

I added a test for macOS if you wanted to pull that in as well: fanquake@9e6e59b.

@DrahtBot
Copy link
Contributor

DrahtBot commented Dec 2, 2020

Gitian builds

File commit f17e8ba
(master)
commit 58120ed529ce61f9e09bdfe52fcebad03950b874
(master and this pull)
bitcoin-core-linux-22-res.yml 6f0b719c784eefe4... 55a00a6e623803dc...
bitcoin-core-osx-22-res.yml e4d32d3c0842638c... aa14c0ca3ce99331...
bitcoin-core-win-22-res.yml 56db8c3b379f620c... 4b619f8a164f9262...
*-aarch64-linux-gnu-debug.tar.gz 4c8388193af8a61e... 8c9337c0cdd2cc9f...
*-aarch64-linux-gnu.tar.gz 1835e3b9ae2ec936... bf60e150e5709440...
*-arm-linux-gnueabihf-debug.tar.gz fbc6bac8916983ea... eacb8039b37bc5e5...
*-arm-linux-gnueabihf.tar.gz e7cfe2f2cdffaf3b... 1e0db55d171e6a30...
*-osx-unsigned.dmg e781b8468665316d... f9304c7e594bf969...
*-osx64.tar.gz 35c3793544745d8a... 1d5170d14bf24676...
*-riscv64-linux-gnu-debug.tar.gz 941c0cea0da48faa... 4ee7bfca69772615...
*-riscv64-linux-gnu.tar.gz 37c303be1611e51c... 5ae21c1c4998aadf...
*-win64-debug.zip 66de372db25058b4... b54ed786ad75109b...
*-win64-setup-unsigned.exe 4b6c333acd3f9cba... 2405901747f545b6...
*-win64.zip 1173f4205ab9a460... e3f2e95699e8e89d...
*-x86_64-linux-gnu-debug.tar.gz 816ba486d4fe35ab... a845822e431f9626...
*-x86_64-linux-gnu.tar.gz b4ce0ce1137cc11f... 7570a844384fe303...
*.tar.gz 161acebcdfc94552... 106717564a806f45...
linux-build.log f43d56b96440d9eb... 58e03fbd38ecfa64...
osx-build.log 2b6266bbc3875f3e... 2d9018917095b586...
win-build.log 8d1eb99e0ca0cb32... e7e1c919de0a5c1b...
bitcoin-core-linux-22-res.yml.diff 3cf2077e2009bce0...
bitcoin-core-osx-22-res.yml.diff d54f1aad8f823e10...
bitcoin-core-win-22-res.yml.diff 4fcda02450718fe2...
linux-build.log.diff 8ced788bea660ef8...
osx-build.log.diff b3e0bc4bcfb475dc...
win-build.log.diff c240bd4de2f025e3...

laanwj and others added 2 commits December 3, 2020 12:15
Check both failure cases:
- Use a glibc symbol from a version that is too new
- Use a symbol from a library that is not in the allowlist

And also check a conforming binary.

Adding a similar check for Windows PE can be done in a separate PR.
@laanwj laanwj force-pushed the 2020_11_test_symbol_check branch from afc20c2 to ed1bbce Compare December 3, 2020 11:16
@laanwj
Copy link
Member Author

laanwj commented Dec 3, 2020

I added a test for macOS if you wanted to pull that in as well: fanquake/bitcoin@9e6e59b.

Thanks ! I didn't mention macOS in the OP because I (mistakenly) thought we only had a symbol check for windows and linux. Good to have a test for that too.

I've fixed the comment and cherry-picked that commit.

@laanwj laanwj closed this Dec 3, 2020
@laanwj laanwj reopened this Dec 3, 2020
@laanwj
Copy link
Member Author

laanwj commented Dec 3, 2020

(close/ropen was to test the IRC bot)

Copy link
Member

@fanquake fanquake left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK ed1bbce

@fanquake fanquake merged commit d0ca394 into bitcoin:master Dec 7, 2020
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Dec 7, 2020
ed1bbce contrib: add MACHO tests to symbol-check tests (fanquake)
5bab08d contrib: Add test for ELF symbol-check (Wladimir J. van der Laan)

Pull request description:

  Check both failure cases:
  - Use a glibc symbol from a version that is too new
  - Use a symbol from a library that is not in the allowlist

  And also check a conforming binary.

  Adding a similar check for Windows PE can be done in a separate PR.

ACKs for top commit:
  fanquake:
    ACK ed1bbce

Tree-SHA512: fd437612e003922465fe1396efa1fa3a64bd1c7b0a514d2a0a7a0caaaa9fb5cb43e0ed7caec15eb0a3508692c9eb3212d7ba3c7e8180b942dd3e50616ad6e557
fanquake added a commit that referenced this pull request Dec 10, 2020
ae9b489 contrib: add symbol check test for PE (fanquake)

Pull request description:

  Follow up to #20476. Adds a test for the PE symbol check. One failing case where we link against `-lpdh` and a pass case.

ACKs for top commit:
  laanwj:
    Code review ACK ae9b489
  dongcarl:
    Code Review ACK ae9b489

Tree-SHA512: 14109d2c7cb98fb445fe1a7f3078e1e88c49fd29583529c53c75bb625f3060d43df0c64542df72272cff81e1b073f74ce6e437ad0e6617ba2bcccacfd1dc8e53
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Dec 10, 2020
ae9b489 contrib: add symbol check test for PE (fanquake)

Pull request description:

  Follow up to bitcoin#20476. Adds a test for the PE symbol check. One failing case where we link against `-lpdh` and a pass case.

ACKs for top commit:
  laanwj:
    Code review ACK ae9b489
  dongcarl:
    Code Review ACK ae9b489

Tree-SHA512: 14109d2c7cb98fb445fe1a7f3078e1e88c49fd29583529c53c75bb625f3060d43df0c64542df72272cff81e1b073f74ce6e437ad0e6617ba2bcccacfd1dc8e53
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Feb 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants