diff options
author | Kees Cook <keescook@chromium.org> | 2013-09-10 21:39:11 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-09-12 17:20:03 -0400 |
commit | a9677bc024dcaafcf36c1cc4b0706b87be26ee5f (patch) | |
tree | 08a4d696b5cf98229207fa19fc3cea11f70d0a74 /drivers/net/xen-netback | |
parent | b0dd663b60944a3ce86430fa35549fb37968bda0 (diff) | |
download | linux-a9677bc024dcaafcf36c1cc4b0706b87be26ee5f.tar.bz2 |
xen-netback: fix possible format string flaw
This makes sure a format string cannot accidentally leak into the
kthread_run() call.
Signed-off-by: Kees Cook <keescook@chromium.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/xen-netback')
-rw-r--r-- | drivers/net/xen-netback/interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/xen-netback/interface.c b/drivers/net/xen-netback/interface.c index 625c6f49cfba..77fee1d51fb2 100644 --- a/drivers/net/xen-netback/interface.c +++ b/drivers/net/xen-netback/interface.c @@ -406,7 +406,7 @@ int xenvif_connect(struct xenvif *vif, unsigned long tx_ring_ref, init_waitqueue_head(&vif->wq); vif->task = kthread_create(xenvif_kthread, - (void *)vif, vif->dev->name); + (void *)vif, "%s", vif->dev->name); if (IS_ERR(vif->task)) { pr_warn("Could not allocate kthread for %s\n", vif->dev->name); err = PTR_ERR(vif->task); |