Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:michael-chang:test:grub:old
grub2
0019-grub_dl_set_mem_attrs-fix-format-string.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0019-grub_dl_set_mem_attrs-fix-format-string.patch of Package grub2
From 8d3b5235e627d616cdf6e71c627837c861fa84fd Mon Sep 17 00:00:00 2001 From: Laszlo Ersek <lersek@redhat.com> Date: Fri, 7 Apr 2023 14:54:35 +0200 Subject: [PATCH 19/26] grub_dl_set_mem_attrs(): fix format string 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 <lersek@redhat.com> --- 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 7f2a4c073..020d1757e 100644 --- a/grub-core/kern/dl.c +++ b/grub-core/kern/dl.c @@ -681,7 +681,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); grub_update_mem_attrs (tgaddr, tgsz, GRUB_MEM_ATTR_R|GRUB_MEM_ATTR_X, GRUB_MEM_ATTR_W); -- 2.42.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor