On Wed, Feb 17, 2021 at 8:40 AM Ilya Maximets <i.maxim...@ovn.org> wrote: > > On 1/18/21 5:12 PM, Ilya Maximets wrote: > > Since commit 79eadafeb1b4 udpif_stop_threads() doesn't delete datapath > > flows while called from udpif_destroy(). This means that ukeys are > > not cleaned up either. So, hash maps in udpif->ukeys[] might still > > contain valid pointers to ukeys that should be destroyed before > > destroying the hash map itself: > > > > ==2783089==ERROR: LeakSanitizer: detected memory leaks > > > > Direct leak of 1560 byte(s) in 1 object(s) allocated from: > > # 0 0x7f8a57eae667 in __interceptor_malloc (/lib64/libasan.so.6+0xb0667) > > # 1 0x8411f6 in xmalloc lib/util.c:138 > > # 2 0x4d8a52 in ukey_create__ ofproto/ofproto-dpif-upcall.c:1682 > > # 3 0x4d99e3 in ukey_create_from_upcall > > ofproto/ofproto-dpif-upcall.c:1751 > > # 4 0x4d517d in upcall_xlate ofproto/ofproto-dpif-upcall.c:1242 > > # 5 0x4d63d2 in process_upcall ofproto/ofproto-dpif-upcall.c:1414 > > # 6 0x4d29f3 in recv_upcalls ofproto/ofproto-dpif-upcall.c:833 > > # 7 0x4d1ee1 in udpif_upcall_handler ofproto/ofproto-dpif-upcall.c:750 > > # 8 0x795aa2 in ovsthread_wrapper lib/ovs-thread.c:383 > > # 9 0x7f8a57a59431 in start_thread (/lib64/libpthread.so.0+0x9431) > > > > Fixes: 79eadafeb1b4 ("ofproto: Do not delete datapath flows on exit by > > default.") > > Reported-by: Dumitru Ceara <dce...@redhat.com> > > Signed-off-by: Ilya Maximets <i.maxim...@ovn.org> > > ---
LGTM. LeakSanitizer is pretty useful. Acked-by: William Tu <u9012...@gmail.com> _______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev