plan 9 kernel history: overview | file list | diff list

1995/02021/pc/trap.c (diff list | history)

1995/0202/sys/src/9/pc/trap.c:523,5291995/02021/sys/src/9/pc/trap.c:523,529 (short | long | prev | next)
1995/0202    
	sp -= sizeof(Ureg); 
 
	if(!okaddr((ulong)up->notify, 1, 0) 
	|| !okaddr(sp-ERRLEN-3*BY2WD, sizeof(Ureg)+ERRLEN-3*BY2WD, 0)){ 
1995/02021    
	|| !okaddr(sp-ERRLEN-4*BY2WD, sizeof(Ureg)+ERRLEN+4*BY2WD, 1)){ 
1995/0202    
		pprint("suicide: bad address in notify\n"); 
		qunlock(&up->debug); 
		pexit("Suicide", 0); 
1995/0202/sys/src/9/pc/trap.c:572,5791995/02021/sys/src/9/pc/trap.c:572,578
1995/0202    
 
	/* sanity clause */ 
	oureg = (ulong)nur; 
	if(oureg>=USTKTOP || oureg<USTKTOP-USTKSIZE 
	|| !okaddr((ulong)oureg-BY2WD, BY2WD+sizeof(Ureg), 0)){ 
1995/02021    
	if(!okaddr((ulong)oureg-BY2WD, BY2WD+sizeof(Ureg), 0)){ 
1995/0202    
		pprint("bad ureg in noted or call to noted() when not notified\n"); 
1994/0513    
		qunlock(&up->debug); 
1995/0202    
		pexit("Suicide", 0); 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)