diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2023-04-16 19:05:06 +0200 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2023-04-17 15:42:54 +0200 |
commit | d51425190805d47aecc1910b272e65476dd3b937 (patch) | |
tree | 12cacc08bd2a5f76438588e043308c5a6895b47d /drivers/pinctrl | |
parent | sunrpc: Fix RFC6803 encryption test (diff) | |
download | linux-d51425190805d47aecc1910b272e65476dd3b937.tar.xz linux-d51425190805d47aecc1910b272e65476dd3b937.zip |
SUNRPC: Fix failures of checksum Kunit tests
Scott reports that when the new GSS krb5 Kunit tests are built as
a separate module and loaded, the RFC 6803 and RFC 8009 checksum
tests all fail, even though they pass when run under kunit.py.
It appears that passing a buffer backed by static const memory to
gss_krb5_checksum() is a problem. A printk in checksum_case() shows
the correct plaintext, but by the time the buffer has been converted
to a scatterlist and arrives at checksummer(), it contains all
zeroes.
Replacing this buffer with one that is dynamically allocated fixes
the issue.
Reported-by: Scott Mayhew <smayhew@redhat.com>
Fixes: 02142b2ca8fc ("SUNRPC: Add checksum KUnit tests for the RFC 6803 encryption types")
Tested-by: Scott Mayhew <smayhew@redhat.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'drivers/pinctrl')
0 files changed, 0 insertions, 0 deletions