]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC 198411:
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 21 Jan 2010 19:11:18 +0000 (19:11 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 21 Jan 2010 19:11:18 +0000 (19:11 +0000)
commitb51f9a0db6cd5e97dfd87b940cc38a32a369862e
tree093349795537e68a7b4f8620c4d7343f31c3196e
parentcc28ae06067d8d9b1ea97db083389f31ae6fb365
MFC 198411:
- Fix several off-by-one errors when using MAXCOMLEN.  The p_comm[] and
  td_name[] arrays are actually MAXCOMLEN + 1 in size and a few places that
  created shadow copies of these arrays were just using MAXCOMLEN.
- Prefer using sizeof() of an array type to explicit constants for the
  array length in a few places.
- Ensure that all of p_comm[] and td_name[] is always zero'd during
  execve() to guard against any possible information leaks.  Previously
  trailing garbage in p_comm[] could be leaked to userland in ktrace
  record headers via td_name[].

git-svn-id: svn://svn.freebsd.org/base/stable/8@202764 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/kern/kern_exec.c
sys/kern/kern_ktrace.c
sys/kern/subr_bus.c
sys/kern/subr_taskqueue.c
sys/sys/interrupt.h