ve->ve_ns is not guaranteed to be non-NULL. For example
we can create process with such ve with following script:

mkdir /sys/fs/cgroup/ve/1
echo 1 > /sys/fs/cgroup/ve/1/ve.veid
echo $$ > /sys/fs/cgroup/ve/1/tasks

These patches adds checks to ensure ve->ve_ns is not NULL

Andrey Zhadchenko (2):
  fs/sync: fix nullptr dereference ve->ve_ns->mnt_ns
  drivers/connector: fix nullptr dereference ve->ve_ns->pid_ns

 drivers/connector/cn_proc.c | 35 +++++++++++++++++++++++++----------
 fs/sync.c                   | 24 ++++++++++++++++++++++--
 2 files changed, 47 insertions(+), 12 deletions(-)

-- 
1.8.3.1

_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to