ehlo
0001-dyndns_test-Use-right-socket-length-of-for-IPv4-addr.patch
not very important patch.
0002-responder-get-domains-tests-fix-checking-of-leaks.patch
0003-test_dyndns-Use-different-talloc-context-in-wrapped-.patch
previous two patches are necessary for 4th patch
0004-TESTS-leak_check-functions-shouldn-t-be-called-with-.patch
Wit this patch it will be possible to cach mem leak in 6th patch
0005-dyndns-Fix-talloc-hierarchy-of-struct-sss_iface_addr.patch
this simpepatch fix use after free problem in ticket #2405
0006-test_dyndns-sss_iface_addr_list_get-can-return-more-.patch
test for previous patch. You can try to revert 5th patch
and you will see memory leak (not all data were moved to appropriate
talloc context)
Leak report for ../sssd/src/tests/cmocka/test_dyndns.c:247:
full talloc report on 'struct dyndns_test_ctx' (total 80 bytes in 3 blocks)
struct sss_iface_addr contains 40 bytes in 2 blocks (ref 0) 0x1469c20
../sssd/src/providers/dp_dyndns.c:210 contains 16 bytes in 1 blocks (ref 0)
0x1469990
check_leaks_pop(dyndns_test_ctx) == true
../sssd/src/tests/cmocka/test_dyndns.c:247: error: Failure!
[ FAILED ] dyndns_test_get_multi_ifaddr
0007-SDAP-free-subrequest-in-sdap_dyndns_update_addrs_don.patch
subrequest can be freed after fixing talloc hierarchy in 5th patch.
How to test.
two IP addresses shoudl be used in ptr update. You can use valgrind to see use
after free error.
The other option is to export env variable TALLOC_FREE_FILL=255 and sssd_be
will crash in function resolv_get_string_ptr_address
LS