Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Jul 2013 03:50:01 GMT
From:      dfilter@FreeBSD.ORG (dfilter service)
To:        freebsd-arm@FreeBSD.org
Subject:   Re: arm/180820: commit references a PR
Message-ID:  <201307250350.r6P3o19E001242@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR arm/180820; it has been noted by GNATS.

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: arm/180820: commit references a PR
Date: Thu, 25 Jul 2013 03:48:50 +0000 (UTC)

 Author: kientzle
 Date: Thu Jul 25 03:48:37 2013
 New Revision: 253636
 URL: http://svnweb.freebsd.org/changeset/base/253636
 
 Log:
   Clear entire map structure including locks so that the
   locks don't accidentally appear to have been already
   initialized.
   
   In particular, this fixes a consistent kernel crash on
   armv6 with:
     panic: lock "vm map (user)" 0xc09cc050 already initialized
   that appeared with r251709.
   
   PR: arm/180820
 
 Modified:
   head/sys/vm/vm_map.c
 
 Modified: head/sys/vm/vm_map.c
 ==============================================================================
 --- head/sys/vm/vm_map.c	Thu Jul 25 03:44:12 2013	(r253635)
 +++ head/sys/vm/vm_map.c	Thu Jul 25 03:48:37 2013	(r253636)
 @@ -239,8 +239,7 @@ vm_map_zinit(void *mem, int size, int fl
  	vm_map_t map;
  
  	map = (vm_map_t)mem;
 -	map->nentries = 0;
 -	map->size = 0;
 +	memset(map, 0, sizeof(*map));
  	mtx_init(&map->system_mtx, "vm map (system)", NULL, MTX_DEF | MTX_DUPOK);
  	sx_init(&map->lock, "vm map (user)");
  	return (0);
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 



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