[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070710160653.GF17368@fieldses.org>
Date: Tue, 10 Jul 2007 12:06:53 -0400
From: "J. Bruce Fields" <bfields@...ldses.org>
To: NeilBrown <neilb@...e.de>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
nfs@...ts.sourceforge.net, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 009 of 20] knfsd: nfsd: use ip-address-based domain in
secinfo case
Could you fold the below into this patch? Without this the server can
oops on attempts to access a filesystem not exported to the request's
source address! Thanks to Olga Kornievskaia for the testing that found
this.
--b.
diff --git a/fs/nfsd/export.c b/fs/nfsd/export.c
index 333e5cf..582b494 100644
--- a/fs/nfsd/export.c
+++ b/fs/nfsd/export.c
@@ -1261,7 +1261,7 @@ gss:
&rqstp->rq_chandle);
if (PTR_ERR(gssexp) == -ENOENT)
return exp;
- if (exp)
+ if (exp && !IS_ERR(exp))
exp_put(exp);
return gssexp;
}
@@ -1291,7 +1291,7 @@ gss:
&rqstp->rq_chandle);
if (PTR_ERR(gssexp) == -ENOENT)
return exp;
- if (exp)
+ if (exp && !IS_ERR(exp))
exp_put(exp);
return gssexp;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists