Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2579407pxm; Mon, 28 Feb 2022 01:49:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJxcYV4lJHhjNS5XCDKRZcR3yFI9nMm4ZebTNa0vvrvZgXLzgswQzzgJxR4akwfqwdSigu/O X-Received: by 2002:a17:902:f612:b0:14c:e978:f99e with SMTP id n18-20020a170902f61200b0014ce978f99emr19357476plg.23.1646041750907; Mon, 28 Feb 2022 01:49:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646041750; cv=none; d=google.com; s=arc-20160816; b=dBC0KOomD3GXR+sYAoIKn8VTxwOiuZ7Ryk2tJNu0JoimYR6uSN4Lvpl/EN6/IsYtEs jBdwYKELjSOhfumbFBgxdiO7kPppCXclzxAd74Mt1K6vCgwQThTRKFCmxPWR2v1NLfo9 CB0xQWlcb7gDnKIItB/3qum3gE4xIbmCgwGh7nGdnPLDKduBywosTCQt0Cmgt3Mh/mnz PuMG+374qn2anWBYi2XM60lBMYwzeazN3b+bMSr5Rm5NHV6USjWEjwPW6mVh6MLj6rxI NQLsXmxRj/SRb7MvbOs4jQaKZ4xqh1K1NCPCmV9cTC8Xl1uoHDIzeMdC6+EEaI7/Qtnb OF3A== 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=FiyRI5DHlb96l/+rmBXOae4F7ATJ/xLo/4ohoO57pkc=; b=O9I6zqdH8LCEKfw12h6R11VJCXtpiI1w8PiRaonCqbO3I1fPv/tEqcGVBRYSManhWy +YXCIj3gVijIaGkwHBUw+tokt+R0IBOQvSIWuhl8f14nSd64dsR6k/aslOY1xe7R+qKc zKGZQyQELn4LVD4bfOvE7ng8WLwmz1Nh3qqV3qRe2LJZZDsCqzskmXQFpAhd4fzbA2fB /ujJ8P9Mh/aSzj9gMGWKQ5hj9p+DNrLvKpyUPccBGJ1S4UudyE9h2zYp/DaO0gx/r9+m rAAvzbZtjuMvWiWPYHazGyObmzia4q5I3sPAaNHWy+PlW2o0vzbaZ+uh/lVtygtOhWq9 PQww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@benyossef-com.20210112.gappssmtp.com header.s=20210112 header.b=cdKByohA; 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 k35-20020a634b63000000b0036cda7abecbsi8548772pgl.634.2022.02.28.01.48.55; Mon, 28 Feb 2022 01:49:10 -0800 (PST) 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=@benyossef-com.20210112.gappssmtp.com header.s=20210112 header.b=cdKByohA; 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 S233731AbiB1JJq (ORCPT + 99 others); Mon, 28 Feb 2022 04:09:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234088AbiB1JJn (ORCPT ); Mon, 28 Feb 2022 04:09:43 -0500 Received: from mail-yb1-xb2f.google.com (mail-yb1-xb2f.google.com [IPv6:2607:f8b0:4864:20::b2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D04CB49CB1 for ; Mon, 28 Feb 2022 01:09:04 -0800 (PST) Received: by mail-yb1-xb2f.google.com with SMTP id j12so19090286ybh.8 for ; Mon, 28 Feb 2022 01:09:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=benyossef-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=FiyRI5DHlb96l/+rmBXOae4F7ATJ/xLo/4ohoO57pkc=; b=cdKByohAsWXJXwPllDc7pyrfXAVLilSsZKbLHuCjxbOyvB0D8A+9rZpwdn3Ok3JVdy PMne06PyJIyLBNmyxaAAbL3PIWzSkzQ2rTLaihsWtB/oZZmnuOCpgC+R0EUohg9BUTX9 1Zx/pyDlo8vGUrXneQhecsXYiesuPwo6XRzNYQ3zTU2lVUuRukRyKQBbyKSX8ExV9iEJ AAIy0Sz7kf+zKkLoXLKUA1pQm7UYHb49/LL+dNqz1DWEHFk60qIJC8M2GOK++nRL36qR mBsHrQvFixzpSEB6IVw63u3qpS0j/IzueLYptj1un7eNwjT+GacOaCx3yOHEMIs/qXFG i0Jw== 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=FiyRI5DHlb96l/+rmBXOae4F7ATJ/xLo/4ohoO57pkc=; b=mIx58d2lxBgej/RtABYStouybeAip3PU46CZpaaqDHy8AidV3RjLvwKQhXCJNfvajK rVlpjAo/JvdI2kEGwmLrP9qwia5SJVrB8Etj7LxRNOXjr5IWAMxr/YIr+6Uymb6+oXZs Qjx6BVbWCs2dE6/sMN1LV8Unzq1lL9u4sj3G2psBYpSHW5bgjef4q0liAgAEAKUmg/aW oqYmmloJsN6BNa6eou2S7tI7niWwoFgkXLnzyVbBxsxoBb57cE76F6J9WmXX87PykVEW Xs161ANNXKO73/MgZciodhjbOspdkz5CxRkeB/HuMZZDu5HB1wKA12hGf71o3UOQL7R8 BRow== X-Gm-Message-State: AOAM533G62gPUw88FR4TGM/+tDb1Kpylbj63BHG0JclCpXt31grD6W5y dDsvdsMkI9kVip1fo2LKarJQH29CtZHBXQ9faANLEQ== X-Received: by 2002:a25:5047:0:b0:61a:ea8e:cc6d with SMTP id e68-20020a255047000000b0061aea8ecc6dmr17403314ybb.65.1646039343950; Mon, 28 Feb 2022 01:09:03 -0800 (PST) MIME-Version: 1.0 References: <20220223080400.139367-1-gilad@benyossef.com> In-Reply-To: From: Gilad Ben-Yossef Date: Mon, 28 Feb 2022 11:09:05 +0200 Message-ID: Subject: Re: [PATCH] crypto: drbg: fix crypto api abuse To: Eric Biggers Cc: Herbert Xu , "David S. Miller" , Ofir Drang , Corentin Labbe , stable , Linux Crypto Mailing List , Linux kernel mailing list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,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 Hi, On Sun, Feb 27, 2022 at 12:12 PM Gilad Ben-Yossef wro= te: ... > > I think the right thing to do right now is to verify that we indeed > have a general issue and not something specific to one singular > platform > So the question becomes - do indeed the DMA api forbits aliased > mappings and if so, under what conditions? > > Any ideas on how to check this? OK, I've looked into this further and I think I was wrong. The DMA api doesn't like overlapping writable mappings, but it seems an overlapping read-only and writable mapping are fine. If so I can indeed resolve this in the driver code by better specifying DMA direction. Let me give this a go and let's drop this patch in the meantime. Thank you and sorry for the noise. Gilad --=20 Gilad Ben-Yossef Chief Coffee Drinker values of =CE=B2 will give rise to dom!