aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/proc_net.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2021-12-10 07:44:21 +0000
committerJakub Kicinski <[email protected]>2021-12-10 14:38:26 +0000
commit9ba74e6c9e9d0c5c1e5792a7111fc7d1a0589cb8 (patch)
tree0984bfcc460de30d23f22d4230992964496199da /fs/proc/proc_net.c
parentsh_eth: Use dev_err_probe() helper (diff)
downloadkernel-9ba74e6c9e9d0c5c1e5792a7111fc7d1a0589cb8.tar.gz
kernel-9ba74e6c9e9d0c5c1e5792a7111fc7d1a0589cb8.zip
net: add networking namespace refcount tracker
We have 100+ syzbot reports about netns being dismantled too soon, still unresolved as of today. We think a missing get_net() or an extra put_net() is the root cause. In order to find the bug(s), and be able to spot future ones, this patch adds CONFIG_NET_NS_REFCNT_TRACKER and new helpers to precisely pair all put_net() with corresponding get_net(). To use these helpers, each data structure owning a refcount should also use a "netns_tracker" to pair the get and put. Signed-off-by: Eric Dumazet <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'fs/proc/proc_net.c')
0 files changed, 0 insertions, 0 deletions