Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1655066 > unrolled thread

Re: [PATCH 4.4 040/103] pid_ns: Sleep in TASK_INTERRUPTIBLE in zap_pid_ns_processes

Started byBen Hutchings <ben.hutchings@codethink.co.uk>
First post2017-06-01 14:00 +0200
Last post2017-06-01 16:00 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 4.4 040/103] pid_ns: Sleep in TASK_INTERRUPTIBLE in  zap_pid_ns_processes Ben Hutchings <ben.hutchings@codethink.co.uk> - 2017-06-01 14:00 +0200
    Re: [PATCH 4.4 040/103] pid_ns: Sleep in TASK_INTERRUPTIBLE in zap_pid_ns_processes ebiederm@xmission.com (Eric W. Biederman) - 2017-06-01 16:00 +0200

#1655066 — Re: [PATCH 4.4 040/103] pid_ns: Sleep in TASK_INTERRUPTIBLE in zap_pid_ns_processes

FromBen Hutchings <ben.hutchings@codethink.co.uk>
Date2017-06-01 14:00 +0200
SubjectRe: [PATCH 4.4 040/103] pid_ns: Sleep in TASK_INTERRUPTIBLE in zap_pid_ns_processes
Message-ID<tNwVI-24Q-15@gated-at.bofh.it>
On Tue, 2017-05-23 at 22:09 +0200, Greg Kroah-Hartman wrote:
> 4.4-stable review patch.  If anyone has any objections, please let me know.
> 
> ------------------
> 
> From: Eric W. Biederman <ebiederm@xmission.com>
> 
> commit b9a985db98961ae1ba0be169f19df1c567e4ffe0 upstream.
> 
> The code can potentially sleep for an indefinite amount of time in
> zap_pid_ns_processes triggering the hung task timeout, and increasing
> the system average.  This is undesirable.  Sleep with a task state of
> TASK_INTERRUPTIBLE instead of TASK_UNINTERRUPTIBLE to remove these
> undesirable side effects.
[...]

This seems to rely on the task not actually being signallable due to the
PF_EXITING flag.  Using TASK_IDLE would be clearer (though less
backport-able).

Ben.

-- 
Ben Hutchings
Software Developer, Codethink Ltd.

[toc] | [next] | [standalone]


#1655157 — Re: [PATCH 4.4 040/103] pid_ns: Sleep in TASK_INTERRUPTIBLE in zap_pid_ns_processes

Fromebiederm@xmission.com (Eric W. Biederman)
Date2017-06-01 16:00 +0200
SubjectRe: [PATCH 4.4 040/103] pid_ns: Sleep in TASK_INTERRUPTIBLE in zap_pid_ns_processes
Message-ID<tNyNP-3fE-5@gated-at.bofh.it>
In reply to#1655066
Ben Hutchings <ben.hutchings@codethink.co.uk> writes:

> On Tue, 2017-05-23 at 22:09 +0200, Greg Kroah-Hartman wrote:
>> 4.4-stable review patch.  If anyone has any objections, please let me know.
>> 
>> ------------------
>> 
>> From: Eric W. Biederman <ebiederm@xmission.com>
>> 
>> commit b9a985db98961ae1ba0be169f19df1c567e4ffe0 upstream.
>> 
>> The code can potentially sleep for an indefinite amount of time in
>> zap_pid_ns_processes triggering the hung task timeout, and increasing
>> the system average.  This is undesirable.  Sleep with a task state of
>> TASK_INTERRUPTIBLE instead of TASK_UNINTERRUPTIBLE to remove these
>> undesirable side effects.
> [...]
>
> This seems to rely on the task not actually being signallable due to the
> PF_EXITING flag.  Using TASK_IDLE would be clearer (though less
> backport-able).

Point taken.  And imporatantly TASK_IDLE also avoids the hung_task
check.

Right now backporting and well understood simplicity is the primary
goal.

I have a patch in the queue for 4.13 that will remove this wait all
together, and just not allow reaping the zombie until the appropriate
conditions are met.  That seems to be the better long term approach, as
it avoids blocking in such a weird way in a weird location all together.

Eric

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web