]> git.hungrycats.org Git - linux/commit
[PATCH] kNFSd: Fix race in svcsock.c
authorNeil Brown <neilb@cse.unsw.edu.au>
Fri, 14 Mar 2003 10:11:35 +0000 (02:11 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Fri, 14 Mar 2003 10:11:35 +0000 (02:11 -0800)
commit7cb09575b27bd76531b414a947617c0090edc0d8
tree96c445e87a16feffc287844c87d9b1ecf8c0c031
parent453a629b6aca9937d71f7438ee91dade4477b743
[PATCH] kNFSd: Fix race in svcsock.c

From: Trond Myklebust <trond.myklebust@fys.uio.no>

knfsd needs to disable soft interrupts when calling
csum_partial_copy_to_xdr().

At the moment there's a nasty conflict between the RPC server and
client. The problem arises when you get to xdr_partial_copy_from_skb()
(and the kmap_atomic()); the RPC client can end up calling the same
function from a ->data_ready() soft interrupt, and corrupt any data
the knfsd process may have copied.
net/sunrpc/svcsock.c