From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751862AbdJBVMK convert rfc822-to-8bit (ORCPT ); Mon, 2 Oct 2017 17:12:10 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42934 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751759AbdJBVMJ (ORCPT ); Mon, 2 Oct 2017 17:12:09 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 51D7583F40 Authentication-Results: ext-mx03.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx03.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=dhowells@redhat.com 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: References: To: Geert Uytterhoeven Cc: dhowells@redhat.com, "Jason A. Donenfeld" , linux-security-module@vger.kernel.org, keyrings@vger.kernel.org, kernel-hardening@lists.openwall.com, "linux-kernel@vger.kernel.org" , ebiggers3@gmail.com, Herbert Xu , Kirill Marinushkin , Ard Biesheuvel , Ilhan Gurel , security@kernel.org, stable Subject: Re: Modular BIG_KEYS (was: Re: [PATCH v4] security/keys: rewrite all of big_key crypto) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <7443.1506978724.1@warthog.procyon.org.uk> Content-Transfer-Encoding: 8BIT Date: Mon, 02 Oct 2017 22:12:04 +0100 Message-ID: <7444.1506978724@warthog.procyon.org.uk> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Mon, 02 Oct 2017 21:12:09 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Geert Uytterhoeven wrote: > Now this has hit mainline, the "BIG_KEYS" Kconfig symbol appeared on my > radar. Is there any reason this cannot be tristate? It was tristate, but it got converted to bool: commit 2eaf6b5dcafda2b8c22930eff7f48a364fce1741 KEYS: Make BIG_KEYS boolean and then: commit a1f2bdf338f15dbad10ee6362891ebf79244858b security/keys: make big_key.c explicitly non-modular > So to save kernel size, I wan't to save N, but for a distro kernel that might > have Kerberos users, you currently need to say Y, while M would be nicer. If you want to do that, you'll need to implement demand-loading of key type modules. Note that you'd end up using a minimum of a whole page as a module rather than ~2K if built in (I know, that's a compromise you have to decide on). David