login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
9
Re: [patch 08/12] NLM: Fix a circular lock dependency in lockd
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Greg KH <gregkh@...>
To: Trond Myklebust <Trond.Myklebust@...>
Cc: Roel Kluin <12o3l@...>, <linux-kernel@...>, <stable@...>, Justin Forbes <jmforbes@...>, Zwane Mwaikambo <zwane@...>, Theodore Ts'o <tytso@...>, Randy Dunlap <rdunlap@...>, Dave Jones <davej@...>, Chuck Wolber <chuckw@...>, Chris Wedgwood <reviews@...>, Michael Krufky <mkrufky@...>, Chuck Ebbert <cebbert@...>, Domenico Andreoli <cavokz@...>, <torvalds@...>, <akpm@...>, <alan@...>
Subject:
Re: [patch 08/12] NLM: Fix a circular lock dependency in lockd
Date: Tuesday, October 9, 2007 - 11:13 am
On Tue, Oct 09, 2007 at 11:00:28AM -0400, Trond Myklebust wrote:
quoted text
> > On Mon, 2007-10-08 at 22:01 +0200, Roel Kluin wrote: > > Greg KH wrote: > > > > @@ -477,10 +479,15 @@ nlmsvc_testlock(struct svc_rqst *rqstp, > > > > if (block == NULL) { > > struct file_lock *conf = kzalloc(sizeof(*conf), GFP_KERNEL); > > + struct nlm_host *host; > > > > if (conf == NULL) > > return nlm_granted; > > - block = nlmsvc_create_block(rqstp, file, lock, cookie); > > + /* Create host handle for callback */ > > + host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len); > > + if (host == NULL) > > + return nlm_lck_denied_nolocks; > > + block = nlmsvc_create_block(rqstp, host, file, lock, cookie); > > if (block == NULL) { > > kfree(conf); > > return nlm_granted; > > > > To be frankly I don't know what this is about, but shouldn't conf be freed if host == NULL? > > Thanks for spotting this! > > Greg, should I resend this patch, or would you prefer an incremental > fix?
An incremental one would be best. thanks, greg k-h -
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:
[patch 00/12] 2.6.22.10 -stable review
, Greg KH
, (Mon Oct 8, 2:05 pm)
Re: [patch 00/12] 2.6.22.10 -stable review
, Greg KH
, (Mon Oct 8, 2:09 pm)
[patch 12/12] i386: Use global flag to disable broken local ...
, Greg KH
, (Mon Oct 8, 2:06 pm)
[patch 11/12] SELinux: clear parent death signal on SID tran...
, Greg KH
, (Mon Oct 8, 2:06 pm)
[patch 10/12] Fix timer_stats printout of events/sec
, Greg KH
, (Mon Oct 8, 2:06 pm)
[patch 09/12] Fix SMP poweroff hangs
, Greg KH
, (Mon Oct 8, 2:06 pm)
Re: [patch 09/12] Fix SMP poweroff hangs
, Olof Johansson
, (Tue Oct 9, 11:17 am)
Re: [stable] [patch 09/12] Fix SMP poweroff hangs
, Greg KH
, (Tue Oct 9, 6:20 pm)
Re: [stable] [patch 09/12] Fix SMP poweroff hangs
, Thomas Gleixner
, (Tue Oct 9, 7:21 pm)
Re: [stable] [patch 09/12] Fix SMP poweroff hangs
, Greg KH
, (Tue Oct 9, 7:28 pm)
Re: [stable] [patch 09/12] Fix SMP poweroff hangs
, Linus Torvalds
, (Tue Oct 9, 7:27 pm)
Re: [stable] [patch 09/12] Fix SMP poweroff hangs
, Paul Mackerras
, (Wed Oct 10, 8:24 pm)
[PATCH] powerpc: don't enable cpu hotplug on mpic-based pser...
, Olof Johansson
, (Tue Oct 9, 8:08 pm)
Re: [PATCH] powerpc: don't enable cpu hotplug on mpic-based ...
, Stephen Rothwell
, (Tue Oct 9, 8:18 pm)
[PATCH v2] powerpc: don't enable cpu hotplug on mpic-based p...
, Olof Johansson
, (Tue Oct 9, 8:38 pm)
Re: [PATCH v2] powerpc: don't enable cpu hotplug on mpic-bas...
, Paul Mackerras
, (Thu Oct 11, 1:52 am)
Re: [PATCH v2] powerpc: don't enable cpu hotplug on mpic-bas...
, Olof Johansson
, (Thu Oct 11, 1:59 am)
Re: [PATCH v2] powerpc: don't enable cpu hotplug on mpic-bas...
, Milton Miller
, (Wed Oct 10, 6:08 am)
Re: [PATCH v2] powerpc: don't enable cpu hotplug on mpic-bas...
, Olof Johansson
, (Wed Oct 10, 12:43 pm)
Re: [stable] [patch 09/12] Fix SMP poweroff hangs
, Olof Johansson
, (Tue Oct 9, 8:03 pm)
Re: [stable] [patch 09/12] Fix SMP poweroff hangs
, Thomas Gleixner
, (Tue Oct 9, 7:35 pm)
Re: [stable] [patch 09/12] Fix SMP poweroff hangs
, Linus Torvalds
, (Wed Oct 10, 1:29 am)
[patch 08/12] NLM: Fix a circular lock dependency in lockd
, Greg KH
, (Mon Oct 8, 2:06 pm)
Re: [patch 08/12] NLM: Fix a circular lock dependency in lockd
, Roel Kluin
, (Mon Oct 8, 4:01 pm)
Re: [patch 08/12] NLM: Fix a circular lock dependency in lockd
, Trond Myklebust
, (Tue Oct 9, 11:00 am)
Re: [patch 08/12] NLM: Fix a circular lock dependency in lockd
, Greg KH
, (Tue Oct 9, 11:13 am)
Re: [patch 08/12] NLM: Fix a circular lock dependency in lockd
, Trond Myklebust
, (Tue Oct 9, 11:27 am)
Re: [stable] [patch 08/12] NLM: Fix a circular lock dependen...
, Greg KH
, (Tue Oct 9, 4:41 pm)
[patch 07/12] i2c-algo-bit: Read block data bugfix
, Greg KH
, (Mon Oct 8, 2:06 pm)
[patch 06/12] Fix ppp_mppe kernel stack usage.
, Greg KH
, (Mon Oct 8, 2:06 pm)
[patch 05/12] libata: update drive blacklists
, Greg KH
, (Mon Oct 8, 2:06 pm)
[patch 04/12] sky2: fix transmit state on resume
, Greg KH
, (Mon Oct 8, 2:06 pm)
[patch 03/12] sky2: fix VLAN receive processing
, Greg KH
, (Mon Oct 8, 2:06 pm)
[patch 02/12] sky2: reduce impact of watchdog timer
, Greg KH
, (Mon Oct 8, 2:06 pm)
[patch 01/12] scsi_transport_spi: fix domain validation fail...
, Greg KH
, (Mon Oct 8, 2:06 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Eric W. Biederman
[PATCH 02/10] sysfs: Support for preventing unmounts.
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Bart Van Assche
Integration of SCST in the mainstream Linux kernel
david
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
git
:
linux-netdev
:
Antonio Almeida
HTB accuracy for high speed
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 26/37] dccp: Integration of dynamic feature activation - part 1 (socket set...
David Miller
[GIT]: Networking
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
6 users
and
902 guests
online.
Online users
zeekec
Nelson
mercre40
ionut
Jeremy
TapestryPassion
Syndicate