[ovs-dev] [PATCH 2/3] netlink: Introduce helpers for 128-bit integer attributes.

Lance Richardson lrichard at redhat.com
Wed Jun 14 17:22:12 UTC 2017


> From: "Ben Pfaff" <blp at ovn.org>
> To: dev at openvswitch.org
> Cc: "Ben Pfaff" <blp at ovn.org>, "Lance Richardson" <lrichard at redhat.com>
> Sent: Wednesday, 14 June, 2017 12:24:56 PM
> Subject: [PATCH 2/3] netlink: Introduce helpers for 128-bit integer attributes.
> 
> Use the helpers in appropriate places.  In most cases, this fixes a
> misaligned reference, since ovs_be128 and ovs_u128 require 8-byte alignment
> but Netlink only guarantees 4-byte.
> 
> Found by GCC -fsanitize=undefined.
> 
> Reported-by: Lance Richardson <lrichard at redhat.com>
> Signed-off-by: Ben Pfaff <blp at ovn.org>
> ---
>  lib/dpif-netlink.c | 12 +++---------
>  lib/netlink.c      | 54
>  ++++++++++++++++++++++++++++++++++++++++++++++++++++++
>  lib/netlink.h      | 10 ++++++++++
>  lib/odp-util.c     | 26 ++++++++++----------------
>  4 files changed, 77 insertions(+), 25 deletions(-)
> 

Acked-by: Lance Richardson <lrichard at redhat.com>


More information about the dev mailing list