diff options
author | Simon Derr <simon.derr@bull.net> | 2012-08-10 15:52:06 +0200 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@gmail.com> | 2012-09-06 13:54:55 -0500 |
commit | 43def35c1030d91a7414936c7c1b416828b20afb (patch) | |
tree | 58e6a3f765f7319c91abf45978c34c60f188b9ee /fs/freevxfs/vxfs.h | |
parent | ba413ab2ccc49e6aa1ebc3523a75635b5e4a0494 (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/freevxfs/vxfs.h')
0 files changed, 0 insertions, 0 deletions