[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20221025160222.5902e899@kernel.org>
Date: Tue, 25 Oct 2022 16:02:22 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Cong Wang <xiyou.wangcong@...il.com>
Cc: netdev@...r.kernel.org, Cong Wang <cong.wang@...edance.com>,
shaozhengchao <shaozhengchao@...wei.com>,
Paolo Abeni <pabeni@...hat.com>,
Tom Herbert <tom@...bertland.com>,
Eric Dumazet <edumazet@...gle.com>
Subject: Re: [Patch net] kcm: fix a race condition in kcm_recvmsg()
On Sat, 22 Oct 2022 19:30:44 -0700 Cong Wang wrote:
> + spin_lock_bh(&mux->rx_lock);
> KCM_STATS_INCR(kcm->stats.rx_msgs);
> skb_unlink(skb, &sk->sk_receive_queue);
> + spin_unlock_bh(&mux->rx_lock);
Why not switch to __skb_unlink() at the same time?
Abundance of caution?
Adding Eric who was fixing KCM bugs recently.
Powered by blists - more mailing lists