Title: [7871] trunk/arch/blackfin/kernel/ptrace.c: Blackfin: drop ptrace() write support for fixed code/bootrom -- we dont want to let people to write to these regions
- Revision
- 7871
- Author
- vapier
- Date
- 2009-11-25 00:39:03 -0500 (Wed, 25 Nov 2009)
Log Message
Blackfin: drop ptrace() write support for fixed code/bootrom -- we dont want to let people to write to these regions
Modified Paths
Diff
Modified: trunk/arch/blackfin/kernel/ptrace.c (7870 => 7871)
--- trunk/arch/blackfin/kernel/ptrace.c 2009-11-25 04:50:29 UTC (rev 7870)
+++ trunk/arch/blackfin/kernel/ptrace.c 2009-11-25 05:39:03 UTC (rev 7871)
@@ -316,19 +316,6 @@
case BFIN_MEM_ACCESS_CORE_ONLY:
copied = access_process_vm(child, addr, &data,
to_copy, 1);
- if (copied)
- break;
-
- /* hrm, why didn't that work ... maybe no mapping */
- if (addr >= FIXED_CODE_START &&
- addr + to_copy <= FIXED_CODE_END) {
- copy_to_user_page(0, 0, 0, paddr, &data, to_copy);
- copied = to_copy;
- } else if (addr >= BOOT_ROM_START) {
- memcpy(paddr, &data, to_copy);
- copied = to_copy;
- }
-
break;
case BFIN_MEM_ACCESS_DMA:
if (safe_dma_memcpy(paddr, &data, to_copy))
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits