Re: [PATCH 1/3] context_tracking: Fix KCSAN noinstr violation

From: Frederic Weisbecker
Date: Thu Apr 13 2023 - 09:58:14 EST


Le Wed, Apr 12, 2023 at 10:24:06AM -0700, Josh Poimboeuf a écrit :
> With KCSAN enabled, even empty inline stubs can be out-of-lined.
>
> Force the context_tracking_guest_exit() stub inline.
>
> Fixes the following warnings:
>
> vmlinux.o: warning: objtool: vmx_vcpu_enter_exit+0x1be: call to context_tracking_guest_exit() leaves .noinstr.text section
> vmlinux.o: warning: objtool: svm_vcpu_enter_exit+0x85: call to context_tracking_guest_exit() leaves .noinstr.text section
>
> Signed-off-by: Josh Poimboeuf <jpoimboe@xxxxxxxxxx>

Acked-by: Frederic Weisbecker <frederic@xxxxxxxxxx>

Thanks!