Page MenuHomeFreeBSD

arm64: 32-bit compat is little endian, read the correct word
Needs ReviewPublic

Authored by jmg on Aug 29 2025, 5:24 PM.
Tags
None
Referenced Files
F138912622: D52243.id161201.diff
Fri, Dec 5, 6:49 PM
Unknown Object (File)
Thu, Nov 20, 9:52 PM
Unknown Object (File)
Thu, Nov 20, 9:49 PM
Unknown Object (File)
Thu, Nov 20, 9:40 PM
Unknown Object (File)
Nov 2 2025, 6:17 AM
Unknown Object (File)
Nov 1 2025, 1:10 PM
Unknown Object (File)
Nov 1 2025, 3:27 AM
Unknown Object (File)
Oct 21 2025, 2:06 AM
Subscribers

Details

Reviewers
andrew
manu
Summary

Obtained from: Juniper Networks, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 66643
Build 63526: arc lint + arc unit

Event Timeline

jmg requested review of this revision.Aug 29 2025, 5:24 PM

The attached program can be used to test/verify the problem/fix. Compile w/ -m32.

I did try to see if I could run a big endian 32-bit binary, but I couldn't figure out how to compile one, plus, we don't ship big endian libraries anyway, so definitely the old code is wrong.