Public bug reported:

SRU Justification:

[Impact]

In the existing PKA driver implementation, in function
pka_dev_init_shim, the shim->mutex is first used in the
pka_dev_trng_read function. However, the mutex is initialized after the
pka_dev_trng_read function. This causes runtime kernel panic.

[Fix]

* Move the mutex initialization before the TRNG related function calls.

[Test Case]

* Verify the PKA devices can be successfully probed during kernel boot.

[Other]
* This code is likely to change depending on feedback we received from 
maintainers.

** Affects: linux-bluefield (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-bluefield in Ubuntu.
https://bugs.launchpad.net/bugs/2127200

Title:
  mlxbf-pka: fix the PKA shim mutex initialization issue

Status in linux-bluefield package in Ubuntu:
  New

Bug description:
  SRU Justification:

  [Impact]

  In the existing PKA driver implementation, in function
  pka_dev_init_shim, the shim->mutex is first used in the
  pka_dev_trng_read function. However, the mutex is initialized after
  the pka_dev_trng_read function. This causes runtime kernel panic.

  [Fix]

  * Move the mutex initialization before the TRNG related function
  calls.

  [Test Case]

  * Verify the PKA devices can be successfully probed during kernel
  boot.

  [Other]
  * This code is likely to change depending on feedback we received from 
maintainers.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-bluefield/+bug/2127200/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to