Hi Michael, I have brought up the setup and re-tried again. Please find the attached dmesg file.
modinfo output: filename: /lib/modules/6.14.0-24-generic/kernel/drivers/scsi/megaraid/megaraid_sas.ko.zst description: Broadcom MegaRAID SAS Driver author: [email protected] version: 07.734.00.00-rc1 license: GPL srcversion: 047FF5854D1B2C9C74BFBA5 alias: pci:v00001000d000010E7sv*sd*bc*sc*i* alias: pci:v00001000d000010E4sv*sd*bc*sc*i* alias: pci:v00001000d000010E3sv*sd*bc*sc*i* alias: pci:v00001000d000010E0sv*sd*bc*sc*i* alias: pci:v00001000d000010E6sv*sd*bc*sc*i* alias: pci:v00001000d000010E5sv*sd*bc*sc*i* alias: pci:v00001000d000010E2sv*sd*bc*sc*i* alias: pci:v00001000d000010E1sv*sd*bc*sc*i* alias: pci:v00001000d0000001Csv*sd*bc*sc*i* alias: pci:v00001000d0000001Bsv*sd*bc*sc*i* alias: pci:v00001000d00000017sv*sd*bc*sc*i* alias: pci:v00001000d00000016sv*sd*bc*sc*i* alias: pci:v00001000d00000015sv*sd*bc*sc*i* alias: pci:v00001000d00000014sv*sd*bc*sc*i* alias: pci:v00001000d00000053sv*sd*bc*sc*i* alias: pci:v00001000d00000052sv*sd*bc*sc*i* alias: pci:v00001000d000000CFsv*sd*bc*sc*i* alias: pci:v00001000d000000CEsv*sd*bc*sc*i* alias: pci:v00001000d0000005Fsv*sd*bc*sc*i* alias: pci:v00001000d0000005Dsv*sd*bc*sc*i* alias: pci:v00001000d0000002Fsv*sd*bc*sc*i* alias: pci:v00001000d0000005Bsv*sd*bc*sc*i* alias: pci:v00001028d00000015sv*sd*bc*sc*i* alias: pci:v00001000d00000413sv*sd*bc*sc*i* alias: pci:v00001000d00000071sv*sd*bc*sc*i* alias: pci:v00001000d00000073sv*sd*bc*sc*i* alias: pci:v00001000d00000079sv*sd*bc*sc*i* alias: pci:v00001000d00000078sv*sd*bc*sc*i* alias: pci:v00001000d0000007Csv*sd*bc*sc*i* alias: pci:v00001000d00000060sv*sd*bc*sc*i* alias: pci:v00001000d00000411sv*sd*bc*sc*i* depends: intree: Y name: megaraid_sas retpoline: Y vermagic: 6.14.0-24-generic SMP preempt mod_unload modversions sig_id: PKCS#7 signer: Build time autogenerated kernel key sig_key: 73:73:19:48:1B:FD:C7:FD:0B:FA:46:6A:0B:EA:D7:16:41:51:61:65 sig_hashalgo: sha512 signature: BF:E2:D6:96:B3:CB:DD:18:8E:D1:AD:88:75:47:35:20:7C:03:B3:46: 8E:BB:93:F5:03:E1:3C:95:C4:F4:A7:22:EE:8D:A5:F7:C3:4C:F3:33: D9:BC:06:40:72:83:95:F1:2F:AA:71:C8:2B:B8:82:F4:1F:5C:50:30: F3:BE:3E:26:E6:00:E9:ED:00:0C:12:D5:03:5B:C9:D0:2E:5B:BC:45: 80:53:01:04:37:7C:25:5F:E8:04:1D:5D:26:7A:35:51:77:93:AC:C0: D2:6D:1D:60:58:4E:6B:EC:AB:17:B1:5F:D5:0E:AC:48:B8:82:3B:09: 87:2F:03:C6:CC:23:50:83:83:D5:70:28:9C:7C:C1:25:D1:0A:18:63: 18:9F:F3:0F:EF:11:28:F9:C3:A1:9D:A5:18:BE:21:E2:B2:9B:EE:91: 58:1F:41:CF:8D:8E:BA:7E:FA:22:94:4F:AA:C9:1E:E5:42:D3:3F:C5: 36:F5:B4:65:FF:FD:AC:6F:BE:F6:E2:20:01:A9:10:AB:CF:C1:C4:A0: CC:81:70:5C:98:5C:A0:A5:93:95:E1:93:6F:5A:17:07:AF:94:54:47: E2:E0:62:C3:76:C5:31:36:06:C2:57:55:A9:F0:08:9D:EC:13:D3:BA: B1:30:6F:43:A7:2F:3D:E6:D7:EB:74:80:2F:7A:D6:B6:B3:C5:26:2B: 1B:3B:81:56:BF:F2:3D:2B:2D:CB:60:87:9C:D2:57:7C:F0:23:50:A4: A2:44:0A:D3:E5:D9:35:54:A6:D0:C1:EF:09:37:E4:2D:0C:1C:F7:B3: 34:65:36:5D:57:A0:32:4F:E5:18:B1:B2:5A:0D:F4:EB:A2:C6:4C:4B: 40:33:E7:75:E7:02:EB:F0:32:24:0B:2A:D4:D0:2E:EB:FC:1C:CD:CC: 2D:50:F2:67:5E:BB:B2:D8:57:3A:6B:BE:94:ED:68:12:7A:B9:D3:35: 18:8A:6D:56:06:BE:FE:BC:2B:43:B0:53:76:65:F7:B9:22:5C:B1:39: 23:19:56:66:58:D3:A0:2F:D4:CD:62:C6:E3:3D:3E:73:C8:73:EF:82: 86:E3:E0:F2:5B:16:F9:A8:DC:65:0C:89:4F:DA:0F:0D:82:07:42:02: F5:E1:E0:36:E5:82:70:CB:FC:8F:0C:C2:78:95:D7:52:89:DE:23:CA: Mostly that warning is coming from UBSAN, after system boot up, i have unloaded and loaded the driver again and seen below UBSAN warning. and that UBSAN is coming from this kernel file: /home/ubuntu/build_dir/plucky/arch/x86/include/asm/topology.h:72:28 which is why we are seeing the stack trace during driver load. [ 261.163571] megaraid_sas 0000:07:00.0: megasas_disable_intr_fusion is called outbound_intr_mask:0x40000009 [ 268.030268] megasas: 07.734.00.00-rc1 [ 268.031938] megaraid_sas 0000:07:00.0: BAR:0x0 BAR's base_addr(phys):0x0000383800000000 mapped virt_addr:0x00000000ad0f68ac [ 268.031947] megaraid_sas 0000:07:00.0: Waiting for FW to come to ready state [ 268.031951] megaraid_sas 0000:07:00.0: megasas_disable_intr_fusion is called outbound_intr_mask:0x40000009 [ 268.052723] megaraid_sas 0000:07:00.0: FW now in Ready state [ 268.052729] megaraid_sas 0000:07:00.0: 63 bit DMA mask and 63 bit consistent mask [ 268.052899] megaraid_sas 0000:07:00.0: firmware supports msix : (128) [ 268.057948] megaraid_sas 0000:07:00.0: requested/available msix 16/16 poll_queue 0 [ 268.057954] ------------[ cut here ]------------ [ 268.057956] UBSAN: array-index-out-of-bounds in /home/ubuntu/build_dir/plucky/arch/x86/include/asm/topology.h:72:28 [ 268.058027] index -1 is out of range for type 'cpumask *[1024]' [ 268.058066] CPU: 6 UID: 0 PID: 1341 Comm: modprobe Tainted: G O 6.14.0-24-generic #24 [ 268.058070] Tainted: [O]=OOT_MODULE [ 268.058071] Hardware name: Red Hat KVM/RHEL, BIOS 1.16.3-2.el9 04/01/2014 [ 268.058074] Call Trace: [ 268.058076] <TASK> [ 268.058079] show_stack+0x49/0x60 [ 268.058084] dump_stack_lvl+0x5f/0x90 [ 268.058090] dump_stack+0x10/0x18 [ 268.058093] ubsan_epilogue+0x9/0x40 [ 268.058096] __ubsan_handle_out_of_bounds.cold+0x44/0x49 [ 268.058101] megasas_alloc_irq_vectors+0x171/0x1c0 [megaraid_sas] [ 268.058115] megasas_init_fw.cold+0x6ea/0x103e [megaraid_sas] [ 268.058127] megasas_probe_one+0x185/0x500 [megaraid_sas] [ 268.058137] ? srso_return_thunk+0x5/0x5f [ 268.058141] ? _raw_spin_unlock_irqrestore+0x11/0x60 [ 268.058154] local_pci_probe+0x47/0xa0 [ 268.058159] pci_call_probe+0x5d/0x190 [ 268.058162] ? srso_return_thunk+0x5/0x5f [ 268.058166] pci_device_probe+0xa7/0x160 [ 268.058168] ? srso_return_thunk+0x5/0x5f [ 268.058171] really_probe+0xf9/0x370 [ 268.058175] ? pm_runtime_barrier+0x55/0xa0 [ 268.058179] __driver_probe_device+0x8c/0x140 [ 268.058183] driver_probe_device+0x24/0xd0 [ 268.058187] __driver_attach+0xe4/0x210 [ 268.058190] ? __pfx___driver_attach+0x10/0x10 [ 268.058194] bus_for_each_dev+0x8f/0xf0 [ 268.058199] driver_attach+0x1e/0x30 [ 268.058201] bus_add_driver+0x14e/0x240 [ 268.058205] driver_register+0x73/0xf0 [ 268.058209] __pci_register_driver+0x5e/0x70 [ 268.058213] megasas_init+0xdf/0xff0 [megaraid_sas] [ 268.058223] ? __pfx_megasas_init+0x10/0x10 [megaraid_sas] [ 268.058232] do_one_initcall+0x5e/0x330 [ 268.058238] do_init_module+0x97/0x280 [ 268.058243] load_module+0x681/0x750 [ 268.058247] init_module_from_file+0x96/0x100 [ 268.058256] idempotent_init_module+0x111/0x300 [ 268.058262] __x64_sys_finit_module+0x6b/0xd0 [ 268.058266] x64_sys_call+0x17fe/0x2310 [ 268.058269] do_syscall_64+0x7e/0x170 [ 268.058275] ? srso_return_thunk+0x5/0x5f [ 268.058277] ? putname+0x60/0x80 [ 268.058281] ? srso_return_thunk+0x5/0x5f [ 268.058283] ? do_sys_openat2+0xa4/0xf0 [ 268.058288] ? srso_return_thunk+0x5/0x5f [ 268.058290] ? arch_exit_to_user_mode_prepare.isra.0+0x22/0xd0 [ 268.058293] ? srso_return_thunk+0x5/0x5f [ 268.058295] ? syscall_exit_to_user_mode+0x38/0x1d0 [ 268.058300] ? srso_return_thunk+0x5/0x5f [ 268.058302] ? do_syscall_64+0x8a/0x170 [ 268.058309] ? srso_return_thunk+0x5/0x5f [ 268.058311] ? arch_exit_to_user_mode_prepare.isra.0+0x22/0xd0 [ 268.058314] ? srso_return_thunk+0x5/0x5f [ 268.058316] ? syscall_exit_to_user_mode+0x38/0x1d0 [ 268.058319] ? srso_return_thunk+0x5/0x5f [ 268.058321] ? do_syscall_64+0x8a/0x170 [ 268.058324] ? srso_return_thunk+0x5/0x5f [ 268.058326] ? __count_memcg_events+0xd3/0x1a0 [ 268.058330] ? srso_return_thunk+0x5/0x5f [ 268.058332] ? count_memcg_events.constprop.0+0x2a/0x50 [ 268.058336] ? srso_return_thunk+0x5/0x5f [ 268.058338] ? handle_mm_fault+0x1bb/0x2d0 [ 268.058341] ? srso_return_thunk+0x5/0x5f [ 268.058343] ? ext4_llseek+0xf3/0x120 [ 268.058348] ? srso_return_thunk+0x5/0x5f [ 268.058350] ? srso_return_thunk+0x5/0x5f [ 268.058352] ? arch_exit_to_user_mode_prepare.isra.0+0x22/0xd0 [ 268.058355] ? srso_return_thunk+0x5/0x5f [ 268.058357] ? syscall_exit_to_user_mode+0x38/0x1d0 [ 268.058360] ? srso_return_thunk+0x5/0x5f [ 268.058362] ? do_syscall_64+0x8a/0x170 [ 268.058366] entry_SYSCALL_64_after_hwframe+0x76/0x7e [ 268.058370] RIP: 0033:0x7b61a192725d [ 268.058374] Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 8b bb 0d 00 f7 d8 64 89 01 48 [ 268.058376] RSP: 002b:00007ffe576e7ef8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 268.058379] RAX: ffffffffffffffda RBX: 0000614b9bceaa60 RCX: 00007b61a192725d [ 268.058381] RDX: 0000000000000004 RSI: 0000614b7e78fe52 RDI: 0000000000000003 [ 268.058383] RBP: 00007ffe576e7fb0 R08: 0000000000000040 R09: 0000000000000002 [ 268.058384] R10: 00007b61a1a03b20 R11: 0000000000000246 R12: 0000614b7e78fe52 [ 268.058386] R13: 0000000000040000 R14: 0000614b9bcf23a0 R15: 0000000000000000 [ 268.058392] </TASK> [ 268.058393] ---[ end trace ]--- [ 268.058463] megaraid_sas 0000:07:00.0: current msix/online cpus : (16/8) [ 268.058467] megaraid_sas 0000:07:00.0: RDPQ mode : (enabled) [ 268.058471] megaraid_sas 0000:07:00.0: Current firmware supports maximum commands: 9197 LDIO threshold: 0 [ 268.072556] megaraid_sas 0000:07:00.0: Performance mode :Balanced (latency index = 8) [ 268.072565] megaraid_sas 0000:07:00.0: FW supports sync cache : Yes [ 268.072571] megaraid_sas 0000:07:00.0: megasas_disable_intr_fusion is called outbound_intr_mask:0x40000009 [ 268.176900] megaraid_sas 0000:07:00.0: FW supports atomic descriptor : Yes [ 268.218899] megaraid_sas 0000:07:00.0: FW provided supportMaxExtLDs: 1 max_lds: 240 [ 268.218910] megaraid_sas 0000:07:00.0: controller type : MR(8192MB) [ 268.218916] megaraid_sas 0000:07:00.0: Online Controller Reset(OCR) : Enabled [ 268.218921] megaraid_sas 0000:07:00.0: Secure JBOD support : Yes [ 268.218926] megaraid_sas 0000:07:00.0: NVMe passthru support : Yes [ 268.218931] megaraid_sas 0000:07:00.0: FW provided TM TaskAbort/Reset timeout : 6 secs/60 secs [ 268.218937] megaraid_sas 0000:07:00.0: JBOD sequence map support : Yes [ 268.218942] megaraid_sas 0000:07:00.0: PCI Lane Margining support : Yes [ 268.240064] megaraid_sas 0000:07:00.0: NVME page size : (4096) [ 268.248493] megaraid_sas 0000:07:00.0: megasas_enable_intr_fusion is called outbound_intr_mask:0x40000000 [ 268.248499] megaraid_sas 0000:07:00.0: INIT adapter done [ 268.248760] megaraid_sas 0000:07:00.0: Snap dump wait time : 15 [ 268.248764] megaraid_sas 0000:07:00.0: pci id : (0x1000)/(0x10e2)/(0x1000)/(0x4020) [ 268.248768] megaraid_sas 0000:07:00.0: unevenspan support : no [ 268.248772] megaraid_sas 0000:07:00.0: firmware crash dump : no [ 268.248776] megaraid_sas 0000:07:00.0: JBOD sequence map : enabled [ 268.249022] megaraid_sas 0000:07:00.0: Max firmware commands: 8172 shared with default hw_queues = 8 poll_queues 0 [ 268.249028] scsi host1: Avago SAS based MegaRAID driver [ 268.258853] megaraid_sas 0000:07:00.0: scanning for scsi1... [ 268.259150] scsi 1:3:109:0: Direct-Access BROADCOM MR9580-8i8e 5.30 PQ: 0 ANSI: 5 [ 268.260187] sd 1:3:109:0: Attached scsi generic sg0 type 0 [ 268.260275] sd 1:3:109:0: [sda] 2342125568 512-byte logical blocks: (1.20 TB/1.09 TiB) [ 268.260327] sd 1:3:109:0: [sda] Write Protect is off [ 268.260332] sd 1:3:109:0: [sda] Mode Sense: 1f 00 10 08 [ 268.260448] sd 1:3:109:0: [sda] Write cache: disabled, read cache: enabled, supports DPO and FUA [ 268.260461] scsi 1:3:108:0: Direct-Access BROADCOM MR9580-8i8e 5.30 PQ: 0 ANSI: 5 [ 268.260741] sd 1:3:109:0: [sda] Preferred minimum I/O size 262144 bytes [ 268.260746] sd 1:3:109:0: [sda] Optimal transfer size 524288 bytes [ 268.261871] sd 1:3:108:0: Attached scsi generic sg1 type 0 [ 268.262311] sd 1:3:108:0: [sdb] 1171062784 512-byte logical blocks: (600 GB/558 GiB) [ 268.262372] sd 1:3:108:0: [sdb] Write Protect is off [ 268.262377] sd 1:3:108:0: [sdb] Mode Sense: 1f 00 10 08 [ 268.262436] scsi 1:2:4:0: Direct-Access TOSHIBA AL13SXB60EN DK02 PQ: 0 ANSI: 6 [ 268.262481] sd 1:3:108:0: [sdb] Write cache: disabled, read cache: enabled, supports DPO and FUA [ 268.262780] sd 1:3:108:0: [sdb] Preferred minimum I/O size 262144 bytes [ 268.262786] sd 1:3:108:0: [sdb] Optimal transfer size 262144 bytes [ 268.271617] sd 1:2:4:0: Attached scsi generic sg2 type 0 [ 268.272129] scsi 1:1:121:0: Enclosure DELL MD1220 1.06 PQ: 0 ANSI: 5 [ 268.273739] sd 1:2:4:0: [sdc] 1172123568 512-byte logical blocks: (600 GB/559 GiB) [ 268.274167] sd 1:2:4:0: [sdc] Write Protect is off [ 268.274173] sd 1:2:4:0: [sdc] Mode Sense: d3 00 10 08 [ 268.274175] ses 1:1:121:0: Attached Enclosure device [ 268.274341] sd 1:3:109:0: [sda] Attached SCSI disk [ 268.274438] ses 1:1:121:0: Attached scsi generic sg3 type 13 [ 268.274579] sd 1:2:4:0: [sdc] Write cache: disabled, read cache: enabled, supports DPO and FUA [ 268.275964] sd 1:2:4:0: [sdc] Disabling DIF Type 2 protection [ 268.275969] sd 1:2:4:0: [sdc] Enabling DIF Type 0 protection [ 268.279298] sd 1:3:108:0: [sdb] Attached SCSI disk [ 268.297290] sd 1:2:4:0: [sdc] Attached SCSI disk -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2107492 Title: [SRU][24.04.03]: megaraid_sas: Features and Bug Fixes To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2107492/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
