From: Nelson Elhage Date: Wed, 3 Nov 2010 16:35:41 +0000 (+0000) Subject: inet_diag: Make sure we actually run the same bytecode we audited. X-Git-Tag: v2.6.37-rc2~85^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22e76c849d505d87c5ecf3d3e6742a65f0ff4860;p=pandora-kernel.git inet_diag: Make sure we actually run the same bytecode we audited. We were using nlmsg_find_attr() to look up the bytecode by attribute when auditing, but then just using the first attribute when actually running bytecode. So, if we received a message with two attribute elements, where only the second had type INET_DIAG_REQ_BYTECODE, we would validate and run different bytecode strings. Fix this by consistently using nlmsg_find_attr everywhere. Signed-off-by: Nelson Elhage Signed-off-by: Thomas Graf Signed-off-by: David S. Miller --- Reading git-diff-tree failed