patch-2.3.99-pre3 linux/kernel/ptrace.c
Next file: linux/kernel/sched.c
Previous file: linux/kernel/ksyms.c
Back to the patch index
Back to the overall index
- Lines: 12
- Date:
Tue Mar 21 11:01:25 2000
- Orig file:
v2.3.99-pre2/linux/kernel/ptrace.c
- Orig date:
Sun Feb 13 19:29:04 2000
diff -u --recursive --new-file v2.3.99-pre2/linux/kernel/ptrace.c linux/kernel/ptrace.c
@@ -44,9 +44,9 @@
mapnr = pte_pagenr(*pgtable);
if (write && (!pte_write(*pgtable) || !pte_dirty(*pgtable)))
goto fault_in_page;
- if (mapnr >= max_mapnr)
- return 0;
page = mem_map + mapnr;
+ if ((mapnr >= max_mapnr) || PageReserved(page))
+ return 0;
flush_cache_page(vma, addr);
if (write) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)