Re: [PATCH v6 14/18] ACPI / APEI: Split ghes_read_estatus() to read CPER length

2018-10-12 Thread Borislav Petkov
On Fri, Sep 21, 2018 at 11:17:01PM +0100, James Morse wrote: > ghes_read_estatus() reads the record address, then the record's > header, then performs some sanity checks before reading the > records into the provided estatus buffer. > > We either need to know the size of the records before we

[PATCH v6 14/18] ACPI / APEI: Split ghes_read_estatus() to read CPER length

2018-09-21 Thread James Morse
ghes_read_estatus() reads the record address, then the record's header, then performs some sanity checks before reading the records into the provided estatus buffer. We either need to know the size of the records before we call ghes_read_estatus(), or always provide a worst-case sized buffer, as