commit | 76b2bc7da5bbb32cf81333d27afa798029664cac | [log] [tgz] |
---|---|---|
author | Ed Tanous <edtanous@google.com> | Fri Feb 18 09:48:16 2022 -0800 |
committer | Ed Tanous <edtanous@google.com> | Fri Feb 18 09:48:16 2022 -0800 |
tree | 0cba4a7a5ee8c4b4d5cfcc0288fe24a24fe4d8e6 | |
parent | 7d6b77d083ac562db423cfe593710c96b005e116 [diff] |
Fix lifetime bug Capturing a shared_ptr by reference does not keep it alive for the lifetime of the callback, as was clearly the intent on this line. This leads to use after free bugs. Make the one character change to capture this RAII object by value, not reference. Tested: Don't have NVMe drives to test with at the moment, but this should be trivial. Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: I5c81f0bd287f3ea3e3a77f3589718201733be32f
dbus-sensors is a collection of sensor applications that provide the xyz.openbmc_project.Sensor collection of interfaces. They read sensor values from hwmon, d-bus, or direct driver access to provide readings. Some advance non-sensor features such as fan presence, pwm control, and automatic cpu detection (x86) are also supported.
runtime re-configurable from d-bus (entity-manager or the like)
isolated: each sensor type is isolated into its own daemon, so a bug in one sensor is unlikely to affect another, and single sensor modifications are possible
async single-threaded: uses sdbusplus/asio bindings
multiple data inputs: hwmon, d-bus, direct driver access