]> git.proxmox.com Git - mirror_ovs.git/commit
ofproto-dpif-xlate: Fix segmentation fault caused by tun_table
authorYi-Hung Wei <yihung.wei@gmail.com>
Thu, 3 May 2018 16:49:50 +0000 (09:49 -0700)
committerBen Pfaff <blp@ovn.org>
Fri, 4 May 2018 05:37:34 +0000 (22:37 -0700)
commit254878c18874f6cb43a7601427d0cc30834ab64a
tree12005607449643ab117cb89132afe8db27822a61
parentf624bf23b62a991070a3e452776d40486d6e240e
ofproto-dpif-xlate: Fix segmentation fault caused by tun_table

Currently, the revalidator thread may hit segmentation fault when geneve
TLV map is updated.  It is because we may store the old TLV map (struct
tun_table) in the frozen state for recirculation, and we may access the
already freed old tun_table in xlate_actions().

This patch update the logic of getting tun_table so that we will use
the latest tun_table instead of the frozen one.

VMWare-BZ: #2106987
Signed-off-by: Yi-Hung Wei <yihung.wei@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
ofproto/ofproto-dpif-xlate.c