Re: [PATCH] xfrm: fix a race in xfrm_state_lookup_byspi

2015-04-30 Thread Steffen Klassert
unet.com > >Subject: [PATCH] xfrm: fix a race in xfrm_state_lookup_byspi > > > >From: Li RongQing > > > >The returned xfrm_state should be hold before unlock xfrm_state_lock, > >otherwise the returned xfrm_state maybe be released. > > > >Fixes: c454997e6

RE: [PATCH] xfrm: fix a race in xfrm_state_lookup_byspi

2015-04-28 Thread Du, Fan
>-Original Message- >From: roy.qing...@gmail.com [mailto:roy.qing...@gmail.com] >Sent: Wednesday, April 29, 2015 8:43 AM >To: netdev@vger.kernel.org >Cc: Du, Fan; steffen.klass...@secunet.com >Subject: [PATCH] xfrm: fix a race in xfrm_state_lookup_byspi > >F

[PATCH] xfrm: fix a race in xfrm_state_lookup_byspi

2015-04-28 Thread roy . qing . li
From: Li RongQing The returned xfrm_state should be hold before unlock xfrm_state_lock, otherwise the returned xfrm_state maybe be released. Fixes: c454997e6[{pktgen, xfrm} Introduce xfrm_state_lookup_byspi..] Cc: Fan Du Signed-off-by: Li RongQing --- net/xfrm/xfrm_state.c | 2 +- 1 file chan