[PATCH 0/1] ptrace: x86: stepping in a signal handler leaksX86_EFLAGS_TF

From: Oleg Nesterov
Date: Sun Jun 06 2010 - 12:40:24 EST


On 06/02, Oleg Nesterov wrote:
>
> I am starting to think we should fix this per arch. As for x86, perhaps
> we should start with this one-liner
>
> spin_unlock_irq(&current->sighand->siglock);
>
> tracehook_signal_handler(sig, info, ka, regs,
> - test_thread_flag(TIF_SINGLESTEP));
> + test_and_clear_thread_flag(TIF_SINGLESTEP));
>
> return 0;
> }
>
> then do other changes.

I am sending this patch. It is still not clear to me what is the
"right" fix, we need more discussion. Let's fix the bug first.

Oleg.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/