Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a9677bc0 authored by Kees Cook's avatar Kees Cook Committed by David S. Miller
Browse files

xen-netback: fix possible format string flaw



This makes sure a format string cannot accidentally leak into the
kthread_run() call.

Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Acked-by: default avatarIan Campbell <ian.campbell@citrix.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b0dd663b
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -406,7 +406,7 @@ int xenvif_connect(struct xenvif *vif, unsigned long tx_ring_ref,


	init_waitqueue_head(&vif->wq);
	init_waitqueue_head(&vif->wq);
	vif->task = kthread_create(xenvif_kthread,
	vif->task = kthread_create(xenvif_kthread,
				   (void *)vif, vif->dev->name);
				   (void *)vif, "%s", vif->dev->name);
	if (IS_ERR(vif->task)) {
	if (IS_ERR(vif->task)) {
		pr_warn("Could not allocate kthread for %s\n", vif->dev->name);
		pr_warn("Could not allocate kthread for %s\n", vif->dev->name);
		err = PTR_ERR(vif->task);
		err = PTR_ERR(vif->task);