diff --git a/kernel/ptrace.c b/kernel/ptrace.c index 5f33cdb6fff5f7e629842a8bee7865bb2607515c..d2cf144d0af5156d50ba8340f19697096ad957d4 100644 --- a/kernel/ptrace.c +++ b/kernel/ptrace.c @@ -242,8 +242,7 @@ int access_process_vm(struct task_struct *tsk, unsigned long addr, void *buf, in if (write) { copy_to_user_page(vma, page, addr, maddr + offset, buf, bytes); - if (!PageCompound(page)) - set_page_dirty_lock(page); + set_page_dirty_lock(page); } else { copy_from_user_page(vma, page, addr, buf, maddr + offset, bytes);