Description of problem: modprobe -f doesn't ignore version magic Version-Release number of selected component (if applicable): kmod-23-1.fc25.x86_64 How reproducible: Always Steps to Reproduce: 1. have running kernel with version magic '4.10.10-200.fc25.x86_64 SMP mod_unload ' 2. recompile kernel without explicit KERNELRELEASE to have version magic '4.10.12 SMP mod_unload ' 3. setenforce 0 # due to bug 1427896 3. modprobe it913x 4. dmesg | tail -1 5. modprobe -f it913x Actual results: modprobe: ERROR: could not insert 'it913x': Exec format error [39896.356652] it913x: version magic '4.10.12 SMP mod_unload ' should be '4.10.10-200.fc25.x86_64 SMP mod_unload ' modprobe: ERROR: could not insert 'it913x': Exec format error Expected results: No error for the 5. (i.e. modprobe -f) Additional info: It works OK if recompiled with KERNELRELEASE=4.10.10-200.fc25.x86_64
# grep CONFIG_MODULE_FORCE_LOAD /boot/config-4.10.11-200.fc25.x86_64 # CONFIG_MODULE_FORCE_LOAD is not set It's a kernel config issue.
Reassigning. I'll leave it for the kernel team to comment on whether they feel allowing forced modprobe is safe or not.
It is a feature, not an issue. The kernel team does not support forced modules.