Skip to content

docs(libkernel): drop stale mlockall, open file limit and protection bit claims - #9363

Merged
adriadam10 merged 1 commit into
boykopovar:mainfrom
thuanquang:docs/debt-sweep-kernel-misc
Oct 25, 2026
Merged

adriadam10 merged 1 commit into
boykopovar:mainfrom
thuanquang:docs/debt-sweep-kernel-misc

Conversation

@thuanquang

@thuanquang thuanquang commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

What

Four statements in docs/dev/debt/libkernel.md no longer match main; each is replaced with what main does now, and nothing else in the entries changes.

Tested

Docs only; nothing was built or run. On origin/main 0ae7887, I read PosixMemory.cpp (the mlockall and munlockall exports at :311 and :320, in the extern C block from :147 with no guard after :229), OpenFileLimit.cpp, Process.cpp:748-762 and 827-837 (the guest RLIMIT_NOFILE and getdtablesize) and DirectMemory.cpp:265-275 (LinuxProtFromSce); I also checked each change's commits and merge order and recomputed the mlockall and munlockall NIDs with the tools/nid_names.py algorithm (x7g7Ebeo8-U, NpLBpgVV7PU). Rebased on main 0ae7887: #10136 rewrote the neighbouring close, sceKernelClose entry, which stays as main has it. Of the cited source files only Process.cpp changed since 6ef5a1c (#8537, #8985, #8986, #9218); its open file limit code only moved, and the 'Memory protection bits' entry is now at :57. Each statement was found by a read-only sweep of the debt files and confirmed by two independent verifier passes and a final check on current main. No open pull request edits these sentences: tools/pr_overlap.py --branch on 0ae7887 found no overlap, and I checked by hand the diffs of the 33 open PRs that edit this file but could not be compared because they conflict with main.

  • python tools/check_conventions.py --base origin/main with this title and body: 0 errors and 1 debt-length warning, for entries that were already over 1000 characters: mlockall, munlockall (1067 characters before, 1034 after this change).
  • Not tested: behaviour on any machine; this changes text only.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 4630 docs/dev/debt/libkernel.md
PR 5021 docs/dev/debt/libkernel.md
PR 6149 docs/dev/debt/libkernel.md
PR 6740 docs/dev/debt/libkernel.md
PR 6830 docs/dev/debt/libkernel.md
PR 6936 docs/dev/debt/libkernel.md
PR 7088 docs/dev/debt/libkernel.md
PR 7105 docs/dev/debt/libkernel.md
PR 7121 docs/dev/debt/libkernel.md
PR 7149 docs/dev/debt/libkernel.md
PR 7192 docs/dev/debt/libkernel.md
PR 7447 docs/dev/debt/libkernel.md
PR 7509 docs/dev/debt/libkernel.md
PR 7804 docs/dev/debt/libkernel.md
PR 8010 docs/dev/debt/libkernel.md
PR 8520 docs/dev/debt/libkernel.md
PR 8553 docs/dev/debt/libkernel.md
PR 8605 docs/dev/debt/libkernel.md
PR 9187 docs/dev/debt/libkernel.md
PR 9199 docs/dev/debt/libkernel.md
PR 9242 docs/dev/debt/libkernel.md
PR 9284 docs/dev/debt/libkernel.md
PR 9293 docs/dev/debt/libkernel.md
PR 9297 docs/dev/debt/libkernel.md
PR 9302 docs/dev/debt/libkernel.md
PR 9378 docs/dev/debt/libkernel.md
PR 9442 docs/dev/debt/libkernel.md
PR 9482 docs/dev/debt/libkernel.md
PR 9499 docs/dev/debt/libkernel.md
PR 9509 docs/dev/debt/libkernel.md
PR 9557 docs/dev/debt/libkernel.md
PR 9561 docs/dev/debt/libkernel.md
PR 9566 docs/dev/debt/libkernel.md
PR 9575 docs/dev/debt/libkernel.md
PR 9669 docs/dev/debt/libkernel.md
PR 9682 docs/dev/debt/libkernel.md
PR 9693 docs/dev/debt/libkernel.md
PR 9732 docs/dev/debt/libkernel.md
PR 9938 docs/dev/debt/libkernel.md
PR 10061 docs/dev/debt/libkernel.md
PR 10192 docs/dev/debt/libkernel.md
PR 10442 docs/dev/debt/libkernel.md
PR 10499 docs/dev/debt/libkernel.md
PR 10621 docs/dev/debt/libkernel.md
PR 10767 docs/dev/debt/libkernel.md

@github-actions github-actions Bot added needs rebase Conflicts with main, rebase needed docs labels Oct 21, 2026
@thuanquang
thuanquang force-pushed the docs/debt-sweep-kernel-misc branch from 0e81e73 to b8e883f Compare October 22, 2026 03:47
@github-actions github-actions Bot added needs rebase Conflicts with main, rebase needed and removed needs rebase Conflicts with main, rebase needed labels Oct 22, 2026
…bit claims

Co-Authored-By: Claude <noreply@anthropic.com>
@thuanquang
thuanquang force-pushed the docs/debt-sweep-kernel-misc branch from b8e883f to 9e6bd36 Compare October 23, 2026 14:43
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 23, 2026
@adriadam10 adriadam10 self-assigned this Oct 25, 2026
@adriadam10
adriadam10 merged commit 62660f3 into boykopovar:main Oct 25, 2026
10 of 11 checks passed
@adriadam10

Copy link
Copy Markdown
Collaborator

Checked the four edited statements against main: mlockall/munlockall exports in PosixMemory.cpp, OpenFileLimit.cpp now covering Linux and macOS, and LinuxProtFromSce mapping 0x100/0x200 to host access (already recorded in the "Memory protection bits 0x100 and 0x200" entry); merged.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants