[Devel] [PATCH RH8 0/2] fix ve->ve_ns dereferences
Andrey Zhadchenko
andrey.zhadchenko at virtuozzo.com
Fri Jun 25 20:12:39 MSK 2021
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
More information about the Devel
mailing list