Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1723172 > unrolled thread

Re: [PATCHv3 2/2] extract early boot entropy from the passed cmdline

Started byPavel Machek <pavel@ucw.cz>
First post2017-08-30 12:00 +0200
Last post2017-08-30 15:30 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCHv3 2/2] extract early boot entropy from the passed cmdline Pavel Machek <pavel@ucw.cz> - 2017-08-30 12:00 +0200
    Re: [kernel-hardening] Re: [PATCHv3 2/2] extract early boot entropy  from the passed cmdline Nick Kralevich <nnk@google.com> - 2017-08-30 15:30 +0200

#1723172 — Re: [PATCHv3 2/2] extract early boot entropy from the passed cmdline

FromPavel Machek <pavel@ucw.cz>
Date2017-08-30 12:00 +0200
SubjectRe: [PATCHv3 2/2] extract early boot entropy from the passed cmdline
Message-ID<uk7WW-6Hb-9@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

On Wed 2017-08-16 23:31:48, Theodore Ts'o wrote:
> On Wed, Aug 16, 2017 at 04:14:58PM -0700, Laura Abbott wrote:
> > From: Daniel Micay <danielmicay@gmail.com>
> > 
> > Existing Android bootloaders usually pass data useful as early entropy
> > on the kernel command-line. It may also be the case on other embedded
> > systems.....
> 
> May I suggest a slight adjustment to the beginning commit description?
> 
>    Feed the boot command-line as to the /dev/random entropy pool
> 
>    Existing Android bootloaders usually pass data which may not be
>    known by an external attacker on the kernel command-line.  It may
>    also be the case on other embedded systems.  Sample command-line
>    from a Google Pixel running CopperheadOS....
> 
> The idea here is to if anything, err on the side of under-promising
> the amount of security we can guarantee that this technique will
> provide.  For example, how hard is it really for an attacker who has
> an APK installed locally to get the device serial number?  Or the OS
> version?  And how much variability is there in the bootloader stages
> in milliseconds?
> 
> I think we should definitely do this.  So this is more of a request to
> be very careful what we promise in the commit description, not an
> objection to the change itself.

The command line is visible to unpriviledged userspace (/proc/cmdline,
dmesg). Is that a problem?

U-boot already does some crypto stuff, so it may have some
randomness. Should we create parameter random=xxxxxxxxxxx that is
"censored" during kernel boot?

									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

[toc] | [next] | [standalone]


#1723335 — Re: [kernel-hardening] Re: [PATCHv3 2/2] extract early boot entropy from the passed cmdline

FromNick Kralevich <nnk@google.com>
Date2017-08-30 15:30 +0200
SubjectRe: [kernel-hardening] Re: [PATCHv3 2/2] extract early boot entropy from the passed cmdline
Message-ID<ukbea-oA-31@gated-at.bofh.it>
In reply to#1723172
On Wed, Aug 30, 2017 at 2:57 AM, Pavel Machek <pavel@ucw.cz> wrote:
> The command line is visible to unpriviledged userspace (/proc/cmdline,
> dmesg). Is that a problem?

These files are not exposed to untrusted processes on Android.

-- 
Nick Kralevich | Android Security | nnk@google.com | 650.214.4037

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web