From: "H. Peter Anvin" <hpa@zytor.com>
To: Andreas Robinson <andr345@gmail.com>
Cc: Alain Knaff <alain@knaff.lu>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] lib: add fast lzo decompressor
Date: Wed, 01 Apr 2009 09:12:42 -0700 [thread overview]
Message-ID: <49D3927A.2050406@zytor.com> (raw)
In-Reply-To: <1238593252-3435-2-git-send-email-andr345@gmail.com>
Andreas Robinson wrote:
> This patch adds an LZO decompressor tweaked to be faster than
> the 'safe' decompressor already in the kernel.
>
> On x86_64, it runs in roughly 80% of the time needed by the safe
> decompressor.
>
> This function is inherently insecure and can cause buffer overruns.
> It is only intended for decompressing implicitly trusted data, such
> as an initramfs and the kernel itself.
>
> As such, the function is neither exported nor declared in a header.
>
OK, I'm more than a bit nervous about that, especially since we're
trying to make the decompression functions more generic.
Furthermore, is there a specific reason you didn't implent this for the
kernel itself as well as for the initramfs? I'd really would strongly
prefer if the two compression sets didn't diverge.
-hpa
--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.
next prev parent reply other threads:[~2009-04-01 16:13 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-01 13:40 [PATCH 0/2] lib, initramfs: Add initramfs LZO compression Andreas Robinson
2009-04-01 13:40 ` [PATCH 1/2] lib: add fast lzo decompressor Andreas Robinson
2009-04-01 16:12 ` H. Peter Anvin [this message]
2009-04-01 19:22 ` Andreas Robinson
2009-04-01 20:55 ` H. Peter Anvin
2009-04-01 22:27 ` Andreas Robinson
2009-04-01 22:42 ` H. Peter Anvin
2009-04-01 23:11 ` Arjan van de Ven
2009-04-01 23:40 ` Nigel Cunningham
2009-04-02 12:30 ` Andreas Robinson
2009-04-02 20:59 ` Nigel Cunningham
2009-04-03 10:54 ` Andreas Robinson
2009-04-03 11:48 ` Nigel Cunningham
2009-04-03 12:53 ` Andreas Robinson
2009-04-03 23:28 ` Nigel Cunningham
2009-04-02 0:02 ` H. Peter Anvin
2009-04-02 12:13 ` Andreas Robinson
2009-04-02 14:30 ` John Stoffel
2009-04-03 9:49 ` Andreas Robinson
2009-04-03 18:35 ` H. Peter Anvin
2009-04-04 14:34 ` Andreas Robinson
2009-04-01 13:40 ` [PATCH 2/2] lib, initramfs: add support for LZO-compressed initramfs Andreas Robinson
2009-04-01 19:29 ` [PATCH 3/3] lib: enable lzo-compressed kernels Andreas Robinson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49D3927A.2050406@zytor.com \
--to=hpa@zytor.com \
--cc=alain@knaff.lu \
--cc=andr345@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.