net, l2tp: convert l2tp_tunnel.ref_count from atomic_t to refcount_t
authorReshetova, Elena <[email protected]>
Tue, 4 Jul 2017 12:52:57 +0000 (15:52 +0300)
committerDavid S. Miller <[email protected]>
Tue, 4 Jul 2017 21:35:15 +0000 (22:35 +0100)
commitfbea9e0760bf17e681b9bfc25b97b408708b9ff2
treea4c8c287dfb2452e1ea5c94e089350cf93b948e6
parent58951dde05fdac96a9d30805d8fa5d124dd4f92c
net, l2tp: convert l2tp_tunnel.ref_count from atomic_t to refcount_t

refcount_t type and corresponding API should be
used instead of atomic_t when the variable is used as
a reference counter. This allows to avoid accidental
refcounter overflows that might lead to use-after-free
situations.

Signed-off-by: Elena Reshetova <[email protected]>
Signed-off-by: Hans Liljestrand <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
Signed-off-by: David Windsor <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/l2tp/l2tp_core.c
net/l2tp/l2tp_core.h
net/l2tp/l2tp_debugfs.c
net/l2tp/l2tp_ppp.c