From owner-cvs-src-old@FreeBSD.ORG Thu Jan 21 19:12:46 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 27F6F1065693 for ; Thu, 21 Jan 2010 19:12:46 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 1456B8FC22 for ; Thu, 21 Jan 2010 19:12:46 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o0LJCj9V096997 for ; Thu, 21 Jan 2010 19:12:45 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o0LJCj7N096996 for cvs-src-old@freebsd.org; Thu, 21 Jan 2010 19:12:45 GMT (envelope-from jhb@repoman.freebsd.org) Message-Id: <201001211912.o0LJCj7N096996@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jhb@repoman.freebsd.org using -f From: John Baldwin Date: Thu, 21 Jan 2010 19:11:18 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src/sys/kern kern_exec.c kern_ktrace.c subr_bus.c subr_taskqueue.c src/sys/sys interrupt.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jan 2010 19:12:46 -0000 jhb 2010-01-21 19:11:18 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) sys/kern kern_exec.c kern_ktrace.c subr_bus.c subr_taskqueue.c sys/sys interrupt.h Log: SVN rev 202764 on 2010-01-21 19:11:18Z by jhb 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[]. Revision Changes Path 1.337.2.4 +7 -13 src/sys/kern/kern_exec.c 1.130.2.2 +6 -1 src/sys/kern/kern_ktrace.c 1.225.2.9 +1 -1 src/sys/kern/subr_bus.c 1.48.2.5 +2 -2 src/sys/kern/subr_taskqueue.c 1.45.2.3 +3 -3 src/sys/sys/interrupt.h