linux-gbmc: peci: Systemic fixes for UAF and memory corruption

Consolidates the following fixes into a single patch:
- peci: core: Check xfer and refcount in peci_command
- peci: core: Relocate IDR removal to release callback
- peci: npcm: Fix use-after-free and ordering in teardown
- peci: dev: Fix use-after-free on adapter detach
- peci: core: Fix sysfs new_device race condition

Tested: Survived 60x unbind/bind iterations on a machine.
Fusion-Link: https://fusion2.corp.google.com/d7994c55-f939-35a7-b32f-0c54d54e61dc (platform11)
Fusion-Link: https://fusion2.corp.google.com/165543ab-bc9b-3723-b4f2-9ceeded9c6b8 (platform11-emr)
Fusion-Link: https://fusion2.corp.google.com/cc558fb5-4d87-3874-bad0-3b11c1c29715 (platform15)
Fusion-Link: https://fusion2.corp.google.com/58873016-06b4-3059-bd4f-91b1875591de (platform17)
Fusion-Link: https://fusion2.corp.google.com/61cccd02-779d-3b8a-9910-551ab3a2122b (platform5)

Google-Bug-Id: 498991349
Change-Id: I9fe6305b83730cb7f33aa1aa1f5b2396268e375e
Signed-off-by: William A. Kennington III <wak@google.com>
6 files changed
tree: aa68a37490514e9a821b97b6cb8a891b44abca38
  1. classes/
  2. conf/
  3. dynamic-layers/
  4. recipes-bsp/
  5. recipes-connectivity/
  6. recipes-core/
  7. recipes-devtools/
  8. recipes-extended/
  9. recipes-google/
  10. recipes-kernel/
  11. recipes-phosphor/
  12. recipes-support/
  13. recipes-tpm1/
  14. recipes-tpm2/
  15. LICENSE
  16. README.md
README.md

meta-gbmc-staging

This repository contains additions to the openbmc/meta-google layer that are not yet ready for OpenBMC inclusion.

How to use this layer

  1. Clone openbmc/openbmc from GitHub.
  2. Clone this layer from GitHub into a subdirectory of openbmc.