From: Laszlo Ersek <[email protected]>
The grub_dprintf() call for printing the message
updating attributes for GOT and trampolines
passes the argument "mod->name", but the format string doesn't accept that
argument.
Print the module name too.
Example output:
> kern/dl.c:736: updating attributes for GOT and trampolines ("video_fb")
Fixes: ad1b904d325b (nx: set page permissions for loaded modules.)
Signed-off-by: Laszlo Ersek <[email protected]>
(cherry picked from commit ee58dd70d627df54b806e94409673a11caab5a5d)
Signed-off-by: Jan Setje-Eilers <[email protected]>
Signed-off-by: Mate Kukri <[email protected]>
---
grub-core/kern/dl.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/grub-core/kern/dl.c b/grub-core/kern/dl.c
index 042033a90..78e53b078 100644
--- a/grub-core/kern/dl.c
+++ b/grub-core/kern/dl.c
@@ -696,7 +696,8 @@ grub_dl_set_mem_attrs (grub_dl_t mod, void *ehdr)
{
tgsz = ALIGN_UP(tgsz, arch_addralign);
- grub_dprintf ("modules", "updating attributes for GOT and trampolines\n",
+ grub_dprintf ("modules",
+ "updating attributes for GOT and trampolines (\"%s\")\n",
mod->name);
if (tgaddr < (grub_addr_t)mod->base ||
tgsz > (grub_addr_t)-1 - tgaddr ||
--
2.39.2
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel