--- linux-2.6.29/arch/m68k/kernel/ptrace.c-orig 2012-06-30 06:37:34.000000000 -0700 +++ linux-2.6.29/arch/m68k/kernel/ptrace.c 2012-07-13 11:25:24.000000000 -0700 @@ -24,6 +24,7 @@ #include #include #include +#include /* * does not yet catch signals sent when the child dies. @@ -157,6 +158,8 @@ long arch_ptrace(struct task_struct *chi case PTRACE_POKETEXT: /* write the word at location addr. */ case PTRACE_POKEDATA: ret = generic_ptrace_pokedata(child, addr, data); + flush_dcache (); + flush_icache (); break; case PTRACE_POKEUSR: /* write the word at location addr in the USER area */ @@ -183,6 +186,8 @@ long arch_ptrace(struct task_struct *chi child->thread.fp[addr - 21] = data; } else goto out_eio; + flush_dcache (); + flush_icache (); break; case PTRACE_SYSCALL: /* continue and stop at next (return from) syscall */