Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2469022rwl; Thu, 13 Apr 2023 06:58:31 -0700 (PDT) X-Google-Smtp-Source: AKy350bQHuxQYNXSov9+9yl0pb6Ug9g5wwCFDz4MJQV3Q0dF1UGObfV+vS4PYlQTDB+vaz6g3LZX X-Received: by 2002:a17:902:ec8b:b0:1a6:5682:af48 with SMTP id x11-20020a170902ec8b00b001a65682af48mr3361792plg.0.1681394311129; Thu, 13 Apr 2023 06:58:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681394311; cv=none; d=google.com; s=arc-20160816; b=gn2kWUW1eah0+Te37+9L/J3Hhg70JLyUHuoHD5+iaQ9Q9vJIIlpQgnRalyL1HSHmC7 JHeAgPplLiTDH/BS6J9HsMIBwlspMIAjSL60IqywTeR9DBlX2nD/ZrFaRl4zh3VKWh6A RPjzvpsqc6zNNJjf63oQhNQ7SSbydxs64dTxehJdXTEhiJrb683vrqepbCeSV3+Tdjgi 95j4Dlh0Hm/1F80DpEDFQ7aCcckC6vJA50Bayqn6w0yubamVAyymgdoOZ7AkU99P2zvd EsHLOIfw3fwcABDfLau3zuZYWIM2i/GcMO2WONlGAWtLHsbMvMTcn+wn1rZGh0U5nWm4 Mykg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:content-id:mime-version:subject :cc:to:references:in-reply-to:from:organization:dkim-signature; bh=zAyG0A+b0GuohSioj1G+MKBql7l3GfquTjJB8uXanBs=; b=hvsptnTO/xg1P/QD750erQSp/EfEKUxN0Saa1B0vUgRdyiapjL0tp7gt/cpmbDt3vI Te9ueKVnxZ15axKT2cBtz3XpTCLVe5tf+aBpVMjk/gVp+EocN10FBMBTEDWLtS1EIAii CuGIOe2yqL0BckRIhN2uJR0X+yKLBlJVphWA0tC1uXO3H6676+HZu/+7Rsjd6m0h2SKZ HgrOdhdK18Vv7jJlU67ZQ6hY83wza4iLAFS8OxCrz0Uan3tKCcJhhU8/ef9ipcQT3oV8 T+w8PXA86gibCFKn3fVCiBxAGsut6z6B8ATfJutNb6iHTF+n4qjpGHcHwjuByvDc/t0x Yevg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=e7zm8A3I; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-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 g13-20020a170902d5cd00b001a1a8ead6c1si1940052plh.641.2023.04.13.06.58.15; Thu, 13 Apr 2023 06:58:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=e7zm8A3I; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-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 S230387AbjDMN4b (ORCPT + 99 others); Thu, 13 Apr 2023 09:56:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229744AbjDMN4a (ORCPT ); Thu, 13 Apr 2023 09:56:30 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D0FA172D for ; Thu, 13 Apr 2023 06:55:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681394143; 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=zAyG0A+b0GuohSioj1G+MKBql7l3GfquTjJB8uXanBs=; b=e7zm8A3Inwtdecv9xCpNaWNF60+zs/MVpcK3PimW7RPEirWg7kWuxbpzce/7532rM/FWBA 7N4mQ7850qCjJ4qf5AYERQWvhXzBZ8wxxDBTgkokMnf23adzRX08G9/XxuZhZ8W6N4NRsn wBDKqHNJzFBLWsToKx5yarBEyPQ8/i8= 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-440-M36pobzLNHyM6JvGzIpeWQ-1; Thu, 13 Apr 2023 09:55:40 -0400 X-MC-Unique: M36pobzLNHyM6JvGzIpeWQ-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 0645D1C04321; Thu, 13 Apr 2023 13:55:40 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.33.36.177]) by smtp.corp.redhat.com (Postfix) with ESMTP id 18A90112132E; Thu, 13 Apr 2023 13:55:39 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <48886D84-1A04-4B07-A666-BB56684E759F@oracle.com> References: <48886D84-1A04-4B07-A666-BB56684E759F@oracle.com> <380323.1681314997@warthog.procyon.org.uk> To: Chuck Lever III Cc: dhowells@redhat.com, Herbert Xu , Scott Mayhew , Ard Biesheuvel , Jeff Layton , Linux NFS Mailing List , "linux-crypto@vger.kernel.org" Subject: Re: Did the in-kernel Camellia or CMAC crypto implementation break? MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1078649.1681394138.1@warthog.procyon.org.uk> Date: Thu, 13 Apr 2023 14:55:38 +0100 Message-ID: <1078650.1681394138@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 autolearn=unavailable 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-crypto@vger.kernel.org Chuck Lever III wrote: > Ah, I see Scott is Cc'd. Yes, Scott reported this to me yesterday. Found it (see patch sent separately). There was an uninitialised variable in sunrpc. The krb5lib problem was that I'd lost the byteswapping of the usage value in the test data when I split it out of the net/rxrpc/ directory, e.g.: @@ -167,7 +167,7 @@ const struct krb5_enc_test krb5_enc_tests[] = { .plain = "'1", .conf = "6F2FC3C2A166FD8898967A83DE9596D9", .K0 = "5027BC231D0F3A9D23333F1CA6FDBE7C", - .usage = 1, + .usage = htonl(1), .ct = "842D21FD950311C0DD464A3F4BE8D6DA88A56D559C9B47D3F9A85067AF661559B8", }, { .krb5 = &krb5_camellia128_cts_cmac, David