From: Kees Cook Date: Wed, 11 Sep 2013 04:39:11 +0000 (-0700) Subject: xen-netback: fix possible format string flaw X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a9677bc024dcaafcf36c1cc4b0706b87be26ee5f;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Acked-by: Ian Campbell Signed-off-by: David S. Miller --- 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);