Subject: port-arm32/21456: New pmap code does not abort low-memory access
To: None <gnats-bugs@gnats.netbsd.org>
From: Richard Earnshaw <rearnsha@shark1.cambridge.arm.com>
List: netbsd-bugs
Date: 04/28/2003 10:01:12
>Number:         21456
>Category:       port-arm32
>Synopsis:       New pmap code does not abort low-memory access
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    port-arm32-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 05 09:25:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Richard Earnshaw
>Release:        NetBSD 1.6R (Apr 23, 2003)
>Organization:
ARM
-- 
>Environment:
	
	
System: NetBSD shark1.cambridge.arm.com 1.6R NetBSD 1.6R (GENERIC) #0: Wed Apr 23 18:42:18 BST 2003 rearnsha@vpc960.cambridge.arm.com:/work/rearnsha/netbsd/build/shark/src/sys/arch/shark/compile/GENERIC shark
Architecture: arm
Machine: shark
>Description:
	With the new pmap code an access to a low memory address is
	repeatedly restarted when it should be aborted.
	
>How-To-Repeat:
	Compile and run the following test case.  It should generate either a 
	segmentation fault (space not mapped) or a bus fault (unaligned):

	int *x = (int*) 2;

	main()
	{
	  return x[11];
	}

	instead it spins for ever between user and kernel space.
	
>Fix:
	
	Unknown
>Release-Note:
>Audit-Trail:
>Unformatted: