# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/linux/oom_kill_allocating_task.patch # Copyright (C) 2021 - 2022 The T2 SDE Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This patch file is dual-licensed. It is available under the license the # patched project is licensed under, as long as it is an OpenSource license # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms # of the GNU General Public License version 2 as used by the T2 SDE. # --- T2-COPYRIGHT-NOTE-END --- Let's try to default to the simple scheme of just killing the allocating task instead of excessively scanning to kill X, wayland, or openssh away :-/ - René Rebe --- linux-5.19/mm/oom_kill.c.vanilla 2022-08-01 12:24:17.597910541 +0200 +++ linux-5.19/mm/oom_kill.c 2022-08-01 12:24:27.131910161 +0200 @@ -53,7 +53,7 @@ #include static int sysctl_panic_on_oom; -static int sysctl_oom_kill_allocating_task; +static int sysctl_oom_kill_allocating_task = 1; static int sysctl_oom_dump_tasks = 1; /*