diff options
author | Simon Derr <simon.derr@bull.net> | 2012-08-10 17:52:06 +0400 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@gmail.com> | 2012-09-06 22:54:55 +0400 |
commit | 43def35c1030d91a7414936c7c1b416828b20afb (patch) | |
tree | 58e6a3f765f7319c91abf45978c34c60f188b9ee /fs/9p | |
parent | ba413ab2ccc49e6aa1ebc3523a75635b5e4a0494 (diff) | |
download | linux-43def35c1030d91a7414936c7c1b416828b20afb.tar.xz |
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