tmp_suning_uos_patched/tools/testing/selftests
Jason A. Donenfeld 900575aa33 wireguard: device: avoid circular netns references
Before, we took a reference to the creating netns if the new netns was
different. This caused issues with circular references, with two
wireguard interfaces swapping namespaces. The solution is to rather not
take any extra references at all, but instead simply invalidate the
creating netns pointer when that netns is deleted.

In order to prevent this from happening again, this commit improves the
rough object leak tracking by allowing it to account for created and
destroyed interfaces, aside from just peers and keys. That then makes it
possible to check for the object leak when having two interfaces take a
reference to each others' namespaces.

Fixes: e7096c131e ("net: WireGuard secure network tunnel")
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-06-23 14:50:34 -07:00
..
android
arm64
bpf selftests/bpf: Make sure optvals > PAGE_SIZE are bypassed 2020-06-17 10:54:05 -07:00
breakpoints
capabilities
cgroup
clone3
cpu-hotplug
cpufreq
dmabuf-heaps
drivers
efivarfs
exec
filesystems
firmware
ftrace
futex
gpio
ia64
intel_pstate
ipc
ir
kcmp
kexec
kmod
kselftest
kvm KVM: selftests: fix sync_with_host() in smm_test 2020-06-11 12:35:19 -04:00
lib
livepatch
lkdtm
locking
media_tests
membarrier
memfd
memory-hotplug
mount
mqueue
net selftests/net: report etf errors correctly 2020-06-19 20:23:02 -07:00
netfilter
nsfs
ntb
openat2
pid_namespace
pidfd
powerpc
prctl
proc
pstore
ptp
ptrace
rcutorture
resctrl
rseq
rtc
safesetid
seccomp
sigaltstack
size
sparc64
splice
static_keys
sync
sysctl
tc-testing tc-testing: update geneve options match in tunnel_key unit tests 2020-06-20 17:35:18 -07:00
timens
timers
tmpfs
tpm2
uevent
user
vDSO
vm khugepaged: selftests: fix timeout condition in wait_for_scan() 2020-06-10 19:14:17 -07:00
watchdog
wireguard wireguard: device: avoid circular netns references 2020-06-23 14:50:34 -07:00
x86
zram
.gitignore
gen_kselftest_tar.sh
kselftest_deps.sh
kselftest_harness.h
kselftest_install.sh
kselftest_module.h
kselftest.h
lib.mk
Makefile