The patch titled mips: use generic ptrace_resume code has been added to the -mm tree. Its filename is mips-use-generic-ptrace_resume-code.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: mips: use generic ptrace_resume code From: Christoph Hellwig <hch@xxxxxx> Use the generic ptrace_resume code for PTRACE_SYSCALL, PTRACE_CONT and PTRACE_KILL. Also the TIF_SYSCALL_TRACE thread flag is now cleared on PTRACE_KILL which it previously wasn't which is consistent with all architectures using the modern ptrace code. Signed-off-by: Christoph Hellwig <hch@xxxxxx> Cc: Oleg Nesterov <oleg@xxxxxxxxxx> Cc: Roland McGrath <roland@xxxxxxxxxx> Acked-by: Ralf Baechle <ralf@xxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- arch/mips/kernel/ptrace.c | 30 ------------------------------ 1 file changed, 30 deletions(-) diff -puN arch/mips/kernel/ptrace.c~mips-use-generic-ptrace_resume-code arch/mips/kernel/ptrace.c --- a/arch/mips/kernel/ptrace.c~mips-use-generic-ptrace_resume-code +++ a/arch/mips/kernel/ptrace.c @@ -493,36 +493,6 @@ long arch_ptrace(struct task_struct *chi ret = ptrace_setfpregs(child, (__u32 __user *) data); break; - case PTRACE_SYSCALL: /* continue and stop at next (return from) syscall */ - case PTRACE_CONT: { /* restart after signal. */ - ret = -EIO; - if (!valid_signal(data)) - break; - if (request == PTRACE_SYSCALL) { - set_tsk_thread_flag(child, TIF_SYSCALL_TRACE); - } - else { - clear_tsk_thread_flag(child, TIF_SYSCALL_TRACE); - } - child->exit_code = data; - wake_up_process(child); - ret = 0; - break; - } - - /* - * make the child exit. Best I can do is send it a sigkill. - * perhaps it should be put in the status that it wants to - * exit. - */ - case PTRACE_KILL: - ret = 0; - if (child->exit_state == EXIT_ZOMBIE) /* already dead */ - break; - child->exit_code = SIGKILL; - wake_up_process(child); - break; - case PTRACE_GET_THREAD_AREA: ret = put_user(task_thread_info(child)->tp_value, (unsigned long __user *) data); _ Patches currently in -mm which might be from hch@xxxxxx are linux-next.patch vfs-fix-vfs_rename_dir-for-fs_rename_does_d_move-filesystems.patch xtensa-convert-to-asm-generic-hardirqh.patch add-generic-sys_old_select.patch add-generic-sys_old_select-fix.patch add-generic-sys_old_mmap.patch add-generic-sys_ipc-wrapper.patch add-generic-sys_ipc-wrapper-fix.patch improve-sys_personality-for-compat-architectures.patch improve-sys_newuname-for-compat-architectures.patch add-generic-sys_olduname.patch ptrace-use-ptrace_request-in-the-remaining-architectures.patch ptrace-move-user_enable_single_step-co-prototypes-to-linux-ptraceh.patch alpha-use-generic-ptrace_resume-code.patch arm-use-generic-ptrace_resume-code.patch avr32-use-generic-ptrace_resume-code.patch blackfin-use-generic-ptrace_resume-code.patch h8300-use-generic-ptrace_resume-code.patch m68knommu-use-generic-ptrace_resume-code.patch microblaze-use-generic-ptrace_resume-code.patch mips-use-generic-ptrace_resume-code.patch um-use-generic-ptrace_resume-code.patch xtensa-use-generic-ptrace_resume-code.patch cris-arch-v10-use-generic-ptrace_resume-code.patch cris-arch-v32-use-generic-ptrace_resume-code.patch m32r-use-generic-ptrace_resume-code.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html