[xtensa-cvscommit] linux/arch/xtensa/mm fault.c,1.8,1.9
Brought to you by:
zankel
|
From: <joe...@us...> - 2003-08-07 21:20:58
|
Update of /cvsroot/xtensa/linux/arch/xtensa/mm In directory sc8-pr-cvs1:/tmp/cvs-serv8290/arch/xtensa/mm Modified Files: fault.c Log Message: Also require kernel mode before jumping to handle a vmalloc fault. Index: fault.c =================================================================== RCS file: /cvsroot/xtensa/linux/arch/xtensa/mm/fault.c,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** fault.c 30 Jul 2003 21:26:46 -0000 1.8 --- fault.c 7 Aug 2003 21:20:56 -0000 1.9 *************** *** 140,145 **** * We fault-in kernel-space virtual memory on-demand. The * 'reference' page table is init_mm.pgd. */ ! if ((address >= TASK_SIZE) && (regs->pc >= TASK_SIZE)) goto vmalloc_fault; --- 140,148 ---- * We fault-in kernel-space virtual memory on-demand. The * 'reference' page table is init_mm.pgd. + * + * XTFIXME: I think "regs->pc >= TASK_SIZE" is unnecesary due to the + * !user_mode(regs) condition, but we're too close to a release candidate. */ ! if (address >= TASK_SIZE && regs->pc >= TASK_SIZE && !user_mode(regs)) goto vmalloc_fault; |