[xtensa-cvscommit] linux/arch/xtensa/mm fault.c,1.1.1.1,1.2
Brought to you by:
zankel
|
From: <joe...@us...> - 2002-09-09 22:23:59
|
Update of /cvsroot/xtensa/linux/arch/xtensa/mm In directory usw-pr-cvs1:/tmp/cvs-serv29181/arch/xtensa/mm Modified Files: fault.c Log Message: In handling page faults, also check the PC of the offending instruction before determining whether it was a kernel or user page fault. This prevents a user program from crashing the kernel with an unmapped address > TASK_SIZE. Index: fault.c =================================================================== RCS file: /cvsroot/xtensa/linux/arch/xtensa/mm/fault.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** fault.c 28 Aug 2002 16:10:14 -0000 1.1.1.1 --- fault.c 9 Sep 2002 22:23:54 -0000 1.2 *************** *** 86,90 **** * 'reference' page table is init_mm.pgd. */ ! if (address >= TASK_SIZE) goto vmalloc_fault; --- 86,90 ---- * 'reference' page table is init_mm.pgd. */ ! if ((address >= TASK_SIZE) && (regs->pc >= TASK_SIZE)) goto vmalloc_fault; |