Re: [PATCH] arp: Race condition in gratuitous ARP reception handling.

2017-03-07 Thread David Miller
From: Date: Thu, 2 Mar 2017 14:59:47 +0100 > @@ -836,19 +843,30 @@ static int arp_process(struct net *net, struct sock > *sk, struct sk_buff *skb) > n = __neigh_lookup(&arp_tbl, &sip, dev, 0); > > if (IN_DEV_ARP_ACCEPT(in_dev)) { > - unsigned int addr_type = inet_addr_t

[PATCH] arp: Race condition in gratuitous ARP reception handling.

2017-03-02 Thread tomasz.dzieciol
From: Tomasz Dzieciol Fix an issue where is_garp variable is not set when arp_accept option is disabled for a net device. There might be a situation where gratuitous ARP will be ignored when an existing neighbour is updated in a time smaller than LOCKTIME (for example by a timer - transition betw