commit | 6b77f188969d72254f6bda291f4f2d9fd42f5ecc | [log] [tgz] |
---|---|---|
author | Mian Yousaf Kaukab <yousaf.kaukab@suse.com> | Tue Nov 08 17:45:50 2016 +0100 |
committer | Lucas De Marchi <lucas.demarchi@intel.com> | Tue Nov 08 22:38:34 2016 -0200 |
tree | e0791bc21c4b8d930af1da3e27d0f544ce3ca685 | |
parent | 965886b55ab2f80fc242c1bc7e92423c87424718 [diff] |
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>
This is a mirror only. Please see README file for more information.