Thread (2 messages) flat view 2 messages, 2 authors, 2021-07-20

Re: [PATCH] net/ipv6: Convert from atomic_t to refcount_t on ip6_flowlabel->users

From: David Ahern <hidden>
Date: 2021-07-20 19:57:49
Also in: lkml, netdev

On 7/19/21 2:35 AM, Xiyu Yang wrote:
refcount_t type and corresponding API can protect refcounters from
accidental underflow and overflow and further use-after-free situations.

Signed-off-by: Xiyu Yang <redacted>
Signed-off-by: Xin Tan <redacted>
---
 include/net/ipv6.h       |  5 +++--
 net/ipv6/ip6_flowlabel.c | 18 +++++++++---------
 2 files changed, 12 insertions(+), 11 deletions(-)
Reviewed-by: David Ahern <dsahern@kernel.org>



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help