lkml.org 
[lkml]   [2020]   [Nov]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 2/2] mm/madvise: add process_madvise MADV_DONTNEER support
    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.

    \
     
     \ /
      Last update: 2020-11-24 14:44    [W:4.450 / U:0.104 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site