1
0
Fork 0
alistair23-linux/net/l2tp
Dominik Heidler 9b3dc0a17d l2tp: cast l2tp traffic counter to unsigned
This fixes a counter problem on 32bit systems:
When the rx_bytes counter reached 2 GiB, it jumpd to (2^64 Bytes - 2GiB) Bytes.

rtnl_link_stats64 has __u64 type and atomic_long_read returns
atomic_long_t which is signed. Due to the conversation
we get an incorrect value on 32bit systems if the MSB of
the atomic_long_t value is set.

CC: Tom Parkin <tparkin@katalix.com>
Fixes: 7b7c0719cd ("l2tp: avoid deadlock in l2tp stats update")
Signed-off-by: Dominik Heidler <dheidler@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-06-10 16:14:27 -04:00
..
Kconfig l2tp: Call udp_sock_create 2014-07-14 16:12:15 -07:00
Makefile l2tp: introduce L2TPv3 IP encapsulation support for IPv6 2012-05-01 09:30:55 -04:00
l2tp_core.c l2tp: define parameters of l2tp_tunnel_find*() as "const" 2017-04-12 10:44:02 -04:00
l2tp_core.h l2tp: define parameters of l2tp_tunnel_find*() as "const" 2017-04-12 10:44:02 -04:00
l2tp_debugfs.c l2tp: take reference on sessions being dumped 2017-04-04 10:00:56 -07:00
l2tp_eth.c l2tp: cast l2tp traffic counter to unsigned 2017-06-10 16:14:27 -04:00
l2tp_ip.c l2tp: fix race in l2tp_recv_common() 2017-04-01 20:16:41 -07:00
l2tp_ip6.c l2tp: fix race in l2tp_recv_common() 2017-04-01 20:16:41 -07:00
l2tp_netlink.c l2tp: remove useless duplicate session detection in l2tp_netlink 2017-04-11 13:48:09 -04:00
l2tp_ppp.c l2tp: don't mask errors in pppol2tp_getsockopt() 2017-04-08 08:29:04 -07:00