• Petr Vandrovec's avatar
    [PATCH] Weak symbols in modules and versioned symbols · 5e2f1b20
    Petr Vandrovec authored
    Weak symbol may be unavailable in kernel, but if it is available, its
    signature should be same as was at the build time.  If we do not attach
    signatures to weak symbols, kernel is tainted when such module is loaded.
    
    vmmon: no version for "sys_ioctl" found: kernel tainted.
    
    I also believe that it is safer to add & check signatures here - module
    wants either sys_ioctl with right signature, or no sys_ioctl at all, not
    sys_ioctl with different signature (which signals that there is some
    misbuild occuring).
    Signed-off-by: default avatarPetr Vandrovec <vandrove@vc.cvut.cz>
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (forwarded)
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    5e2f1b20
modpost.c 17.2 KB