login
Login
/
Register
Search
Search this site:
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
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Greg KH
Subject:
Re: [patch 08/12] NLM: Fix a circular lock dependency in lockd
Date: Tuesday, October 9, 2007 - 8: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, 11:05 am)
[patch 01/12] scsi_transport_spi: fix domain validation fa ...
, Greg KH
, (Mon Oct 8, 11:06 am)
[patch 02/12] sky2: reduce impact of watchdog timer
, Greg KH
, (Mon Oct 8, 11:06 am)
[patch 03/12] sky2: fix VLAN receive processing
, Greg KH
, (Mon Oct 8, 11:06 am)
[patch 04/12] sky2: fix transmit state on resume
, Greg KH
, (Mon Oct 8, 11:06 am)
[patch 05/12] libata: update drive blacklists
, Greg KH
, (Mon Oct 8, 11:06 am)
[patch 06/12] Fix ppp_mppe kernel stack usage.
, Greg KH
, (Mon Oct 8, 11:06 am)
[patch 07/12] i2c-algo-bit: Read block data bugfix
, Greg KH
, (Mon Oct 8, 11:06 am)
[patch 08/12] NLM: Fix a circular lock dependency in lockd
, Greg KH
, (Mon Oct 8, 11:06 am)
[patch 09/12] Fix SMP poweroff hangs
, Greg KH
, (Mon Oct 8, 11:06 am)
[patch 10/12] Fix timer_stats printout of events/sec
, Greg KH
, (Mon Oct 8, 11:06 am)
[patch 11/12] SELinux: clear parent death signal on SID tr ...
, Greg KH
, (Mon Oct 8, 11:06 am)
[patch 12/12] i386: Use global flag to disable broken loca ...
, Greg KH
, (Mon Oct 8, 11:06 am)
Re: [patch 00/12] 2.6.22.10 -stable review
, Greg KH
, (Mon Oct 8, 11:09 am)
Re: [patch 08/12] NLM: Fix a circular lock dependency in lockd
, Roel Kluin
, (Mon Oct 8, 1:01 pm)
Re: [patch 08/12] NLM: Fix a circular lock dependency in lockd
, Trond Myklebust
, (Tue Oct 9, 8:00 am)
Re: [patch 08/12] NLM: Fix a circular lock dependency in lockd
, Greg KH
, (Tue Oct 9, 8:13 am)
Re: [patch 09/12] Fix SMP poweroff hangs
, Olof Johansson
, (Tue Oct 9, 8:17 am)
Re: [patch 08/12] NLM: Fix a circular lock dependency in lockd
, Trond Myklebust
, (Tue Oct 9, 8:27 am)
Re: [stable] [patch 08/12] NLM: Fix a circular lock depend ...
, Greg KH
, (Tue Oct 9, 1:41 pm)
Re: [stable] [patch 09/12] Fix SMP poweroff hangs
, Greg KH
, (Tue Oct 9, 3:20 pm)
Re: [stable] [patch 09/12] Fix SMP poweroff hangs
, Thomas Gleixner
, (Tue Oct 9, 4:21 pm)
Re: [stable] [patch 09/12] Fix SMP poweroff hangs
, Linus Torvalds
, (Tue Oct 9, 4:27 pm)
Re: [stable] [patch 09/12] Fix SMP poweroff hangs
, Greg KH
, (Tue Oct 9, 4:28 pm)
Re: [stable] [patch 09/12] Fix SMP poweroff hangs
, Thomas Gleixner
, (Tue Oct 9, 4:35 pm)
Re: [stable] [patch 09/12] Fix SMP poweroff hangs
, Olof Johansson
, (Tue Oct 9, 5:03 pm)
[PATCH] powerpc: don't enable cpu hotplug on mpic-based ps ...
, Olof Johansson
, (Tue Oct 9, 5:08 pm)
Re: [PATCH] powerpc: don't enable cpu hotplug on mpic-base ...
, Stephen Rothwell
, (Tue Oct 9, 5:18 pm)
[PATCH v2] powerpc: don't enable cpu hotplug on mpic-based ...
, Olof Johansson
, (Tue Oct 9, 5:38 pm)
Re: [stable] [patch 09/12] Fix SMP poweroff hangs
, Linus Torvalds
, (Tue Oct 9, 10:29 pm)
Re: [PATCH v2] powerpc: don't enable cpu hotplug on mpic-b ...
, Milton Miller
, (Wed Oct 10, 3:08 am)
Re: [PATCH v2] powerpc: don't enable cpu hotplug on mpic-b ...
, Olof Johansson
, (Wed Oct 10, 9:43 am)
Re: [stable] [patch 09/12] Fix SMP poweroff hangs
, Paul Mackerras
, (Wed Oct 10, 5:24 pm)
Re: [PATCH v2] powerpc: don't enable cpu hotplug on mpic-b ...
, Paul Mackerras
, (Wed Oct 10, 10:52 pm)
Re: [PATCH v2] powerpc: don't enable cpu hotplug on mpic-b ...
, Olof Johansson
, (Wed Oct 10, 10:59 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
Og dreams of kernels
Jens Axboe
[PATCH 31/33] Fusion: sg chaining support
Arnd Bergmann
Re: finding your own dead "CONFIG_" variables
Mark Brown
[PATCH 2/2] Subject: natsemi: Allow users to disable workaround for DspCfg reset
Tony Breeds
[LGUEST] Look in object dir for .config
git
:
Brian Downing
Re: Git in a Nutshell guide
John Benes
Re: master has some toys
Matthias Lederhofer
[PATCH 4/7] introduce GIT_WORK_TREE to specify the work tree
Alexander Sulfrian
[RFC/PATCH] RE: git calls SSH_ASKPASS even if DISPLAY is not set
Junio C Hamano
Re: Rss produced by git is not valid xml?
git-commits-head
:
Linux Kernel Mailing List
iSeries: fix section mismatch in iseries_veth
Linux Kernel Mailing List
ixbge: remove TX lock and redo TX accounting.
Linux Kernel Mailing List
ixgbe: fix several counter register errata
Linux Kernel Mailing List
b43: fix build with CONFIG_SSB_PCIHOST=n
Linux Kernel Mailing List
9p: block-based virtio client
linux-netdev
:
Michael Breuer
Re: [PATCH] af_packet: Don't use skb after dev_queue_xmit()
Michael Breuer
Re: [PATCH] af_packet: Don't use skb after dev_queue_xmit()
David Daney
[PATCH 5/7] Staging: Octeon Ethernet: Convert to NAPI.
Wolfgang Grandegger
[PATCH net-next v4 1/3] can: mscan: fix improper return if dlc < 8 in start_xmi...
Amit Kumar Salecha
[PATCHv3 NEXT 2/2] NET: Add Qlogic ethernet driver for CNA devices
openbsd-misc
:
Theo de Raadt
Re: Old IPSEC bug
Tomáš Bodžár
Problem with vpnc connection - check group password !
Insan Praja SW
Mandoc Compiling Error
Carl Roberso
Re: Cannot change MTU of carp interface?
Richard Daemon
Re: booting openbsd on eee without cd-rom
Colocation donated by:
Syndicate