lkml.org 
[lkml]   [2018]   [Jul]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC PATCH v2 20/27] x86/cet/shstk: ELF header parsing of CET
From
Date
On 07/11/2018 12:26 AM, Yu-cheng Yu wrote:
> + /*
> + * PT_NOTE segment is small. Read at most
> + * PAGE_SIZE.
> + */
> + if (note_size > PAGE_SIZE)
> + note_size = PAGE_SIZE;

That's not really true. There are some huge PT_NOTE segments out there.

Why can't you check the notes after the executable has been mapped?

Thanks,
Florian

\
 
 \ /
  Last update: 2018-07-11 13:13    [W:0.195 / U:1.088 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site