From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] macvtap: fix two races Date: Sun, 11 Aug 2013 21:50:49 -0700 (PDT) Message-ID: <20130811.215049.2058314780489790321.davem@davemloft.net> References: <1375968072.4004.92.camel@edumazet-glaptop> <20130808155634.239dbc2d@thhw500> <1375974374.4004.103.camel@edumazet-glaptop> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: thuth@linux.vnet.ibm.com, netdev@vger.kernel.org, vyasevic@redhat.com To: eric.dumazet@gmail.com Return-path: Received: from shards.monkeyblade.net ([149.20.54.216]:47619 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752854Ab3HLEp1 (ORCPT ); Mon, 12 Aug 2013 00:45:27 -0400 In-Reply-To: <1375974374.4004.103.camel@edumazet-glaptop> Sender: netdev-owner@vger.kernel.org List-ID: From: Eric Dumazet Date: Thu, 08 Aug 2013 08:06:14 -0700 > From: Eric Dumazet > > Since commit ac4e4af1e59e1 ("macvtap: Consistently use rcu functions"), > Thomas gets two different warnings : ... > And ... > In the first case, macvtap_put_user() calls macvlan_count_rx() > in a preempt-able context, and this is not allowed. > > In the second case, macvtap_get_user() calls > macvlan_start_xmit() with BH enabled, and this is not allowed. > > Reported-by: Thomas Huth > Bisected-by: Thomas Huth > Signed-off-by: Eric Dumazet > Tested-by: Thomas Huth > Cc: Vlad Yasevich Applied and queued up for -stable, thanks.