even for a short lived process that they wait()s on and thus ensure that
pid is not in use.
Anyway, is RESERVED_PIDS meant for initial kernel-threads/daemons - if so
would it be ok enforce it only in init_pid_ns ?
Sukadev
___
Containers mailing list
matters at this date, but we have it.
Well, since it is not security or other critical restriction, can we allow
set_pidmap() a free hand - even in init-pid-ns ? It could prevent a simple
subtree C/R of one of the early daemons for debug for instance.
Sukadev
Sukadev Bhattiprolu [suka...@linux.vnet.ibm.com] wrote:
| Eric W. Biederman [ebied...@xmission.com] wrote:
| | Anyway, is RESERVED_PIDS meant for initial kernel-threads/daemons - if so
| | would it be ok enforce it only in init_pid_ns ?
| |
| | It is mean for initial user space daemons, things
Eric W. Biederman [ebied...@xmission.com] wrote:
| +static int set_pidmap(struct pid_namespace *pid_ns, int target)
| +{
| + if (!target)
| + return alloc_pidmap(pid_ns);
BTW, we need this now that the RESERVED_PIDS check is is conditional on
-last_pid. But this makes
implementation for additional clone-flags is best implemented as
a separate patchset (PATCH 8/9 identifies some TODOs)
Signed-off-by: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
___
Containers mailing list
contain...@lists.linux-foundation.org
https
place. Even so, moving
this code out into a separate function simplifies alloc_pidmap().
Changelog[v2]:
- (Matt Helsley, Dave Hansen) Have alloc_pidmap_page() return
-ENOMEM on error instead of -1.
Signed-off-by: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Acked
.
Changelog[v2]:
- (Serge Hallyn) Check for 'pid 0' in set_pidmap().(Code
actually checks for 'pid = 0' for completeness).
Signed-off-by: Sukadev Bhattiprolu suka...@us.ibm.com
---
kernel/pid.c | 40
1 files changed, 32 insertions(+), 8
or in use.
Rather than have callers assume -ENOMEM, have alloc_pidmap() return
the actual error.
Signed-off-by: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Acked-by: Serge Hallyn se...@us.ibm.com
Reviewed-by: Oren Laadan or...@cs.columbia.edu
---
kernel/fork.c |5 +++--
kernel/pid.c | 14
Subject: [v9][PATCH 4/9] Add target_pids parameter to alloc_pid()
This parameter is currently NULL, but will be used in a follow-on patch.
Signed-off-by: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Acked-by: Serge Hallyn se...@us.ibm.com
Reviewed-by: Oren Laadan or...@cs.columbia.edu
Subject: [v9][PATCH 5/9] Add target_pids parameter to copy_process()
Add a 'target_pids' parameter to copy_process(). The new parameter will be
used in a follow-on patch when clone_with_pids() is implemented.
Signed-off-by: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Acked-by: Serge Hallyn
]:
- Include the unused clone-flag (CLONE_UNUSED) to VALID_CLONE_FLAGS
to avoid breaking any applications that may have set it. IOW, this
patch/check only applies to clone-flags bits 33 and higher.
Changelog[v8]:
- New patch in set
Signed-off-by: Sukadev Bhattiprolu suka
]:
- To facilitate moving architecture-inpdendent code to kernel/fork.c
pass in 'struct target_pid_set __user *' to do_fork_with_pids()
rather than 'pid_t *' (next patch moves the arch-independent
code to kernel/fork.c)
Signed-off-by: Sukadev Bhattiprolu suka
()
Changelog[v1]:
- Fixed some compile errors (had fixed these errors earlier in my
git tree but had not refreshed patches before emailing them)
Signed-off-by: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
---
arch/x86/include/asm/syscalls.h|2 +
arch/x86/include/asm
()
- Add notes to say that we return -EINVAL if invalid clone flags
are specified or if the reserved fields are not 0.
Changelog[v7]:
- Rename clone_with_pids() to clone2()
- Changes to reflect new prototype of clone2() (using clone_struct).
Signed-off-by: Sukadev
se...@us.ibm.com [se...@us.ibm.com] wrote:
| From: Serge E. Hallyn se...@us.ibm.com
|
| Matt Helsley originally suggested this to avoid having two
| format strings. This is not bisect-safe and therefore not
| even compile-tested. Every call to ckpt_write_err must be
| updated to use a single
:
While this patchset enables support for more clone-flags, actual
implementation for additional clone-flags is best implemented as
a separate patchset (PATCH 8/9 identifies some TODOs)
Signed-off-by: Sukadev Bhattiprolu suka...@us.ibm.com
From: Sukadev Bhattiprolu suka...@us.ibm.com
Date: Tue, 20 Oct 2009 21:27:39 -0700
Subject: [v10][PATCH 1/9] Factor out code to allocate pidmap page
To simplify alloc_pidmap(), move code to allocate a pid map page to a
separate function.
Changelog[v3]:
- Earlier version of patchset
From: Sukadev Bhattiprolu suka...@us.ibm.com
Date: Tue, 20 Oct 2009 21:29:03 -0700
Subject: [v10][PATCH 2/9] Have alloc_pidmap() return actual error code
alloc_pidmap() can fail either because all pid numbers are in use or
because memory allocation failed. With support for setting a specific
From: Sukadev Bhattiprolu s...@suka.(none)
Date: Thu, 22 Oct 2009 16:57:28 -0700
Subject: [v10][PATCH 3/9] Define set_pidmap() function
Define a set_pidmap() interface which is like alloc_pidmap() only that
caller specifies the pid number to be assigned.
Changelog[v9]:
- Completely
From: Sukadev Bhattiprolu suka...@us.ibm.com
Date: Tue, 20 Oct 2009 21:51:45 -0700
Subject: [v10][PATCH 5/9] Add target_pids parameter to copy_process()
Add a 'target_pids' parameter to copy_process(). The new parameter will be
used in a follow-on patch when clone_with_pids() is implemented
From: Sukadev Bhattiprolu suka...@us.ibm.com
Date: Tue, 20 Oct 2009 21:35:07 -0700
Subject: [v10][PATCH 4/9] Add target_pids parameter to alloc_pid()
This parameter is currently NULL, but will be used in a follow-on patch.
Signed-off-by: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Acked
From: Sukadev Bhattiprolu suka...@us.ibm.com
Date: Tue, 20 Oct 2009 21:53:39 -0700
Subject: [v10][PATCH 7/9] Define do_fork_with_pids()
do_fork_with_pids() is same as do_fork(), except that it takes an
additional, 'pid_set', parameter. This parameter, currently unused,
specifies the set
From: Sukadev Bhattiprolu suka...@us.ibm.com
Date: Tue, 20 Oct 2009 21:52:40 -0700
Subject: [v10][PATCH 6/9] Check invalid clone flags
As pointed out by Oren Laadan, we want to ensure that unused bits in the
clone-flags remain unused and available for future. To ensure this, define
a mask
From: Sukadev Bhattiprolu s...@suka.(none)
Date: Sun, 25 Oct 2009 20:20:00 -0700
Subject: [v10][PATCH 9/9] Document clone_with_pids() syscall
This gives a brief overview of the clone_with_pids() system call. We should
eventually describe more details in existing clone(2) man page or in
a new
From: Sukadev Bhattiprolu s...@suka.(none)
Date: Tue, 20 Oct 2009 22:04:57 -0700
Subject: [v10][PATCH 8/9] Define clone_with_pids() syscall
Container restart requires that a task have the same pid it had when it was
checkpointed. When containers are nested the tasks within the containers
exist
, then eclone(),
clonex() or even clone_extended() are about as descriptive as clone3()
IMHO.
Given the discussion about ckpt v. checkpoint, I would like to go with a
descriptive name.
Sukadev
___
Containers mailing list
contain...@lists.linux-foundation.org
;
};
sys_clone_with_pids(u32 flags_low, struct clone_args *cargs,
u32 nr_pids, u32 clone_args_size)
Sukadev
___
Containers mailing list
contain...@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
Dave Hansen [d...@linux.vnet.ibm.com] wrote:
| On Sun, 2009-11-01 at 12:45 -0800, Sukadev Bhattiprolu wrote:
| +int sys_clone_with_pids(struct pt_regs *regs)
| +{
| ...
| + rc = copy_from_user(kcs, ucs, sizeof(kcs));
| + if (rc)
| + return -EFAULT
is the updated patch addressing your comment and Oren's comment
about making 'clone_args_size' a parameter. There are corresponding
minor changes to the Documentation patch which I will post later.
---
From 3779f8bc34189fcc32df1c78504bd42ec2dfc566 Mon Sep 17 00:00:00 2001
From: Sukadev Bhattiprolu s
Serge E. Hallyn [se...@us.ibm.com] wrote:
| Quoting Sukadev Bhattiprolu (suka...@us.ibm.com):
| + stack_size = (unsigned long)kca.child_stack_size;
| + child_stack = (unsigned long)kca.child_stack_base + stack_size;
| +
| + if (!child_stack)
| + child_stack = regs-sp;
|
| I'm
place. Even so, moving
this code out into a separate function simplifies alloc_pidmap().
Changelog[v2]:
- (Matt Helsley, Dave Hansen) Have alloc_pidmap_page() return
-ENOMEM on error instead of -1.
Signed-off-by: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Acked
Subject: [v12][PATCH 4/9] Add target_pids parameter to alloc_pid()
This parameter is currently NULL, but will be used in a follow-on patch.
Signed-off-by: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Acked-by: Serge Hallyn se...@us.ibm.com
Reviewed-by: Oren Laadan or...@cs.columbia.edu
]:
- To facilitate moving architecture-inpdendent code to kernel/fork.c
pass in 'struct target_pid_set __user *' to do_fork_with_pids()
rather than 'pid_t *' (next patch moves the arch-independent
code to kernel/fork.c)
Signed-off-by: Sukadev Bhattiprolu suka
Subject: [v12][PATCH 5/9] Add target_pids parameter to copy_process()
Add a 'target_pids' parameter to copy_process(). The new parameter will be
used in a follow-on patch when eclone() is implemented.
Signed-off-by: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Acked-by: Serge Hallyn se
clone_struct).
Signed-off-by: Sukadev Bhattiprolu suka...@vnet.linux.ibm.com
Acked-by: Oren Laadan or...@cs.columbia.edu
---
Documentation/eclone | 345 ++
1 files changed, 345 insertions(+), 0 deletions(-)
create mode 100644 Documentation/eclone
diff --git
]:
- Include the unused clone-flag (CLONE_UNUSED) to VALID_CLONE_FLAGS
to avoid breaking any applications that may have set it. IOW, this
patch/check only applies to clone-flags bits 33 and higher.
Changelog[v8]:
- New patch in set
Signed-off-by: Sukadev Bhattiprolu suka
)
into kernel/fork.c and simplify sys_clone_with_pids()
Changelog[v1]:
- Fixed some compile errors (had fixed these errors earlier in my
git tree but had not refreshed patches before emailing them)
Signed-off-by: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Acked-by: Oren Laadan
as
a separate patchset (PATCH 8/9 identifies some TODOs)
Signed-off-by: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
___
Containers mailing list
contain...@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
Cc: LKML
Sukadev Bhattiprolu [suka...@linux.vnet.ibm.com] wrote:
|
| Based on discussions on containers mailing list and IRC, we settled on
| the name eclone(). Please let me know of a better name or if there are
| other comments on the patchset.
|
| ---
|
| Subject: [v12][PATCH 0/9] Implement
Cc LKML
Sukadev Bhattiprolu [suka...@linux.vnet.ibm.com] wrote:
|
| Subject: [v12][PATCH 1/9] Factor out code to allocate pidmap page
|
| To simplify alloc_pidmap(), move code to allocate a pid map page to a
| separate function.
|
| Changelog[v3]:
| - Earlier version of patchset called
Cc: LKML
Sukadev Bhattiprolu [suka...@linux.vnet.ibm.com] wrote:
|
| Subject: [v12][PATCH 3/9] Define set_pidmap() function
|
| Define a set_pidmap() interface which is like alloc_pidmap() only that
| caller specifies the pid number to be assigned.
|
| Changelog[v9]:
| - Completely
cc: lkml
Sukadev Bhattiprolu [suka...@linux.vnet.ibm.com] wrote:
|
| Subject: [v12][PATCH 7/9] Define do_fork_with_pids()
|
| do_fork_with_pids() is same as do_fork(), except that it takes an
| additional, 'pid_set', parameter. This parameter, currently unused,
| specifies the set of target
Cc: LKML
Sukadev Bhattiprolu [suka...@linux.vnet.ibm.com] wrote:
|
| Subject: [v12][PATCH 4/9] Add target_pids parameter to alloc_pid()
|
| This parameter is currently NULL, but will be used in a follow-on patch.
|
| Signed-off-by: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
| Acked
CC: LKML
Sukadev Bhattiprolu [suka...@linux.vnet.ibm.com] wrote:
|
| Subject: [v12][PATCH 5/9] Add target_pids parameter to copy_process()
|
| Add a 'target_pids' parameter to copy_process(). The new parameter will be
| used in a follow-on patch when eclone() is implemented.
|
| Signed-off
Cc: LKML
Sukadev Bhattiprolu [suka...@linux.vnet.ibm.com] wrote:
|
| Subject: [v12][PATCH 6/9] Check invalid clone flags
|
| As pointed out by Oren Laadan, we want to ensure that unused bits in the
| clone-flags remain unused and available for future. To ensure this, define
| a mask of clone
cc: lkml
Sukadev Bhattiprolu [suka...@linux.vnet.ibm.com] wrote:
|
| Subject: [v12][PATCH 8/9] Define eclone() syscall
|
| Container restart requires that a task have the same pid it had when it was
| checkpointed. When containers are nested the tasks within the containers
| exist in multiple
CC: LKML
Sukadev Bhattiprolu [suka...@linux.vnet.ibm.com] wrote:
|
| Subject: [v12][PATCH 9/9] Document eclone() syscall
|
| This gives a brief overview of the eclone() system call. We should
| eventually describe more details in existing clone(2) man page or in
| a new man page
(Trimmed Cc to Containers list).
Updated patch to ignore -child_stack_size on architectures that don't
need it.
---
From e1e9b0b6eb511058961c1fb526f44b597790bfd7 Mon Sep 17 00:00:00 2001
From: Sukadev Bhattiprolu s...@suka.(none)
Date: Tue, 20 Oct 2009 22:04:57 -0700
Subject: [v13][PATCH 8/9
(Trimmed Cc to Containers list)
Updated patch to ignore 'child_stack_size' on architectures that don't
need it (see changelog v13).
---
From f87cceae72c2032d67e7855953c0f702957f723a Mon Sep 17 00:00:00 2001
From: Sukadev Bhattiprolu suka...@us.ibm.com
Date: Thu, 12 Nov 2009 15:00:38 -0800
program (see
below) to reproduce a crash on recent kernels. This crash is a regression
introduced by the commit:
commit 527b3e4773628b30d03323a2cb5fb0d84441990f
Author: Sukadev Bhattiprolu suka...@us.ibm.com
Date: Mon Oct 13 10:43:08 2008 +0100
To fix, ensure
Arnd Bergmann [a...@arndb.de] wrote:
| On Wednesday 11 November 2009, Sukadev Bhattiprolu wrote:
| Based on these requirements and constraints, we explored a couple of system
| call interfaces (in earlier versions of this patchset). Based on input from
| Arnd Bergmann and others, the new
) to the clobbered list, but is
the missing the fourth, %edi.
Sukadev
| 3. r10 and r11 should be listed as clobbered.
|
| 4. I fail to see the magic that puts the subthread function pointer in the
|stack.
|
| 5. Maybe rdi should contain the subthread argument before calling the
subthread
implementation for additional clone-flags is best implemented as
a separate patchset (PATCH 8/9 identifies some TODOs)
Signed-off-by: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
___
Containers mailing list
contain...@lists.linux-foundation.org
https
From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Subject: [v13][PATCH 04/12] Add target_pids parameter to alloc_pid()
This parameter is currently NULL, but will be used in a follow-on patch.
Signed-off-by: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Acked-by: Serge Hallyn se
From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Subject: [v13][PATCH 05/12] Add target_pids parameter to copy_process()
Add a 'target_pids' parameter to copy_process(). The new parameter will be
used in a follow-on patch when eclone() is implemented.
Signed-off-by: Sukadev Bhattiprolu
From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Subject: [v13][PATCH 03/12] Define set_pidmap() function
Define a set_pidmap() interface which is like alloc_pidmap() only that
caller specifies the pid number to be assigned.
Changelog[v13]:
- Don't let do_alloc_pidmap return 0
From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Subject: [v13][PATCH 06/12] Check invalid clone flags
As pointed out by Oren Laadan, we want to ensure that unused bits in the
clone-flags remain unused and available for future. To ensure this, define
a mask of clone-flags and check the flags
From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Subject: [v13][PATCH 07/12] Define do_fork_with_pids()
do_fork_with_pids() is same as do_fork(), except that it takes an
additional, 'pid_set', parameter. This parameter, currently unused,
specifies the set of target pids of the process
From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Subject: [v13][PATCH 08/12] Implement sys_eclone for x86
Container restart requires that a task have the same pid it had when it was
checkpointed. When containers are nested the tasks within the containers
exist in multiple pid namespaces
From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Subject: [v13][PATCH 01/12] Factor out code to allocate pidmap page
To simplify alloc_pidmap(), move code to allocate a pid map page to a
separate function.
Changelog[v3]:
- Earlier version of patchset called alloc_pidmap_page() from
From: Serge E. Hallyn se...@us.ibm.com
Subject: [v13][PATCH 10/12] Implement sys_eclone for s390
Implement the s390 hook for sys_eclone().
Changelog:
Nov 24: Removed user-space code from commit log. See user-cr git tree.
Nov 17: remove redundant flags_high check
Nov 13:
From: Nathan Lynch n...@pobox.com
Subject: [v13][PATCH 11/12] Implement sys_eclone for powerpc
Wired up for both ppc32 and ppc64, but tested only with the latter.
Changelog:
Nov 17: (serge) remove redundant flags_high check, and
don't fold it into flags.
Signed-off-by:
From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Subject: [v13][PATCH 09/12] Implement sys_eclone for x86_64
Implement sys_eclone() system call for x86_64.
This is based on earlier code from Dave Hansen. Modified to share code
between x86 and x86_64 kernels.
Signed-off-by: Sukadev
From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Subject: [v13][PATCH 12/12] Document sys_eclone
This gives a brief overview of the eclone() system call. We should
eventually describe more details in existing clone(2) man page or in
a new man page.
Changelog[v13]:
- [Nathan Lynch
From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Subject: [v13][PATCH 02/12] Have alloc_pidmap() return actual error code
alloc_pidmap() can fail either because all pid numbers are in use or
because memory allocation failed. With support for setting a specific
pid number, alloc_pidmap
enables support for more clone-flags, actual
implementation for additional clone-flags is best implemented as
a separate patchset (PATCH 8/9 identifies some TODOs)
Signed-off-by: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
___
Containers
From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Subject: [v13][PATCH 01/12] Factor out code to allocate pidmap page
To simplify alloc_pidmap(), move code to allocate a pid map page to a
separate function.
Changelog[v3]:
- Earlier version of patchset called alloc_pidmap_page() from
From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Subject: [v13][PATCH 02/12] Have alloc_pidmap() return actual error code
alloc_pidmap() can fail either because all pid numbers are in use or
because memory allocation failed. With support for setting a specific
pid number, alloc_pidmap
From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Subject: [v13][PATCH 03/12] Define set_pidmap() function
Define a set_pidmap() interface which is like alloc_pidmap() only that
caller specifies the pid number to be assigned.
Changelog[v13]:
- Don't let do_alloc_pidmap return 0
From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Subject: [v13][PATCH 04/12] Add target_pids parameter to alloc_pid()
This parameter is currently NULL, but will be used in a follow-on patch.
Signed-off-by: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Acked-by: Serge Hallyn se
From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Subject: [v13][PATCH 05/12] Add target_pids parameter to copy_process()
Add a 'target_pids' parameter to copy_process(). The new parameter will be
used in a follow-on patch when eclone() is implemented.
Signed-off-by: Sukadev Bhattiprolu
From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Subject: [v13][PATCH 06/12] Check invalid clone flags
As pointed out by Oren Laadan, we want to ensure that unused bits in the
clone-flags remain unused and available for future. To ensure this, define
a mask of clone-flags and check the flags
From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Subject: [v13][PATCH 07/12] Define do_fork_with_pids()
do_fork_with_pids() is same as do_fork(), except that it takes an
additional, 'pid_set', parameter. This parameter, currently unused,
specifies the set of target pids of the process
From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Subject: [v13][PATCH 08/12] Implement sys_eclone for x86
Container restart requires that a task have the same pid it had when it was
checkpointed. When containers are nested the tasks within the containers
exist in multiple pid namespaces
From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Subject: [v13][PATCH 09/12] Implement sys_eclone for x86_64
Implement sys_eclone() system call for x86_64.
This is based on earlier code from Dave Hansen. Modified to share code
between x86 and x86_64 kernels.
Signed-off-by: Sukadev
From: Serge E. Hallyn se...@us.ibm.com
Subject: [v13][PATCH 10/12] Implement sys_eclone for s390
Implement the s390 hook for sys_eclone().
Changelog:
Nov 24: Removed user-space code from commit log. See user-cr git tree.
Nov 17: remove redundant flags_high check
Nov 13:
From: Nathan Lynch n...@pobox.com
Subject: [v13][PATCH 11/12] Implement sys_eclone for powerpc
Wired up for both ppc32 and ppc64, but tested only with the latter.
Changelog:
Nov 17: (serge) remove redundant flags_high check, and
don't fold it into flags.
Signed-off-by:
From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Subject: [v13][PATCH 12/12] Document sys_eclone
This gives a brief overview of the eclone() system call. We should
eventually describe more details in existing clone(2) man page or in
a new man page.
Changelog[v13]:
- [Nathan Lynch
From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Date: Tue, 8 Dec 2009 23:13:05 +0530
Subject: [PATCH 1/4] Have ps list all threads in application
Have ps list all threads in application
Signed-off-by: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
---
process-tree/run-pthread1.sh | 14
From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Date: Wed, 9 Dec 2009 10:09:08 +0530
Subject: [PATCH] Have threads wait in pthread_cond_wait()
Rather than sleep() have the threads wait in pthread_cond_wait() for
the checkpoint and ensure they are properly signalled after restart.
Also add
From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Date: Wed, 9 Dec 2009 18:31:47 +0530
Subject: [PATCH] Ensure pthread stack attributes are restored
Signed-off-by: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
---
process-tree/Makefile|2 +-
process-tree/pthread2.c | 244
From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Date: Fri, 11 Dec 2009 09:36:05 +0530
Subject: [PATCH] /cgroup/pid may already exist
If the process is created with -g, the /cgroup/pid directory
would be created automatically.
Signed-off-by: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Serge E. Hallyn [se...@us.ibm.com] wrote:
| Quoting Sukadev Bhattiprolu (suka...@linux.vnet.ibm.com):
| +++ b/process-tree/run-pthread2.sh
| @@ -0,0 +1,206 @@
| +#!/bin/bash
| +
| +source ../common.sh
| +
| +#dir=`mktemp -p . -d -t cr_pthread2_XXX` || (echo mktemp failed;
exit 1
From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Date: Fri, 8 Jan 2010 11:30:23 -0800
Subject: [PATCH] pthread3: Ensure thread state is consistent across C/R
Specifically, this test ensures that concurrency, thread-specific-info and
scheduling parameters are consistent across checkpoint
From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Date: Fri, 8 Jan 2010 10:56:38 -0800
Subject: [PATCH] pthread4: Ensure mutexes are consistent across C/R
Pthread mutex (not) held at checkpoint must continue to be (not) held
after restart.
Signed-off-by: Sukadev Bhattiprolu suka
-files: error out on file locks and leases
---
From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Date: Fri, 15 Jan 2010 15:33:55 -0800
Subject: [PATCH] filelock1: Test restore of adivsory locks during restart
Test that any byte-range locks held by a process at the time of
checkpoint are restored
From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Date: Wed, 20 Jan 2010 14:31:14 -0800
Subject: [PATCH]: fileio1 - Keep logfile open
In an attempt to close any as-yet uncheckpointable files that are open,
the test case closes all files. But in the process even the log file
(which
, and in 32-bit mode on x86-64. (restart has not
| yet been tested)
|
| Signed-off-by: Serge E. Hallyn se...@us.ibm.com
Reviewed-by: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
___
Containers mailing list
contain...@lists.linux-foundation.org
https
From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Date: Fri, 22 Jan 2010 11:53:01 -0800
Subject: [PATCH 01/11] runtests.sh: Make test bit more generic
Remove hardcoding of test case name so it is a bit more generic
(although other test cases can't use this script as is).
Signed-off
From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Date: Fri, 22 Jan 2010 11:55:45 -0800
Subject: [PATCH 02/11] Make runtests.sh a wrapper for fileio tests
Move runtests.sh to run-fileio1.sh and create a runtests.sh that
runs both run-fileio1.sh and run-filelock1.sh. It can later be
extended
From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Date: Mon, 25 Jan 2010 18:09:50 -0800
Subject: [PATCH 03/11] Check for failure while waiting for checkpoint-ready
It is possible that an application has encountered an error before creating
the checkpoint-ready file. So while polling
From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Date: Tue, 26 Jan 2010 22:47:24 -0800
Subject: [PATCH 09/11] pthread1: Don't close stderr() before opening log
If we encounter an error while opening the log file, we write to stderr.
In which case, we need the 'stderr' to remain open at least
From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Date: Tue, 26 Jan 2010 16:46:09 -0800
Subject: [PATCH 05/11] Move event-notifications to libcrtest/common.c
The event notification functions using eventfd can be used by other
fcntl tests (and possibly other tests). Move them out of filelock1
From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Date: Tue, 26 Jan 2010 19:38:28 -0800
Subject: [PATCH 08/11] filelock1: Extend for mandatory locks
Extend filelock1 to test for mandatory locks, when filelock1 is run
with the -m option.
Signed-off-by: Sukadev Bhattiprolu suka
From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Date: Wed, 27 Jan 2010 19:31:22 -0800
Subject: [PATCH 10/11] filelock2: Test restart of process in F_GETLK
Checkpoint a process that is waiting on a record lock in fcntl(F_GETLK).
Upon restart, ensure that it remains in fcntl(F_GETLK) and when
From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Date: Thu, 21 Jan 2010 12:36:24 -0800
Subject: [PATCH 06/11] filelease1: Test restore of file leases
Checkpoint an application that has F_RDLCK and F_WRLCK leases on files.
Restart the application and ensure that the leases are restored
From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Date: Thu, 28 Jan 2010 23:18:50 -0800
Subject: [PATCH 11/11] filelease2: Test C/R during lease-break-interval
When a process, P1 (lease-owner of a file) is notified of an impending
lease-break (due to a conflicting open of the file by process
From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Date: Mon, 25 Jan 2010 18:26:57 -0800
Subject: [PATCH 04/11] Rename run-filelock1 to run-fcntltests.sh
run-filelock1 wrapper could share lot of code with other fcntl tests.
Remove hardcoded names, rename it run-fcntltests.sh and pass
From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Date: Thu, 21 Jan 2010 23:07:51 -0800
Subject: [PATCH 07/11] fsetown1: Test async I/O notification after restart
Checkpoint a process that is waiting for async notification of data
being available on a pipe. When the process is restarted, make
From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com
Date: Sat, 30 Jan 2010 12:49:30 -0800
Subject: [PATCH 1/6] eclone-1: Test basic functionality
Verify that a child process gets the expected pid and arguments on stack
when it is created with eclone() system call.
NOTE: The myclone
701 - 800 of 1057 matches
Mail list logo