Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756989AbcCRMuq (ORCPT ); Fri, 18 Mar 2016 08:50:46 -0400 Received: from cn.fujitsu.com ([59.151.112.132]:14665 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1750910AbcCRMuk (ORCPT ); Fri, 18 Mar 2016 08:50:40 -0400 X-IronPort-AV: E=Sophos;i="5.22,518,1449504000"; d="scan'208";a="4733183" From: Zhao Lei To: CC: , "Eric W. Biederman" , Mateusz Guzik , Zhao Lei Subject: [PATCH v2 0/3] Make core_pattern support namespace Date: Fri, 18 Mar 2016 20:48:32 +0800 Message-ID: X-Mailer: git-send-email 1.8.5.1 MIME-Version: 1.0 Content-Type: text/plain X-yoursite-MailScanner-ID: EA4D341B721B.A8818 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: zhaolei@cn.fujitsu.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2870 Lines: 72 We discussed patch titled: [PATCH] Make core_pattern support namespace before. Above patch can solve half problem of custom core_dump pattern in container, but there are also another problem that limit custom core_pattern in container, it is the pipe-type core_pattern will write core dump into host's filesystem. (See discussion of that patch for detail) Now we can solve the second problem by [PATCH 2/3], I send the origional patch with it. Changelog v1->v2: 1: Fix compile fail in xtensa which is reported by kbuild test robot 2: Use a wapper to avoid calling _do_fork() outside kernel/fork.c, suggested by: Kamezawa Hiroyuki Zhao Lei (3): Make _do_fork support return to caller's code Run dump pipe in container's namespace Make core_pattern support namespace arch/alpha/kernel/process.c | 4 +- arch/arc/kernel/process.c | 4 +- arch/arm/kernel/process.c | 4 +- arch/arm64/kernel/process.c | 5 ++- arch/avr32/kernel/process.c | 5 ++- arch/blackfin/kernel/process.c | 5 ++- arch/c6x/kernel/process.c | 5 ++- arch/cris/arch-v10/kernel/process.c | 4 +- arch/cris/arch-v32/kernel/process.c | 4 +- arch/frv/kernel/process.c | 4 +- arch/h8300/kernel/process.c | 4 +- arch/hexagon/kernel/process.c | 4 +- arch/ia64/kernel/process.c | 4 +- arch/m32r/kernel/process.c | 4 +- arch/m68k/kernel/process.c | 4 +- arch/metag/kernel/process.c | 5 ++- arch/microblaze/kernel/process.c | 4 +- arch/mips/kernel/process.c | 4 +- arch/mn10300/kernel/process.c | 4 +- arch/nios2/kernel/process.c | 5 ++- arch/openrisc/kernel/process.c | 4 +- arch/parisc/kernel/process.c | 5 ++- arch/powerpc/kernel/process.c | 5 ++- arch/s390/kernel/process.c | 4 +- arch/score/kernel/process.c | 4 +- arch/sh/kernel/process_32.c | 4 +- arch/sh/kernel/process_64.c | 4 +- arch/sparc/kernel/process_32.c | 4 +- arch/sparc/kernel/process_64.c | 4 +- arch/tile/kernel/process.c | 4 +- arch/um/kernel/process.c | 22 ++++++----- arch/unicore32/kernel/process.c | 4 +- arch/x86/kernel/process_32.c | 5 ++- arch/x86/kernel/process_64.c | 5 ++- arch/xtensa/kernel/process.c | 5 ++- fs/coredump.c | 79 ++++++++++++++++++++++--------------- include/linux/pid_namespace.h | 2 + include/linux/sched.h | 12 +++--- kernel/fork.c | 30 +++++++++----- kernel/pid.c | 1 + kernel/pid_namespace.c | 3 ++ kernel/sysctl.c | 22 ++++++++--- 42 files changed, 187 insertions(+), 131 deletions(-) -- 1.8.5.1