fix corner cases in exec of ELF
put an invalid page below the stack have fork() handle invalid pages
This commit is contained in:
		
							parent
							
								
									1afc9d3fca
								
							
						
					
					
						commit
						c4cc10da7e
					
				
					 8 changed files with 84 additions and 37 deletions
				
			
		
							
								
								
									
										3
									
								
								defs.h
									
										
									
									
									
								
							
							
						
						
									
										3
									
								
								defs.h
									
										
									
									
									
								
							|  | @ -163,7 +163,8 @@ void            freevm(pde_t*); | |||
| void            inituvm(pde_t*, char*, char*, uint); | ||||
| int             loaduvm(pde_t*, char*, struct inode *ip, uint, uint); | ||||
| pde_t*          copyuvm(pde_t*,uint); | ||||
| void            loadvm(struct proc*); | ||||
| void            switchuvm(struct proc*); | ||||
| void            switchkvm(); | ||||
| 
 | ||||
| // number of elements in fixed-size array
 | ||||
| #define NELEM(x) (sizeof(x)/sizeof((x)[0])) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Robert Morris
						Robert Morris