lkml.org 
[lkml]   [2020]   [Mar]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH 13/14] x86/unwind/orc: Add more unwinder warnings
On Thu, Mar 12, 2020 at 6:31 PM Josh Poimboeuf <jpoimboe@redhat.com> wrote:
> Make sure warnings are displayed for all error scenarios (except when
> encountering an empty unwind hint).
[...]
> /* End-of-stack check for kernel threads: */
> if (orc->sp_reg == ORC_REG_UNDEFINED) {
> - if (!orc->end)
> + if (!orc->end) {
> + /*
> + * This is reported as an error for the caller, but
> + * otherwise it isn't worth warning about. In theory
> + * it can only happen when hitting UNWIND_HINT_EMPTY in
> + * entry code, close to a kernel exit point.
> + */
> goto err;

But UNWIND_HINT_EMPTY sets end=1, right? And this is the branch for
end==0. What am I missing?

\
 
 \ /
  Last update: 2020-03-12 20:12    [W:0.163 / U:0.268 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site