sshd ($PID) /proc/$PID/oom_adj is deprecated, please use /proc/$PID/oom_score_adj instead Reproducible: Always
Created attachment 258887 [details] oomkill patch
Created attachment 258888 [details] Updated ebuild
Patch is from upstream, submitting here since I modified the ebuild to test the patch on a 2.6.36 kernel for upstream.
your oom_adjust should be static and constant, and you should be using ARRAY_SIZE() instead of "2" usually these sort of enhancements though go through the upstream project: https://bugzilla.mindrot.org/ it's not like the userspace abi is changing anytime soon here ...
err, i see you already did. i'll post my feedback there.