Skip to content

Update vendored LibFuzzer to LLVM 22.x release#139

Open
rchildre3 wants to merge 1 commit intorust-fuzz:mainfrom
rchildre3:update-libfuzzer-22.x
Open

Update vendored LibFuzzer to LLVM 22.x release#139
rchildre3 wants to merge 1 commit intorust-fuzz:mainfrom
rchildre3:update-libfuzzer-22.x

Conversation

@rchildre3
Copy link
Contributor

Last this was updated for the 20.x release. The changes in only the 21.x release is largely uninteresting for LibFuzzer. Just skip to the 22.x release.

Specifically:

  • Tag: llvmorg-22.1.0-rc2
  • Commit: a47b42eb9f9b302167b4fc413e6c92798d65dd0b

Major changes:

  • Fix out-of-sync Modules and ModulePCTable arrays when handling empty instrumented modules
  • Add SIGTRAP Handler to LibFuzzer's runtime, specifically for Swift's FatalError
  • Rework StartRssThread to fix deadlocks on Fuchsia
  • Address typos and various type castings to address static analysis warnings

Full commit log:

git log --format=ref release/20.x..release/22.x -- 'compiler-rt/lib/fuzzer/'

9d18e92ee78c ([compiler-rt] Add CMake option to enable execute-only code generation on AArch64 (#140555), 2025-11-07)
be6c5d066379 ([NFC] [compiler-rt] fix typos (#160803), 2025-09-27)
b928695c2fb8 ([compiler-rt] fix typos (#160799), 2025-09-26)
3f52e97df77a (Fix libFuzzer array alignment with empty modules (#159661), 2025-09-18)
46fd8d0db2f7 (Reapply "[NFC] Fix CodeQL violations in compiler-rt. (#157793)" (#157913) (#159097), 2025-09-16)
8062b166762b (Revert "[NFC] Fix CodeQL violations in compiler-rt. (#157793)" (#157913), 2025-09-10)
b44e6e01f7f7 ([NFC] Fix CodeQL violations in compiler-rt. (#157793), 2025-09-10)
316004764fe3 ([fuzzer][Fuchsia] Forward fix for undefined StartRssThread (#155514), 2025-08-26)
7153392a1089 (Reapply "[fuzzer][Fuchsia] Prevent deadlock from suspending threads" … (#155271), 2025-08-25)
781a4db6b50b (Revert "[fuzzer][Fuchsia] Prevent deadlock from suspending threads" (#155042), 2025-08-22)
b9987503d2ed ([fuzzer][Fuchsia] Prevent deadlock from suspending threads (#154854), 2025-08-22)
03372c7782e6 (Revert "[libFuzzer] always install signal handler with SA_ONSTACK" (#153114), 2025-08-12)
aee4f2baccdb ([libFuzzer] always install signal handler with SA_ONSTACK (#147422), 2025-08-09)
33cc58f46f0c ([compiler-rt][libFuzzer] Add support for capturing SIGTRAP exits. (#149120), 2025-07-28)
f7cdff7bddcb ([compiler-rt] Include missing headers for libFuzzer (#146828), 2025-07-10)
7b6963ea672f ([compiler-rt] [Fuzzer] Fix tests linking buildbot failure (#144495), 2025-06-19)
6f4add34801e ([compiler-rt] [Fuzzer] Fix ARMv7 test link failure by linking unwinder (#144495), 2025-06-18)
cd573e0a547d ([compiler-rt] Remove unused local variables (NFC) (#144010), 2025-06-12)

Last this was updated for the 20.x release. The changes in only the 21.x release
is largely uninteresting for LibFuzzer.  Just skip to the 22.x release.

Specifically:

* Tag:    `llvmorg-22.1.0-rc2`
* Commit: `a47b42eb9f9b302167b4fc413e6c92798d65dd0b`

Major changes:

* Fix out-of-sync Modules and ModulePCTable arrays when handling empty instrumented modules
* Add `SIGTRAP` Handler to LibFuzzer's runtime, specifically for Swift's FatalError
* Rework `StartRssThread` to fix deadlocks on Fuchsia
* Address typos and various type castings to address static analysis warnings

Full commit log:

`git log --format=ref release/20.x..release/22.x -- 'compiler-rt/lib/fuzzer/'`

```
9d18e92ee78c ([compiler-rt] Add CMake option to enable execute-only code generation on AArch64 (#140555), 2025-11-07)
be6c5d066379 ([NFC] [compiler-rt] fix typos (#160803), 2025-09-27)
b928695c2fb8 ([compiler-rt] fix typos (#160799), 2025-09-26)
3f52e97df77a (Fix libFuzzer array alignment with empty modules (#159661), 2025-09-18)
46fd8d0db2f7 (Reapply "[NFC] Fix CodeQL violations in compiler-rt. (#157793)" (#157913) (#159097), 2025-09-16)
8062b166762b (Revert "[NFC] Fix CodeQL violations in compiler-rt. (#157793)" (#157913), 2025-09-10)
b44e6e01f7f7 ([NFC] Fix CodeQL violations in compiler-rt. (#157793), 2025-09-10)
316004764fe3 ([fuzzer][Fuchsia] Forward fix for undefined StartRssThread (#155514), 2025-08-26)
7153392a1089 (Reapply "[fuzzer][Fuchsia] Prevent deadlock from suspending threads" … (#155271), 2025-08-25)
781a4db6b50b (Revert "[fuzzer][Fuchsia] Prevent deadlock from suspending threads" (#155042), 2025-08-22)
b9987503d2ed ([fuzzer][Fuchsia] Prevent deadlock from suspending threads (#154854), 2025-08-22)
03372c7782e6 (Revert "[libFuzzer] always install signal handler with SA_ONSTACK" (#153114), 2025-08-12)
aee4f2baccdb ([libFuzzer] always install signal handler with SA_ONSTACK (#147422), 2025-08-09)
33cc58f46f0c ([compiler-rt][libFuzzer] Add support for capturing SIGTRAP exits. (#149120), 2025-07-28)
f7cdff7bddcb ([compiler-rt] Include missing headers for libFuzzer (#146828), 2025-07-10)
7b6963ea672f ([compiler-rt] [Fuzzer] Fix tests linking buildbot failure (#144495), 2025-06-19)
6f4add34801e ([compiler-rt] [Fuzzer] Fix ARMv7 test link failure by linking unwinder (#144495), 2025-06-18)
cd573e0a547d ([compiler-rt] Remove unused local variables (NFC) (#144010), 2025-06-12)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant