login
Header Space

 
 

Re: [PATCH prototype] [0/8] Predictive bitmaps for ELF executables

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Nicholas Miell <nmiell@...>
Cc: Andi Kleen <andi@...>, Ulrich Drepper <drepper@...>, Andrew Morton <akpm@...>, <linux-kernel@...>, <linux-mm@...>
Date: Saturday, March 22, 2008 - 10:29 am

On Sat, Mar 22, 2008 at 03:16:31AM -0700, Nicholas Miell wrote:

Actually it is a relatively weak argument assuming the standard
4k xattrs, but still an issue.

The other stronger argument against it is that larger xattrs tend to be
outside the inode so you would have another seek again.


Good joke.


What signed binaries? 

Anyways there are two ways to deal with this:

- Run the executable through a little filter that zeroes the bitmap before
computing the checksum.  That is how rpm -V deals with prelinked binaries which 
have a similar issue. You can probably reuse the scripts from rpm.
- Disable the pbitmap header before you sign, either by never adding
one or disabling it by turning the phdr type into a nop (should be very simple) 

-Andi
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH prototype] [8/8] Add mmap_full_slurp support, Andi Kleen, (Mon Mar 17, 9:09 pm)
[PATCH prototype] [1/8] Give ELF shdr types a name, Andi Kleen, (Mon Mar 17, 9:09 pm)
Re: [PATCH prototype] [0/8] Predictive bitmaps for ELF execu..., Andi Kleen, (Sat Mar 22, 10:29 am)
speck-geostationary