• Kenneth Lee's avatar
    [PATCH] bug fix in kernel/kmod.c · e4b69aa2
    Kenneth Lee authored
    I think there is a bug in kmod.c: In __call_usermodehelper(), when
    kernel_thread(wait_for_helper, ...) return success, since wait_for_helper()
    might call complete() at any time, the sub_info should not be used any
    more.
    
    Normally wait_for_helper() take a long time to finish, you may not get
    problem for most of the case.  But if you remove /sbin/modprobe, it may
    become easier for you to get a oop in khelper.
    
    Cc: Matt Helsley <matthltc@us.ibm.com>
    Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
    Cc: Arnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    e4b69aa2
kmod.c 7.55 KB