Files
火花andlongjin 124b2279a6 fix(mm/oom): staged OOM killer fixes — victim marking, direct reclaim, observability (#1995)
fix(mm/oom): align OOM killer victim lifecycle semantics

Rework OOM victim tracking to match Linux-like lifetime semantics more closely:
record victim metadata on the shared signal state, commit inflight victim state
before SIGKILL delivery, and only clear inflight after the victim mm has really
finished teardown.

Also:
- gate OOM victim reserve access on fatal/exiting state
- avoid clearing inflight based only on "no task references this mm"
- remove partial-reclaim wakeups from mmu_gather OOM progress handling
- align oom_score/oom_score_adj procfs behavior and oom_kill vmstat accounting
- add OOM fault-inject coverage in c_unitest and dunitest
- keep related Nix/dev docs and generated version formatting tidy

---------

Signed-off-by: sparkzky <sparkhhhhhhhhhh@outlook.com>
Signed-off-by: longjin <longjin@dragonos.org>
Co-authored-by: longjin <longjin@dragonos.org>
2026-07-10 01:31:37 +08:00
..