lkml.org 
[lkml]   [2017]   [Oct]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH 1/2] Revert "vmalloc: back off when the current task is killed"
    From
    Date
    On 2017/10/05 3:59, Johannes Weiner wrote:
    > But the justification to make that vmalloc() call fail like this isn't
    > convincing, either. The patch mentions an OOM victim exhausting the
    > memory reserves and thus deadlocking the machine. But the OOM killer
    > is only one, improbable source of fatal signals. It doesn't make sense
    > to fail allocations preemptively with plenty of memory in most cases.

    By the time the current thread reaches do_exit(), fatal_signal_pending(current)
    should become false. As far as I can guess, the source of fatal signal will be
    tty_signal_session_leader(tty, exit_session) which is called just before
    tty_ldisc_hangup(tty, cons_filp != NULL) rather than the OOM killer. I don't
    know whether it is possible to make fatal_signal_pending(current) true inside
    do_exit() though...

    \
     
     \ /
      Last update: 2017-10-04 22:50    [W:3.694 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site