Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2534763rwl; Thu, 13 Apr 2023 07:43:07 -0700 (PDT) X-Google-Smtp-Source: AKy350YB/HE7J90Gf9pf1KZa9zFgtmaY9lV3GbSZ49nte/gy3h+X9pOxttbacj2WANcjNv+3VoSP X-Received: by 2002:a17:902:f30d:b0:19e:e001:6a75 with SMTP id c13-20020a170902f30d00b0019ee0016a75mr2324051ple.6.1681396987091; Thu, 13 Apr 2023 07:43:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681396987; cv=none; d=google.com; s=arc-20160816; b=yTqYK7JVYEwSyKQsmKiexEM9fGgfMbYHVpOvE196VB+K7/KJ9bCPmz+Yw3K6/umR6W xqfs4USff0VgW7AvEQQ5DV30wZqz1CSQjzix1Tmwz8ok5wVLBsW23jBj+R0mIYPvzUWJ JQtkdZanwdMDcrxjMhTVH8D923vSeq3TpenKbT2zUG31rQOwt6cjckneKn1A+G7jYCVD X5zK2mZgWJQLBbxS1+ngTsOOWVVMpzULXPdKp80Oq2zVfyG3FyWfrVlvML1cCgK6uAZS Wz0mkJAK1+QpFizmRs4uiioD/wVXjeg35LWkhWVa1K68fMVs/x5DrNI54K5F1A2Y0KC0 4Z6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zh48LH+lWIDcMUTRVYARFiiBOHlN0g/yHS2D9XaBS5s=; b=0cBfuH3hwZUwtNLBjeT1kuF2YPm8NdHONI/BVOL8PEmD24/DOYEXnrGmexc4OZHTh9 weSV/6fE/jHguONaKa4khxM1/v/q2kPi2qemi4jdldBQIRM0dJQ//k4XTChh0enS+Uy6 a1LPhzodE08q95ZzNAFCfVmXyX9PloQ9td2iIePc7sdZYGbKOykBt2w3ymWyk2pdlkKg SHMdtMcqoRyM1NFTxOUOBoNlwJ3fuWKLFCtp9Yp1+6A6sPIOXcej6Nt7WjWU6YUWoagj W4HutqBQ6U4snbxJXD/exUpUqx5pfesSsTAZJFhtKGqlDujPJjmPzYwj2z8vQ0f04ANQ RS8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EGAx4voi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u8-20020a170902e80800b0017a0e7aaf6bsi2333970plg.128.2023.04.13.07.42.54; Thu, 13 Apr 2023 07:43:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EGAx4voi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230230AbjDMOiY (ORCPT + 99 others); Thu, 13 Apr 2023 10:38:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230161AbjDMOiX (ORCPT ); Thu, 13 Apr 2023 10:38:23 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B9EB7EC2 for ; Thu, 13 Apr 2023 07:37:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681396656; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=zh48LH+lWIDcMUTRVYARFiiBOHlN0g/yHS2D9XaBS5s=; b=EGAx4voipuC2oS6qyv6nP9d8r68ZQAGZJoo66MDs4iSGVG0yi2+laRgKnodRodTr7oZJll odaOJzdbqSqeEcshI/q1MxY7tatVqbVNUGzHBRbSeVArpguiiqkdyRwbdGOpTyDXAJIHxZ tvt9rvkuibFyAO9FWXTkxKSEWgGb6O4= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-345-L-s4HvYwN1Oj_kK05l1ztg-1; Thu, 13 Apr 2023 10:37:35 -0400 X-MC-Unique: L-s4HvYwN1Oj_kK05l1ztg-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 93EDB1C17423; Thu, 13 Apr 2023 14:37:34 +0000 (UTC) Received: from aion.usersys.redhat.com (unknown [10.22.32.87]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8357E1121330; Thu, 13 Apr 2023 14:37:34 +0000 (UTC) Received: by aion.usersys.redhat.com (Postfix, from userid 1000) id 1C6971A27F5; Thu, 13 Apr 2023 10:37:34 -0400 (EDT) Date: Thu, 13 Apr 2023 10:37:34 -0400 From: Scott Mayhew To: David Howells Cc: Chuck Lever , Herbert Xu , linux-nfs@vger.kernel.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] sunrpc: Fix RFC6803 encryption test Message-ID: References: <1078410.1681393916@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1078410.1681393916@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 13 Apr 2023, David Howells wrote: > > The usage_data[] array in rfc6803_encrypt_case() is uninitialised, so clear > it as it may cause the tests to fail otherwise. > > Fixes: b958cff6b27b ("SUNRPC: Add encryption KUnit tests for the RFC 6803 encryption types") > Link: https://lore.kernel.org/r/380323.1681314997@warthog.procyon.org.uk/ > Signed-off-by: David Howells > cc: Chuck Lever > cc: Scott Mayhew > cc: Herbert Xu > cc: linux-nfs@vger.kernel.org > cc: linux-crypto@vger.kernel.org > --- > net/sunrpc/auth_gss/gss_krb5_test.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/net/sunrpc/auth_gss/gss_krb5_test.c b/net/sunrpc/auth_gss/gss_krb5_test.c > index ce0541e32fc9..aa6ec4e858aa 100644 > --- a/net/sunrpc/auth_gss/gss_krb5_test.c > +++ b/net/sunrpc/auth_gss/gss_krb5_test.c > @@ -1327,6 +1327,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; > I still see the failures with this patch applied. The rfc6803 checksum tests run before the rfc6803 encryption tests, so I'm not sure how this would help. -Scott