Opened 5 years ago
Closed 5 years ago
#112 closed defect (fixed)
probe_flash calculates base address before final value of size is known
| Reported by: | alaricx@… | Owned by: | somebody |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | flashrom (please use trac on flashrom.org) | Keywords: | probe_flash mmap |
| Cc: | segher@… | Dependencies: | |
| Patch Status: | patch has been committed |
Description
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.
Attachments (1)
Change History (2)
Changed 5 years ago by segher@…
comment:1 Changed 5 years ago by segher
- Cc segher@… added
- Patch Status changed from patch needs review to patch has been committed
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.

patch