mlxbf-pmc: error when reading unprogrammed events
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-bluefield (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned | ||
Jammy |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
SRU Justification:
[Impact]
When the counters are not programmed to monitor any events, reading the "event<n>" file results in the following error:
cat: /sys/class/
This is misleading and instead needs to indicate that the counter is currently not enabled.
[Fix]
* First, skip the check for whether the counter is enabled when reading the event info. If the counter is not enabled, it should return 0, which is the default value when coming out of reset.
* 0 is not a valid event in most blocks as per the respective event lists, so add a "Disable" event to all the event lists.
[Test Case]
Without the fix, reading any "event" file right after reset when the counters are not programmed should result in the following error:
cat: /sys/class/
With the fix, it should instead print:
0x0: DISABLE
[Regression Potential]
Can be considered minimal
CVE References
Changed in linux-bluefield (Ubuntu): | |
status: | New → Invalid |
Changed in linux-bluefield (Ubuntu Focal): | |
status: | New → Fix Committed |
tags: | added: verification-done-focal |
Changed in linux-bluefield (Ubuntu Jammy): | |
status: | New → Fix Committed |
tags: | added: verification-done-jammy |
tags: |
added: verification-done-jammy removed: verification-needed-jammy |
This bug is awaiting verification that the linux-bluefield /5.4.0- 1047.52 kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification- needed- focal' to 'verification- done-focal' . If the problem still exists, change the tag 'verification- needed- focal' to 'verification- failed- focal'.
If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.
See https:/ /wiki.ubuntu. com/Testing/ EnableProposed for documentation how to enable and use -proposed. Thank you!