From: Seif Mazareeb Date: Fri, 18 Oct 2013 03:33:21 +0000 (-0700) Subject: net: fix cipso packet validation when !NETLABEL X-Git-Tag: v3.12-rc7~20^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2e5ddcc0d12f9c4c7b254358ad245c9dddce13b;p=pandora-kernel.git net: fix cipso packet validation when !NETLABEL When CONFIG_NETLABEL is disabled, the cipso_v4_validate() function could loop forever in the main loop if opt[opt_iter +1] == 0, this will causing a kernel crash in an SMP system, since the CPU executing this function will stall /not respond to IPIs. This problem can be reproduced by running the IP Stack Integrity Checker (http://isic.sourceforge.net) using the following command on a Linux machine connected to DUT: "icmpsic -s rand -d -r 123456" wait (1-2 min) Signed-off-by: Seif Mazareeb Acked-by: Paul Moore Signed-off-by: David S. Miller --- Reading git-diff-tree failed