login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
August
»
15
Re: [PATCH] Fix allocation sizes of knfsd raparm hash
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
J. Bruce Fields <bfields@...>
To: Takashi Iwai <tiwai@...>
Cc: Stephen Rothwell <sfr@...>, <linux-next@...>, LKML <linux-kernel@...>, Jeff Layton <jlayton@...>
Subject:
Re: [PATCH] Fix allocation sizes of knfsd raparm hash
Date: Friday, August 15, 2008 - 3:02 pm
On Fri, Aug 15, 2008 at 03:34:39PM +0200, Takashi Iwai wrote:
quoted text
> The raparm was allocated in a wrong size in the commit > > ca80290ebda9009aedc4bd93ede5d397cb1853dc > nfsd: permit unauthenticated stat of export root > > and thus it resulted in memory corruption, eventually Oopsing. > This patch fixes the allocation size.
Whoops, my fault, now fixed; thanks! (Out of curiosity--how did you find this?) --b.
quoted text
> > Signed-off-by: Takashi Iwai <tiwai@suse.de> > > --- > diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c > index bfa5453..30d606f 100644 > --- a/fs/nfsd/vfs.c > +++ b/fs/nfsd/vfs.c > @@ -2093,7 +2093,7 @@ nfsd_racache_init(int cache_size) > > raparm = &raparm_hash[i].pb_head; > for (j = 0; j < nperbucket; j++) { > - *raparm = kzalloc(sizeof(*raparm), GFP_KERNEL); > + *raparm = kzalloc(sizeof(**raparm), GFP_KERNEL); > if (!*raparm) > goto out_nomem; > raparm = &(*raparm)->p_next;
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [thread] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
Re: [PATCH] Fix allocation sizes of knfsd raparm hash
, J. Bruce Fields
, (Fri Aug 15, 3:02 pm)
Re: [PATCH] Fix allocation sizes of knfsd raparm hash
, Takashi Iwai
, (Sat Aug 16, 4:45 am)
Re: [PATCH] Fix allocation sizes of knfsd raparm hash
, J. Bruce Fields
, (Mon Aug 18, 10:59 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Benjamin Herrenschmidt
Re: [PATCH] Remove process freezer from suspend to RAM pathway
Greg KH
[patch 00/73] 2.6.23-stable review
Greg Kroah-Hartman
[PATCH 005/196] Chinese: add translation of SubmittingDrivers
git
:
linux-netdev
:
Arjan van de Ven
Re: [GIT]: Networking
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Frans Pop
svc: failed to register lockdv1 RPC service (errno 97).
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
3 users
and
646 guests
online.
Online users
maheshdm
strcmp
jamessibley12
Syndicate