On Fri, Dec 27, 2024 at 09:28:22AM +0200, Mike Rapoport wrote:
From: "Mike Rapoport (Microsoft)" rppt@kernel.org
In order to use execmem's API for temporal remapping of the memory allocated from ROX cache as writable, there is a need to distinguish between the state when the module is being formed and the state when it is deconstructed and freed so that when module_memory_free() is called from error paths during module loading it could restore ROX mappings.
Replace open coded checks for MODULE_STATE_UNFORMED with a helper function module_is_formed() and add a new MODULE_STATE_GONE that will be set when the module is deconstructed and freed.
Signed-off-by: Mike Rapoport (Microsoft) rppt@kernel.org
I've seen the rest of the discussion about this patch... but in case I forget, and from an extremely myopic kgdb/kdb point of view: Acked-by: Daniel Thompson (RISCstar) danielt@kernel.org
Daniel.