#112: probe_flash calculates base address before final value of size is known ----------------------------------+----------------------------------------- Reporter: alaricx@gmail.com | Owner: somebody Type: defect | Status: new Priority: major | Milestone: Component: flashrom | Version: v2 Keywords: probe_flash mmap | Dependencies: Patchstatus: patch needs review | ----------------------------------+----------------------------------------- Found thanks to segher in #coreboot.
In probe_flash(), flash_baseaddr is set before the getpagesize() > size check, thus can be invalid, causing mmap issues.