lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Sun, 08 Feb 2009 18:43:57 -0700
From:	Alex Williamson <alex.williamson@...com>
To:	David Miller <davem@...emloft.net>
Cc:	maxk@...lcomm.com, linux-kernel@...r.kernel.org,
	netdev@...r.kernel.org
Subject: Re: [PATCH] tun: Fix unicast filter overflow

On Sun, 2009-02-08 at 17:06 -0800, David Miller wrote:
> From: Alex Williamson <alex.williamson@...com>
> Date: Sat, 07 Feb 2009 10:45:13 -0700
> 
> > Tap devices can make use of a small MAC filter set via the
> > TUNSETTXFILTER ioctl.  The filter has a set of exact matches
> > plus a hash for imperfect filtering of additional multicast
> > addresses.  The current code is unbalanced, adding unicast
> > addresses to the multicast hash, but only checking the hash
> > against multicast addresses.  This results in the filter
> > dropping unicast addresses that overflow the exact filter.
> > The fix is simply to disable the filter by leaving count set
> > to zero if we find non-multicast addresses after the exact
> > match table is filled.
> > 
> > Signed-off-by: Alex Williamson <alex.williamson@...com>
> 
> Doesn't it make more sense to remove the multicast check
> in the filter check function?
> 
> With your change, the user gets absolutely no indication
> that filtering has been completely disabled simply because
> they put too many unicast addresses into the filter.  We
> just return zero, that's crazy.

Sure, that's another option, but we'd then need to figure out what to do
with TUN_FLT_ALLMULTI.  Unicast would almost needs it's own hash list if
we want to support an allmulti mode that's less than promiscuous.  The
return value of the ioctl is the number of exact filters, so the user
will know what happened.  Thanks,

Alex


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists