[ovs-git] [openvswitch/ovs] 2c9103: odp-util: Don't attempt to write IPv6 flow label b...

GitHub noreply at github.com
Wed Sep 12 21:28:42 UTC 2018


  Branch: refs/heads/branch-2.5
  Home:   https://github.com/openvswitch/ovs
  Commit: 2c9103b402fd6a576684a280818fd9c5a2c05b37
      https://github.com/openvswitch/ovs/commit/2c9103b402fd6a576684a280818fd9c5a2c05b37
  Author: Ben Pfaff <blp at ovn.org>
  Date:   2018-09-12 (Wed, 12 Sep 2018)

  Changed paths:
    M lib/odp-util.c

  Log Message:
  -----------
  odp-util: Don't attempt to write IPv6 flow label bits that don't exist.

The ipv6_label field member of struct ovs_key_ipv6 is 32 bits in size,
but an IPv6 label is only 20 bits, so the upper 12 bits are not writable
and must be 0 in the mask.  The code wasn't careful about this so it could
try to write them anyway.  This commit fixes the problem.

Reported-by: nm_r at directbox.com
Reported-at: https://mail.openvswitch.org/pipermail/ovs-discuss/2018-September/047357.html
Signed-off-by: Ben Pfaff <blp at ovn.org>
Reviewed-by: Yifeng Sun <pkusunyifeng at gmail.com>



      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the git mailing list