aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2015-11-06 16:30:06 -0800
committerMoyster <oysterized@gmail.com>2016-11-07 13:44:28 +0100
commit7094f78c0f73a176f2bd84bce251b1cb11194343 (patch)
tree2e1081e5d267960334da782eba685464267b44bd /tools/perf/scripts/python
parenta41ad7e041852f537154b6524aa88d3df6a91653 (diff)
downloadandroid_kernel_m2note-7094f78c0f73a176f2bd84bce251b1cb11194343.tar.gz
UPSTREAM: proc: actually make proc_fd_permission() thread-friendly
(cherry pick from commit 54708d2858e79a2bdda10bf8a20c80eb96c20613) The commit 96d0df79f264 ("proc: make proc_fd_permission() thread-friendly") fixed the access to /proc/self/fd from sub-threads, but introduced another problem: a sub-thread can't access /proc/<tid>/fd/ or /proc/thread-self/fd if generic_permission() fails. Change proc_fd_permission() to check same_thread_group(pid_task(), current). Fixes: 96d0df79f264 ("proc: make proc_fd_permission() thread-friendly") Reported-by: "Jin, Yihua" <yihua.jin@intel.com> Signed-off-by: Oleg Nesterov <oleg@redhat.com> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Bug: 26016905 Change-Id: I1894c78d0b13f0bde8cde84bd142ba67590dc0f1
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions