drivers: avoid parsing names as kthread_run() format strings
authorKees Cook <keescook@chromium.org>
Wed, 3 Jul 2013 22:04:58 +0000 (15:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Jul 2013 23:07:41 +0000 (16:07 -0700)
commitf170168b9a0b61ea1e647b082b38f605f1d3de3e
tree4381c129ee9af108e368e6c8255df53cbe233257
parentd8537548c924db3c44afde7646b6e220c7beb79d
drivers: avoid parsing names as kthread_run() format strings

Calling kthread_run with a single name parameter causes it to be handled
as a format string. Many callers are passing potentially dynamic string
content, so use "%s" in those cases to avoid any potential accidents.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
19 files changed:
drivers/block/aoe/aoecmd.c
drivers/block/mtip32xx/mtip32xx.c
drivers/block/xen-blkback/xenbus.c
drivers/hwmon/adt7470.c
drivers/media/i2c/tvaudio.c
drivers/media/pci/ivtv/ivtv-driver.c
drivers/media/platform/vivi.c
drivers/mtd/ubi/build.c
drivers/net/wireless/airo.c
drivers/scsi/aacraid/commctrl.c
drivers/scsi/aacraid/commsup.c
drivers/spi/spi.c
drivers/staging/rtl8712/os_intfs.c
drivers/usb/atm/usbatm.c
fs/lockd/svc.c
fs/nfs/callback.c
fs/nfs/nfs4state.c
kernel/rcutree.c
net/sunrpc/svc.c