Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754955Ab2HOWK3 (ORCPT ); Wed, 15 Aug 2012 18:10:29 -0400 Received: from shards.monkeyblade.net ([149.20.54.216]:52405 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751287Ab2HOWK2 (ORCPT ); Wed, 15 Aug 2012 18:10:28 -0400 Date: Wed, 15 Aug 2012 15:10:25 -0700 (PDT) Message-Id: <20120815.151025.1185439989487730645.davem@davemloft.net> To: shemminger@vyatta.com Cc: yefremov.denis@gmail.com, pablo@netfilter.org, kaber@trash.net, netfilter-devel@vger.kernel.org, netfilter@vger.kernel.org, coreteam@netfilter.org, linux-kernel@vger.kernel.org, ldv-project@ispras.ru Subject: Re: [PATCH] bridge: fix rcu dereference outside of rcu_read_lock From: David Miller In-Reply-To: <20120814081933.30f3e868@nehalam.linuxnetplumber.net> References: <1344898062-23633-1-git-send-email-yefremov.denis@gmail.com> <1344931732-1858-1-git-send-email-yefremov.denis@gmail.com> <20120814081933.30f3e868@nehalam.linuxnetplumber.net> X-Mailer: Mew version 6.5 on Emacs 24.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1069 Lines: 29 From: Stephen Hemminger Date: Tue, 14 Aug 2012 08:19:33 -0700 > Alternative solution for problem found by Linux Driver Verification > project (linuxtesting.org). > > As it noted in the comment before the br_handle_frame_finish > function, this function should be called under rcu_read_lock. > > The problem callgraph: > br_dev_xmit -> br_nf_pre_routing_finish_bridge_slow -> > -> br_handle_frame_finish -> br_port_get_rcu -> rcu_dereference > > And in this case there is no read-lock section. > > Reported-by: Denis Efremov > Signed-off-by: Stephen Hemminger Applied, thanks Stephen. Please CC: this to netdev next time. It's in a grey area whether I or the netfilter folks should apply this one, and here I'm deciding to take care of it. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/