Skip to content

arm64: Replace page size panic with warning, add runtime check#12784

Open
copybara-service[bot] wants to merge 1 commit intomasterfrom
test/cl888910979
Open

arm64: Replace page size panic with warning, add runtime check#12784
copybara-service[bot] wants to merge 1 commit intomasterfrom
test/cl888910979

Conversation

@copybara-service
Copy link
Copy Markdown

arm64: Replace page size panic with warning, add runtime check

Replace panic with warning in hostarch init() when the host page size
does not match the compiled page size on arm64. This applies to both
4K and 64K variants so build tools that import hostarch don't crash.

Add a page size check at runsc boot startup to fail on mismatch.

Fixes #12717

FUTURE_COPYBARA_INTEGRATE_REVIEW=#12775 from ildar-safarov:arm64-pagesize-warning bf87740

Replace panic with warning in hostarch init() when the host page size does not match the compiled page size on arm64. This applies to both 4K and 64K variants so build tools that import hostarch don't crash. Add a page size check at runsc boot startup to fail on mismatch. Fixes #12717 FUTURE_COPYBARA_INTEGRATE_REVIEW=#12775 from ildar-safarov:arm64-pagesize-warning bf87740 PiperOrigin-RevId: 888910979
@copybara-service copybara-service bot added the exported Issue was exported automatically label Mar 24, 2026
// Make sure the page size is 4K on arm64 platform.
if size := unix.Getpagesize(); size != PageSize {
panic("Only 4K page size is supported on arm64!")
println("WARNING: host page size mismatch - running on non-4K host")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exported Issue was exported automatically

2 participants