rpc: gss: fix a kmap_atomic race in krb5 code
authorJ. Bruce Fields <bfields@fieldses.org>
Tue, 5 Dec 2006 01:22:32 +0000 (20:22 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 6 Dec 2006 15:46:43 +0000 (10:46 -0500)
commit87d918d667e51962938392759aef6ca368d6e96d
treeb501911296997106c226b53c486a4e61d629d2a6
parent8fc7500bb8ea3b5c909869d00628635e964ae882
rpc: gss: fix a kmap_atomic race in krb5 code

This code is never called from interrupt context; it's always run by either
a user thread or rpciod.  So KM_SKB_SUNRPC_DATA is inappropriate here.

Thanks to Aimé Le Rouzic for capturing an oops which showed the kernel
taking an interrupt while we were in this piece of code, resulting in a
nested kmap_atomic(.,KM_SKB_SUNRPC_DATA) call from
xdr_partial_copy_from_skb().

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/auth_gss/gss_krb5_wrap.c