diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2019-02-01 14:20:01 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-03-13 14:02:32 -0700 |
commit | 845d73be1b4cba6c353e99f79eff0f17e0d7c1d8 (patch) | |
tree | 0815f9cee65a79255597015fb58dddd14fd012b6 /lib/zstd/bitstream.h | |
parent | e2b45446c34f3f8ae31575235a09781e67ad4f03 (diff) | |
download | linux-stable-845d73be1b4cba6c353e99f79eff0f17e0d7c1d8.tar.gz linux-stable-845d73be1b4cba6c353e99f79eff0f17e0d7c1d8.tar.bz2 linux-stable-845d73be1b4cba6c353e99f79eff0f17e0d7c1d8.zip |
proc: fix /proc/net/* after setns(2)
[ Upstream commit 1fde6f21d90f8ba5da3cb9c54ca991ed72696c43 ]
/proc entries under /proc/net/* can't be cached into dcache because
setns(2) can change current net namespace.
[akpm@linux-foundation.org: coding-style fixes]
[akpm@linux-foundation.org: avoid vim miscolorization]
[adobriyan@gmail.com: 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 <adobriyan@gmail.com>
Reported-by: Mateusz Stępień <mateusz.stepien@netrounds.com>
Reported-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'lib/zstd/bitstream.h')
0 files changed, 0 insertions, 0 deletions