Project

General

Profile

Actions

Bug #351

open

Issues with batadv_gw_out_of_range

Added by Linus Lüssing over 6 years ago. Updated over 6 years ago.

Status:
New
Priority:
Normal
Target version:
-
Start date:
03/13/2018
Due date:
% Done:

0%

Estimated time:

Description

I'm getting the impression that batadv_gw_out_of_range() is broken or even never worked as intended. gw_out_of_range() is only called if DHCP_TO_SERVER is set in interface_tx(). which is only set to DHCP_TO_SERVER in the is_multicast_ether_addr(ethhdr->h_dest) branch in interface_tx(). However, the kerneldoc for gw_out_of_range() says that for multicast destinations it should always return false which means, DHCP packets to a server would never get dropped in interface_tx() due to being "out-of-range". So clients might have been more sticky to dhcp servers than they should have.

And now with multicast TT entries things might get worse... I think there might be DHCPv4 packetloss if some node were to claim FF:FF:FF:FF:FF:FF via TT (the current multicast code does not announce this. however, a broken or malicious node might). And for DHCPv6, the multicast code will currently announce 33:33:00:01:00:02/33:33:00:01:00:03 so that, DHCPv6, might have become broken with the added multicast code, I suspect.

Actions #1

Updated by Linus Lüssing over 6 years ago

The latter issue was fixed with:

The former might be fixed with the following, untested patch:

Actions

Also available in: Atom PDF