Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1452863pxb; Wed, 12 Jan 2022 15:20:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJyfzL16hHDQ3u88LVtBdhg8HYw86YX60etFzh1SGYjbQtC+bszyJv5XGx20LAGH/Sq1l/R1 X-Received: by 2002:a17:907:2cee:: with SMTP id hz14mr1484514ejc.103.1642029654984; Wed, 12 Jan 2022 15:20:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642029654; cv=none; d=google.com; s=arc-20160816; b=cXQ0zAPm7BT5qcEK5cDUD2/RNIrrXvfKbKRgXT0d/WtlqQQQiA5dcf6jYp3einp0tt vIlE9ocXnehZTKtc2XBWklNEumxGY8OVKydBkvU6d4FDC7eyY833cAH6fKkzY9LkoDRk /3GUHh21ZgxgoD9eh8s4CRd2o9/Y2x13zZxl1p6faF/NyE6KRjuvlPb5YvMsJqrbKF8U UI/koFteiONKmzMjFKwBSIzA74qmw1wgjuqxIY4W5cl2KaxQtplIBODfKb3JzqACH6LI qv+3KWEj0fy8iZjQTnwQUIsGdfTSCjOYSjsZIORhW9j3asZoG7lhYS7twSzDppSQwdwv MgaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=IQnTEWWPj/T6G7CafhN3yxIczQw5jaOpanOpbhcfynI=; b=JhNxRZ6bSi1IJgcHl63vGzgMhUNbg/NLC2fl7mR8/djBe7f5M57RoKQVQS811g6DzO nbzmzbtuEGp468f1CySa0dWzUEwcIxKdaL2Rxm4h5HygW7q7A3BaOTsoc3YmXqilv2Ai egoF7g8mi/dtA0Coyo7hhCfpZzXt7qRhxLdp1qZdar5/dPUqnoM8vhjLV8mrgDKl3f+s agQMFiMjvP9b/8a/Omm6nseqMsyMSlQds5b6BfS0K5fCx2USEHSiPwjow9pk2v8dLdlF lAqLw/GP6/lbdVMO23iOSJ5H3Ny8uef7KKat+T5DpGUTWMP8Vxn4oswma02ndqOKYMqV zGCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=daCuMezY; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dz11si679961edb.203.2022.01.12.15.20.29; Wed, 12 Jan 2022 15:20:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=daCuMezY; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354277AbiALOuF (ORCPT + 99 others); Wed, 12 Jan 2022 09:50:05 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:49840 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239463AbiALOuE (ORCPT ); Wed, 12 Jan 2022 09:50:04 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id ABBF3B81F46; Wed, 12 Jan 2022 14:50:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 61D08C36AEF; Wed, 12 Jan 2022 14:50:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1641999001; bh=IQnTEWWPj/T6G7CafhN3yxIczQw5jaOpanOpbhcfynI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=daCuMezYE1O4Z0Mu4w9f5bt8xt93rbC4AmBfk51x5I73eC6wpA9gojEotjFT/pSiu ZKXjJhJOoXLAXYw29UICNrDgHeDGNGNwdbnd27g/S/HRw2il/DkVdMo7sSrm9LgEtO 0jPtqJRROZFLjnAXi6Srrq5jX4xQxji5V7uj3tJljPn/UcpoWX/ZXVnGf8iSbdtLAB QHcefq6eyms+bKbmraVgYy03E21oRvVi97KYuNapBx/KJsoSxaEwmCRt4RlOU1a1nJ t/Nrwp88QbvmcT88Aq2gt4Lu/4D2ROpqshOQATWVjiXSY65wFjZQvb5IFJW6vSqcyr xGPk7SzmlKyOg== Received: by mail-wm1-f54.google.com with SMTP id 25-20020a05600c231900b003497473a9c4so3605718wmo.5; Wed, 12 Jan 2022 06:50:01 -0800 (PST) X-Gm-Message-State: AOAM533eG838W4wUVtQNvpsGBI8vB+X9/YSyY2BGqLD7FnRE2stChmXz cjvGTzQG8Gj26uUZ8nY+RiG/mhpZ0uL/+kaWUXI= X-Received: by 2002:a05:600c:1991:: with SMTP id t17mr7068642wmq.25.1641998999585; Wed, 12 Jan 2022 06:49:59 -0800 (PST) MIME-Version: 1.0 References: <20220112140137.728162-1-jforbes@fedoraproject.org> In-Reply-To: From: Ard Biesheuvel Date: Wed, 12 Jan 2022 15:49:48 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] lib/crypto: add prompts back to crypto libraries To: "Jason A. Donenfeld" Cc: "Justin M. Forbes" , Herbert Xu , "David S. Miller" , Greg Kroah-Hartman , Linux Crypto Mailing List , LKML , Justin Forbes , Linux Kbuild mailing list Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Wed, 12 Jan 2022 at 15:44, Jason A. Donenfeld wrote: > > On Wed, Jan 12, 2022 at 3:42 PM Ard Biesheuvel wrote: > > > > On Wed, 12 Jan 2022 at 15:15, Jason A. Donenfeld wrote: > > > > > > On Wed, Jan 12, 2022 at 3:13 PM Ard Biesheuvel wrote: > > > > > > > > On Wed, 12 Jan 2022 at 15:12, Jason A. Donenfeld wrote: > > > > > > > > > > On Wed, Jan 12, 2022 at 3:08 PM Ard Biesheuvel wrote: > > > > > > > > > > > > On Wed, 12 Jan 2022 at 15:08, Jason A. Donenfeld wrote: > > > > > > > > > > > > > > On Wed, Jan 12, 2022 at 3:06 PM Ard Biesheuvel wrote: > > > > > > > > > > > > > > > > On Wed, 12 Jan 2022 at 15:05, Jason A. Donenfeld wrote: > > > > > > > > > > > > > > > > > > This commit also needs this snippet: > > > > > > > > > > > > > > > > > > > > > > > > > Why? > > > > > > > > > > > > > > So that the menu of crypto library options is inside of the library > > > > > > > menu. Otherwise this will appear inside of the _root_ menu, which > > > > > > > isn't what we want. > > > > > > > > > > > > Why not? I think that's fine. > > > > > > > > > > It's really not appropriate there. Look: > > > > > > > > > > - Justin vanilla: https://i.imgur.com/14UBpML.png > > > > > - Justin + Jason: https://i.imgur.com/lDfZnma.png > > > > > > > > > > We really don't want another top level menu. We're not that important. > > > > > Rather, crypto libraries are but one ordinary subset of ordinary > > > > > libraries, just like how the build system does it too. > > > > > > > > I disagree. The root menu is a jumble of things already, and having > > > > this one at the root is really not a problem. > > > > > > Should CRC routines also go into a submenu and be put at the root? > > > What about other library functions? Library functions belong in the > > > library submenu. We don't need our own top level submenu for this. The > > > whole point of lib/crypto/ is that they're just boring library > > > functions. Libraries! So, part of the libraries menu. > > > > Shouting it doesn't make it true. > > I'm not shouting. I respectfully disagree with your perspective. I > think the comparison to CRC routines is an apt one, still unaddressed. > Sure, but none of this is relevant for the short term fix that we need to get in asap. There are lots of future changes we can philosophize about, but those discussions should take place on the linux-crypto list after the merge window closes. > > Nobody cares about what the root menu looks like > > I certainly do. > Fair enough. But on many architectures, it looks absolutely horrid, and I rarely see fixes sent for it. > > and given that this > > patch is presumably going to be sent as an early fix on top of your > > rng branch, it is better not to touch anything under crypto/ unless > > you are 100% certain it is not going to conflict with Herbert's tree. > > Oh, I was thinking Herbert would take this since he hasn't sent a pull > yet? Otherwise, sure, I can do it. > How could he? This patch does not apply to his cryptodev tree, which won't receive backmerges from mainline until the next cycle.