Red Hat Bugzilla – Bug 3766
insmod core dumps on "bad" driver object
Last modified: 2008-05-01 11:37:50 EDT
If one happens to create a driver object which
has accidentally left out the kernel_version definition
(note: at ld -r it gets declared as an external in
then insmod core dumps when it tries to find out the
kernel version for which the driver was compiled.
It should check if the kernel_version symbol is defined
as an external or not. If it is then complain and
do nothing further.
This issue has been forwarded to a developer for further action.
insmod has no way of testing is a module is correct or not - it has to
walk blindly in the object structure and read whatever is there.