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.1 KB
Makefile -rw-r--r-- 490 bytes
auth.c -rw-r--r-- 12.2 KB
budget.c -rw-r--r-- 23.9 KB
commit.c -rw-r--r-- 20.5 KB
compress.c -rw-r--r-- 6.7 KB
crypto.c -rw-r--r-- 2.3 KB
debug.c -rw-r--r-- 84.1 KB
debug.h -rw-r--r-- 12.5 KB
dir.c -rw-r--r-- 42.9 KB
file.c -rw-r--r-- 47.2 KB
find.c -rw-r--r-- 30.1 KB
gc.c -rw-r--r-- 28.7 KB
io.c -rw-r--r-- 35.7 KB
ioctl.c -rw-r--r-- 5.8 KB
journal.c -rw-r--r-- 51.3 KB
key.h -rw-r--r-- 14.9 KB
log.c -rw-r--r-- 19.9 KB
lprops.c -rw-r--r-- 36.0 KB
lpt.c -rw-r--r-- 62.4 KB
lpt_commit.c -rw-r--r-- 51.2 KB
master.c -rw-r--r-- 11.7 KB
misc.c -rw-r--r-- 1.3 KB
misc.h -rw-r--r-- 8.1 KB
orphan.c -rw-r--r-- 24.7 KB
recovery.c -rw-r--r-- 43.6 KB
replay.c -rw-r--r-- 34.5 KB
sb.c -rw-r--r-- 26.7 KB
scan.c -rw-r--r-- 9.5 KB
shrinker.c -rw-r--r-- 9.6 KB
super.c -rw-r--r-- 62.9 KB
tnc.c -rw-r--r-- 92.1 KB
tnc_commit.c -rw-r--r-- 27.6 KB
tnc_misc.c -rw-r--r-- 13.3 KB
ubifs-media.h -rw-r--r-- 24.6 KB
ubifs.h -rw-r--r-- 71.2 KB
xattr.c -rw-r--r-- 18.2 KB

back to top