1. 14 9月, 2020 2 次提交
  2. 09 9月, 2020 1 次提交
    • S
      firmware: arm_scmi: Fix NULL pointer dereference in mailbox_chan_free · 6ed6c558
      Sudeep Holla 提交于
      scmi_mailbox is obtained from cinfo->transport_info and the first
      call to mailbox_chan_free frees the channel and sets cinfo->transport_info
      to NULL. Care is taken to check for non NULL smbox->chan but smbox can
      itself be NULL. Fix it by checking for it without which, kernel crashes
      with below NULL pointer dereference and eventually kernel panic.
      
         Unable to handle kernel NULL pointer dereference at
         		virtual address 0000000000000038
         Modules linked in: scmi_module(-)
         Hardware name: ARM LTD ARM Juno Development Platform/ARM Juno
         		Development Platform, BIOS EDK II Sep  2 2020
         pstate: 80000005 (Nzcv daif -PAN -UAO BTYPE=--)
         pc : mailbox_chan_free+0x2c/0x70 [scmi_module]
         lr : idr_for_each+0x6c/0xf8
         Call trace:
          mailbox_chan_free+0x2c/0x70 [scmi_module]
          idr_for_each+0x6c/0xf8
          scmi_remove+0xa8/0xf0 [scmi_module]
          platform_drv_remove+0x34/0x58
          device_release_driver_internal+0x118/0x1f0
          driver_detach+0x58/0xe8
          bus_remove_driver+0x64/0xe0
          driver_unregister+0x38/0x68
          platform_driver_unregister+0x1c/0x28
          scmi_driver_exit+0x38/0x44 [scmi_module]
         ---[ end trace 17bde19f50436de9 ]---
         Kernel panic - not syncing: Fatal exception
         SMP: stopping secondary CPUs
         Kernel Offset: 0x1d0000 from 0xffff800010000000
         PHYS_OFFSET: 0x80000000
         CPU features: 0x0240022,25806004
         Memory Limit: none
         ---[ end Kernel panic - not syncing: Fatal exception ]---
      
      Link: https://lore.kernel.org/r/20200908112611.31515-1-sudeep.holla@arm.com
      Fixes: 5c8a47a5 ("firmware: arm_scmi: Make scmi core independent of the transport type")
      Cc: Cristian Marussi <cristian.marussi@arm.com>
      Cc: Viresh Kumar <viresh.kumar@linaro.org>
      Tested-by: NCristian Marussi <cristian.marussi@arm.com>
      Reviewed-by: NCristian Marussi <cristian.marussi@arm.com>
      Reviewed-by: NViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: NSudeep Holla <sudeep.holla@arm.com>
      6ed6c558
  3. 08 9月, 2020 2 次提交
  4. 07 9月, 2020 1 次提交
  5. 13 8月, 2020 1 次提交
  6. 30 7月, 2020 1 次提交
  7. 27 7月, 2020 1 次提交
  8. 25 7月, 2020 3 次提交
  9. 19 7月, 2020 1 次提交
    • M
      firmware: turris-mox-rwtm: support ECDSA signatures via debugfs · 50524d78
      Marek Behún 提交于
      The firmware on Turris MOX secure processor offers signing messages
      with ECDSA private key stored in protected OTP memory.
      
      The optimal solution would be to register an akcipher provider via
      kernel's crypto API, but crypto API does not yet support accessing
      akcipher API from userspace (and probably won't for some time, see
      https://www.spinics.net/lists/linux-crypto/msg38388.html).
      
      At first I tried to put this via standard sysfs API, but the way I
      designed it is not compatible with sysfs's standard "one file per
      attribute".
      
      This patch therefore adds support for accessing this signature
      generation mechanism via debugfs. Since CZ.NIC's Turris MOX is the only
      user of this module, the potential future change to akcipher API should
      not cause problems, since we can just change our userspace software then.
      Signed-off-by: NMarek Behún <marek.behun@nic.cz>
      Signed-off-by: NGregory CLEMENT <gregory.clement@bootlin.com>
      50524d78
  10. 17 7月, 2020 1 次提交
  11. 16 7月, 2020 1 次提交
  12. 15 7月, 2020 1 次提交
    • J
      firmware: tegra: Add support for in-band debug · 5e37b9c1
      Jon Hunter 提交于
      Add support for retrieving BPMP debug information via in-band messaging
      as opposed to using shared-memory which older BPMP firmware used. Note
      that it is possible to detect at runtime whether the BPMP firmware being
      used supports the in-band messaging for retrieving the debug
      informaation. Therefore, if the BPMP firmware supports the in-band
      messaging for debug use this and otherwise fall-back to using shared
      memory.
      Signed-off-by: NJon Hunter <jonathanh@nvidia.com>
      Signed-off-by: NThierry Reding <treding@nvidia.com>
      5e37b9c1
  13. 14 7月, 2020 5 次提交
  14. 13 7月, 2020 5 次提交
  15. 10 7月, 2020 1 次提交
  16. 09 7月, 2020 6 次提交
  17. 07 7月, 2020 2 次提交
  18. 06 7月, 2020 1 次提交
  19. 02 7月, 2020 4 次提交