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