Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upcall: Unregister dpif cbs in udpif_destroy().
During udpif_create(), we register callbacks for handling upcalls and purging the datapath; however, in the corresponding udpif_destroy() we never did this. This could potentially lead to dereference of uninitialized memory in the userspace datapath if the main thread destroys the udpif then executes an OpenFlow packet-out. Fixes: e4e74c3 ("dpif-netdev: Purge all ukeys when reconfigure pmd.") Fixes: 623540e ("dpif-netdev: Streamline miss handling.") Reported-by: William Tu <[email protected]> Signed-off-by: Joe Stringer <[email protected]> Acked-by: Ben Pfaff <[email protected]>
- Loading branch information