Skip to contentSkip to conversation

coredump-%-at-the-end-shouldnt-bypass-core_uses_pid-logic-fix.patch removed from -mm tree

folded-merged [email protected] 1 participant 1 message Jul 3, 2013 VFS

lore
Share & tools
lore
#0 lore raw

Subject: [folded-merged] coredump-%-at-the-end-shouldnt-bypass-core_uses_pid-logic-fix.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Wed, 03 Jul 2013 14:42:09 -0700

The patch titled

     Subject: coredump: avoid the uninitialized cn->corename if core_pattern is empty

has been removed from the -mm tree. Its filename was
coredump-%-at-the-end-shouldnt-bypass-core_uses_pid-logic-fix.patch

This patch was dropped because it was folded into coredump-%-at-the-end-shouldnt-bypass-core_uses_pid-logic.patch

------------------------------------------------------
From: Oleg Nesterov <[email protected]>
Subject: coredump: avoid the uninitialized cn->corename if core_pattern is empty

If core_pattern is "" or "|", cn->corename is used uninitialized by filp_open() or call_usermodehelper_exec().

Cc Andi Kleen <[email protected]>
Cc Colin Walters <[email protected]>
Cc Denys Vlasenko <[email protected]>
Cc Jiri Slaby <[email protected]>
Cc Lennart Poettering <[email protected]>
Cc Lucas De Marchi <[email protected]>
Cc Neil Horman <[email protected]>

---

 fs/coredump.c |    1 +
 1 file changed, 1 insertion(+)
fs/coredump.c renamed from fs/coredump.c~coredump-%-at-the-end-shouldnt-bypass-core_uses_pid-logic-fix +1 -0
diff -puN fs/coredump.c~coredump-%-at-the-end-shouldnt-bypass-core_uses_pid-logic-fix fs/coredump.c
@@ -165,6 +165,7 @@ static int format_corename(struct core_n
 	cn->corename = NULL;
 	if (expand_corename(cn, core_name_size))
 		return -ENOMEM;
+	cn->corename[0] = '\0';
 
 	if (ispipe)
 		++pat_ptr;

_

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

origin.patch
kernel-sysc-do_sysinfo-use-get_monotonic_boottime.patch x86-kill-tif_debug.patch ptrace-add-ability-to-get-set-signal-blocked-mask.patch signals-eventpoll-do-not-use-sigprocmask.patch usermodehelper-kill-the-sub_info-path-check.patch coredump-format_corename-can-leak-cn-corename.patch coredump-introduce-cn_vprintf.patch coredump-cn_vprintf-has-no-reason-to-call-vsnprintf-twice.patch coredump-kill-cn_escape-introduce-cn_esc_printf.patch coredump-kill-call_count-add-core_name_size.patch coredump-%-at-the-end-shouldnt-bypass-core_uses_pid-logic.patch fs-execc-de_thread-use-change_pid-rather-than-detach_pid-attach_pid.patch exitc-unexport-__set_special_pids.patch fs-proc-uptimec-uptime_proc_show-use-get_monotonic_boottime.patch kernel-forkc-copy_process-unify-clone_thread-or-thread_group_leader-code.patch kernel-forkc-copy_process-dont-add-the-uninitialized-child-to-thread-task-pid-lists.patch kernel-forkc-copy_process-consolidate-the-lockless-clone_thread-checks.patch fs-execc-do_execve_common-use-current_user.patch fs-execc-de_thread-mt-exec-should-update-real_start_time.patch