Skip to contentSkip to conversation

fs-binfmts-better-handling-of-binfmt-loops-fix.patch removed from -mm tree

to-be-updated [email protected] 1 participant 1 message Aug 5, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Subject: [to-be-updated] fs-binfmts-better-handling-of-binfmt-loops-fix.patch removed from -mm tree
To: [email protected],[email protected],[email protected]
From: [email protected]
Date: Mon, 05 Aug 2013 13:33:40 -0700

The patch titled
Subject: fs/binfmts: double unlock in search_binary_handler()
has been removed from the -mm tree. Its filename was
fs-binfmts-better-handling-of-binfmt-loops-fix.patch

This patch was dropped because an updated version will be merged

------------------------------------------------------
From: Dan Carpenter <[email protected]>
Subject: fs/binfmts: double unlock in search_binary_handler()

The recent -mm patch 3046d15088 "fs/binfmts: better handling of binfmt loops" introduced a new "continue" to the loop. The problem is that we are supposed to be holding the lock at the start so we need to take it again.

---

 fs/exec.c |    1 +
 1 file changed, 1 insertion(+)
fs/exec.c renamed from fs/exec.c~fs-binfmts-better-handling-of-binfmt-loops-fix +1 -0
diff -puN fs/exec.c~fs-binfmts-better-handling-of-binfmt-loops-fix fs/exec.c
@@ -1426,6 +1426,7 @@ int search_binary_handler(struct linux_b
 				copy_strings(bprm->argc_orig, *((struct user_arg_ptr *) bprm->argv_orig), bprm);
 				bprm->argc = bprm->argc_orig;
 				retval = -ENOEXEC;
+				read_lock(&binfmt_lock);
 				continue;
 			}
 

_

Patches currently in -mm which might be from [email protected] are

ocfs2-use-list_for_each_entry-instead-of-list_for_each.patch pktcdvd-convert-printk-to-pr_level.patch linux-next.patch fs-convert-fs-shrinkers-to-new-scan-count-api-fix-fix.patch