* [PATCH 1/2] m_type is long, not int
@ 2010-01-13 4:09 serue-r/Jw6+rmf7HQT0dZR+AlfA
[not found] ` <1263355761-17112-1-git-send-email-serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: serue-r/Jw6+rmf7HQT0dZR+AlfA @ 2010-01-13 4:09 UTC (permalink / raw)
To: Oren Laadan; +Cc: containers-qjLDD68F18O7TbgM5vRIOg
From: Serge Hallyn <serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
So make sure we store a field big enough on 64-bit arch.
Signed-off-by: Serge Hallyn <serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
---
include/linux/checkpoint_hdr.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/linux/checkpoint_hdr.h b/include/linux/checkpoint_hdr.h
index 314d967..a80dcdc 100644
--- a/include/linux/checkpoint_hdr.h
+++ b/include/linux/checkpoint_hdr.h
@@ -977,7 +977,7 @@ struct ckpt_hdr_ipc_msg {
struct ckpt_hdr_ipc_msg_msg {
struct ckpt_hdr h;
- __s32 m_type;
+ __s64 m_type;
__u32 m_ts;
__s32 sec_ref;
} __attribute__((aligned(8)));
--
1.6.0.6
^ permalink raw reply related [flat|nested] 5+ messages in thread[parent not found: <1263355761-17112-1-git-send-email-serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>]
* [PATCH 2/2] sem restore: don't free sma if it's an error [not found] ` <1263355761-17112-1-git-send-email-serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org> @ 2010-01-13 4:09 ` serue-r/Jw6+rmf7HQT0dZR+AlfA [not found] ` <1263355761-17112-2-git-send-email-serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org> 2010-01-20 17:01 ` [PATCH 1/2] m_type is long, not int Oren Laadan 1 sibling, 1 reply; 5+ messages in thread From: serue-r/Jw6+rmf7HQT0dZR+AlfA @ 2010-01-13 4:09 UTC (permalink / raw) To: Oren Laadan; +Cc: containers-qjLDD68F18O7TbgM5vRIOg From: Serge Hallyn <serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org> Signed-off-by: Serge Hallyn <serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org> --- ipc/checkpoint_sem.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/ipc/checkpoint_sem.c b/ipc/checkpoint_sem.c index 53a19ed..395c84d 100644 --- a/ipc/checkpoint_sem.c +++ b/ipc/checkpoint_sem.c @@ -186,6 +186,7 @@ int restore_ipc_sem(struct ckpt_ctx *ctx, struct ipc_namespace *ns) sma = restore_sem_array(ctx, h->sem_nsems); if (IS_ERR(sma)) { ret = PTR_ERR(sma); + sma = NULL; goto out; } -- 1.6.0.6 ^ permalink raw reply related [flat|nested] 5+ messages in thread
[parent not found: <1263355761-17112-2-git-send-email-serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>]
* Re: [PATCH 2/2] sem restore: don't free sma if it's an error [not found] ` <1263355761-17112-2-git-send-email-serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org> @ 2010-01-13 19:41 ` Serge E. Hallyn [not found] ` <20100113194121.GA26938-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Serge E. Hallyn @ 2010-01-13 19:41 UTC (permalink / raw) To: Oren Laadan; +Cc: containers-qjLDD68F18O7TbgM5vRIOg Quoting serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org (serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org): > From: Serge Hallyn <serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org> > > Signed-off-by: Serge Hallyn <serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org> > --- > ipc/checkpoint_sem.c | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/ipc/checkpoint_sem.c b/ipc/checkpoint_sem.c > index 53a19ed..395c84d 100644 > --- a/ipc/checkpoint_sem.c > +++ b/ipc/checkpoint_sem.c > @@ -186,6 +186,7 @@ int restore_ipc_sem(struct ckpt_ctx *ctx, struct ipc_namespace *ns) > sma = restore_sem_array(ctx, h->sem_nsems); > if (IS_ERR(sma)) { > ret = PTR_ERR(sma); > + sma = NULL; > goto out; > } > > -- > 1.6.0.6 So FWIW on x86-64 many of the tests current pass - the 3 failures I'm seeing are due to: 1. message queues for some reason aren't seen by the restarted task (restart does think it is restoring them according to debug info) 2. self-checkpoint not yet supported 3. restart block not set up right (or at least cr_tests/sleep fails for some reason, haven't yet looked at why) I'm trying to track down #1 right now -serge ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <20100113194121.GA26938-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>]
* Re: [PATCH 2/2] sem restore: don't free sma if it's an error [not found] ` <20100113194121.GA26938-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org> @ 2010-01-13 20:17 ` Serge E. Hallyn 0 siblings, 0 replies; 5+ messages in thread From: Serge E. Hallyn @ 2010-01-13 20:17 UTC (permalink / raw) To: Oren Laadan; +Cc: containers-qjLDD68F18O7TbgM5vRIOg Quoting Serge E. Hallyn (serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org): > Quoting serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org (serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org): > > From: Serge Hallyn <serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org> > > > > Signed-off-by: Serge Hallyn <serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org> > > --- > > ipc/checkpoint_sem.c | 1 + > > 1 files changed, 1 insertions(+), 0 deletions(-) > > > > diff --git a/ipc/checkpoint_sem.c b/ipc/checkpoint_sem.c > > index 53a19ed..395c84d 100644 > > --- a/ipc/checkpoint_sem.c > > +++ b/ipc/checkpoint_sem.c > > @@ -186,6 +186,7 @@ int restore_ipc_sem(struct ckpt_ctx *ctx, struct ipc_namespace *ns) > > sma = restore_sem_array(ctx, h->sem_nsems); > > if (IS_ERR(sma)) { > > ret = PTR_ERR(sma); > > + sma = NULL; > > goto out; > > } > > > > -- > > 1.6.0.6 > > So FWIW on x86-64 many of the tests current pass - the 3 failures I'm seeing > are due to: > > 1. message queues for some reason aren't seen by the restarted > task (restart does think it is restoring them according to debug > info) > 2. self-checkpoint not yet supported > 3. restart block not set up right (or at least cr_tests/sleep fails > for some reason, haven't yet looked at why) > > I'm trying to track down #1 right now Oops, haha - bad selinux policy. Down to two errors then. -serge ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] m_type is long, not int [not found] ` <1263355761-17112-1-git-send-email-serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org> 2010-01-13 4:09 ` [PATCH 2/2] sem restore: don't free sma if it's an error serue-r/Jw6+rmf7HQT0dZR+AlfA @ 2010-01-20 17:01 ` Oren Laadan 1 sibling, 0 replies; 5+ messages in thread From: Oren Laadan @ 2010-01-20 17:01 UTC (permalink / raw) To: serue-r/Jw6+rmf7HQT0dZR+AlfA; +Cc: containers-qjLDD68F18O7TbgM5vRIOg Ack for this and the next one... added. serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org wrote: > From: Serge Hallyn <serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org> > > So make sure we store a field big enough on 64-bit arch. > > Signed-off-by: Serge Hallyn <serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org> > --- > include/linux/checkpoint_hdr.h | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/include/linux/checkpoint_hdr.h b/include/linux/checkpoint_hdr.h > index 314d967..a80dcdc 100644 > --- a/include/linux/checkpoint_hdr.h > +++ b/include/linux/checkpoint_hdr.h > @@ -977,7 +977,7 @@ struct ckpt_hdr_ipc_msg { > > struct ckpt_hdr_ipc_msg_msg { > struct ckpt_hdr h; > - __s32 m_type; > + __s64 m_type; > __u32 m_ts; > __s32 sec_ref; > } __attribute__((aligned(8))); ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-01-20 17:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-13 4:09 [PATCH 1/2] m_type is long, not int serue-r/Jw6+rmf7HQT0dZR+AlfA
[not found] ` <1263355761-17112-1-git-send-email-serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2010-01-13 4:09 ` [PATCH 2/2] sem restore: don't free sma if it's an error serue-r/Jw6+rmf7HQT0dZR+AlfA
[not found] ` <1263355761-17112-2-git-send-email-serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2010-01-13 19:41 ` Serge E. Hallyn
[not found] ` <20100113194121.GA26938-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2010-01-13 20:17 ` Serge E. Hallyn
2010-01-20 17:01 ` [PATCH 1/2] m_type is long, not int Oren Laadan
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox