kernel - Detect edge cases in ELF note handling
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 19 Oct 2012 17:41:01 +0000 (10:41 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 19 Oct 2012 17:41:01 +0000 (10:41 -0700)
commitd48ef01c7cff8bc34be412f607b08d7c9c593fe4
treeb508951350ce1c2b238b66b1297d43291ee95771
parent312a61c7bfeb5c091ddfe90fce7194047b502c01
kernel - Detect edge cases in ELF note handling

* Do more stringent tests on ELF note structures and headers to
  avoid possible panics on page-crossings.

* Patch constructed from examination of a similar fix made to FreeBSD
  cvs/1.227.  However, our patch is written a different way.

Reported-by: Lukasz Wojcik <lukasz.wojcik@zoho.com>
sys/kern/imgact_elf.c