CIFS: Fix BUG() in calc_seckey()
authorSachin Prabhu <sprabhu@redhat.com>
Mon, 17 Oct 2016 20:40:22 +0000 (16:40 -0400)
committerSteve French <smfrench@gmail.com>
Tue, 29 Nov 2016 05:08:52 +0000 (23:08 -0600)
commit5f4b55699aaff1028468e3f53853d781cdafedd6
treed22e0365f49d628523708caac5fc3baf81362159
parent88abd8249ee8bcebb98c90e890ea5e342db832af
CIFS: Fix BUG() in calc_seckey()

Andy Lutromirski's new virtually mapped kernel stack allocations moves
kernel stacks the vmalloc area. This triggers the bug
 kernel BUG at ./include/linux/scatterlist.h:140!
at calc_seckey()->sg_init()

Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
fs/cifs/cifsencrypt.c