diff options
author | Arkadiusz Kubalewski <arkadiusz.kubalewski@intel.com> | 2024-01-19 14:43:03 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-01-22 12:01:11 +0100 |
commit | db2ec3c94667eaeecc6a74d96594fab6baf80fdc (patch) | |
tree | e2a6a8c8205e0b8bce9e557ec0a84cc9f52e8d6d /security/Kconfig.hardening | |
parent | dpll: fix pin dump crash for rebound module (diff) | |
download | linux-db2ec3c94667eaeecc6a74d96594fab6baf80fdc.tar.xz linux-db2ec3c94667eaeecc6a74d96594fab6baf80fdc.zip |
dpll: fix userspace availability of pins
If parent pin was unregistered but child pin was not, the userspace
would see the "zombie" pins - the ones that were registered with
a parent pin (dpll_pin_on_pin_register(..)).
Technically those are not available - as there is no dpll device in the
system. Do not dump those pins and prevent userspace from any
interaction with them. Provide a unified function to determine if the
pin is available and use it before acting/responding for user requests.
Fixes: 9d71b54b65b1 ("dpll: netlink: Add DPLL framework base functions")
Reviewed-by: Jan Glaza <jan.glaza@intel.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Arkadiusz Kubalewski <arkadiusz.kubalewski@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'security/Kconfig.hardening')
0 files changed, 0 insertions, 0 deletions