I verified the fix in both proposed jammy linux/5.15.0-176.186 kernel and questing linux/6.17.0-22.22 kernel. I confirm they fixed the issue with the following steps:
Test Method: Built a test kernel module (test_efi_bsearch.c) that calls efi_status_to_err() with 8 known EFI status codes and compares the returned errno against expected values. The module runs on insmod and logs results to dmesg. Questing (linux/6.17.0-22.22) Environment: LXD VM (questing-vm), Secure Boot disabled Unpatched kernel (6.17.0-14-generic): PASS EFI_SUCCESS, PASS EFI_INVALID_PARAMETER, PASS EFI_DEVICE_ERROR PASS EFI_WRITE_PROTECTED, PASS EFI_NOT_FOUND, PASS EFI_ABORTED FAIL EFI_OUT_OF_RESOURCES -> -22 (expected -12) FAIL EFI_SECURITY_VIOLATION -> -22 (expected -13) Results: 6 passed, 2 failed — BUG CONFIRMED Proposed kernel (6.17.0-22-generic): All 8 status codes: PASS Results: 8 passed, 0 failed — ALL PASSED Jammy (linux/5.15.0-176.186) Environment: LXD VM (jammy-vm) Unpatched kernel (5.15.0-173-generic): PASS EFI_SUCCESS, PASS EFI_INVALID_PARAMETER, PASS EFI_DEVICE_ERROR PASS EFI_WRITE_PROTECTED, PASS EFI_NOT_FOUND, PASS EFI_ABORTED FAIL EFI_OUT_OF_RESOURCES -> -22 (expected -12) FAIL EFI_SECURITY_VIOLATION -> -22 (expected -13) Results: 6 passed, 2 failed — BUG CONFIRMED Proposed kernel (5.15.0-176-generic): All 8 status codes: PASS Results: 8 passed, 0 failed — ALL PASSED ** Tags removed: verification-needed-jammy-linux verification-needed-questing-linux ** Tags added: verification-done-jammy-linux verification-done-questing-linux -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2141276 Title: efi: Fix swapped arguments to bsearch() in efi_status_to_*() SAUCE patch To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2141276/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
