Re: [PATCH 1/1] initrd: move initrd_start calculate within linear mapping range check

2019-03-13 Thread Steven Price
On 12/03/2019 03:17, pierre Kuo wrote: > in the previous case, initrd_start and initrd_end can be successfully > returned even (base < memblock_start_of_DRAM()) or (base + size > > memblock_start_of_DRAM() + linear_region_size). > > That means even linear mapping range check fail for initrd_start

[PATCH 1/1] initrd: move initrd_start calculate within linear mapping range check

2019-03-11 Thread pierre Kuo
in the previous case, initrd_start and initrd_end can be successfully returned even (base < memblock_start_of_DRAM()) or (base + size > memblock_start_of_DRAM() + linear_region_size). That means even linear mapping range check fail for initrd_start and initrd_end, it still can get virtual address.