Project

General

Profile

Bug #8623

IMMU_CONTIG_PADDR is broken for cookies with more than one page

Added by Hans Rosenfeld over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Category:
kernel
Start date:
2017-09-07
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

The macro IMMU_CONTIG_PADDR() is used to check whether a physical address would be contiguously following the physical memory block described by a cookie. Yet the macro doesn't look at the number of pages in a cookie, so whenever a cookie already has 2 pages it will return false even if the physical address is contiguous.

This leads to the use of a unnecessarily high number of cookies, and in the worst case may trigger #8622.

Also available in: Atom PDF