From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dy1-f180.google.com (mail-dy1-f180.google.com [74.125.82.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8847C212548 for ; Thu, 11 Jun 2026 04:05:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781150731; cv=none; b=OWwG0g5hgSSO4c0nqNKS+zUOoXsDn7/WRSOkbfCdGmdLwH87kxyMsE52UVG+Bncc0oJ+EpOhlLZxprz3SL6GSpQJl1c6OfESQJJBALs7Xx0gmSA7SV3texQG0Y1+R6jkqSZW4O8DI+LAObsUr471SEq4evHx1mVTL3jz2J0NgPQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781150731; c=relaxed/simple; bh=u6rWfCK/nV3syZs1D6/EjjtmpIKx+iFOi/w1xUVitOg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=FFdNFl/4DMtoI2IFfMmJpKNnmfaLdtXLAcmS7aF5g3qI4hMfsL/ZfByi3vkYw6IgPqpOezK0UrARsF5tsAKTBiaDKRquDbNcnykWY+oOOSG3becyOx2JIBtZWABLzvjJGxn3KB8qOMU7nWNxulbGvo8BX4zhoh6jKR9EnXFhpTw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=wbinvd.org; spf=pass smtp.mailfrom=wbinvd.org; dkim=pass (2048-bit key) header.d=wbinvd.org header.i=@wbinvd.org header.b=aBAvM704; arc=none smtp.client-ip=74.125.82.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=wbinvd.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wbinvd.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wbinvd.org header.i=@wbinvd.org header.b="aBAvM704" Received: by mail-dy1-f180.google.com with SMTP id 5a478bee46e88-304d0ac5e3cso3014489eec.0 for ; Wed, 10 Jun 2026 21:05:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wbinvd.org; s=wbinvd; t=1781150729; x=1781755529; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=aa3KpTLtCYFAwJs/jcoFnx/LZ3xJyaBuuZgzOtb84uU=; b=aBAvM704LTUMQdA13UhZdJ/o/ROAQ4eht9aJP/64ig2gPgVAHsr4+yp+XNZwt4l4wJ AuwExsPgEo/3bKOVqVAmrkfRvHLuPKXS7MqLWI68ANOxl1Q804mLH9LI5tGoTWHvsDm8 CJt3FzOl/83ryQ9qCGmeEiekTDltRqofhbdrcbb5xSV8HBJyYjjqSl/z7iKEAf7P/BNw kZwp8W5mcTxJwXQmQguRyHMeXhaQN4TTOMrFqnRezVBE0Y0qLzYrx32U7hZVY436vU5S iYBtJMVk5xRDXj0R6H1w6MeWI3PbO8GopnFy6KECWNlti5+KI1TYNaTrwfwiw66uTKB+ yDbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781150729; x=1781755529; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=aa3KpTLtCYFAwJs/jcoFnx/LZ3xJyaBuuZgzOtb84uU=; b=KMssxhkXesKAbPj7mvjrxmmqHWIfedgEN1ZEcB6FiMi15OUy5gqHvRnu5T3Rq1+1jr ksrx+ywa2hhnArc3seBhBp00F7KpRkqki/Jqhq6dmv6Mj3E1+C1fWdFRsQyKjTHuaN6l nHKwiOB+A2gX1F2plRQIIJ2cSWYUGPPB33Ik1bQizXiEjS+uBNmxJmC+gxkZRMAJLDXm HRmfuZtJMbLCdCaEN/5b5gN7uLuCF4nIHG2KuKSpkbnYj2R1dQManIshBqtQvWHX+kGV hY82S+vVykPnhCmNFM36+ZyAUvJIKJW7CFRFpqSo13OK1+pB8lOCTLlH2KZ79lM/wn4G No1g== X-Gm-Message-State: AOJu0YwMtnM8DrE0L2VMMcwtIrkC65gA+W/OcqW94cApzQsJGqCz6t8d Ha0PMxewd80e68fX++9EcJU6CZl10lb7pS17Bb3xRG2uRyXehViAeOuQg48YNiWIUQ8= X-Gm-Gg: Acq92OGfrlL3fUfLD3vXON4tO25/M/0pzKupfGZ+NvSaqPq3HqAx2AKRDdGOgYX24D1 uNKF3F32COHw5gyNqS1WkYExOomC8InFARclUu4q7bgfmGh7W7n0vBr4Sqy66dJwQ6ScoIDXZt5 +FBQM7oC2vAjgBSL9qdGtcTmh62TOkK+2dPZCAUEB+jkEhx3/tfnTFYE2ur8hieaRCqUJDztQQt qJ2Kwe/Cev30ngxwohQp6+lzIZ0Ja2SP9UU4rghXuVDSxKsDQSV+bcLIXmXEexs28hf4fRAM9Vw 51lE2VM5NyInLkGbuFyVElbIdS9cOtqW8qNS5KZ+KLhgsgRyJe8eYGLp79EZlasTl8AsipQo9+u vzVrHZs/m2vaLB3pSPFndL2eqDfMwWfC/FZapT09Wrou9hj9BmIhgfmhCYDMMjSfo5Jx9Khncq+ ksyP4+XXDvCMP6BG8fW/qO3DLU53df7gu50+0I X-Received: by 2002:a05:7301:198f:b0:2dd:c066:bf7 with SMTP id 5a478bee46e88-30804787c34mr1009387eec.11.1781150729491; Wed, 10 Jun 2026 21:05:29 -0700 (PDT) Received: from mozart.vkv.me ([2001:5a8:468b:d015:70a1:46e0:87f4:b7a9]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-30806c2f420sm550665eec.6.2026.06.10.21.05.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jun 2026 21:05:29 -0700 (PDT) Date: Wed, 10 Jun 2026 21:05:26 -0700 From: Calvin Owens To: Borislav Petkov Cc: linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Peter Zijlstra , "Mike Rapoport (Microsoft)" , Kees Cook , Juergen Gross , Josh Poimboeuf , Mark Rutland Subject: Re: [PATCH] x86/cfi: add __init_or_module annotations for fineibt Message-ID: References: <1f50aecf23311dc5ffb965c5ccfb8b49208dbb3f.1779763849.git.calvin@wbinvd.org> <20260610200206.GEainCvnP1tYiX6rdu@fat_crate.local> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20260610200206.GEainCvnP1tYiX6rdu@fat_crate.local> On Wednesday 06/10 at 13:02 -0700, Borislav Petkov wrote: > On Wed, Jun 10, 2026 at 08:54:26AM -0700, Calvin Owens wrote: > > On Monday 05/25 at 20:22 -0700, Calvin Owens wrote: > > > I'm seeing some benign section mismatch warnings with fineibt when > > > building kernels with CONFIG_MODULES=n: > > > > > > WARNING: modpost: vmlinux: section mismatch in reference: __apply_fineibt+0x1db (section: .text) -> text_poke_early (section: .init.text) > > > WARNING: modpost: vmlinux: section mismatch in reference: __apply_fineibt+0x473 (section: .text) -> text_poke_early (section: .init.text) > > > WARNING: modpost: vmlinux: section mismatch in reference: __apply_fineibt+0x57c (section: .text) -> text_poke_early (section: .init.text) > > > WARNING: modpost: vmlinux: section mismatch in reference: __apply_fineibt+0x6d9 (section: .text) -> text_poke_early (section: .init.text) > > > WARNING: modpost: vmlinux: section mismatch in reference: __apply_fineibt+0xb57 (section: .text) -> text_poke_early (section: .init.text) > > > WARNING: modpost: vmlinux: section mismatch in reference: __apply_fineibt+0xb81 (section: .text) -> text_poke_early (section: .init.text) > > > WARNING: modpost: vmlinux: section mismatch in reference: __apply_fineibt+0xd00 (section: .text) -> poison_endbr (section: .init.text) > > > WARNING: modpost: vmlinux: section mismatch in reference: __apply_fineibt+0xdd3 (section: .text) -> text_poke_early (section: .init.text) > > > WARNING: modpost: vmlinux: section mismatch in reference: __apply_fineibt+0xe58 (section: .text) -> text_poke_early (section: .init.text) > > > WARNING: modpost: vmlinux: section mismatch in reference: __apply_fineibt+0xe85 (section: .text) -> text_poke_early (section: .init.text) > > > WARNING: modpost: vmlinux: section mismatch in reference: apply_fineibt+0x8 (section: .text.unlikely.) -> __apply_fineibt (section: .init.text) > > > > > > Add the missing __init_or_module section annotations to fix the > > > warnings, and also free up a tiny bit of memory after boot. > > > > > > Signed-off-by: Calvin Owens > > > > Gentle ping. > > This is just fixing warnings so it can wait until after the merge window, > right? It can definitely wait for 7.2, I just haven't seen it in -next yet. But if it's easier to do it after 7.2-rc1 at this point that's fine too. > -- > Regards/Gruss, > Boris. > > https://people.kernel.org/tglx/notes-about-netiquette