Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1147238iob; Wed, 4 May 2022 15:56:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMC2a0Eg07VOuy2Z997WI3SRvkPm89vazF+1zuGN/pf5x5U7Qj0drdzU2CXQ18FJtnbfjO X-Received: by 2002:a17:907:6eaa:b0:6f4:7e59:feae with SMTP id sh42-20020a1709076eaa00b006f47e59feaemr11232022ejc.99.1651705012599; Wed, 04 May 2022 15:56:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651705012; cv=none; d=google.com; s=arc-20160816; b=OhHkkVPHWp8r5Y7CbUYiSL6j9TE+ehYFRdhqx73cG/JuugopuI2YQpzWKFxcCq5fen Bu8hlaSYUEuQMWzg2dmiyhAC9olL+g3eENHVbpBpclD9S1j5VxsIFABwRB1zmKGxl/ux 6EkpeowcSBW/RnJAyTpMSgPVtOyfYx7OpdjHNcia6ItYcqAOR4Kxxmi9wLPLffKywduW UVqYkbzYv4RXNAjBhkh+YpkLTPuY76W6l1eYdVXzcRkxyp6RwxITp8jW90jx3+NBgsHu ufrXnzsa/26M+xvHMarwUsH28TPt3Juog2qO2EeXmSco31cGmasctFaJ3l2znHRd4PO3 e7Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=/49Ts2Y3PyK3UG8Ta4Osw4LZ0F6LxlnPsPESd+HWXHY=; b=eLpgnqdTswskVDcLpcoUngy2eNHtrfEj+SWjMFEJ2n5UdREUOedGRoYERvvpypTKGK hi7HF98orA0B5+G8oMzWDU++MMmxgBoRkOjkj63/E5uIAbEFnfPVnYWLsJfs1kWVk56j p2eRcUBim415nkLMVk/QesStwWcQAd7ikgWIZtvqL5uiJH+ClbyIBuAGu3Cyyk+wismI Scw/UjWgpWu/OCpnS6J0x9f7DarJRDnf+0iCDXFnXIfVVJiKk7CMPagxVLKH1ryXG4UJ gjmdEmGB9ea6v2c/eEnsdgzKXO7b2K0WrAfesNjGV01Fv5AIbPvYeelp6FapLmS1zK7s ERLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=S8UwElLo; 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 y8-20020a056402440800b00427ab9e7ccasi14260219eda.317.2022.05.04.15.56.29; Wed, 04 May 2022 15:56:52 -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=S8UwElLo; 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 S1348814AbiEDL55 (ORCPT + 99 others); Wed, 4 May 2022 07:57:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346784AbiEDL54 (ORCPT ); Wed, 4 May 2022 07:57:56 -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 ESMTP id 72A5A21E37 for ; Wed, 4 May 2022 04:54:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1651665259; 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=/49Ts2Y3PyK3UG8Ta4Osw4LZ0F6LxlnPsPESd+HWXHY=; b=S8UwElLoXEo4fohtFXhGSRY0oeV9pAWChuS1rYHPEw9gFfYhmC6atVGzOvqAmQ4C6bVKD0 9GKGVYPKploYEbhBmwKvDNOJi1Ey9FHQyb20xGK2c1XGuxoNIEyw29obJmlZG3RlSR+d7/ 6fIACVHTFYcnxDfYkl3I19mwEKptXUU= 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-198-9Sh-mlorMq-AjzZQYiv4cg-1; Wed, 04 May 2022 07:54:15 -0400 X-MC-Unique: 9Sh-mlorMq-AjzZQYiv4cg-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0A7A41C04B40; Wed, 4 May 2022 11:54:15 +0000 (UTC) Received: from file01.intranet.prod.int.rdu2.redhat.com (file01.intranet.prod.int.rdu2.redhat.com [10.11.5.7]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D57CB40CF8F8; Wed, 4 May 2022 11:54:14 +0000 (UTC) Received: from file01.intranet.prod.int.rdu2.redhat.com (localhost [127.0.0.1]) by file01.intranet.prod.int.rdu2.redhat.com (8.14.4/8.14.4) with ESMTP id 244BsEPg020594; Wed, 4 May 2022 07:54:14 -0400 Received: from localhost (mpatocka@localhost) by file01.intranet.prod.int.rdu2.redhat.com (8.14.4/8.14.4/Submit) with ESMTP id 244BsEjr020590; Wed, 4 May 2022 07:54:14 -0400 X-Authentication-Warning: file01.intranet.prod.int.rdu2.redhat.com: mpatocka owned process doing -bs Date: Wed, 4 May 2022 07:54:14 -0400 (EDT) From: Mikulas Patocka X-X-Sender: mpatocka@file01.intranet.prod.int.rdu2.redhat.com To: Andy Shevchenko cc: Stafford Horne , Linus Torvalds , Andy Shevchenko , device-mapper development , Linux Kernel Mailing List , Linux Crypto Mailing List , Herbert Xu , "David S. Miller" , Mike Snitzer , Mimi Zohar , Milan Broz , Jason@zx2c4.com Subject: Re: [PATCH v2] hex2bin: make the function hex_to_bin constant-time In-Reply-To: Message-ID: References: User-Agent: Alpine 2.02 (LRH 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.84 on 10.11.54.1 X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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-kernel@vger.kernel.org On Wed, 4 May 2022, Andy Shevchenko wrote: > On Wed, May 04, 2022 at 04:57:35AM -0400, Mikulas Patocka wrote: > > On Wed, 4 May 2022, Stafford Horne wrote: > > > On Mon, Apr 25, 2022 at 08:07:48AM -0400, Mikulas Patocka wrote: > > ... > > > > Just a heads up it seems this patch is causing some instability with crypto self > > > tests on OpenRISC when using a PREEMPT kernel (no SMP). > > > > > > This was reported by Jason A. Donenfeld as it came up in wireguard testing. > > > > > > I am trying to figure out if this is an OpenRISC PREEMPT issue or something > > > else. > > > That patch is so simple that I can't imagine how could it break the > > curve25519 test. Are you sure that you bisected it correctly? > > Can you provide a test cases for hex_to_bin()? I tested it with this: #include int hex_to_bin(unsigned char c); int main(void) { int i; for (i = 0; i < 256; i++) printf("%02x - %d\n", i, hex_to_bin(i)); return 0; } Mikulas