Re: [PATCH net/next] bridge:Add rcu read lock when delete br port

From: Stephen Hemminger
Date: Mon Aug 04 2014 - 12:48:30 EST


On Mon, 4 Aug 2014 11:37:56 +0800
<lichunhe@xxxxxxxxxx> wrote:

> From: Chunhe Li <lichunhe@xxxxxxxxxx>
>
> In the br_hanle_frame function has a bug, when the bridge receive packets
> which go througth the br_handle_frame, get the net_bridge_port pointer "p",
> but don't check NULL pointer to use it. If somebody delete the bridge port
> at the same time, will call a NULL pointer, trigger kernel panic. I see the
> del_nbp comments, call del_nbp should via RCU, but the caller don't do this.
>
> following steps will make bug happened
> 1.start vm and add the vm interface to a bridge br0,for example,
> brctl addbr br0 tap0
>
> 2.configuer vm interface and br0 same ip subnet, vm ping br0.
>
> 3.add and delete the vm interface port for endless loop.
>
> Signed-off-by: Chunhe Li <lichunhe@xxxxxxxxxx>

Any possible bridge issues should go netdev@xxxxxxxxxxxxxxx

Nobody reads LKML anymore.


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/