|
@@ -858,7 +858,7 @@ static void __oom_kill_process(struct task_struct *victim)
|
|
* in order to prevent the OOM victim from depleting the memory
|
|
* in order to prevent the OOM victim from depleting the memory
|
|
* reserves from the user space under its control.
|
|
* reserves from the user space under its control.
|
|
*/
|
|
*/
|
|
- do_send_sig_info(SIGKILL, SEND_SIG_FORCED, victim, PIDTYPE_TGID);
|
|
|
|
|
|
+ do_send_sig_info(SIGKILL, SEND_SIG_PRIV, victim, PIDTYPE_TGID);
|
|
mark_oom_victim(victim);
|
|
mark_oom_victim(victim);
|
|
pr_err("Killed process %d (%s) total-vm:%lukB, anon-rss:%lukB, file-rss:%lukB, shmem-rss:%lukB\n",
|
|
pr_err("Killed process %d (%s) total-vm:%lukB, anon-rss:%lukB, file-rss:%lukB, shmem-rss:%lukB\n",
|
|
task_pid_nr(victim), victim->comm, K(victim->mm->total_vm),
|
|
task_pid_nr(victim), victim->comm, K(victim->mm->total_vm),
|
|
@@ -896,7 +896,7 @@ static void __oom_kill_process(struct task_struct *victim)
|
|
*/
|
|
*/
|
|
if (unlikely(p->flags & PF_KTHREAD))
|
|
if (unlikely(p->flags & PF_KTHREAD))
|
|
continue;
|
|
continue;
|
|
- do_send_sig_info(SIGKILL, SEND_SIG_FORCED, p, PIDTYPE_TGID);
|
|
|
|
|
|
+ do_send_sig_info(SIGKILL, SEND_SIG_PRIV, p, PIDTYPE_TGID);
|
|
}
|
|
}
|
|
rcu_read_unlock();
|
|
rcu_read_unlock();
|
|
|
|
|