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

2014-08-05 Thread Michael S. Tsirkin
;makita.toshi...@lab.ntt.co.jp; step...@networkplumber.org; > >ebied...@xmission.com; f.faine...@gmail.com; linux-kernel@vger.kernel.org; > >Wuyunfei; Qianhuibin (Huibin QIAN, Euler) > >Subject: Re: [PATCH net/next] bridge:Add rcu read lock when delete br port > > > >O

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

2014-08-04 Thread Lichunhe
e...@gmail.com; linux-kernel@vger.kernel.org; >Wuyunfei; Qianhuibin (Huibin QIAN, Euler) >Subject: Re: [PATCH net/next] bridge:Add rcu read lock when delete br port > >On Mon, Aug 04, 2014 at 11:37:56AM +0800, lichu...@huawei.com wrote: >> From: Chunhe Li >> >> In the

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

2014-08-04 Thread Stephen Hemminger
On Mon, 4 Aug 2014 11:37:56 +0800 wrote: > From: Chunhe Li > > 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 > a

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

2014-08-04 Thread Stephen Hemminger
On Mon, 4 Aug 2014 11:37:56 +0800 wrote: > From: Chunhe Li > > 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 > a

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

2014-08-04 Thread Michael S. Tsirkin
On Mon, Aug 04, 2014 at 11:37:56AM +0800, lichu...@huawei.com wrote: > From: Chunhe Li > > 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