Skip to content
Commit 8742f229 authored by Oleg Nesterov's avatar Oleg Nesterov Committed by Linus Torvalds
Browse files

userns: limit the maximum depth of user_namespace->parent chain



Ensure that user_namespace->parent chain can't grow too much.
Currently we use the hardroded 32 as limit.

Reported-by: default avatarAndy Lutomirski <luto@amacapital.net>
Signed-off-by: default avatarOleg Nesterov <oleg@redhat.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 55f5bfd4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment