Subject: kern/15317: regress failure in sys/arch/i386/ldt
To: None <gnats-bugs@gnats.netbsd.org>
From: None <wiz@netbsd.org>
List: netbsd-bugs
Date: 01/21/2002 02:04:31
>Number:         15317
>Category:       kern
>Synopsis:       regress failure in sys/arch/i386/ldt
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 20 17:05:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Thomas Klausner
>Release:        NetBSD 1.5ZA/2002-01-19
>Organization:
>Environment:
	
	
System: NetBSD hiro 1.5ZA NetBSD 1.5ZA (HIRO.new) #0: Sat Jan 19 18:42:11 CET 2002 wiz@hiro:/archive/cvs/src/sys/arch/i386/compile/HIRO.new i386
Architecture: i386
Machine: i386
>Description:
make regress in /usr/src/regress/sys/arch/i386/ldt fails:
Testing i386_get_ldt...
Testing i386_set_ldt...
Making Call Gate
Testing call gate...testldt:
bus fault - investigate.

Called from call gate...

Running the regress program with -v yields:
Testing i386_get_ldt...
Got 17 (initial) LDT entries
Entry 0: LDT: Gate Off c0100c3c, Sel   00008, Stkcpy 1 DPL 3, Type 12/SYS386CGT
	  Present, 
	  Raw descriptor: 00080c3c c010ec01
Entry 1: LDT: Seg Base 90ec4d89, Limit b0000, DPL 0, Type 9/SYS386TSS
	  Accessed, Present, X, 32-bit, page limit, 
	  Raw descriptor: 4d890000 90cb89ec
Entry 2: LDT: Seg Base 00000000, Limit bfbfd, DPL 3, Type 27/MEMERA
	  Accessed, Present, User, X, 32-bit, page limit, 
	  Raw descriptor: 0000fbfd 00cbfb00
Entry 3: LDT: Seg Base 00000000, Limit bfbfd, DPL 3, Type 19/MEMRWA
	  Accessed, Present, User, 32-bit, page limit, 
	  Raw descriptor: 0000fbfd 00cbf300
Entry 4: LDT: Gate Off c0100c3c, Sel   00008, Stkcpy 1 DPL 3, Type 12/SYS386CGT
	  Present, 
	  Raw descriptor: 00080c3c c010ec01
Entry 5: LDT: Seg Base f6000130, Limit 9e900, DPL 0, Type 0/SYSNULL
	  16-bit, page limit, 
	  Raw descriptor: 0130e900 f6890000
Entry 6: LDT: Seg Base 0002c710, Limit 0558b, DPL 0, Type 0/SYSNULL
	  16-bit, byte limit, 
	  Raw descriptor: c710558b 00000002
Entry 7: LDT: Seg Base f600011e, Limit 9e900, DPL 0, Type 0/SYSNULL
	  16-bit, page limit, 
	  Raw descriptor: 011ee900 f6890000
Entry 8: LDT: Seg Base 01000000, Limit 405b8, DPL 3, Type 9/SYS386TSS
	  Accessed, Present, X, 16-bit, byte limit, 
	  Raw descriptor: 000005b8 0114e900
Entry 9: LDT: Seg Base 838bf689, Limit c0000, DPL 2, Type 5/SYSTASKGT
	  Accessed, 32-bit, page limit, 
	  Raw descriptor: f6890000 83fc458b
Entry 10: LDT: Seg Base f4b0048b, Limit 564c0, DPL 0, Type 9/SYS386TSS
	  Accessed, Present, X, 32-bit, byte limit, 
	  Raw descriptor: 048b64c0 f44589b0
Entry 11: LDT: Seg Base 00f48c0f, Limit 0f685, DPL 0, Type 0/SYSNULL
	  16-bit, byte limit, 
	  Raw descriptor: 8c0ff685 000000f4
Entry 12: LDT: Seg Base 1c7400f4, Limit d7d83, DPL 2, Type 10/SYSNULL3
	  Present, X, 16-bit, page limit, 
	  Raw descriptor: 00f47d83 1c8dca74
Entry 13: LDT: Seg Base fc000000, Limit d00b5, DPL 0, Type 11/SYS386BSY
	  Accessed, Present, X, 32-bit, byte limit, 
	  Raw descriptor: 000000b5 fc4d8b00
Entry 14: LDT: Seg Base 4d0000b0, Limit 9c181, DPL 0, Type 0/SYSNULL
	  16-bit, page limit, 
	  Raw descriptor: 00b0c181 4d890000
Entry 15: LDT: Seg Base 0081fc55, Limit 88bf0, DPL 2, Type 2/SYSLDT
	  Present, 16-bit, page limit, 
	  Raw descriptor: fc558bf0 0098c281
Entry 16: LDT: Gate Off c0100c3c, Sel   00008, Stkcpy 1 DPL 3, Type 12/SYS386CGT
	  Present, 
	  Raw descriptor: 00080c3c c010ec01
Testing i386_set_ldt...
data address: 0x5f0000
setldt returned: 6
Entry 6: LDT: Seg Base 005f0000, Limit 01000, DPL 3, Type 18/MEMRW
	  Present, User, 16-bit, byte limit, 
	  Raw descriptor: 00001000 0000f25f
Checking desc (should be 0x97): 0x97
Making Call Gate
setldt returned: 5
Call gate sel = 0x2f
Entry 5: LDT: Gate Off 08048bcc, Sel   00017, Stkcpy 0 DPL 3, Type 12/SYS386CGT
	  Present, 
	  Raw descriptor: 00178bcc 0804ec00
Testing call gate...testldt: 
bus fault - investigate.

Called from call gate...
>How-To-Repeat:
See above.
>Fix:
Unknown.
>Release-Note:
>Audit-Trail:
>Unformatted: