Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 83893c29 authored by Sultan Alsawaf's avatar Sultan Alsawaf Committed by KakatkarAkshay
Browse files

simple_lmk: Consider all positive adjs when finding victims



We are allowed to kill any process with a positive adj, so we shouldn't
exclude any processes with adjs greater than 999. This would present a
problem with quirky applications that set their own adj score, such as
stress-ng. In the case of stress-ng, it would set its adj score to 1000
and thus exempt itself from being killed by Simple LMK. This shouldn't
be allowed; any process with a positive adj, up to the highest positive
adj possible (32767) should be killable.

Reported-by: default avatarDanny Lin <danny@kdrag0n.dev>
Signed-off-by: default avatarSultan Alsawaf <sultan@kerneltoast.com>
Signed-off-by: default avatarDanny Lin <danny@kdrag0n.dev>
parent 2038dbf7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment