nfsd-6.3 fixes:
- Address two issues with the new GSS krb5 Kunit tests -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEKLLlsBKG3yQ88j7+M2qzM29mf5cFAmQ9TX4ACgkQM2qzM29m f5eWvQ/+MFOmbk+PMAANyvgrYWKMuaP1BV+laEm3SslL4OwceJGIDQab/aqTgKIN 71xDoRt3YyPion1mBl2q1BGnoNle+u6vAFE3dqo4x5xENSSXmnr3LFYU06ftf9Wk 4CGpQdQejzVU3wCpH1A+VbPuTVlpyYJmi+yD1CBEY1Y9bVWSD66biJEVn2KO1cxd CMbLeLfAKwBzm7NyMWBqHSuN2lJI9qFg2ckiDTExLmus+hw0rCLPp1udTNh/PSq1 7QrPPJy/L5JzUZudQRERmpIjpFPHMdJFhnRPHVy9nuwgPEpWBr0nAgGqmWP0Vjtc vdYN/yhJYKgsDSKX2nKBunVt9c//qD8OmWFEg+vsyvxrnAkSZMaYFvqEluvLnBzz 1iq2ieDXw9tz2s2ILqMOk0vKaEQIKWyEf4+xffTkESzW+zuF5n/O9FUTCXLquzvH g1SpFjhayYUSbIcXE9+IihDPAJXDqApEQUopDCGlelpIFzIPnOFSN387RM2e2Bwx XYVu6+yp3buev8qdJk37fIhZfFb411DV9hw/OC8eDoAMIqLo5YyDkl3BTDH6zKSx Ei1GhbqetoCm5b475Zf70IlOnxp50nWD+t0NXSs1oGbUN6MV1VbV+WHtxEOHI05P WSDEZ6XUuaDS+FRqsImri7jPvJAPFz5mD2WDmLU+tY09tT8VwRI= =a/Wj -----END PGP SIGNATURE----- Merge tag 'nfsd-6.3-6' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux Pull nfsd fixes from Chuck Lever: - Address two issues with the new GSS krb5 Kunit tests * tag 'nfsd-6.3-6' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux: SUNRPC: Fix failures of checksum Kunit tests sunrpc: Fix RFC6803 encryption test
This commit is contained in:
commit
789b4a41c2
|
@ -73,7 +73,6 @@ static void checksum_case(struct kunit *test)
|
|||
{
|
||||
const struct gss_krb5_test_param *param = test->param_value;
|
||||
struct xdr_buf buf = {
|
||||
.head[0].iov_base = param->plaintext->data,
|
||||
.head[0].iov_len = param->plaintext->len,
|
||||
.len = param->plaintext->len,
|
||||
};
|
||||
|
@ -99,6 +98,10 @@ static void checksum_case(struct kunit *test)
|
|||
err = crypto_ahash_setkey(tfm, Kc.data, Kc.len);
|
||||
KUNIT_ASSERT_EQ(test, err, 0);
|
||||
|
||||
buf.head[0].iov_base = kunit_kzalloc(test, buf.head[0].iov_len, GFP_KERNEL);
|
||||
KUNIT_ASSERT_NOT_ERR_OR_NULL(test, buf.head[0].iov_base);
|
||||
memcpy(buf.head[0].iov_base, param->plaintext->data, buf.head[0].iov_len);
|
||||
|
||||
checksum.len = gk5e->cksumlength;
|
||||
checksum.data = kunit_kzalloc(test, checksum.len, GFP_KERNEL);
|
||||
KUNIT_ASSERT_NOT_ERR_OR_NULL(test, checksum.data);
|
||||
|
@ -1327,6 +1330,7 @@ static void rfc6803_encrypt_case(struct kunit *test)
|
|||
if (!gk5e)
|
||||
kunit_skip(test, "Encryption type is not available");
|
||||
|
||||
memset(usage_data, 0, sizeof(usage_data));
|
||||
usage.data[3] = param->constant;
|
||||
|
||||
Ke.len = gk5e->Ke_length;
|
||||
|
|
Loading…
Reference in New Issue