Linus Torvalds writes: (Summary) On Thu, Feb 8, 2018 at 1:13 AM, Peter Zijlstra <peterz@infradead.org> wrote:
Ugh.
Is there any reason why we don't just use UD2 and avoid this whole issue? Is there any reason why we don't just use UD2 and avoid this whole issue? I see that 'is_valid_bugaddr()' seems to accept either, I'm not seeing anything that cares.
that cares.
Yes, yes, we currently use UD0 for warnings, and UD2 for BUG(), but the fact is, we don't actually seem to care, because the *real*
[...]
that has a WARN in (this very much includes perf annotate): Ugh.Ugh.
Is there any reason why we don't just use UD2 and avoid this whole issue? Is there any reason why we don't just use UD2 and avoid this whole issue? I see that 'is_valid_bugaddr()' seems to accept either, I'm not seeing anything that cares.
that cares.
Yes, yes, we currently use UD0 for warnings, and UD2 for BUG(), but the fact is, we don't actually seem to care, because the *real*
differentiator is BUGFLAG_WARNING.