[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20230126033325.kuww43xyqykikuw4@treble>
Date: Wed, 25 Jan 2023 19:33:25 -0800
From: Josh Poimboeuf <jpoimboe@...nel.org>
To: Michal Kubecek <mkubecek@...e.cz>
Cc: Peter Zijlstra <peterz@...radead.org>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] objtool: check that module init/exit function is an
indirect call target
On Wed, Jan 18, 2023 at 11:52:15AM +0100, Michal Kubecek wrote:
> Some out-of-tree modules still do not use module_init() / module_exit()
> macros and simply create functions with magic names init_module() and
> cleanup_module() instead. As a result, these functions are not recognized
> as indirect call targets by objtool and such module fails to load into an
> IBT enabled kernel.
I'm struggling to understand why a manually created init_module()
wouldn't create the ENDBR. Does it only happen when init_module() is
declared static?
--
Josh
Powered by blists - more mailing lists