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-- 7.8 KB
Makefile -rw-r--r-- 891 bytes
block.c -rw-r--r-- 5.6 KB
cache.c -rw-r--r-- 11.6 KB
decompressor.c -rw-r--r-- 3.9 KB
decompressor.h -rw-r--r-- 2.0 KB
decompressor_multi.c -rw-r--r-- 4.6 KB
decompressor_multi_percpu.c -rw-r--r-- 2.3 KB
decompressor_single.c -rw-r--r-- 1.8 KB
dir.c -rw-r--r-- 5.9 KB
export.c -rw-r--r-- 4.6 KB
file.c -rw-r--r-- 14.2 KB
file_cache.c -rw-r--r-- 969 bytes
file_direct.c -rw-r--r-- 4.2 KB
fragment.c -rw-r--r-- 3.2 KB
id.c -rw-r--r-- 2.9 KB
inode.c -rw-r--r-- 12.4 KB
lz4_wrapper.c -rw-r--r-- 2.9 KB
lzo_wrapper.c -rw-r--r-- 3.0 KB
namei.c -rw-r--r-- 7.4 KB
page_actor.c -rw-r--r-- 2.6 KB
page_actor.h -rw-r--r-- 1.9 KB
squashfs.h -rw-r--r-- 4.0 KB
squashfs_fs.h -rw-r--r-- 11.0 KB
squashfs_fs_i.h -rw-r--r-- 1.4 KB
squashfs_fs_sb.h -rw-r--r-- 2.1 KB
super.c -rw-r--r-- 13.7 KB
symlink.c -rw-r--r-- 3.7 KB
xattr.c -rw-r--r-- 7.3 KB
xattr.h -rw-r--r-- 1.5 KB
xattr_id.c -rw-r--r-- 2.7 KB
xz_wrapper.c -rw-r--r-- 4.3 KB
zlib_wrapper.c -rw-r--r-- 3.1 KB
zstd_wrapper.c -rw-r--r-- 3.4 KB

back to top