]> git.baikalelectronics.ru Git - kernel.git/commit
vfs: don't copy things to user space holding the rcu readlock
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 12 Sep 2013 18:57:01 +0000 (11:57 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 12 Sep 2013 18:57:01 +0000 (11:57 -0700)
commit5dd8328ad4b9280e11320ccd302164b66d4ecfc4
treefa9dcbb1cc43aa0171a9cbaf4e668d6866d3cd20
parente49cca53122f9ec03252a78a1434ac015bb1e840
vfs: don't copy things to user space holding the rcu readlock

Oops.  That wasn't very smart.  We don't actually need the RCU lock any
more by the time we copy the cwd string to user space, but I had
stupidly surrounded the whole thing with it.

Introduced by commit 7725926401c9 ("vfs: make getcwd() get the root and
pwd path under rcu")

Is-a-big-hairy-idiot: Linus Torvalds <torvalds@linux-foundation.org>
fs/dcache.c