Skip to contentSkip to conversation

Regarding netns testcases

LTP Manjeet Pawar 2 participants 2 messages Jul 30, 2015

lore
Share & tools
lore
#0 lore raw

Hi,
I am facing crash while executing below netns testcases on ARM:

netns_crtchild
netns_two_children_ns
netns_crtchild_delchild
netns_par_chld_ipv6
netns_par_chld_ftp
netns_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 NULL
setup()
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

#1 lore raw

Hi!

Quoted 20 lines

I am facing crash while executing below netns testcases on ARM:

netns_crtchild
netns_two_children_ns
netns_crtchild_delchild
netns_par_chld_ipv6
netns_par_chld_ftp
netns_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 NULL
setup()
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