Skip to content

Commit b4236f8

Browse files
Naohiro Ooiwatorvalds
authored andcommitted
sysrq: add enable_mask in sysrq_moom_op
It is written in the Documentation/sysrq.txt that oom-killer is enabled when we set "64" in /proc/sys/kernel/sysrq: <Documentation/sysrq.txt> Here is the list of possible values in /proc/sys/kernel/sysrq: 64 - enable signalling of processes (term, kill, oom-kill) ^^^^^^^^ but enable_mask is not set in sysrq_moom_op. Signed-off-by: Naohiro Ooiwa <nooiwa@miraclelinux.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 25ddbb1 commit b4236f8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/char/sysrq.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ static struct sysrq_key_op sysrq_moom_op = {
326326
.handler = sysrq_handle_moom,
327327
.help_msg = "Full",
328328
.action_msg = "Manual OOM execution",
329+
.enable_mask = SYSRQ_ENABLE_SIGNAL,
329330
};
330331

331332
static void sysrq_handle_kill(int key, struct tty_struct *tty)

0 commit comments

Comments
 (0)