[ovs-git] [openvswitch/ovs] e612dd: NSH: Fix NSH-related length macros that cause stac...

GitHub noreply at github.com
Fri Oct 26 22:04:50 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: e612dd2f290a47c53bfcd7a5c0aead66a6fd0119
      https://github.com/openvswitch/ovs/commit/e612dd2f290a47c53bfcd7a5c0aead66a6fd0119
  Author: Yifeng Sun <pkusunyifeng at gmail.com>
  Date:   2018-10-26 (Fri, 26 Oct 2018)

  Changed paths:
    M datapath/linux/compat/include/net/nsh.h
    M include/openvswitch/nsh.h

  Log Message:
  -----------
  NSH: Fix NSH-related length macros that cause stack overflow

In the filed of ver_flags_ttl_len of struct nshhdr, there are only 6
bits that are used to indicate header's total length in 4-byte words.
Therefore, the max value for total is 252 (63x4), instead of 256 used
in present code base. This patch fixes it.

Reported-at: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10855
Signed-off-by: Yifeng Sun <pkusunyifeng at gmail.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>


  Commit: 23b9ac1e5b4f8f047cf1fefa6d7ebcbcf7d678f8
      https://github.com/openvswitch/ovs/commit/23b9ac1e5b4f8f047cf1fefa6d7ebcbcf7d678f8
  Author: Ben Pfaff <blp at ovn.org>
  Date:   2018-10-26 (Fri, 26 Oct 2018)

  Changed paths:
    M utilities/ovs-ofctl.8.in

  Log Message:
  -----------
  ovs-ofctl: Update documentation for MPLS actions.

Reported-by: lidejun <lidejun1 at huawei.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>
Acked-by: Justin Pettit <jpettit at ovn.org>


Compare: https://github.com/openvswitch/ovs/compare/4e9c96f00614...23b9ac1e5b4f
      **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