Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1622628iob; Thu, 5 May 2022 05:21:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtpvVKDjPSpcEsjEfPxbmTL/Uno2lGeCALoHcQkoAH1DPEtGgIq6kZ8eudjc2TzlrwktB0 X-Received: by 2002:a17:903:2344:b0:15e:d382:2e3b with SMTP id c4-20020a170903234400b0015ed3822e3bmr5488912plh.37.1651753281977; Thu, 05 May 2022 05:21:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651753281; cv=none; d=google.com; s=arc-20160816; b=qRZcHtjMX+ZDu+ycoHkjggkia4voyGppnU5MiajQKWHqPSFE+OoMSZGupwTf4mxGs7 mOv3CN5qD6ri45EA5CKVEhoKMMYFFpmajJShliiQZ8G+Fu2I3IeZ39q2+lO3qn80HqLE CgL+zxuzxShqO6EPbSdajHDLCUSXqqL0oRdFLvFUkSZj0zERGEvBtgATbNGxbJ5Nf4KR gRN4+doI9LfiSo5zOOhkStH7z1cqGCp0Bjpn4YleFdgARUmmAhSTd6TPQpXZw6Vni7/S miBGZdGltKnC4VUtIwdCUKZq/wC4wQwAtWgEl9Sm8la2vZJXnOYg40KvCEZZ9CmGKFPs I0fQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=X7nnFcBo5MIhDYQNnEavKTW+QBw/a5S/8r1dgvWPgx4=; b=I9ct/pP82MlxJzE+ro3fenT5Nhs0pOwgY/w4JbWXA6L3WcVlCtdNvBpMqumRdGmKxq zZpkygi619QdGdx+AFNIkiB/zBEls5AVihrlEiQx1dGjAejom7AtgqDz2fHACYFxvWfl mbCJ/QPzvBbapYqiaVOcqB7HXMkaZ2CeBZiC/jwdDkIlrzMl4m7fsWFrBDz2cbe0vjhJ eT1FI6CD9QlWXi5d3nKK+YxnsBgbFpjtPZ2dfBJWl17UTX1BIopeIVGtvsw5PkP87r8R X5kyCfJY2ZTRdwVM/Qcroj/FhxYv3hnrFtm72x/SPPHzDMxi8ytnqdlA1OgOWelOL3/w tcRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=HydzbIEs; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t12-20020a170902e84c00b0015875d4d0bfsi1879041plg.392.2022.05.05.05.21.05; Thu, 05 May 2022 05:21:21 -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=@linux-foundation.org header.s=google header.b=HydzbIEs; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354746AbiEDS3Z (ORCPT + 99 others); Wed, 4 May 2022 14:29:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376846AbiEDS3K (ORCPT ); Wed, 4 May 2022 14:29:10 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D315E5F72 for ; Wed, 4 May 2022 11:00:21 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id p10so3641401lfa.12 for ; Wed, 04 May 2022 11:00:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=X7nnFcBo5MIhDYQNnEavKTW+QBw/a5S/8r1dgvWPgx4=; b=HydzbIEsqYx4gbpn6Of0F/idsQ70FsOBI/yLQ3l1wlbBjcoSGQqp8LilhBOa//uEDx EWnmRcF4BEWKWbTlT+gtSe5/NRwGYnfkr6Qy6WpkKKFSMAkUba/bzP88tFQGiyyP5qzR slNInsc4mTa9BKrS4jYwCcQzeao9bKelEatb4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=X7nnFcBo5MIhDYQNnEavKTW+QBw/a5S/8r1dgvWPgx4=; b=OegFPa0Dmqe7LJrhXq5cCdlrd830bvv3ihsn2UwkSzfaFq2qZKRY9juMpFLaXg4mu7 0BT3FUSuhEoqyNJG7xlf+gMiut3UYNEhqGL/FaH/LMvcryc9c3jU7l3gMVLD6EgjzJ39 0hNxIadNXPXAy+jfzDjQGSwfQqtRktBn5bt8zp+IazXzrBHkTvSM+PPbxaV+2OZ+jwE4 OtIbUCCHRBwWIrGVWVkOK+WfHlUVgTJWcexhURt9HdxdLLOb0My3NWBIiYQBukxmKTpt bQ81wdJCfDBoC4V9CGjzIkUM0RQkcvAK8K2oulQFNnx4Tx+YUO4GW0Uzy3egmKFvKUtk 7t2A== X-Gm-Message-State: AOAM531U2bzv10UhIzXKQ9d9TAAwFWuxboKOLH55P06/Mu4llCoUV5Vk +uIQ1dwTn3UBSUkuzrOCLXgtICB/YY9dHmIc X-Received: by 2002:ac2:4add:0:b0:471:fc6d:a71d with SMTP id m29-20020ac24add000000b00471fc6da71dmr14907779lfp.350.1651687219881; Wed, 04 May 2022 11:00:19 -0700 (PDT) Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com. [209.85.167.54]) by smtp.gmail.com with ESMTPSA id z19-20020a05651c11d300b0024f3d1daea5sm1736148ljo.45.2022.05.04.11.00.17 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 04 May 2022 11:00:18 -0700 (PDT) Received: by mail-lf1-f54.google.com with SMTP id b18so3659759lfv.9 for ; Wed, 04 May 2022 11:00:17 -0700 (PDT) X-Received: by 2002:a05:6512:3c93:b0:44b:4ba:c334 with SMTP id h19-20020a0565123c9300b0044b04bac334mr15264136lfv.27.1651687217327; Wed, 04 May 2022 11:00:17 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Linus Torvalds Date: Wed, 4 May 2022 11:00:00 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] hex2bin: make the function hex_to_bin constant-time To: "Jason A. Donenfeld" Cc: Andy Shevchenko , Stafford Horne , Mikulas Patocka , Andy Shevchenko , device-mapper development , Linux Kernel Mailing List , Linux Crypto Mailing List , Herbert Xu , "David S. Miller" , Mike Snitzer , Mimi Zohar , Milan Broz Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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, May 4, 2022 at 3:15 AM Jason A. Donenfeld wrote: > > > Alignment? Compiler bug? HW issue? > > Probably one of those, yea. Removing the instruction addresses, the only > difference between the two compiles is: https://xn--4db.cc/Rrn8usaX/diff#= line-440 Well, that address doesn't work for me at all. It turns into =D7=90.cc. I'd love to see the compiler problem, since I find those fascinating (mainly because they scare the hell out of me), but those web addresses you use are not working for me. It most definitely looks like an OpenRISC compiler bug - that code doesn't look like it does anything remotely undefined (and with the "unsigned char", nothing implementation-defined either). Linus