Report firmware write protect status via UMA |
||||||||
Issue descriptionThere've been several incidents causes by accidental loss of firmware write protection. Let's add a UMA histogram to track the frequency of this happening in the wild.
,
Oct 24 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/third_party/flashrom/+/cef8eb3caf969bfdc729c9ef1ce54714cb8c971f commit cef8eb3caf969bfdc729c9ef1ce54714cb8c971f Author: David Hendricks <dhendrix@chromium.org> Date: Sat Oct 22 00:42:00 2016 cros_ec_*: Err out if non-EC type parameter is used for LPC/I2C CrOS ECs come in a few diffrent varieties now: EC, PD, and SH. The way things evolved over time we never really worried about what happens if the user specifies pd or sh as the EC type on a system with an LPC or I2C CrOS EC. Consequently "-p ec:type=<sh|pd>" causes flashrom to get confused and act as though "-p ec:type=ec" was used if the EC is I2C or LPC. This probably doesn't matter for most cases (firmware read/write) since the sizes would mismatch or some other obvious failure would occur, but other commands could return information about the EC instead of the device the user intends to target. BUG= chromium:658207 BRANCH=none TEST=tested on reef, "flashrom -p ec:type=" fails when pd or sh are specified. Change-Id: I7d0d2969ce7ddd707cefae1f5c6c5d38c7c7b935 Signed-off-by: David Hendricks <dhendrix@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/402058 Reviewed-by: Hung-Te Lin <hungte@chromium.org> [modify] https://crrev.com/cef8eb3caf969bfdc729c9ef1ce54714cb8c971f/cros_ec_i2c.c [modify] https://crrev.com/cef8eb3caf969bfdc729c9ef1ce54714cb8c971f/cros_ec_lpc.c
,
Oct 26 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/third_party/flashrom/+/2b56e472a4071cd3db188ce65da8b767989d18dc commit 2b56e472a4071cd3db188ce65da8b767989d18dc Author: David Hendricks <dhendrix@chromium.org> Date: Sat Oct 22 02:05:21 2016 Non-CrOS ECs: Err out if non-EC type parameter is used Similar to the previous patch, this adds programmer parameter parsing to non-CrOS ECs so that we can err out if an "ec" type device is not the intended target. BUG= chromium:658207 BRANCH=none TEST=Tested that "-p ec:type=" fails on Parrot (ENE EC) if pd or sh are specified as the type. Change-Id: Ic23d68f75226b947f35d49baa1c0fa0c83a15f3f Signed-off-by: David Hendricks <dhendrix@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/402059 Reviewed-by: Shawn N <shawnn@chromium.org> [modify] https://crrev.com/2b56e472a4071cd3db188ce65da8b767989d18dc/ene_lpc.c [modify] https://crrev.com/2b56e472a4071cd3db188ce65da8b767989d18dc/it85spi.c [modify] https://crrev.com/2b56e472a4071cd3db188ce65da8b767989d18dc/mec1308.c [modify] https://crrev.com/2b56e472a4071cd3db188ce65da8b767989d18dc/wpce775x.c
,
Oct 26 2016
,
Oct 28 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/platform2/+/aa1d248e2f0145d57c1ae06f8145c7846c4ac7c6 commit aa1d248e2f0145d57c1ae06f8145c7846c4ac7c6 Author: Mattias Nissler <mnissler@chromium.org> Date: Fri Oct 21 13:44:13 2016 init: Report boot mode metrics This adds UMA histograms for boot mode, including (1) firmware write protect switch status, (2) dev switch status, (3) main firmware write protect status, (4) EC firmware write protect status and (5) PD firmware write protect status. BUG= chromium:658207 TEST=Ran on a device and observed samples in chrome://histograms CQ-DEPEND=CL:402059 Change-Id: I750435f6598588aa077eff63e20f78c6f342ad6a Reviewed-on: https://chromium-review.googlesource.com/400739 Commit-Ready: Mattias Nissler <mnissler@chromium.org> Tested-by: Mattias Nissler <mnissler@chromium.org> Reviewed-by: Mattias Nissler <mnissler@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org> [add] https://crrev.com/aa1d248e2f0145d57c1ae06f8145c7846c4ac7c6/init/send-boot-mode.conf
,
Oct 31 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/64815089e2fbe13e92661d8c81d7c6c05c6b172e commit 64815089e2fbe13e92661d8c81d7c6c05c6b172e Author: mnissler <mnissler@chromium.org> Date: Mon Oct 31 09:49:30 2016 Add histogram definitions for Chrome OS boot mode. This adds enum type definitions and histogram declarations for boot mode metrics recorded by the Chrome OS boot process. See also https://chromium-review.googlesource.com/#/c/400739 BUG= chromium:658207 TEST=None Review-Url: https://codereview.chromium.org/2445993005 Cr-Commit-Position: refs/heads/master@{#428670} [modify] https://crrev.com/64815089e2fbe13e92661d8c81d7c6c05c6b172e/tools/metrics/histograms/histograms.xml
,
Oct 31 2016
,
Jan 21 2017
,
Mar 4 2017
,
Apr 17 2017
,
May 30 2017
,
Aug 1 2017
,
Oct 14 2017
|
||||||||
►
Sign in to add a comment |
||||||||
Comment 1 by bugdroid1@chromium.org
, Oct 24 2016