Thread (20 messages) 20 messages, 6 authors, 2020-12-23

Re: [PATCH 2/2] mm/madvise: add process_madvise MADV_DONTNEER support

From: Oleg Nesterov <oleg@redhat.com>
Date: 2020-11-24 13:43:16
Also in: linux-mm, lkml

On 11/23, Suren Baghdasaryan wrote:
+	if (madvise_destructive(behavior)) {
+		/* Allow destructive madvise only on a dying processes */
+		if (!signal_group_exit(task->signal)) {
signal_group_exit(task) is true if this task execs and kills other threads,
see the comment above this helper.

I think you need !(task->signal->flags & SIGNAL_GROUP_EXIT).

Oleg.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help