• Florin Malita's avatar
    [PATCH] fix Module taint flags listing in Oops/panic · fa3ba2e8
    Florin Malita authored
    Module taint flags listing in Oops/panic has a couple of issues:
    
    * taint_flags() doesn't null-terminate the buffer after printing the flags
    
    * per-module taints are only set if the kernel is not already tainted
      (with that particular flag) => only the first offending module gets its
      taint info correctly updated
    
    Some additional changes:
    
    * 'license_gplok' is no longer needed - equivalent to !(taints &
      TAINT_PROPRIETARY_MODULE) - so we can drop it from struct module *
      exporting module taint info via /proc/module:
    
    pwc 88576 0 - Live 0xf8c32000
    evilmod 6784 1 pwc, Live 0xf8bbf000 (PF)
    Signed-off-by: default avatarFlorin Malita <fmalita@gmail.com>
    Cc: "Randy.Dunlap" <rdunlap@xenotime.net>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    fa3ba2e8
module.c 59.9 KB