Re: [PATCH v2] x86/kaslr: Revisit entropy when CONFIG_PCI_P2PDMA is enabled
From: Balbir Singh
Date: Thu Feb 06 2025 - 20:41:21 EST
On 2/7/25 11:27, Dave Hansen wrote:
> On 2/6/25 15:42, Balbir Singh wrote:
>> Fix this by not shrinking the size of direct map when CONFIG_PCI_P2PDMA
>> is enabled. This reduces the total available entropy, but it's
>> better than the current work around of having to disable KASLR
>> completely.
>
> Is the size of these P2PDMA mappings known up front? Or do you just need
> them to be as large as possible?
The size is not known upfront, it depends on the system configuration.
Yes, we need them to be as large as possible.
Balbir