Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Aug 2016 18:12:24 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r304619 - in stable: 10/sys/sys 9/sys/sys
Message-ID:  <201608221812.u7MICO6B052584@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Mon Aug 22 18:12:24 2016
New Revision: 304619
URL: https://svnweb.freebsd.org/changeset/base/304619

Log:
  MFC 302379: Correct locking annotation for p_comm.
  
  p_comm is changed during exec, it is not read-only after fork.

Modified:
  stable/10/sys/sys/proc.h
Directory Properties:
  stable/10/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/9/sys/sys/proc.h
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/sys/   (props changed)

Modified: stable/10/sys/sys/proc.h
==============================================================================
--- stable/10/sys/sys/proc.h	Mon Aug 22 17:53:18 2016	(r304618)
+++ stable/10/sys/sys/proc.h	Mon Aug 22 18:12:24 2016	(r304619)
@@ -564,7 +564,7 @@ struct proc {
 	u_int		p_magic;	/* (b) Magic number. */
 	int		p_osrel;	/* (x) osreldate for the
 					       binary (from ELF note, if any) */
-	char		p_comm[MAXCOMLEN + 1];	/* (b) Process name. */
+	char		p_comm[MAXCOMLEN + 1];	/* (x) Process name. */
 	void		*p_pad0;
 	struct sysentvec *p_sysent;	/* (b) Syscall dispatch info. */
 	struct pargs	*p_args;	/* (c) Process arguments. */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201608221812.u7MICO6B052584>