PCR 15477 - Kernel performs divide by 0 when attaching to a platform resource with a length of 0
Summary: Kernel performs divide by 0 when attaching to a platform resource with a leng...
Status: ASSIGNED
Alias: None
Product: Kernel
Classification: Deos
Component: Kernel (show other PCRs)
Version: mainline
Hardware: All Deos
: By Cert
: Limitation
Target Milestone: mainline
Assignee: .Kernel
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2024-02-22 08:08 MST by rroffelsen
Modified: 2024-12-11 13:04 MST (History)
0 users

See Also:
Impact Assessment: Trivial
Organization: DDC-I, Inc.
rroffelsen: Requirements-
rroffelsen: Code+
rroffelsen: TestCases?
rroffelsen: TestProcedures?
rroffelsen: Other?


Attachments

Note You need to log in before you can comment on or make changes to this PCR.
Description rroffelsen 2024-02-22 08:08:16 MST
When attaching, mapping, reading, or CRC'ing a platform resource with 0 length, the kernel will perform a divide by 0. The result is not used so PPC, ARM, and AARCH64 targets are not impacted but on x86 and x86_64 targets this will cause an exception in kernel mode which results in a kernel halt.

Note: This limitation existed in kernel 10.8.0 (Jupiter) but only impacted the x86 kernel which was not verified.
Comment 1 rroffelsen 2024-02-22 15:37:34 MST
Committed SVNRevision 92582.

- Fix a bug that would cause the x86 and x86_64 kernels to halt when attachPlatformResource(), attachPlatformResourceAtAddress(), mapViewOfPlatformResource(), readFromPlatformResource(), or  computeCrc32PlatformResource() on a platform resource that is zero sized.
 - Improve performance of attachPlatformResource(), attachPlatformResourceAtAddress(), and mapViewOfPlatformResource() when used on non-striped resources.
Comment 2 deosbugs.ccb 2024-04-04 13:19:22 MST
CCB visited this PCR on 2024-04-04-71881
Comment 3 deosbugs.ccb 2024-08-30 06:55:38 MST
CCB visited this PCR on 2024-08-30-49739
Comment 4 deosbugs.ccb 2024-08-30 09:18:32 MST
Developer asserts updates are acceptable for 11.4.0.
Comment 5 deosbugs.ccb 2024-12-11 13:04:56 MST
CCB visited this PCR on 2024-12-11-68907