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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B3CA6C433EF for ; Mon, 13 Jun 2022 16:12:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=KnGD4/R8vHKkYJWVoyoecZH+UpU7mGEWIAspV17e7Rg=; b=XG7Sgrdyt3+mC4 zrDCyTZUX8RYIkMuy5DHZD5sFzGZsihaHYvDGV/H7SgFRrpD81Ku8mDt2oeID9yXl8y6NVQeikbx8 ulgpPGipf73OhyxhMoFo0xACIHAhMhQVv2nI6MhE0ZT0lXcZGY4lKNEAJwnwabLn+r6mMnSM17yXF cgIGjiG05J4FZ08Qjvg+O/LSCGVcrihfE0cToQBlLofj2EXRptsBu+ixzbwQmyJp24UxaI2FrZIH7 VDwhHvS5f1iRgfdchLoAlVqKm5ZZ8zRx8hYOmoGdoaHQd7+y/X4x7C35wgvBZOxX4uMOA9LBseofw e7yv6IawyurtcWjEVouA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o0meT-004e6P-CL; Mon, 13 Jun 2022 16:10:53 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o0meQ-004e5H-P8 for linux-arm-kernel@lists.infradead.org; Mon, 13 Jun 2022 16:10:52 +0000 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 ams.source.kernel.org (Postfix) with ESMTPS id EDFB6B810F1; Mon, 13 Jun 2022 16:10:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11614C34114; Mon, 13 Jun 2022 16:10:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655136645; bh=vDGoVyz7P2imouhGRqKcXTMbxxpUemh4hqy3lJLfAus=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ib6hfQBqRr57ddK363WydGfoo7U25V23nCdwpOGrxXpCFAKVarA1lUuHhtoad7Vfw UGjftOcUsSs8wpTImEfj6ZAEfef0zddkF5GUJbNeVLJ/iJuiSFoH1Jmiv92Tq6MDq7 sYXvY+EUZM8szo2wmhJyODYo+gMFwPtq8x1WEL/Qlrw02D0EMJ1aO7Iq4VBVyP4fX6 9sM+xoK4oMrZirvXc0k6RrRuafW3ToEvPnXeTDjuU8wAKUCNabXph/SccJosxaB4oK mj5UGRxuLoznh9ZSbgVoBlod7K2djNvhwGzQxhpH58slofsKsMoUHrStQHb3zmQh2e hHcxfOagf9R3w== Date: Mon, 13 Jun 2022 09:10:43 -0700 From: Josh Poimboeuf To: Sami Tolvanen Cc: linux-kernel@vger.kernel.org, Kees Cook , Josh Poimboeuf , Peter Zijlstra , x86@kernel.org, Catalin Marinas , Will Deacon , Mark Rutland , Nathan Chancellor , Nick Desaulniers , Joao Moreira , Sedat Dilek , Steven Rostedt , linux-hardening@vger.kernel.org, linux-arm-kernel@lists.infradead.org, llvm@lists.linux.dev Subject: Re: [RFC PATCH v3 15/20] objtool: Disable CFI warnings Message-ID: <20220613161043.4wiqservfyxeme4f@treble> References: <20220610233513.1798771-1-samitolvanen@google.com> <20220610233513.1798771-16-samitolvanen@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220610233513.1798771-16-samitolvanen@google.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220613_091050_994271_0E294358 X-CRM114-Status: GOOD ( 11.86 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Jun 10, 2022 at 04:35:08PM -0700, Sami Tolvanen wrote: > The __cfi_ preambles contain int3 padding and a mov instruction that > embeds the KCFI type identifier in the following format: > > ; type preamble > __cfi_function: > int3 > int3 > mov , %eax > int3 > int3 > function: > ... > > While the preamble symbols are STT_FUNC and contain valid > instructions, they are never executed and always fall through. Skip > the warning for them. > > .kcfi_traps sections point to CFI traps in text sections. Also skip > the warning about them referencing !ENDBR instructions. > > Signed-off-by: Sami Tolvanen Acked-by: Josh Poimboeuf -- Josh _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel