kernel - Detect edge cases in ELF note handling
commitfd6bd22e04cec2312688e1544c5a138d51497dd7
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 19 Oct 2012 17:41:01 +0000 (19 10:41 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 19 Oct 2012 17:46:26 +0000 (19 10:46 -0700)
tree819da78b86b8c2aa864ea84915490565b852023f
parent7358dc4bf9d78777c9398c10b51aef7d610c7944
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