kmod/testsuite/rootfs-pristine
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
..
test-blacklist/etc/modprobe.d testsuite: rename rootfs dir 2012-06-05 00:54:47 -03:00
test-dependencies/lib/modules/4.0.20-kmod testsuite: port test-dependencies to module-playground 2015-02-03 01:12:13 -02:00
test-depmod depmod: ignore related modules in depmod_report_cycles 2016-11-08 22:38:34 -02:00
test-initstate/lib/modules/4.4.4 testsuite: test builtin state 2015-02-28 14:18:54 -03:00
test-loaded testsuite: rename rootfs dir 2012-06-05 00:54:47 -03:00
test-modinfo testsuite: port signature-check modules to module-playground 2015-02-21 15:51:42 -02:00
test-modprobe testsuite: add test for modprobe -R <builtin-module> 2015-02-28 14:18:54 -03:00
test-new-module testsuite: rename rootfs dir 2012-06-05 00:54:47 -03:00
test-rootfs testsuite: rename rootfs dir 2012-06-05 00:54:47 -03:00
test-tools tools: add basic versions of insert and remove 2015-03-07 12:09:51 -03:00
test-util testsuite: add more input cases to freadline_wrapped test 2015-01-21 10:18:07 -02:00
test-util2 testsuite: improve coverage of shared/util.h 2015-01-14 17:26:36 -02:00