Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-5-2] src/sys/compat/linux/common



Module Name:    src
Committed By:   msaitoh
Date:           Wed May 14 05:15:40 UTC 2014

Modified Files:
        src/sys/compat/linux/common [netbsd-5-2]: linux_exec_elf32.c

Log Message:
Pull up following revision(s) (requested by maxv in ticket #1902):
        src/sys/compat/linux/common/linux_exec_elf32.c  1.91 via patch

A specially-crafted binary could easily control a kernel array index.
Add some checks to ensure that nothing will be read outside the allocated
area. Rewrite the code so that we don't need to allocate the whole section.

Spotted by several developers, patch from chs@/enami@


To generate a diff of this commit:
cvs rdiff -u -r1.81 -r1.81.20.1 \
    src/sys/compat/linux/common/linux_exec_elf32.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index