netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH] net/ipv6: Convert from atomic_t to refcount_t on ip6_flowlabel->users
       [not found] <1626683707-64470-1-git-send-email-xiyuyang19@fudan.edu.cn>
@ 2021-07-20 19:55 ` David Ahern
  0 siblings, 0 replies; only message in thread
From: David Ahern @ 2021-07-20 19:55 UTC (permalink / raw)
  To: Xiyu Yang, David S. Miller, Hideaki YOSHIFUJI, David Ahern,
	Jakub Kicinski, Andreas Färber, Manivannan Sadhasivam,
	netdev, linux-kernel, linux-arm-kernel, linux-actions
  Cc: yuanxzhang, Xin Tan

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 <xiyuyang19@fudan.edu.cn>
> Signed-off-by: Xin Tan <tanxin.ctf@gmail.com>
> ---
>  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>



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-20 19:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1626683707-64470-1-git-send-email-xiyuyang19@fudan.edu.cn>
2021-07-20 19:55 ` [PATCH] net/ipv6: Convert from atomic_t to refcount_t on ip6_flowlabel->users David Ahern

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).