Commit f64652e1 authored by Neil Brown's avatar Neil Brown Committed by Linus Torvalds

[PATCH] knfsd: Avoid opps when NFSD decodes bad filehandle

If an NFSv3 request claims an enourmous filehandle, we can believe
it and oops.  The test should be unsigned...
parent b10bf295
......@@ -58,7 +58,7 @@ decode_time3(u32 *p, struct timespec *time)
static inline u32 *
decode_fh(u32 *p, struct svc_fh *fhp)
{
int size;
unsigned int size;
fh_init(fhp, NFS3_FHSIZE);
size = ntohl(*p++);
if (size > NFS3_FHSIZE)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment