Re: [PATCH 1/2] perf: Move task_pt_regs sampling into arch code
From: Peter Zijlstra
Date: Mon Jan 05 2015 - 09:08:25 EST
On Sun, Jan 04, 2015 at 10:36:19AM -0800, Andy Lutomirski wrote:
> On x86_64, at least, task_pt_regs may be only partially initialized
> in many contexts, so x86_64 should not use it without extra care
> from interrupt context, let alone NMI context.
>
> This will allow x86_64 to override the logic and will supply some
> scratch space to use to make a cleaner copy of user regs.
Just wondering how bad it would be to fill out the actual pt_regs that
was previously partially initialized?
--
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/