From: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
To: Eric Dumazet <eric.dumazet@gmail.com>,
David Miller <davem@davemloft.net>
Cc: netdev <netdev@vger.kernel.org>,
Mahesh Bandewar <maheshb@google.com>,
Nikolay Aleksandrov <nikolay@redhat.com>,
Ding Tianhong <dingtianhong@huawei.com>,
Dmitry Vyukov <dvyukov@google.com>,
Jay Vosburgh <j.vosburgh@gmail.com>,
Veaceslav Falico <vfalico@gmail.com>,
Andy Gospodarek <gospo@cumulusnetworks.com>
Subject: Re: [PATCH v2 net] bonding: prevent out of bound accesses
Date: Thu, 30 Jun 2016 16:43:51 +0200 [thread overview]
Message-ID: <57753027.7040006@cumulusnetworks.com> (raw)
In-Reply-To: <1467296021.11238.19.camel@edumazet-glaptop3.roam.corp.google.com>
On 30/06/16 16:13, Eric Dumazet wrote:
> From: Eric Dumazet <edumazet@google.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@google.com>
> Reported-by: Dmitry Vyukov <dvyukov@google.com>
> ---
> drivers/net/bonding/bond_3ad.c | 11 +++++++----
> drivers/net/bonding/bond_alb.c | 7 ++-----
> include/net/bonding.h | 7 ++++++-
> 3 files changed, 15 insertions(+), 10 deletions(-)
>
+CC bonding maintainers
For v2,
Acked-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
next prev parent reply other threads:[~2016-06-30 14:52 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-30 12:56 [PATCH net] bonding: prevent out of bound accesses Eric Dumazet
2016-06-30 13:04 ` Dmitry Vyukov
2016-06-30 13:25 ` Eric Dumazet
2016-06-30 13:35 ` Dmitry Vyukov
2016-06-30 14:08 ` Eric Dumazet
2016-06-30 14:13 ` Dmitry Vyukov
2016-06-30 13:24 ` Nikolay Aleksandrov
2016-06-30 14:13 ` [PATCH v2 " Eric Dumazet
2016-06-30 14:19 ` Dmitry Vyukov
2016-06-30 14:43 ` Nikolay Aleksandrov [this message]
2016-07-01 1:09 ` Ding Tianhong
2016-07-01 10:06 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=57753027.7040006@cumulusnetworks.com \
--to=nikolay@cumulusnetworks.com \
--cc=davem@davemloft.net \
--cc=dingtianhong@huawei.com \
--cc=dvyukov@google.com \
--cc=eric.dumazet@gmail.com \
--cc=gospo@cumulusnetworks.com \
--cc=j.vosburgh@gmail.com \
--cc=maheshb@google.com \
--cc=netdev@vger.kernel.org \
--cc=nikolay@redhat.com \
--cc=vfalico@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.