Re: [PATCH net] net: fix a race in dst_release()

2015-11-09 Thread David Miller
From: Eric Dumazet Date: Mon, 09 Nov 2015 17:51:23 -0800 > From: Eric Dumazet > > Only cpu seeing dst refcount going to 0 can safely > dereference dst->flags. > > Otherwise an other cpu might already have freed the dst. > > Fixes: 27b75c95f10d ("net: avoid RCU for NOCACHE dst") > Reported-by

[PATCH net] net: fix a race in dst_release()

2015-11-09 Thread Eric Dumazet
From: Eric Dumazet Only cpu seeing dst refcount going to 0 can safely dereference dst->flags. Otherwise an other cpu might already have freed the dst. Fixes: 27b75c95f10d ("net: avoid RCU for NOCACHE dst") Reported-by: Greg Thelen Signed-off-by: Eric Dumazet --- net/core/dst.c |2 +- 1