New issue
Advanced search Search tips

Issue 771393 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Oct 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: iOS
Pri: 1
Type: Bug



Sign in to add a comment

imageloader mount helper crashes on startup

Project Member Reported by kerrnel@chromium.org, Oct 3 2017

Issue description

imageloader is crashing when trying to mount the Flash image, only during boot, on my heli. When run from the command line later, it works fine.

The offending system call is clock_gettime. What is strange is that we have both the platform_ImageLoader test and the ComponentUpdate test, neither of which have seen this problem, so it appears to only trigger under special circumstances or certain boards. 

I am submitting a fix, but am not sure if this is worth merging to M-62 since the autotests pass, and we don't have crash reports from the field.
 
Project Member

Comment 1 by bugdroid1@chromium.org, Oct 5 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/imageloader/+/f890bd476533520661943ffcda5cb288cd8b392f

commit f890bd476533520661943ffcda5cb288cd8b392f
Author: Greg Kerr <kerrnel@chromium.org>
Date: Thu Oct 05 01:47:07 2017

Add clock_gettime to helper process seccomp filter.

In certain environemnts, such as early boot, imageloader's libraries
call clock_gettime, and this is denied by the seccomp filter.

BUG= chromium:771393 
TEST=test_that platform_ImageLoaderServer

Change-Id: I75c686ff57a41bb334a212ef14f28eedfce9ffe1
Reviewed-on: https://chromium-review.googlesource.com/699243
Commit-Ready: Greg Kerr <kerrnel@chromium.org>
Tested-by: Greg Kerr <kerrnel@chromium.org>
Reviewed-by: Jorge Lucangeli Obes <jorgelo@chromium.org>
Reviewed-by: Eric Caruso <ejcaruso@chromium.org>

[modify] https://crrev.com/f890bd476533520661943ffcda5cb288cd8b392f/seccomp/imageloader-helper-seccomp-amd64.policy

Status: Fixed (was: Started)

Sign in to add a comment