summaryrefslogtreecommitdiff
path: root/fs/9p
diff options
context:
space:
mode:
authorSimon Derr <simon.derr@bull.net>2012-08-10 15:52:06 +0200
committerEric Van Hensbergen <ericvh@gmail.com>2012-09-06 13:54:55 -0500
commit43def35c1030d91a7414936c7c1b416828b20afb (patch)
tree58e6a3f765f7319c91abf45978c34c60f188b9ee /fs/9p
parentba413ab2ccc49e6aa1ebc3523a75635b5e4a0494 (diff)
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 <simon.derr@bull.net> Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'fs/9p')
0 files changed, 0 insertions, 0 deletions