Thread (26 messages) 26 messages, 4 authors, 2012-09-20

Re: [PATCH 14/16] X.509: Add an ASN.1 decoder

From: Alan Cox <hidden>
Date: 2012-09-14 09:35:14
Also in: lkml

On Fri, 14 Sep 2012 00:50:05 +0100
David Howells [off-list ref] wrote:
Add an ASN.1 BER/DER/CER decoder.  This uses the bytecode from the ASN.1
compiler in the previous patch to inform it as to what to expect to find in the
encoded byte stream.  The output from the compiler also tells it what functions
to call on what tags, thus allowing the caller to retrieve information.
Why do this in the kernel.That appears to be completely insane. Can you
prove it runs in a short bounded time for all inputs, has it been fuzz
tested extensively ?

This kind of crap belongs in user space. Parse it in userspace, pass same
structures and objects to the kernel.

Alan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help