svn commit: r304619 - in stable: 10/sys/sys 9/sys/sys

John Baldwin jhb at FreeBSD.org
Mon Aug 22 18:12:25 UTC 2016


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. */


More information about the svn-src-all mailing list