linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] pnfs: fix a crash when hitting Ctrl+C during LAYOUTGET
@ 2012-07-23 10:05 Idan Kedar
  2012-07-23 10:05 ` [PATCH 1/3] pnfs: defer release of pages in layoutget Idan Kedar
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Idan Kedar @ 2012-07-23 10:05 UTC (permalink / raw)
  To: Trond Myklebust, linux-nfs; +Cc: Benny Halevy

While working on object layout, we have encountered a general protection fault
in xdr_shrink_bufhead when killing a process performing a lot of reads.

we reproduced it on kernel v3.3 as follows:
* mount an object-based pNFS file system. we used exofs as the MDS. assume the
mount point is /mnt/pnfs
* cp -r /bin /mnt/pnfs
* run:
cd /mnt/pnfs
while while true; do
	echo 3 > /proc/sys/vm/drop_caches; 
	rm -rf bin
	cp -r bin /tmp &
	sleep 1
	kill -s int $!
done
* on my setup it crashed after a couple of minutes, your mileage may vary.

The first patch is the actual fix. the other two are cleanups.

Idan Kedar (3):
  pnfs: defer release of pages in layoutget
  pnfs: nfs4_proc_layoutget returns void
  pnfs: use size_t for LAYOUTGET response pages count

 fs/nfs/nfs4proc.c |   61 ++++++++++++++++++++++++++++++++++++++++++++++++++--
 fs/nfs/pnfs.c     |   39 +---------------------------------
 fs/nfs/pnfs.h     |    2 +-
 3 files changed, 60 insertions(+), 42 deletions(-)

-- 
1.7.6.5


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-07-31 18:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-23 10:05 [PATCH 0/3] pnfs: fix a crash when hitting Ctrl+C during LAYOUTGET Idan Kedar
2012-07-23 10:05 ` [PATCH 1/3] pnfs: defer release of pages in layoutget Idan Kedar
2012-07-31 18:54   ` Myklebust, Trond
2012-07-23 10:05 ` [PATCH 2/3] pnfs: nfs4_proc_layoutget returns void Idan Kedar
2012-07-23 10:05 ` [PATCH 3/3] pnfs: use size_t for LAYOUTGET response pages count Idan Kedar
2012-07-31 18:55   ` Myklebust, Trond
2012-07-24  8:21 ` [PATCH 0/3] pnfs: fix a crash when hitting Ctrl+C during LAYOUTGET Idan Kedar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).