[SRU][Ubuntu 22.04.1]: Observed "Array Index out of bounds" Call Trace multiple times on Ubuntu 22.04.1 OS during boot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
In Progress
|
Medium
|
Michael Reed | ||
Jammy |
Fix Released
|
Medium
|
Michael Reed | ||
Kinetic |
Fix Committed
|
Medium
|
AceLan Kao |
Bug Description
SRU Justification:
[Impact]
When booted into Ubuntu 22.04.1 OS after installation, observed "Array Index out of bounds" Call Trace multiple times in dmesg.
Call Trace is as follow:
[ 6.125704] UBSAN: array-index-
[ 6.125705] index 1 is out of range for type 'MR_LD_SPAN_MAP [1]'
[ 6.125707] CPU: 0 PID: 18 Comm: kworker/0:1 Not tainted 5.15.0-53-generic #59-Ubuntu
[ 6.125709] Hardware name: Dell Inc. , BIOS 11/08/2022
[ 6.125710] Workqueue: events work_for_cpu_fn
[ 6.125716] Call Trace:
[ 6.125718] <TASK>
[ 6.125720] show_stack+
[ 6.125725] dump_stack_
[ 6.125731] dump_stack+
[ 6.125732] ubsan_epilogue+
[ 6.125734] __ubsan_
[ 6.125736] ? MR_PopulateDrvR
[ 6.125747] mr_update_
[ 6.125753] MR_ValidateMapI
[ 6.125757] megasas_
[ 6.125762] ? megasas_
[ 6.125768] megasas_
[ 6.125774] megasas_
[ 6.125779] local_pci_
[ 6.125783] work_for_
[ 6.125785] process_
[ 6.125786] worker_
[ 6.125787] ? process_
[ 6.125788] kthread+0x127/0x150
[ 6.125790] ? set_kthread_
[ 6.125791] ret_from_
[ 6.125796] </TASK>
[ 6.125796] =======
Steps to reproduce:
1. Connect PERC H355 controller to the system
2. Create RAID1 using drives connected to PERC Controller
3. Install Ubuntu 22.04.1 on VD
4. Boot into OS after installation
5. Multiple Call Traces of "array-
Expected Behavior:
OS should boot without this Call Trace
[Fix]
[PATCH v3 0/6] Replace one-element arrays with flexible-array members
https://<email address hidden>/
48658213 scsi: megaraid_sas: Use struct_size() in code related to struct MR_PD_CFG_
41e83026 scsi: megaraid_sas: Use struct_size() in code related to struct MR_FW_RAID_MAP
ee92366a scsi: megaraid_sas: Replace one-element array with flexible-array member in MR_PD_CFG_
eeb3bab7 scsi: megaraid_sas: Replace one-element array with flexible-array member in MR_DRV_RAID_MAP
204a29a1 scsi: megaraid_sas: Replace one-element array with flexible-array member in MR_FW_RAID_
ac23b92b scsi: megaraid_sas: Replace one-element array with flexible-array member in MR_FW_RAID_MAP
[Test Plan]
1. Connect PERC H355 controller to the system
2. Create RAID1 using drives connected to PERC Controller
3. Install Ubuntu 22.04.1 on VD
4. Boot into OS after installation
OS should boot without the Call Trace listed in the Impact field
[Where problems could occur]
[Other Info]
https:/
description: | updated |
Changed in ubuntu: | |
assignee: | nobody → Michael Reed (mreed8855) |
importance: | Undecided → Medium |
status: | New → In Progress |
affects: | ubuntu → linux (Ubuntu) |
Changed in linux (Ubuntu Jammy): | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu Kinetic): | |
status: | New → In Progress |
assignee: | nobody → AceLan Kao (acelankao) |
Changed in linux (Ubuntu Kinetic): | |
importance: | Undecided → Medium |
tags: |
added: verification-done-jammy removed: verification-needed-jammy |
tags: |
added: verification-done-jammy removed: verification-needed-jammy |
Changed in linux (Ubuntu Kinetic): | |
status: | In Progress → Fix Committed |
I have created a test kernel. Please test it and provide feedback.
https:/ /people. canonical. com/~mreed/ dell/lp_ 1999503_ array_index/