[ovs-git] [openvswitch/ovs] 7f4a5d: datapath: Fix kernel panic for ovs reassemble.

GitHub noreply at github.com
Fri Jul 21 18:19:41 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 7f4a5d688df9e38cc934f0fa3543c776115c3511
      https://github.com/openvswitch/ovs/commit/7f4a5d688df9e38cc934f0fa3543c776115c3511
  Author: wangzhike <wangzhike at jd.com>
  Date:   2017-07-21 (Fri, 21 Jul 2017)

  Changed paths:
    M datapath/datapath.c
    M datapath/datapath.h
    M datapath/linux/compat/include/net/inet_frag.h
    M datapath/linux/compat/include/net/ip.h
    M datapath/linux/compat/include/net/netfilter/ipv6/nf_defrag_ipv6.h
    M datapath/linux/compat/inet_fragment.c
    M datapath/linux/compat/ip_fragment.c
    M datapath/linux/compat/nf_conntrack_reasm.c

  Log Message:
  -----------
  datapath: Fix kernel panic for ovs reassemble.

Ovs and kernel stack would add frag_queue to same netns_frags list.
As result, ovs and kernel may access the fraq_queue without correct
lock. Also the struct ipq may be different on kernel(older than 4.3),
which leads to invalid pointer access.

The fix creates specific netns_frags for ovs.

Signed-off-by: wangzhike <wangzhike at jd.com>
Signed-off-by: Joe Stringer <joe at ovn.org>




More information about the git mailing list