Skip to content
Commit 79392533 authored by Eric W. Biederman's avatar Eric W. Biederman
Browse files

proc: Fix Oops on stat of /proc/<zombie pid>/ns/net



Don't call iput with the inode half setup to be a namespace filedescriptor.
Instead rearrange the code so that we don't initialize ei->ns_ops until
after I ns_ops->get succeeds, preventing us from invoking ns_ops->put
when ns_ops->get failed.

Reported-by: default avatarIngo Saitz <Ingo.Saitz@stud.uni-hannover.de>
Signed-off-by: default avatarEric W. Biederman <ebiederm@xmission.com>
parent 2c53b436
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment