Re: [RFC PATCH] tracing: Add BUG_ON when stack end location is over written

From: Steven Rostedt
Date: Mon Mar 24 2014 - 10:40:03 EST


On Mon, 24 Mar 2014 14:03:57 +0000
Aaron Tomlin <atomlin@xxxxxxxxxx> wrote:

> It is difficult to detect a stack overrun when it
> actually occurs.
>
> We have observed that this type of corruption is often
> silent and can go unnoticed. Once the corrupted region
> is examined, the outcome is undefined and often
> results in sporadic system crashes.
>
> When the stack tracing feature is enabled, let's check
> for this condition and take appropriate action.
>
> Note: init_task doesn't get its stack end location
> set to STACK_END_MAGIC.
>
> Signed-off-by: Aaron Tomlin <atomlin@xxxxxxxxxx>
> ---

I added this to my 3.15 queue, and if it survives testing, I'll push it
to my for-next branch.

Thanks,

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