From: Simon Derr Date: Fri, 10 Aug 2012 13:52:06 +0000 (+0200) Subject: net/9p: Check errno validity X-Git-Tag: v3.7-rc1~49^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43def35c1030d91a7414936c7c1b416828b20afb;p=pandora-kernel.git net/9p: Check errno validity While working on a modified server I had the Linux clients crash a few times. This lead me to find this: Some error codes are directly extracted from the server replies. A malformed server reply could contain an invalid error code, with a very large value. If this value is then passed to ERR_PTR() it will not be properly detected as an error code by IS_ERR() and as a result the kernel will dereference an invalid pointer. This patch tries to avoid this. Signed-off-by: Simon Derr Signed-off-by: Eric Van Hensbergen --- Reading git-diff-tree failed