kmod/testsuite/rootfs-pristine/test-depmod
Mian Yousaf Kaukab 6b77f18896 depmod: ignore related modules in depmod_report_cycles
Only print actual cyclic dependencies. Print count of all the modules
in cyclic dependency at the end of the function so that dependent
modules which are not in cyclic chain can be ignored.

Printing dependent modules which are not in cyclic chain causes buffer
overflow as m->modnamesz is not included in buffer size calculations
(loop == m is never true). This buffer overflow causes kmod to crash.

Update depmod test to reflect the change as well.

Reported-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Mian Yousaf Kaukab <yousaf.kaukab@suse.com>
2016-11-08 22:38:34 -02:00
..
detect-loop depmod: ignore related modules in depmod_report_cycles 2016-11-08 22:38:34 -02:00
modules-order-compressed/lib/modules/4.4.4 testsuite: port modules-order-compressed to module-playground 2015-02-19 19:50:16 -02:00
search-order-same-prefix testsuite: use mod-simple.ko for search-order-same-prefix test 2015-02-03 01:09:22 -02:00
search-order-simple testsuite: beef up module-playground in the build system 2015-02-03 01:09:17 -02:00