From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1AAB0C77B6E for ; Thu, 13 Apr 2023 13:58:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231642AbjDMN6N (ORCPT ); Thu, 13 Apr 2023 09:58:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231510AbjDMN6I (ORCPT ); Thu, 13 Apr 2023 09:58:08 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E456793E4 for ; Thu, 13 Apr 2023 06:58:05 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2F4E763EDE for ; Thu, 13 Apr 2023 13:58:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 281B9C433D2; Thu, 13 Apr 2023 13:58:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681394284; bh=jgYJ22d0VugCNoyfbfuik0EWw1aUpMuR4wxj3654MxY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ngZoJJH9BfenVHPQojG43eB7ZAQ02gqndJm1Kl7BskhUkN+7KbMclKQmHAX1SSLaH Ax5BXyGz0yoCPYBk3S7N0FnX2rzBjcqBLfocgbUanAhqcxQfvfGlIg2m2DtBignWAi /HRv2uJLDK5Ja9jJ04K2COyvpia9BxMrIqtscCkOKGDcIEDIwkP7+hpoWISr+bJAwI OJIclxHjfMgkAI5NOm41cSr2kd6p1hCHfB1gSKMW1iYi6GcJMg7htKEa82+vOrBmJ0 qRg3KGtqOTdurrdoLkrwdehbHZ2VdeMv89zU/eR5Ey/hxu3opfx6SI1S/FY6NRYXLp yA8oJ+U7AHKtQ== Date: Thu, 13 Apr 2023 15:58:01 +0200 From: Frederic Weisbecker To: Josh Poimboeuf Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Peter Zijlstra , paulmck@kernel.org, keescook@chromium.org Subject: Re: [PATCH 1/3] context_tracking: Fix KCSAN noinstr violation Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Acked-by: Frederic Weisbecker Thanks!