On 2/17/21 7:42 PM, William Tu wrote:
> On Wed, Feb 17, 2021 at 8:40 AM Ilya Maximets <[email protected]> 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 <[email protected]>
>>> Signed-off-by: Ilya Maximets <[email protected]>
>>> ---
> 
> LGTM. LeakSanitizer is pretty useful.
> Acked-by: William Tu <[email protected]>
> 

Thanks!

Applied to master and backported down to 2.14.

Best regards, Ilya Maximets.
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to