Skip to content

Avoid SIGBUS on armv6#2633

Merged
Cyan4973 merged 1 commit intofacebook:devfrom
bmwiedemann:issue2632
May 11, 2021
Merged

Avoid SIGBUS on armv6#2633
Cyan4973 merged 1 commit intofacebook:devfrom
bmwiedemann:issue2632

Conversation

@bmwiedemann
Copy link
Copy Markdown
Contributor

When running armv6 userspace on armv8 hardware with a 64 bit Linux kernel,
the mode 2 caused SIGBUS (unaligned memory access).
Running all our arm builds in the build farm
only on armv8 simplifies administration a lot.

Depending on compiler and environment, this change might slow down
memory accesses (did not benchmark it). The original analysis is 6 years old and compilers might have improved since then.

Fixes #2632

When running armv6 userspace on armv8 hardware with a 64 bit Linux kernel,
the mode 2 caused SIGBUS (unaligned memory access).
Running all our arm builds in the build farm
only on armv8 simplifies administration a lot.

Depending on compiler and environment, this change might slow down
memory accesses (did not benchmark it). The original analysis is 6 years old.

Fixes facebook#2632
@Cyan4973 Cyan4973 merged commit 162f540 into facebook:dev May 11, 2021
@Cyan4973
Copy link
Copy Markdown
Contributor

Yes, that's a safer default behavior

@bmwiedemann bmwiedemann deleted the issue2632 branch May 11, 2021 18:22
Hello71 added a commit to Hello71/zstd that referenced this pull request Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ARMv6 unaligned hack ends up in bus-error if running under a 64bit kernel

4 participants