Repository navigation
lib: Drop the unused page fragment allocator - #3968
Merged
Merged
Conversation
Contributor
Author
|
Can you @etsal please review this PR? |
mohitmishra786
force-pushed
the
lib-drop-pagefrag-alloc
branch
from
November 6, 2026 16:45
db04872 to
7817757
Compare
Contributor
Author
|
Can you @sirlucjan please review this PR too? |
etsal
self-requested a review
November 6, 2026 16:51
etsal
approved these changes
Nov 6, 2026
pagefrag_alloc.h has a use-after-free. pagefrag_free() unmaps a page once its last object is freed, but the allocating CPU still caches that page in page_frag_cur_page[] and keeps carving from it on its next allocation. Nothing in the tree uses the allocator. lib/sdt_alloc.bpf.c and lib/alloc/buddy.bpf.c cover the same need, so remove it instead of fixing it. Link: sched-ext#3510 Signed-off-by: Mohit Mishra <immadmohit@gmail.com>
mohitmishra786
force-pushed
the
lib-drop-pagefrag-alloc
branch
from
November 14, 2026 03:06
7817757 to
d2bf02e
Compare
Contributor
Author
|
Rebased on current main now that the scx_pandemonium verifier fix is in, so CI should come up green. Can you @sirlucjan @arighi please review and merge this? |
Contributor
Author
|
All checks are green now and @etsal has approved. Can you @htejun @sirlucjan please take a look and merge it if it looks fine? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
lib/pagefrag_alloc.hhas a use-after-free (#3510):pagefrag_free()unmaps a page once its last object is freed, but the allocating CPU still caches it inpage_frag_cur_page[]and keeps carving from it. Nothing in the tree uses the allocator, andlib/sdt_alloc.bpf.candlib/alloc/buddy.bpf.ccover the same need, so this removes it as discussed in the issue.Closes #3510