WSL2-Linux-Kernel/fs
Oleg Nesterov 6308191f6f tracing, sched, vfs: Fix 'old_pid' usage in trace_sched_process_exec()
1. TRACE_EVENT(sched_process_exec) forgets to actually use the
   old pid argument, it sets ->old_pid = p->pid.

2. search_binary_handler() uses the wrong pid number. tracepoint
   needs the global pid_t from the root namespace, while old_pid
   is the virtual pid number as it seen by the tracer/parent.

With this patch we have two pid_t's in search_binary_handler(),
not really nice. Perhaps we should switch to "struct pid*", but
in this case it would be better to cleanup the current code
first and move the "depth == 0" code outside.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: David Smith <dsmith@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Link: http://lkml.kernel.org/r/20120330162636.GA4857@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2012-03-31 11:53:22 +02:00
..
9p
adfs
affs
afs
autofs4
befs
bfs
btrfs
cachefiles
ceph
cifs Merge git://git.samba.org/sfrench/cifs-2.6 2012-03-23 09:07:15 -07:00
coda
configfs
cramfs
debugfs
devpts
dlm
ecryptfs
efs
exofs
exportfs
ext2
ext3
ext4
fat fat: fix bug in enforcing Long File Name length 2012-03-23 16:58:40 -07:00
freevxfs
fscache
fuse
gfs2
hfs
hfsplus
hostfs
hpfs
hppfs
hugetlbfs
isofs
jbd
jbd2
jffs2
jfs
lockd
logfs
minix
ncpfs
nfs NFS client updates for Linux 3.4 2012-03-23 08:53:47 -07:00
nfs_common
nfsd NFS client updates for Linux 3.4 2012-03-23 08:53:47 -07:00
nilfs2
nls
notify fs/notify/notification.c: make subsys_initcall function static 2012-03-23 16:58:31 -07:00
ntfs
ocfs2
omfs
openpromfs
proc Merge git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/sysctl 2012-03-23 18:08:58 -07:00
pstore One pstore patch 2012-03-23 09:24:07 -07:00
qnx4
qnx6
quota Merge branch 'for-linus' of git://oss.sgi.com/xfs/xfs 2012-03-23 09:19:22 -07:00
ramfs
reiserfs The following text was taken from the original review request: 2012-03-24 10:08:39 -07:00
romfs
squashfs
sysfs
sysv
ubifs - Improve error messages 2012-03-23 09:27:40 -07:00
udf
ufs
xfs Merge branch 'for-linus' of git://oss.sgi.com/xfs/xfs 2012-03-23 09:19:22 -07:00
Kconfig
Kconfig.binfmt
Makefile
aio.c The following text was taken from the original review request: 2012-03-24 10:24:31 -07:00
anon_inodes.c
attr.c
bad_inode.c
binfmt_aout.c
binfmt_elf.c coredump: add VM_NODUMP, MADV_NODUMP, MADV_CLEAR_NODUMP 2012-03-23 16:58:42 -07:00
binfmt_elf_fdpic.c
binfmt_em86.c
binfmt_flat.c The following text was taken from the original review request: 2012-03-24 10:24:31 -07:00
binfmt_misc.c magic.h: move some FS magic numbers into magic.h 2012-03-23 16:58:31 -07:00
binfmt_script.c
binfmt_som.c
bio-integrity.c
bio.c
block_dev.c magic.h: move some FS magic numbers into magic.h 2012-03-23 16:58:31 -07:00
buffer.c
char_dev.c
compat.c
compat_binfmt_elf.c
compat_ioctl.c The following text was taken from the original review request: 2012-03-24 10:24:31 -07:00
dcache.c The following text was taken from the original review request: 2012-03-24 10:24:31 -07:00
dcookies.c
direct-io.c
drop_caches.c
eventfd.c
eventpoll.c epoll: remove unneeded variable in reverse_path_check() 2012-03-23 16:58:38 -07:00
exec.c tracing, sched, vfs: Fix 'old_pid' usage in trace_sched_process_exec() 2012-03-31 11:53:22 +02:00
fcntl.c
fhandle.c
fifo.c
file.c
file_table.c
filesystems.c
fs-writeback.c The following text was taken from the original review request: 2012-03-24 10:24:31 -07:00
fs_struct.c The following text was taken from the original review request: 2012-03-24 10:24:31 -07:00
generic_acl.c
inode.c
internal.h
ioctl.c
ioprio.c
libfs.c The following text was taken from the original review request: 2012-03-24 10:24:31 -07:00
locks.c
mbcache.c
mount.h
mpage.c
namei.c The following text was taken from the original review request: 2012-03-24 10:24:31 -07:00
namespace.c
no-block.c
open.c
pipe.c magic.h: move some FS magic numbers into magic.h 2012-03-23 16:58:31 -07:00
pnode.c
pnode.h
posix_acl.c
proc_namespace.c
read_write.c
read_write.h
readdir.c
select.c The following text was taken from the original review request: 2012-03-24 10:24:31 -07:00
seq_file.c The following text was taken from the original review request: 2012-03-24 10:24:31 -07:00
signalfd.c
splice.c The following text was taken from the original review request: 2012-03-24 10:24:31 -07:00
stack.c
stat.c The following text was taken from the original review request: 2012-03-24 10:24:31 -07:00
statfs.c
super.c The following text was taken from the original review request: 2012-03-24 10:24:31 -07:00
sync.c
timerfd.c
utimes.c
xattr.c
xattr_acl.c