From: Nicolas de Pesloüan Date: Thu, 15 Jul 2010 01:24:54 +0000 (-0700) Subject: bonding: fix a buffer overflow in bonding_show_queue_id. X-Git-Tag: v2.6.36-rc1~571^2~223 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79236680bde29913dc6bfaf9165973b74223d5f7;p=pandora-kernel.git bonding: fix a buffer overflow in bonding_show_queue_id. The test for buffer overflow ensures we have room for 6 more bytes. sprintf, called with %s:%d, slave->dev->name, slave->queue_id may yield far more than 6 bytes. The correct test is res > (PAGE_SIZE - IFNAMSIZ - 6) . Signed-off-by: Nicolas de Pesloüan Signed-off-by: David S. Miller --- Reading git-diff-tree failed