On 7/14/19 3:36 PM, Lorenzo Bianconi wrote: > Neigh timer can be scheduled multiple times from userspace adding > multiple neigh entries and forcing the neigh timer scheduling passing > NTF_USE in the netlink requests. > This will result in a refcount leak and in the following dump stack: >
... > > Fix the issue unscheduling neigh_timer if selected entry is in 'IN_TIMER' > receiving a netlink request with NTF_USE flag set > > Reported-by: Marek Majkowski <ma...@cloudflare.com> > Fixes: 0c5c2d308906 ("neigh: Allow for user space users of the neighbour > table") > Signed-off-by: Lorenzo Bianconi <lorenzo.bianc...@redhat.com> > --- > Changes since v2: > - remove check_timer flag and run neigh_del_timer directly > Changes since v1: > - fix compilation errors defining neigh_event_send_check_timer routine > --- > net/core/neighbour.c | 2 ++ > 1 file changed, 2 insertions(+) > Reviewed-by: David Ahern <dsah...@gmail.com>