Skip to contentSkip to conversation

Fix format string bug

PATCH Steven Whitehouse 1 participant 1 message Jun 13, 2008 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Hi,

Quoted 13 lines · maximilian attems

similar to 326f6a5c9c9e1a62aec37bdc0c3f8d53adabe77b, only writable by root but worth fixing.

---
 fs/gfs2/locking.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/gfs2/locking.c +0 -0
index 663fee7..4857024 100644

fs/gfs2/locking.c retry: · line 137

Quoted 8 lines
fs/gfs2/locking.c +1 -1
@@ -131,7 +131,7 @@ retry:
 		if (!try && capable(CAP_SYS_MODULE)) {
 			try = 1;
 			mutex_unlock(&lmh_lock);
-			request_module(proto_name);
+			request_module("%s", proto_name);
 			goto retry;
 		}
 		printk(KERN_INFO "GFS2: can't find protocol %s\n", proto_name);

I'm not quite sure whats wrong with the original here, but I'm currently working upon a patch to remove the lock_dlm module (the lock_nolock module is already gone) by merging it into the core of GFS2. So that this module loading code will be disappearing very shortly.

So on that basis, I don't feel that its worth applying this patch at the moment anyway,

Steve.