HomeFreeBSD

Merge commit 9f85bc834b07 from llvm-project (by Nikita Popov):

Description

Merge commit 9f85bc834b07 from llvm-project (by Nikita Popov):

[PPCMergeStringPool] Only replace constant once (#92996)

In #88846 I changed this code to use RAUW to perform the replacement
instead of manual updates -- but kept the outer loop, which means we try
to perform RAUW once per user. However, some of the users might be freed
by the RAUW operation, resulting in use-after-free.

The case where this happens is constant users where the replacement
might result in the destruction of the original constant.

Fixes https://github.com/llvm/llvm-project/issues/92991.

This fixes a possible crash when building crypto/openssh/sshkey.c for
PowerPC targets.

Reported by: cperciva
PR: 276104
MFC after: 3 days

Details

Provenance
dimAuthored on May 30 2024, 3:35 PM
Parents
rGff7de3b4d32b: nextboot: Permit ZFS boot filesystems mounted at the pool's root
Branches
Unknown
Tags
Unknown