[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20191123182919.310d5bf6@cakuba.netronome.com>
Date: Sat, 23 Nov 2019 18:29:19 -0800
From: Jakub Kicinski <jakub.kicinski@...ronome.com>
To: Xin Long <lucien.xin@...il.com>
Cc: network dev <netdev@...r.kernel.org>, linux-sctp@...r.kernel.org,
davem@...emloft.net,
Marcelo Ricardo Leitner <marcelo.leitner@...il.com>,
Neil Horman <nhorman@...driver.com>
Subject: Re: [PATCH net] sctp: cache netns in sctp_ep_common
On Sat, 23 Nov 2019 11:56:49 +0800, Xin Long wrote:
> This patch is to fix a data-race reported by syzbot:
>
> BUG: KCSAN: data-race in sctp_assoc_migrate / sctp_hash_obj
> It was caused by rhashtable access asoc->base.sk when sctp_assoc_migrate
> is changing its value. However, what rhashtable wants is netns from asoc
> base.sk, and for an asoc, its netns won't change once set. So we can
> simply fix it by caching netns since created.
>
> Fixes: d6c0256a60e6 ("sctp: add the rhashtable apis for sctp global transport hashtable")
> Reported-by: syzbot+e3b35fe7918ff0ee474e@...kaller.appspotmail.com
> Signed-off-by: Xin Long <lucien.xin@...il.com>
Applied, thank you!
Powered by blists - more mailing lists