mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
proc: seqfile convert proc_pid_status to properly handle pid namespaces
Currently we possibly lookup the pid in the wrong pid namespace. So seq_file convert proc_pid_status which ensures the proper pid namespaces is passed in. [[email protected]: coding-style fixes] [[email protected]: build fix] [[email protected]: another build fix] [[email protected]: s390 build fix] [[email protected]: fix task_name() output] [[email protected]: fix nommu build] Signed-off-by: Eric W. Biederman <[email protected]> Cc: Andrew Morgan <[email protected]> Cc: Serge Hallyn <[email protected]> Cc: Cedric Le Goater <[email protected]> Cc: Pavel Emelyanov <[email protected]> Cc: Martin Schwidefsky <[email protected]> Cc: Heiko Carstens <[email protected]> Cc: Paul Menage <[email protected]> Cc: Paul Jackson <[email protected]> Cc: David Rientjes <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
a56d3fc74c
commit
df5f8314ca
10 changed files with 103 additions and 101 deletions
|
|
@ -161,6 +161,7 @@ struct stack_frame {
|
|||
/* Forward declaration, a strange C thing */
|
||||
struct task_struct;
|
||||
struct mm_struct;
|
||||
struct seq_file;
|
||||
|
||||
/* Free all resources held by a thread. */
|
||||
extern void release_thread(struct task_struct *);
|
||||
|
|
@ -177,7 +178,7 @@ extern unsigned long thread_saved_pc(struct task_struct *t);
|
|||
/*
|
||||
* Print register of task into buffer. Used in fs/proc/array.c.
|
||||
*/
|
||||
extern char *task_show_regs(struct task_struct *task, char *buffer);
|
||||
extern void task_show_regs(struct seq_file *m, struct task_struct *task);
|
||||
|
||||
extern void show_registers(struct pt_regs *regs);
|
||||
extern void show_code(struct pt_regs *regs);
|
||||
|
|
|
|||
Loading…
Reference in a new issue