Re: [PATCH 2/5] x86: ret_from_fork - get rid of jump back

From: Andi Kleen
Date: Thu Nov 27 2008 - 09:06:19 EST


> But it gets worse than that: checking for _TIF_SYSCALL_TRACE is
> completely unnecessary here because we clear that flag for every

That's true. I found your 2005 changeset which did that, although
it seems to have been written before meaningful changelogs
became en vogue so it's unclear why. But assuming strace/gdb
always reattach it's probably ok.

But _TIF_SYSCALL_AUDIT for which it also checks is not always cleared so
it's not completely dead.

That said in theory the ret_from_sys checks should handle those too,
so it might be unnecessary (I don't remember why I added the additional
check here). Still removing it would change the order
of signal checks versus trace checks and since signal
handling is always hairy one would need to be very careful
when changing it to not break anything.

-Andi
--
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/