Skip to content

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

Open
ildar-safarov wants to merge 1 commit intogoogle:masterfrom
ildar-safarov:arm64-pagesize-warning
Open

arm64: Replace page size panic with warning, add runtime check#12775
ildar-safarov wants to merge 1 commit intogoogle:masterfrom
ildar-safarov:arm64-pagesize-warning

Conversation

@ildar-safarov
Copy link
Copy Markdown

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

Change the behavior from panicking to printing a warning when the host page size does not match the compiled page size on arm64. This applies to both 4K and 64K page size variants. Add runtime check at runsc startup to ensure host page size matches the compiled page size, failing if they don't match. Fixes google#12717
copybara-service bot pushed a commit that referenced this pull request Mar 24, 2026
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: 888812236
copybara-service bot pushed a commit that referenced this pull request Mar 24, 2026
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants