- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Intel Engineers,
On an old Xeon server running Ubuntu 22.04, when switching to the latest kernel (5.15) driver, I notice that the socperf driver segfault with:
array-index-out-of-bounds in /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/socperf/src/pmu_list.c:392:60
Updating to the latest kernel (5.15.0-30-generic) didn’t solve the problem.
After looking more closely, I think I find a workaround:
At line 392 of pmu_list.c, unit_info_list is initialized with
PMU_MMIO_UNIT_INFO_NODE *unit_info_list = pmu_info_list[pmu_info_index].mmio_info_list;
However, (pmu_info_index == -1) is checked only _after_ initialization, resulting in the segfault.
Testing (pmu_info_index == -1) before initialization, I could load the socperf module.
(I then received the expected kernel message “No MMIO list information detected!”)
I am not sure if it’s useful, but if someone encounters the same trouble, here is the workaround:
392c392
< PMU_MMIO_UNIT_INFO_NODE *unit_info_list = pmu_info_list[pmu_info_index].mmio_info_list;
---
> PMU_MMIO_UNIT_INFO_NODE *unit_info_list;
394a395,400
> if (pmu_info_index == -1) {
> SOCPERF_PRINT("No MMIO list information detected!\n");
> SOCPERF_PRINT_DEBUG("Success");
> return OS_SUCCESS;
> }
> unit_info_list = pmu_info_list[pmu_info_index].mmio_info_list;
396c402
< if (pmu_info_index == -1 || !unit_info_list) {
---
> if (!unit_info_list) {
Sincerely,
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for sharing the workaround with us. It would certainly be helpful for other users.
Kindly let us know if you have any issues ,if not we can close the case.
Regards,
Janani Chandran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Janani Chandran,
Thank you for your message.
I didn’t run into another problem, so it is fine to “close the case”.
Sincerely,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for the confirmation. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.
Regards,
Janani Chandran

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page