Skip to contentSkip to conversation

+ kernel-kmodc-check-for-null-in-call_usermodehelper_exec-update.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Sep 24, 2013

lore
Share & tools
lore
#0 lore raw

Subject: + kernel-kmodc-check-for-null-in-call_usermodehelper_exec-update.patch added to -mm tree
To: [email protected],[email protected],[email protected]
From: [email protected]
Date: Tue, 24 Sep 2013 13:54:16 -0700

The patch titled
Subject: kernel-kmodc-check-for-null-in-call_usermodehelper_exec-update
has been added to the -mm tree. Its filename is
kernel-kmodc-check-for-null-in-call_usermodehelper_exec-update.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/kernel-kmodc-check-for-null-in-call_usermodehelper_exec-update.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/kernel-kmodc-check-for-null-in-call_usermodehelper_exec-update.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Tetsuo Handa <[email protected]>
Subject: kernel-kmodc-check-for-null-in-call_usermodehelper_exec-update

Switch to EINVAL.

---

 kernel/kmod.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/kmod.c renamed from kernel/kmod.c~kernel-kmodc-check-for-null-in-call_usermodehelper_exec-update +1 -1
diff -puN kernel/kmod.c~kernel-kmodc-check-for-null-in-call_usermodehelper_exec-update kernel/kmod.c
@@ -573,7 +573,7 @@ int call_usermodehelper_exec(struct subp
 
 	if (!sub_info->path) {
 		call_usermodehelper_freeinfo(sub_info);
-		return -ENOENT;
+		return -EINVAL;
 	}
 	helper_lock();
 	if (!khelper_wq || usermodehelper_disabled) {

_

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

kernel-kmodc-check-for-null-in-call_usermodehelper_exec-update.patch syscallsh-use-gcc-alias-instead-of-assembler-aliases-for-syscalls.patch scripts-mod-modpostc-handle-non-abs-crc-symbols.patch