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-- 3.2 KB
Makefile -rw-r--r-- 459 bytes
aops.c -rw-r--r-- 52.4 KB
aops.h -rw-r--r-- 3.9 KB
attrib.c -rw-r--r-- 89.6 KB
attrib.h -rw-r--r-- 4.2 KB
bitmap.c -rw-r--r-- 5.4 KB
bitmap.h -rw-r--r-- 3.5 KB
collate.c -rw-r--r-- 3.6 KB
collate.h -rw-r--r-- 1.7 KB
compress.c -rw-r--r-- 28.7 KB
debug.c -rw-r--r-- 4.8 KB
debug.h -rw-r--r-- 2.3 KB
dir.c -rw-r--r-- 51.5 KB
dir.h -rw-r--r-- 1.6 KB
endian.h -rw-r--r-- 2.2 KB
file.c -rw-r--r-- 60.6 KB
index.c -rw-r--r-- 14.8 KB
index.h -rw-r--r-- 5.5 KB
inode.c -rw-r--r-- 96.5 KB
inode.h -rw-r--r-- 11.1 KB
layout.h -rw-r--r-- 97.0 KB
lcnalloc.c -rw-r--r-- 32.4 KB
lcnalloc.h -rw-r--r-- 5.7 KB
logfile.c -rw-r--r-- 28.2 KB
logfile.h -rw-r--r-- 13.5 KB
malloc.h -rw-r--r-- 3.0 KB
mft.c -rw-r--r-- 99.4 KB
mft.h -rw-r--r-- 4.0 KB
mst.c -rw-r--r-- 6.9 KB
namei.c -rw-r--r-- 14.1 KB
ntfs.h -rw-r--r-- 5.0 KB
quota.c -rw-r--r-- 3.6 KB
quota.h -rw-r--r-- 1.2 KB
runlist.c -rw-r--r-- 59.5 KB
runlist.h -rw-r--r-- 3.3 KB
super.c -rw-r--r-- 99.6 KB
sysctl.c -rw-r--r-- 2.3 KB
sysctl.h -rw-r--r-- 1.4 KB
time.h -rw-r--r-- 3.5 KB
types.h -rw-r--r-- 2.0 KB
unistr.c -rw-r--r-- 12.2 KB
upcase.c -rw-r--r-- 3.8 KB
usnjrnl.c -rw-r--r-- 2.7 KB
usnjrnl.h -rw-r--r-- 9.1 KB
volume.h -rw-r--r-- 6.8 KB

back to top