https://github.com/torvalds/linux
Revision e7afe6c1d486b516ed586dcc10b3e7e3e85a9c2b authored by Scott Mayhew on 15 February 2019, 18:42:02 UTC, committed by J. Bruce Fields on 15 February 2019, 19:56:51 UTC
While trying to reproduce a reported kernel panic on arm64, I discovered
that AUTH_GSS basically doesn't work at all with older enctypes on arm64
systems with CONFIG_VMAP_STACK enabled.  It turns out there still a few
places using stack memory with scatterlists, causing krb5_encrypt() and
krb5_decrypt() to produce incorrect results (or a BUG if CONFIG_DEBUG_SG
is enabled).

Tested with cthon on v4.0/v4.1/v4.2 with krb5/krb5i/krb5p using
des3-cbc-sha1 and arcfour-hmac-md5.

Signed-off-by: Scott Mayhew <smayhew@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
1 parent 3bf6b57
History
Tip revision: e7afe6c1d486b516ed586dcc10b3e7e3e85a9c2b authored by Scott Mayhew on 15 February 2019, 18:42:02 UTC
sunrpc: fix 4 more call sites that were using stack memory with a scatterlist
Tip revision: e7afe6c
File Mode Size
Kconfig -rw-r--r-- 1.1 KB
Makefile -rw-r--r-- 598 bytes
addr_list.c -rw-r--r-- 8.7 KB
afs.h -rw-r--r-- 6.6 KB
afs_cm.h -rw-r--r-- 1.2 KB
afs_fs.h -rw-r--r-- 2.8 KB
afs_vl.h -rw-r--r-- 5.3 KB
cache.c -rw-r--r-- 2.0 KB
callback.c -rw-r--r-- 7.9 KB
cell.c -rw-r--r-- 19.5 KB
cmservice.c -rw-r--r-- 17.4 KB
dir.c -rw-r--r-- 42.3 KB
dir_edit.c -rw-r--r-- 13.3 KB
dynroot.c -rw-r--r-- 7.0 KB
file.c -rw-r--r-- 15.0 KB
flock.c -rw-r--r-- 18.9 KB
fs_probe.c -rw-r--r-- 7.0 KB
fsclient.c -rw-r--r-- 56.9 KB
inode.c -rw-r--r-- 14.9 KB
internal.h -rw-r--r-- 50.0 KB
main.c -rw-r--r-- 6.3 KB
misc.c -rw-r--r-- 5.0 KB
mntpt.c -rw-r--r-- 5.3 KB
netdevices.c -rw-r--r-- 1.1 KB
proc.c -rw-r--r-- 16.0 KB
protocol_yfs.h -rw-r--r-- 4.8 KB
rotate.c -rw-r--r-- 15.7 KB
rxrpc.c -rw-r--r-- 24.5 KB
security.c -rw-r--r-- 10.2 KB
server.c -rw-r--r-- 14.4 KB
server_list.c -rw-r--r-- 3.5 KB
super.c -rw-r--r-- 16.4 KB
vl_list.c -rw-r--r-- 8.3 KB
vl_probe.c -rw-r--r-- 7.1 KB
vl_rotate.c -rw-r--r-- 8.0 KB
vlclient.c -rw-r--r-- 16.0 KB
volume.c -rw-r--r-- 8.2 KB
write.c -rw-r--r-- 20.6 KB
xattr.c -rw-r--r-- 3.0 KB
xdr_fs.h -rw-r--r-- 2.2 KB
yfsclient.c -rw-r--r-- 53.9 KB

back to top