This repository has been archived by the owner on Apr 10, 2019. It is now read-only.
forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
There are some places that are known to operate on tasks' global pids only: * the rest_init() call (called on boot) * the kgdb's getthread * the create_kthread() (since the kthread is run in init ns) So use the find_task_by_pid_ns(..., &init_pid_ns) there and schedule the find_task_by_pid for removal. [[email protected]: Fix warning in kernel/pid.c] Signed-off-by: Pavel Emelyanov <[email protected]> Cc: "Eric W. Biederman" <[email protected]> Signed-off-by: Sukadev Bhattiprolu <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information
Showing
5 changed files
with
24 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -138,6 +138,24 @@ Who: Kay Sievers <[email protected]> | |
|
||
--------------------------- | ||
|
||
What: find_task_by_pid | ||
When: 2.6.26 | ||
Why: With pid namespaces, calling this funciton will return the | ||
wrong task when called from inside a namespace. | ||
|
||
The best way to save a task pid and find a task by this | ||
pid later, is to find this task's struct pid pointer (or get | ||
it directly from the task) and call pid_task() later. | ||
|
||
If someone really needs to get a task by its pid_t, then | ||
he most likely needs the find_task_by_vpid() to get the | ||
task from the same namespace as the current task is in, but | ||
this may be not so in general. | ||
|
||
Who: Pavel Emelyanov <[email protected]> | ||
|
||
--------------------------- | ||
|
||
What: ACPI procfs interface | ||
When: July 2008 | ||
Why: ACPI sysfs conversion should be finished by January 2008. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters