|
/proc entries under /proc/net/* can't be cached into dcache because
setns(2) can change current net namespace.
[[email protected]: coding-style fixes]
[[email protected]: avoid vim miscolorization]
[[email protected]: write test, add dummy ->d_revalidate hook: necessary if /proc/net/* is pinned at setns time]
Link: http://lkml.kernel.org/r/20190108192350.GA12034@avx2
Link: http://lkml.kernel.org/r/20190107162336.GA9239@avx2
Fixes: 1da4d377f943fe4194ffb9fb9c26cc58fad4dd24 ("proc: revalidate misc dentries")
Signed-off-by: Alexey Dobriyan <[email protected]>
Reported-by: Mateusz Stępień <[email protected]>
Reported-by: Ahmad Fatoum <[email protected]>
Cc: Al Viro <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
|