Regarding netns testcases
Hi,
I am facing crash while executing below netns testcases on ARM:
netns_crtchildnetns_two_children_nsnetns_crtchild_delchildnetns_par_chld_ipv6netns_par_chld_ftpnetns_netlink
After analysis of crash , it is found that all are crashing due to a common cause.
-----------------------------------------------------------
Backtrace:
do_unshare_tests() --> crashes while call NULL function pointer do_clone_unshare_test() -- > pass NULL fuction pointer check_netns() --> passes function ptr as NULLsetup()main()
------------------------------------------------------------
Culprit function:- (netns_helper.h)
pid = do_clone_unshare_test(T_UNSHARE, CLONE_NEWNET | CLONE_NEWNS, NULL,
NULL);
Third argument passing to this function is NULL, which is not appropriate here, since it is derefrence by do_unshare_tests(). Kindly check this issue.
------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Hi!
Quoted 20 lines
I am facing crash while executing below netns testcases on ARM:
netns_crtchildnetns_two_children_nsnetns_crtchild_delchildnetns_par_chld_ipv6netns_par_chld_ftpnetns_netlinkAfter analysis of crash , it is found that all are crashing due to a common cause.
-----------------------------------------------------------Backtrace:
do_unshare_tests()--> crashes while call NULL function pointerdo_clone_unshare_test()-- > pass NULL fuction pointercheck_netns()--> passes function ptr as NULLsetup()main()
------------------------------------------------------------
Culprit function:- (netns_helper.h)
pid = do_clone_unshare_test(T_UNSHARE,CLONE_NEWNET|CLONE_NEWNS, NULL,
Quoted 3 lines
NULL);Third argument passing to this function is NULL, which is not appropriate here, since it is derefrence by
do_unshare_tests().
This is quite cosmetic issue. I've checked the code and the child here segfaults after it reports status to the parent.
So if you send an patch that fixes the issue, I will apply it but since these testcases will be soon rewritten from scratch I would not bother.
Signature · 8 lines
Cyril Hrubis [email protected] ------------------------------------------------------------------------------ _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list