From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Dumazet Subject: Re: =?UTF-8?Q?=E7=AD=94=E5=A4=8D=3A?= [PATCH] set fake_rtable's dst to NULL to avoid kernel Oops. Date: Thu, 29 Mar 2012 10:52:00 +0200 Message-ID: <1333011120.2325.354.camel@edumazet-glaptop> References: <002501cd0d74$317fd100$947f7300$%huangpeng@huawei.com> <1333002975.2325.82.camel@edumazet-glaptop> <002601cd0d76$c4987440$4dc95cc0$%huangpeng@huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: linux-kernel@vger.kernel.org, harry.majun@huawei.com, zhoukang7@huawei.com, 'netdev' To: "Peter Huang (Peng)" Return-path: Received: from mail-ey0-f174.google.com ([209.85.215.174]:33496 "EHLO mail-ey0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752240Ab2C2IwF (ORCPT ); Thu, 29 Mar 2012 04:52:05 -0400 In-Reply-To: <002601cd0d76$c4987440$4dc95cc0$%huangpeng@huawei.com> Sender: netdev-owner@vger.kernel.org List-ID: On Thu, 2012-03-29 at 14:40 +0800, Peter Huang (Peng) wrote: > We already check current kernel-3.3, it has the same problem. > > I am not very sure that if this modify could cause other problems or not, > Because I don't know where fake_rtable was used. Check net/bridge/br_netfilter.c and commits e688a6048076 (net: introduce DST_NOPEER dst flag ) 4adf0af6818f3ea5 (bridge: send correct MTU value in PMTU (revised)) Apparently bug is because struct net_bridge is freed while its embedded fake_rtable is still used by some packets. I am not sure we are allowed to NULLify skb->dst, it might break netfilter. Maybe real fix would be to use a non embedded dst.