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
Unknown Object (File)
Wed, Oct 8, 9:12 PM
Unknown Object (File)
Sun, Oct 5, 11:26 PM
Unknown Object (File)
Fri, Oct 3, 8:46 AM
Unknown Object (File)
Wed, Oct 1, 8:29 PM
Unknown Object (File)
Sat, Sep 20, 9:00 AM
Unknown Object (File)
Fri, Sep 19, 12:36 PM
Unknown Object (File)
Thu, Sep 18, 7:53 PM
Unknown Object (File)
Sep 12 2025, 9:37 PM
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.