[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20160701.060625.403590393376125450.davem@davemloft.net>
Date: Fri, 01 Jul 2016 06:06:25 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: netdev@...r.kernel.org, maheshb@...gle.com, nikolay@...hat.com,
dingtianhong@...wei.com, dvyukov@...gle.com
Subject: Re: [PATCH v2 net] bonding: prevent out of bound accesses
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Thu, 30 Jun 2016 16:13:41 +0200
> From: Eric Dumazet <edumazet@...gle.com>
>
> ether_addr_equal_64bits() requires some care about its arguments,
> namely that 8 bytes might be read, even if last 2 byte values are not
> used.
>
> KASan detected a violation with null_mac_addr and lacpdu_mcast_addr
> in bond_3ad.c
>
> Same problem with mac_bcast[] and mac_v6_allmcast[] in bond_alb.c :
> Although the 8-byte alignment was there, KASan would detect out
> of bound accesses.
>
> Fixes: 815117adaf5b ("bonding: use ether_addr_equal_unaligned for bond addr compare")
> Fixes: bb54e58929f3 ("bonding: Verify RX LACPDU has proper dest mac-addr")
> Fixes: 885a136c52a8 ("bonding: use compare_ether_addr_64bits() in ALB")
> Signed-off-by: Eric Dumazet <edumazet@...gle.com>
> Reported-by: Dmitry Vyukov <dvyukov@...gle.com>
Applied, thanks Eric.
Powered by blists - more mailing lists