From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [net 1/1] tipc: lock wakeup & inputq at tipc_link_reset() Date: Tue, 25 Sep 2018 20:49:29 -0700 (PDT) Message-ID: <20180925.204929.1089099008261239921.davem@davemloft.net> References: <1537906150-30955-1-git-send-email-jon.maloy@ericsson.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, tipc-discussion@lists.sourceforge.net To: jon.maloy@ericsson.com Return-path: In-Reply-To: <1537906150-30955-1-git-send-email-jon.maloy@ericsson.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: tipc-discussion-bounces@lists.sourceforge.net List-Id: netdev.vger.kernel.org From: Jon Maloy Date: Tue, 25 Sep 2018 22:09:10 +0200 > From: Parthasarathy Bhuvaragan > > In tipc_link_reset() we copy the wakeup queue to input queue using > skb_queue_splice_init(link->wakeupq, link->inputq). > This is performed without holding any locks. The lists might be > simultaneously be accessed by other cpu threads in tipc_sk_rcv(), > something leading to to random missing packets. > > Signed-off-by: Parthasarathy Bhuvaragan > Signed-off-by: Jon Maloy Applied.