CARVIEW |
Select Language
HTTP/2 200
date: Mon, 21 Jul 2025 17:28:15 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/llvm/llvm-project.git
etag: W/"ca359101fc1c8190cd0f8f22bea09ec2"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=x6XWVVwrCdhRlfA%2FfQvGcd2r4nDIpXUbIbithY8uLtUhdbzSyYr9muo4lIuztQWYeN8OSGMxkMuEgp%2FgGR1msBuUs1UnAuuiGRidNDPt6U9YvoL5nmgrAxWbdUtZCJhgzKUC7f1h5fwywM8i73wiA1qmB%2Fuoi%2B%2BQsi3%2FLD%2FEqQ7uqs4ZDf9tLqmKydrJTjtQGdm5n7xbogy%2BuoL4Kf7TY%2FdJLFM2YTglWOqd9e2d5CDZWRxYGSqQQze8u%2BCFVCfLz2e421ZCNPuSeIBgr0eYDQ%3D%3D--IqU2JwuNAfKrCqxV--R5A9ri94BsA%2F453TwuVP9g%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.963438179.1753118894; Path=/; Domain=github.com; Expires=Tue, 21 Jul 2026 17:28:14 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Tue, 21 Jul 2026 17:28:14 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 8BC6:17F351:1A5215:1EFA2E:687E78AE
Fix sanitizer-common build with glibc 2.31 · llvm/llvm-project@947f969 · GitHub
Copy file name to clipboardExpand all lines: compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
Copy file name to clipboardExpand all lines: compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Commit 947f969
committed
Fix sanitizer-common build with glibc 2.31
Summary:
As mentioned in D69104, glibc changed ABI recently with the [[ https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=2f959dfe849e0646e27403f2e4091536496ac0f0| 2f959dfe ]] change.
D69104 dealt with just 32-bit ARM, but that is just one of the many affected architectures.
E.g. x86_64, i?86, riscv64, sparc 32-bit, s390 31-bit are affected too (and various others).
This patch instead of adding a long list of further architectures that wouldn't be checked ever next to arm 32-bit changes the structures to match the 2.31 layout and performs the checking on Linux for ipc_perm mode position/size only on non-Linux or on Linux with glibc 2.31 or later. I think this matches what is done for aarch64 already.
If needed, we could list architectures that haven't changed ABI (e.g. powerpc), so that they would be checked even with older glibcs. AFAIK sanitizers don't actually use ipc_perm.mode and
so all they care about is the size and alignment of the whole structure.
Note, s390 31-bit and arm 32-bit big-endian changed ABI even further, there will now be shmctl with old symbol version and shmctl@@GLIBC_2.31 which will be incompatible. I'm afraid this isn't really solvable unless the sanitizer libraries are symbol versioned and use matching symbol versions to glibc symbols for stuff they intercept, plus use dlvsym.
This patch doesn't try to address that.
Patch by Jakub Jelinek.
Reviewers: kcc, eugenis, dvyukov
Reviewed By: eugenis
Subscribers: jyknight, kristof.beyls, fedor.sergeev, simoncook, PkmX, s.egerton, steven.zhang, #sanitizers, llvm-commits
Tags: #sanitizers, #llvm
Differential Revision: https://reviews.llvm.org/D706621 parent d930ed1 commit 947f969Copy full SHA for 947f969
File tree
Expand file treeCollapse file tree
2 files changed
+4
-19
lines changedFilter options
- compiler-rt/lib/sanitizer_common
Expand file treeCollapse file tree
2 files changed
+4
-19
lines changedcompiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
Copy file name to clipboardExpand all lines: compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp+3-5Lines changed: 3 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1128 | 1128 |
| |
1129 | 1129 |
| |
1130 | 1130 |
| |
1131 |
| - | |
1132 |
| - | |
1133 |
| - | |
1134 |
| - | |
1135 |
| - | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
1136 | 1134 |
| |
1137 | 1135 |
| |
1138 | 1136 |
| |
|
compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
Copy file name to clipboardExpand all lines: compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h+1-14Lines changed: 1 addition & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
207 | 207 |
| |
208 | 208 |
| |
209 | 209 |
| |
210 |
| - | |
211 | 210 |
| |
212 |
| - | |
213 |
| - | |
214 |
| - | |
215 |
| - | |
216 | 211 |
| |
217 |
| - | |
218 | 212 |
| |
219 | 213 |
| |
220 | 214 |
| |
221 |
| - | |
222 |
| - | |
223 |
| - | |
224 |
| - | |
225 |
| - | |
226 |
| - | |
227 | 215 |
| |
228 |
| - | |
229 |
| - | |
| 216 | + | |
230 | 217 |
| |
231 | 218 |
| |
232 | 219 |
| |
|
You can’t perform that action at this time.
0 commit comments