]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers: avoid parsing names as kthread_run() format strings
authorKees Cook <keescook@chromium.org>
Wed, 19 Jun 2013 00:07:07 +0000 (10:07 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:26:57 +0000 (17:26 +1000)
commit0c258f6fb088b921f6017a3a4f7833d993076e72
tree60aa875d0dca5064356595d919690e0da5ce79d7
parent50ba921d89a871dde047cbd2350dc957c7a597c5
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>
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