[Bug 215587] UBSAN: invalid-load in drivers/acpi/cppc_acpi.c:314:45 - AMD Ryzen 9 5950X

2022-05-09 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215587

--- Comment #6 from Mario Limonciello (AMD) (mario.limoncie...@amd.com) ---
I submitted it here:
https://lore.kernel.org/linux-acpi/20220509141716.1270-1-mario.limoncie...@amd.com/T/#u

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

___
acpi-bugzilla mailing list
acpi-bugzilla@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla


[Bug 215587] UBSAN: invalid-load in drivers/acpi/cppc_acpi.c:314:45 - AMD Ryzen 9 5950X

2022-05-09 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215587

Erhard F. (erhar...@mailbox.org) changed:

   What|Removed |Added

 Status|NEEDINFO|RESOLVED
 Resolution|--- |ANSWERED

--- Comment #5 from Erhard F. (erhar...@mailbox.org) ---
Just applied your patch on top of v5.18-rc6 and can confirm the error is fixed.
Thanks!

I'll close here as soon as it lands in -rc.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

___
acpi-bugzilla mailing list
acpi-bugzilla@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla


[Bug 215587] UBSAN: invalid-load in drivers/acpi/cppc_acpi.c:314:45 - AMD Ryzen 9 5950X

2022-05-06 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215587

Mario Limonciello (AMD) (mario.limoncie...@amd.com) changed:

   What|Removed |Added

 Status|NEW |NEEDINFO

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

___
acpi-bugzilla mailing list
acpi-bugzilla@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla


[Bug 215587] UBSAN: invalid-load in drivers/acpi/cppc_acpi.c:314:45 - AMD Ryzen 9 5950X

2022-05-04 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215587

--- Comment #4 from mario.limoncie...@amd.com ---
Created attachment 300877
  --> https://bugzilla.kernel.org/attachment.cgi?id=300877=edit
possible patch to fix error

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

___
acpi-bugzilla mailing list
acpi-bugzilla@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla


[Bug 215587] UBSAN: invalid-load in drivers/acpi/cppc_acpi.c:314:45 - AMD Ryzen 9 5950X

2022-05-04 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215587

mario.limoncie...@amd.com changed:

   What|Removed |Added

 CC||mario.limoncie...@amd.com

--- Comment #3 from mario.limoncie...@amd.com ---
Can you please have a try with this:


diff --git a/drivers/mailbox/pcc.c b/drivers/mailbox/pcc.c
index ed18936b8ce6..ebfa33a40fce 100644
--- a/drivers/mailbox/pcc.c
+++ b/drivers/mailbox/pcc.c
@@ -654,7 +654,7 @@ static int pcc_mbox_probe(struct platform_device *pdev)
goto err;
}

-   pcc_mbox_ctrl = devm_kmalloc(dev, sizeof(*pcc_mbox_ctrl), GFP_KERNEL);
+   pcc_mbox_ctrl = devm_kzalloc(dev, sizeof(*pcc_mbox_ctrl), GFP_KERNEL);
if (!pcc_mbox_ctrl) {
rc = -ENOMEM;
goto err;

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

___
acpi-bugzilla mailing list
acpi-bugzilla@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla


[Bug 215587] UBSAN: invalid-load in drivers/acpi/cppc_acpi.c:314:45 - AMD Ryzen 9 5950X

2022-04-18 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215587

--- Comment #2 from Erhard F. (erhar...@mailbox.org) ---
Created attachment 300773
  --> https://bugzilla.kernel.org/attachment.cgi?id=300773=edit
dmesg (kernel 5.18-rc3, AMD Ryzen 9 5950X)

5.18-rc3 still affected.
[...]
UBSAN: invalid-load in drivers/acpi/cppc_acpi.c:314:45
load of value 107 is not a valid value for type 'bool' (aka '_Bool')
CPU: 13 PID: 1 Comm: swapper/0 Not tainted 5.18.0-rc3-Zen3 #1
Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./B450M Steel
Legend, BIOS P4.20 08/03/2021
Call Trace:
 
 dump_stack_lvl+0xe5/0x154
 __ubsan_handle_load_invalid_value+0xd2/0x110
 send_pcc_cmd+0x995/0xa40
 cppc_get_perf_caps+0x410/0x1220
 amd_set_max_freq_ratio+0x42/0x120
 init_freq_invariance+0xd5/0x150
 init_freq_invariance_cppc+0x1f/0x40
 acpi_cppc_processor_probe+0xeba/0x11a0
 ? acpi_processor_start+0x44/0x60
 __acpi_processor_start+0x6d/0x320
 acpi_processor_start+0x4c/0x60
 really_probe+0x3fb/0x820
 __driver_probe_device+0x147/0x240
 driver_probe_device+0x4b/0x320
 __driver_attach+0x263/0x4f0
 ? driver_attach+0x40/0x40
 bus_for_each_dev+0xff/0x140
 bus_add_driver+0x2b7/0x480
 driver_register+0x1f5/0x330
 acpi_processor_driver_init+0x3c/0xf6
 ? acpi_initialize_objects+0x61/0x61
 do_one_initcall+0x12b/0x2d0
 ? acpi_initialize_objects+0x61/0x61
 do_initcall_level+0x136/0x1bf
 ? kernel_init+0x14/0x1d0
 do_initcalls+0x46/0x76
 kernel_init_freeable+0x334/0x456
 ? rest_init+0x240/0x240
 kernel_init+0x14/0x1d0
 ? rest_init+0x240/0x240
 ret_from_fork+0x22/0x30
 

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

___
acpi-bugzilla mailing list
acpi-bugzilla@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla


[Bug 215587] UBSAN: invalid-load in drivers/acpi/cppc_acpi.c:314:45 - AMD Ryzen 9 5950X

2022-02-13 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215587

Zhang Rui (rui.zh...@intel.com) changed:

   What|Removed |Added

 CC||rui.zh...@intel.com
Summary|UBSAN: invalid-load in  |UBSAN: invalid-load in
   |drivers/acpi/cppc_acpi.c:31 |drivers/acpi/cppc_acpi.c:31
   |4:45|4:45 - AMD Ryzen 9 5950X

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

___
acpi-bugzilla mailing list
acpi-bugzilla@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla