diff options
| author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-12-06 18:31:49 +0100 |
|---|---|---|
| committer | Bruno Martins <bgcngm@gmail.com> | 2023-11-06 09:28:24 +0000 |
| commit | 7d5fcdcf62f01cff58dc84080e265a6da1e91e92 (patch) | |
| tree | 146bd088765ae88bf3ff4e1274f8b6be021c09c8 /tools/perf/scripts/python/syscall-counts.py | |
| parent | 0762a41e1f484192f5d5b2b78e1b62b1ccb1e871 (diff) | |
compat: udp_tunnel: don't take reference to non-init namespace
The comment to sk_change_net is instructive:
Kernel sockets, f.e. rtnl or icmp_socket, are a part of a namespace.
They should not hold a reference to a namespace in order to allow
to stop it.
Sockets after sk_change_net should be released using sk_release_kernel
We weren't following these rules before, and were instead using
__sock_create, which means we kept a reference to the namespace, which
in turn meant that interfaces were not cleaned up on namespace
exit.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Change-Id: I03b2e58e45e3eb37c6324b23ca0d6f3fde2ebec7
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions
