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

GitHub noreply at github.com
Wed Sep 12 21:27:55 UTC 2018


  Branch: refs/heads/branch-2.10
  Home:   https://github.com/openvswitch/ovs
  Commit: b9bab0f50cc031c178b8a4ce26c839213e196ca3
      https://github.com/openvswitch/ovs/commit/b9bab0f50cc031c178b8a4ce26c839213e196ca3
  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