linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] revert changes to zcache_do_preload()
@ 2012-08-23 15:33 Seth Jennings
  2012-08-23 15:33 ` [PATCH 1/2] Revert "staging: zcache: cleanup zcache_do_preload and zcache_put_page" Seth Jennings
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Seth Jennings @ 2012-08-23 15:33 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Seth Jennings, Andrew Morton, Nitin Gupta, Minchan Kim,
	Konrad Rzeszutek Wilk, Dan Magenheimer, linux-mm, linux-kernel,
	devel

This patchset fixes a regression in 3.6 by reverting two dependent
commits that made changes to zcache_do_preload().

The commits undermine an assumption made by tmem_put() in
the cleancache path that preemption is disabled.  This change
introduces a race condition that can result in the wrong page
being returned by tmem_get(), causing assorted errors (segfaults,
apparent file corruption, etc) in userspace.

The corruption was discussed in this thread:
https://lkml.org/lkml/2012/8/17/494

Please apply this patchset to 3.6.  This problem didn't exist
in previous releases so nothing need be done for the stable trees.

Seth Jennings (2):
  Revert "staging: zcache: cleanup zcache_do_preload and
    zcache_put_page"
  Revert "staging: zcache: optimize zcache_do_preload"

 drivers/staging/zcache/zcache-main.c |   54 +++++++++++++++++++---------------
 1 file changed, 31 insertions(+), 23 deletions(-)

-- 
1.7.9.5


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

end of thread, other threads:[~2012-08-29 17:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-23 15:33 [PATCH 0/2] revert changes to zcache_do_preload() Seth Jennings
2012-08-23 15:33 ` [PATCH 1/2] Revert "staging: zcache: cleanup zcache_do_preload and zcache_put_page" Seth Jennings
2012-08-23 15:33 ` [PATCH 2/2] Revert "staging: zcache: optimize zcache_do_preload" Seth Jennings
2012-08-23 20:56 ` [PATCH 0/2] revert changes to zcache_do_preload() Minchan Kim
2012-08-23 22:10   ` Seth Jennings
2012-08-23 23:28     ` Minchan Kim
2012-08-24  2:21       ` Xiao Guangrong
2012-08-24 20:57       ` Seth Jennings
2012-08-29 17:42         ` Seth Jennings

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).