Skip to content

platform/chrome: cros_ec_chardev: To be ec_dev registered-aware

Tzung-Bi Shih chrome-platform 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2platform/chrome: cros_ec_chardev: Don't use wait queue's lockdrivers/platform/chrome/cros_ec_chardev.c+19 -210 replies
2/2platform/chrome: cros_ec_chardev: Check ec_dev's availability in fopsdrivers/platform/chrome/cros_ec_chardev.c+14 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] platform/chrome: cros_ec_chardev: To be ec_dev registered-aware

Userland programs may wait forever for MKBP events after the underlying struct cros_ec_device has been unregistered. The series tries to return appropriate errors when detecting such possibilities.

The 1st patch is a clean-up.

The 2nd patch fixes the issue via checking the ec_dev's availability in fops.

The series applies after
"[v3,0/8] platform/chrome: cros_ec_chardev: Fix a possible UAF"
(https://patchwork.kernel.org/project/chrome-platform/cover/[email protected]/).

Tzung-Bi Shih (2):
platform/chrome: cros_ec_chardev: Don't use wait queue's lock platform/chrome: cros_ec_chardev: Check ec_dev's availability in fops

 drivers/platform/chrome/cros_ec_chardev.c | 49 +++++++++++++----------
 1 file changed, 28 insertions(+), 21 deletions(-)
Signature · 1 line
2.50.0.727.gbf7dc18ff4-goog