Skip to content

[codex] security: allow absent usercopy default symbol#65

Merged
Jess Sullivan (Jesssullivan) merged 1 commit into
xr/mainfrom
codex/security-check-usercopy-default
May 9, 2026
Merged

[codex] security: allow absent usercopy default symbol#65
Jess Sullivan (Jesssullivan) merged 1 commit into
xr/mainfrom
codex/security-check-usercopy-default

Conversation

@Jesssullivan

Copy link
Copy Markdown
Collaborator

Summary

  • Make the reusable security config checker require CONFIG_HARDENED_USERCOPY_DEFAULT_ON=y only when that symbol exists in the target kernel Kconfig.
  • Keep CONFIG_HARDENED_USERCOPY=y mandatory, so the 6.12 fallback lane still carries the hardening option available in that branch.
  • Update the source-sync runbook with the current 6.12.87 proof nuance.

Validation

  • bash -n xr/scripts/check-security-config.sh xr/scripts/build-rpm.sh xr/scripts/check-kernel-carry.sh xr/scripts/generate-cadence-report.sh
  • bash xr/scripts/check-security-config.sh xr/config/base.config
  • bash xr/scripts/check-security-config.sh /tmp/linux-xr-security-no-usercopy-default.config
  • git diff --check
  • nix flake check --system x86_64-linux

Notes

The 6.12.87 proof after PR #64 passed patching and the firmware-loader helper guard, then failed because CONFIG_HARDENED_USERCOPY_DEFAULT_ON is absent from 6.12 Kconfig. This keeps the checker strict on kernels that expose the symbol while accepting older kernels where CONFIG_HARDENED_USERCOPY=y is the available guard.

@Jesssullivan Jess Sullivan (Jesssullivan) marked this pull request as ready for review May 9, 2026 18:26
@Jesssullivan Jess Sullivan (Jesssullivan) merged commit 0940202 into xr/main May 9, 2026
5 of 7 checks passed
@Jesssullivan Jess Sullivan (Jesssullivan) deleted the codex/security-check-usercopy-default branch May 9, 2026 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant