• Kai Germaschewski's avatar
    kbuild/modules: Check __vermagic for validity · c8b4778d
    Kai Germaschewski authored
    modprobe --force allows to load modules without a matching version
    magic string. This invalidation is done by clearing the SHF_ALLOC
    flag, so check it in the kernel. Also, clear the SHF_ALLOC flag
    unconditionally, since we don't need to store the __vermagic section
    in the kernel, it's only checked once at load time. 
    c8b4778d
module.c 38.2 KB