Skip to content

fix(kernel): eliminate build warnings#2155

Merged
fslongjin merged 1 commit into
DragonOS-Community:masterfrom
fslongjin:codex/fix-kernel-build-warnings
Jul 23, 2026
Merged

fix(kernel): eliminate build warnings#2155
fslongjin merged 1 commit into
DragonOS-Community:masterfrom
fslongjin:codex/fix-kernel-build-warnings

Conversation

@fslongjin

Copy link
Copy Markdown
Member

Summary

  • restrict FUSE DAX inspection helpers to test builds and remove stale accessors
  • preserve mixed-map PFN and initram root attachment semantics without unused production state
  • apply the x86_64 noexecstack policy to both kernel link passes

Root cause

Several test-only or obsolete helpers were compiled into the production kernel, while a mixed-map classification payload and a feature-specific mount variant retained state unused by the default build. The x86_64 link also relied on deprecated executable-stack inference when assembly inputs omitted GNU-stack notes.

Impact

The production DAX state machine, locking, token validation, reclaim flow, and teardown ordering are unchanged. The final x86_64 kernel ELF now declares a non-executable GNU stack in both link passes.

Validation

  • make kernel
  • make -C kernel fmt FMT_CHECK=--check
  • initram feature compile check
  • verified exactly one GNU_STACK program header with RW flags
  • QEMU nographic boot and uname -a smoke test

Restrict FUSE DAX inspection helpers to test builds and remove stale accessors that no longer participate in production paths.

Keep mixed-map PFN classification and initram root attachment semantics explicit without carrying unused state in default builds.

Apply the x86_64 noexecstack policy to both kernel link passes so the final ELF advertises a non-executable GNU stack and no longer relies on deprecated linker inference.

Signed-off-by: longjin <longjin@dragonos.org>
@github-actions github-actions Bot added the Bug fix A bug is fixed in this pull request label Jul 22, 2026
@fslongjin

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: 02b5ad51a5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@fslongjin
fslongjin merged commit 94d4a8d into DragonOS-Community:master Jul 23, 2026
26 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug fix A bug is fixed in this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant