Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1743303
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Eric Biggers <ebiggers3@gmail.com> |
| Newsgroups | linux.kernel |
| Subject | Re: Modular BIG_KEYS (was: Re: [PATCH v4] security/keys: rewrite all of big_key crypto) |
| Date | Mon, 02 Oct 2017 22:50:14 +0200 |
| Message-ID | <uwfPg-ur-237@gated-at.bofh.it> (permalink) |
| References | <uw3bc-4nm-15@gated-at.bofh.it> |
| X-Original-To | Geert Uytterhoeven <geert@linux-m68k.org> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=jWgZ0TQNKvge9/IANo94i3Fe1PbiADh+UzrR/1gmYUc=; b=jUGd7DUO+1DnKNyw76Nu6kb+vWL9Nz0Ug/mi2BRp3P6w++AzHHNlwOBHNzWuy366dc gObrJcabfphbH9h14kkrqGr5FmItkJRicGV42aCSvLP+cqA6G9qIFcg4y+C7e+Xr7xqH XvKWcsiLtu2Hi4o0Is4lCRZKNTzTJdwmcF/E6yU5MdZ/u1XToJAQpiWWu31kITelV7OO xYX0jsmOx5rGwixc64vMUqsiCWxNwxX9h8RjEo4489U1QuQuxhOrJSXGOSQHZbKb+DSF g5tAlQt6MF1Yos6m9NNqcz5mPKUPgSfYc++xS45aPPmywF85CW8pQRJM35a/8L43MmZ2 QsLw== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=jWgZ0TQNKvge9/IANo94i3Fe1PbiADh+UzrR/1gmYUc=; b=LT75Erlj7rf9cg17Cd+Dlx2Zks1voteDyCdAkImj827Tsy4LGgj6Wl4nyPOObOnMVn fbTMLy43kSrVCWhihABTeA+dqqtXe5Lk9X4Ye8geNHgWKloAG6yt3ZtnxAWViLPX7UiT eutf0mAvv+pEh+ojyksJY6Pv2zH5Adf2xoHiVtmqLdOGS6kdu/vxyK/seMYlbhBF+lUE doaXwJoYbU/hSh++WD2d04v5Uu8ExwC4vosMFl1f7eaBF9amAqnitXzYWKNcTSNhNWl8 ODn7E2v1h5DTM0BW9rJ8JW3cQnvylWbvIh6VYhNwt+4QmQarBY+x/NDY6iYgX4TxLs1n JZKQ== |
| X-Gm-Message-State | AHPjjUistiyYsN9AbWWuuTvaH3odIYXAvVDdIyOEAYKLULnq5ETad+JZ g3yQdEhHN6hAjCcmPPuIeOE= |
| X-Google-SMTP-Source | AOwi7QA35ZYpW8OIyCSyRwhmForfK9y1rbgj9MgyOq2KRvr3aKhkXz4MjLkhxmno6v3PO8cYaYtUqw== |
| X-Received | by 10.98.210.67 with SMTP id c64mr14718514pfg.60.1506963674107; Mon, 02 Oct 2017 10:01:14 -0700 (PDT) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| User-Agent | Mutt/1.5.21 (2010-09-15) |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 34 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | "Jason A. Donenfeld" <Jason@zx2c4.com>, linux-security-module@vger.kernel.org, keyrings@vger.kernel.org, kernel-hardening@lists.openwall.com, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, David Howells <dhowells@redhat.com>, Herbert Xu <herbert@gondor.apana.org.au>, Kirill Marinushkin <k.marinushkin@gmail.com>, Ard Biesheuvel <ard.biesheuvel@linaro.org>, Ilhan Gurel <ilhan.gurel@gmail.com>, security@kernel.org, stable <stable@vger.kernel.org> |
| X-Original-Date | Mon, 2 Oct 2017 10:01:11 -0700 |
| X-Original-Message-ID | <20171002170111.GA6713@gmail.com> |
| X-Original-References | <CAMuHMdWd3ttH7Zdpo=bodkOBw2xiyeX_R9MhPf=Bcf0-QLhOiQ@mail.gmail.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1743303 |
Show key headers only | View raw
On Mon, Oct 02, 2017 at 09:14:36AM +0200, 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? > > The help text says: > > This option provides support for holding large keys within the kernel > (for example Kerberos ticket caches). The data may be stored out to > swapspace by tmpfs. > > If you are unsure as to whether this is required, answer N. > > 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. > > The symbol seems to just control the build of security/keys/big_key.c, > which could use module_init() in the modular case. > I'm not sending a patch to change BIG_KEYS from bool to tristate, as this is > crypto, and I don't understand the full implications. > It's possible to have a key type in a module. In fact, some of the existing key types such as key_type_rxrpc can already be modular. But I don't think it really works as intended currently because there is no autoloading of key type modules. That is, if big_key was a module and you tried to add a key of type "big_key", the big_key module would *not* be automatically loaded, so the call would return -ENODEV. This could be fixed, I believe. (I also still need to convince myself that there aren't any race conditions in key type unregistering. It's a little weird how it changes the key type to the ".dead" key type, rather than pinning the key type in memory while it's still used.) Eric
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Modular BIG_KEYS (was: Re: [PATCH v4] security/keys: rewrite all of big_key crypto) Geert Uytterhoeven <geert@linux-m68k.org> - 2017-10-02 09:20 +0200 Re: Modular BIG_KEYS (was: Re: [PATCH v4] security/keys: rewrite all of big_key crypto) Eric Biggers <ebiggers3@gmail.com> - 2017-10-02 22:50 +0200
csiph-web