forked from Bananymous/banan-os
				
			Kernel: Print userspace invalid pointer access address
This commit is contained in:
		
							parent
							
								
									a134d16070
								
							
						
					
					
						commit
						ef5af384e7
					
				|  | @ -2376,7 +2376,7 @@ namespace Kernel | ||||||
| 			return {}; | 			return {}; | ||||||
| 
 | 
 | ||||||
| unauthorized_access: | unauthorized_access: | ||||||
| 		dwarnln("process {}, thread {} attempted to make an invalid pointer access", pid(), Thread::current().tid()); | 		dwarnln("process {}, thread {} attempted to make an invalid pointer access to 0x{H}->0x{H}", pid(), Thread::current().tid(), vaddr, vaddr + size); | ||||||
| 		Debug::dump_stack_trace(); | 		Debug::dump_stack_trace(); | ||||||
| 		MUST(sys_kill(pid(), SIGSEGV)); | 		MUST(sys_kill(pid(), SIGSEGV)); | ||||||
| 		return BAN::Error::from_errno(EINTR); | 		return BAN::Error::from_errno(EINTR); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue