Re: [PATCH] tpm/eventlog: Use kvmalloc() for event log buffer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 07 Nov 2024 21:42:50 +0100,
Jarkko Sakkinen wrote:
> 
> On Thu Nov 7, 2024 at 2:17 PM EET, Paul Menzel wrote:
> > Dear Takashi,
> >
> >
> > Thank you for the patch.
> >
> > Am 07.11.24 um 12:18 schrieb Takashi Iwai:
> > > The TPM2 ACPI table may request a large size for the event log, and it
> > > may be over the max size of kmalloc().  When this happens, the driver
> >
> > What is kmalloc()ʼs maximum size?
> 
> For reference: https://elixir.bootlin.com/linux/v6.11.6/source/include/linux/slab.h#L367
> 
> So it would be 1UL << 22 i.e. 4 MB at least. Not sure if MAX_PAGE_ORDER
> is larger than 10 on x86-64.

Ah thanks, it has been changed.


Takashi




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux Kernel]     [Linux Kernel Hardening]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux