Skip to content

[kernel] Fix stale mm[] segment pointers on exec and fork#2654

Merged
ghaerr merged 1 commit intomasterfrom
exec_mm
Apr 26, 2026
Merged

[kernel] Fix stale mm[] segment pointers on exec and fork#2654
ghaerr merged 1 commit intomasterfrom
exec_mm

Conversation

@ghaerr
Copy link
Copy Markdown
Owner

@ghaerr ghaerr commented Apr 26, 2026

Two more obvious but potentially major kernel fixes found by @Vutshi's AI kernel audit in #2646.

Stale segment pointers not being cleared in the mm[] array when a multisegment binary exec's a single-segment binary were found by both ChatGPT Plus and Claude, while only Claude found the problem of seg_put being passed a NULL pointer in the case of out of memory during a fork().

Both bugs would be quite rare in occurrence.

Associated untested regression tests added to elkscmd/test/syscall/.

@ghaerr ghaerr merged commit 9a185a5 into master Apr 26, 2026
1 check passed
@ghaerr ghaerr deleted the exec_mm branch April 26, 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