pwr-mlxbf.c: Improve driver dependencies and fix zero allocating memory size

Bug #1980750 reported by Asmaa Mnebhi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-bluefield (Ubuntu)
Invalid
Undecided
Unassigned
Focal
Fix Released
Medium
Asmaa Mnebhi

Bug Description

SRU Justification:

[Impact]

Improve the driver dependency on the gpio driver. Move that dependency to the probe as instructed by maintainers. Flush if there is remaining work while the driver is removed. fix size for zero allocating memory.

[Fix]

* Instead of using SOFTDEP, return -EPROBE_DEFER if the gpio-mlxbf2.c driver is not loaded yet.
* Flush work when driver is removed.
* fix size for zero allocating memory.
* Upgrade the driver version to 1.1 due to all above changes

[Test Case]

* Test case only valid on Board with BMC on it:
* Make sure driver is loaded and no errors in dmesg.
* issue a power reset from the BMC via IPMI.

[Regression Potential]

Any of the test cases above could be impacted due to these changes.

CVE References

Asmaa Mnebhi (asmaam)
description: updated
Stefan Bader (smb)
Changed in linux-bluefield (Ubuntu Focal):
assignee: nobody → Asmaa Mnebhi (asmaam)
importance: Undecided → Medium
status: New → In Progress
Changed in linux-bluefield (Ubuntu):
status: New → Invalid
Asmaa Mnebhi (asmaam)
description: updated
summary: - pwr-mlxbf.c: Improve driver dependencies
+ pwr-mlxbf.c: Improve driver dependencies and fix zero allocating memory
+ size
Changed in linux-bluefield (Ubuntu Focal):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux-bluefield - 5.4.0-1045.50

---------------
linux-bluefield (5.4.0-1045.50) focal; urgency=medium

  * focal/linux-bluefield: 5.4.0-1045.50 -proposed tracker (LP: #1983921)

  * pwr-mlxbf.c: Improve driver dependencies and fix zero allocating memory size
    (LP: #1980750)
    - SAUCE: pwr-mlxbf.c: Improve driver dependencies
    - SAUCE: pwr-mlxbf.c: Fix zero allocating memory size
    - SAUCE: pwr-mlxbf.c: Update driver version to 1.1

  * store the last executed chain also for clsact egress (LP: #1982980)
    - net/sched: store the last executed chain also for clsact egress

  * i2c-mlxbf.c: support lock mechanism (LP: #1981105)
    - SAUCE: i2c-mlxbf.c: support lock mechanism

  * i2c-mlxbf.c: fix wrong variable name (LP: #1982357)
    - SAUCE: i2c-mlxbf.c: fix wrong variable name

  [ Ubuntu: 5.4.0-125.141 ]

  * focal/linux: 5.4.0-125.141 -proposed tracker (LP: #1983947)
  * nbd: requests can become stuck when disconnecting from server with qemu-nbd
    (LP: #1896350)
    - blk-mq: blk-mq: provide forced completion method
    - blk-mq: move failure injection out of blk_mq_complete_request
    - nbd: don't handle response without a corresponding request message
    - nbd: make sure request completion won't concurrent
    - nbd: don't clear 'NBD_CMD_INFLIGHT' flag if request is not completed
    - nbd: fix io hung while disconnecting device
  * CVE-2021-33656
    - vt: drop old FONT ioctls
  * CVE-2021-33061
    - ixgbe: add the ability for the PF to disable VF link state
    - ixgbe: add improvement for MDD response functionality
    - ixgbevf: add disable link state

 -- Zachary Tahenakos <email address hidden> Thu, 11 Aug 2022 15:11:51 -0400

Changed in linux-bluefield (Ubuntu Focal):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.