summaryrefslogtreecommitdiff
path: root/LICENSES
diff options
context:
space:
mode:
authorArkadiusz Kubalewski <arkadiusz.kubalewski@intel.com>2024-01-19 16:43:02 +0300
committerDavid S. Miller <davem@davemloft.net>2024-01-22 14:01:11 +0300
commit830ead5fb0c5855ce4d70ba2ed4a673b5f1e7d9b (patch)
tree84b109b227b86b01d75dec6486992441da00bd5f /LICENSES
parentb6a11a7fc4d6337f7ea720b9287d1b9749c4eae0 (diff)
downloadlinux-830ead5fb0c5855ce4d70ba2ed4a673b5f1e7d9b.tar.xz
dpll: fix pin dump crash for rebound module
When a kernel module is unbound but the pin resources were not entirely freed (other kernel module instance of the same PCI device have had kept the reference to that pin), and kernel module is again bound, the pin properties would not be updated (the properties are only assigned when memory for the pin is allocated), prop pointer still points to the kernel module memory of the kernel module which was deallocated on the unbind. If the pin dump is invoked in this state, the result is a kernel crash. Prevent the crash by storing persistent pin properties in dpll subsystem, copy the content from the kernel module when pin is allocated, instead of using memory of the kernel module. Fixes: 9431063ad323 ("dpll: core: Add DPLL framework base functions") Fixes: 9d71b54b65b1 ("dpll: netlink: Add DPLL framework base functions") Reviewed-by: Jan Glaza <jan.glaza@intel.com> Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com> Signed-off-by: Arkadiusz Kubalewski <arkadiusz.kubalewski@intel.com> Reviewed-by: Jiri Pirko <jiri@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'LICENSES')
0 files changed, 0 insertions, 0 deletions