]> git.proxmox.com Git - ovs.git/commit
ipf: bail out when ipf state is COMPLETED
authorLi RongQing <lirongqing@baidu.com>
Thu, 14 Nov 2019 09:18:18 +0000 (17:18 +0800)
committerBen Pfaff <blp@ovn.org>
Fri, 22 Nov 2019 00:45:54 +0000 (16:45 -0800)
commit0c3057d595732cdd3bed7cf2ffb735b53199d780
tree44afb966c28ad58ae99f8a7a21a0784baff94b59
parent9bfb280a1705b4daa51daf9c3a66f3a67a9f0f7d
ipf: bail out when ipf state is COMPLETED

it is easy to crash ovs when a packet with same id
hits a list that already reassembled completedly
but have not been sent out yet, and this packet is
not duplicate with this hit ipf list due to bigger
offset

    1  0x00007f9fef0ae2d9 in __GI_abort () at abort.c:89
    2  0x0000000000464042 in ipf_list_state_transition at lib/ipf.c:545

Fixes: 4ea96698f667 ("Userspace datapath: Add fragmentation handling.")
Co-authored-by: Wang Li <wangli39@baidu.com>
Signed-off-by: Wang Li <wangli39@baidu.com>
Signed-off-by: Li RongQing <lirongqing@baidu.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
lib/ipf.c