xen-netback: fix possible format string flaw
Subsystems (3)
PATCH 1/1 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 <[email protected]>
--- drivers/net/xen-netback/interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/xen-netback/interface.c +1 -1
@@ -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);
Signature · 6 lines
1.7.9.5 -- Kees Cook Chrome OS Security
Quoted 4 lines · Kees Cook
This makes sure a format string cannot accidentally leak into the
kthread_run()call.Signed-off-by Kees Cook <[email protected]>
Acked-by Ian Campbell <[email protected]>
Thanks.
Ian.
David Miller
maintainerFrom: Ian Campbell <[email protected]>
Date: Wed, 11 Sep 2013 08:18:13 +0100
Quoted 7 lines · Kees Cook
Quoted 4 lines
This makes sure a format string cannot accidentally leak into the
kthread_run()call.Signed-off-by Kees Cook <[email protected]>Acked-by Ian Campbell <[email protected]>
Applied and queued up for -stable, thanks.
David Miller
maintainerFrom: Ian Campbell <[email protected]>
Date: Wed, 11 Sep 2013 08:18:13 +0100
Quoted 7 lines · Kees Cook
Quoted 4 lines
This makes sure a format string cannot accidentally leak into the
kthread_run()call.Signed-off-by Kees Cook <[email protected]>Acked-by Ian Campbell <[email protected]>
Applied and queued up for -stable, thanks.
Quoted 4 lines · Kees Cook
This makes sure a format string cannot accidentally leak into the
kthread_run()call.Signed-off-by Kees Cook <[email protected]>
Acked-by Ian Campbell <[email protected]>
Thanks.
Ian.