net: fix cipso packet validation when !NETLABEL
authorSeif Mazareeb <seif@marvell.com>
Fri, 18 Oct 2013 03:33:21 +0000 (20:33 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Oct 2013 22:55:42 +0000 (18:55 -0400)
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 <DUT IP address> -r 123456"
wait (1-2 min)

Signed-off-by: Seif Mazareeb <seif@marvell.com>
Acked-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found