From: "Serge E. Hallyn" <serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
To: Nathan Lynch <ntl-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org>
Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org,
Jiro SEKIBA
<jir-Xy3Dp9s2+bNGIRItUzBvX16hYfS7NtTn@public.gmane.org>
Subject: Re: Linux Checkpoint-Restart - v19
Date: Tue, 6 Apr 2010 17:23:45 -0500 [thread overview]
Message-ID: <20100406222345.GA6687@us.ibm.com> (raw)
In-Reply-To: <1270590585.2375.189.camel@localhost>
Quoting Nathan Lynch (ntl-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org):
> Hello-
>
> On Tue, 2010-04-06 at 11:54 +0900, Jiro SEKIBA wrote:
> > I tried checkpointing/restarting with this binary, but still get SEGV at the same point,
> > still get same gdb warning(Cannot find thread-local variables on this target)
>
> I believe I have been experiencing a similar problem:
>
> https://lists.linux-foundation.org/pipermail/containers/2010-April/024105.html
>
> I may have found a fix. Can you please test whether this kernel patch
> makes the SEGVs after restart go away?
Acked-by: Serge Hallyn <serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
Tested-by: Serge Hallyn <serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
Thanks, Nathan. So I could confirm that:
1. my regular ckpt-v20 worked fine.
2. setting CONFIG_CC_STACKPROTECTOR=y made cr_tests/sleeptest fail
while cr_tests/simple succeeded
3. applying this patch lets sleeptest succeed.
Thanks!
-serge
>
>
> arch/x86/kernel/checkpoint_32.c | 3 +--
> 1 files changed, 1 insertions(+), 2 deletions(-)
>
> diff --git a/arch/x86/kernel/checkpoint_32.c b/arch/x86/kernel/checkpoint_32.c
> index 32cde34..d80c168 100644
> --- a/arch/x86/kernel/checkpoint_32.c
> +++ b/arch/x86/kernel/checkpoint_32.c
> @@ -86,7 +86,6 @@ static unsigned short decode_segment(__u16 seg)
>
> void save_cpu_regs(struct ckpt_hdr_cpu *h, struct task_struct *t)
> {
> - struct thread_struct *thread = &t->thread;
> struct pt_regs *regs = task_pt_regs(t);
> unsigned long _gs;
>
> @@ -116,7 +115,7 @@ void save_cpu_regs(struct ckpt_hdr_cpu *h, struct task_struct *t)
> if (t == current)
> _gs = get_user_gs(regs);
> else
> - _gs = thread->gs;
> + _gs = task_user_gs(t);
>
> h->fsindex = encode_segment(regs->fs);
> h->gsindex = encode_segment(_gs);
>
>
> _______________________________________________
> Containers mailing list
> Containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org
> https://lists.linux-foundation.org/mailman/listinfo/containers
next prev parent reply other threads:[~2010-04-06 22:23 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-22 23:17 Linux Checkpoint-Restart - v19 Oren Laadan
2010-02-22 23:17 ` Oren Laadan
[not found] ` <4B83106C.7040203-eQaUEPhvms7ENvBUuze7eA@public.gmane.org>
2010-03-01 21:36 ` Andrew Morton
2010-03-01 21:36 ` Andrew Morton
[not found] ` <20100301133623.9808986f.akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
2010-03-01 22:56 ` Oren Laadan
2010-03-01 22:56 ` Oren Laadan
2010-03-15 8:55 ` Jiro SEKIBA
2010-03-15 22:55 ` Oren Laadan
[not found] ` <4B9EBAF2.1060304-eQaUEPhvms7ENvBUuze7eA@public.gmane.org>
2010-03-16 8:36 ` Jiro SEKIBA
2010-03-16 8:36 ` Jiro SEKIBA
2010-03-17 20:55 ` Serge E. Hallyn
[not found] ` <20100317205556.GA20750-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2010-03-19 13:14 ` Jiro SEKIBA
2010-03-19 13:14 ` Jiro SEKIBA
2010-03-19 15:34 ` Oren Laadan
[not found] ` <4BA39971.2080402-eQaUEPhvms7ENvBUuze7eA@public.gmane.org>
2010-03-23 10:53 ` Jiro SEKIBA
2010-03-23 10:53 ` Jiro SEKIBA
[not found] ` <FF5CB8EA-436D-4685-B7A2-946A83DF3F78-Xy3Dp9s2+bNGIRItUzBvX16hYfS7NtTn@public.gmane.org>
2010-03-24 16:47 ` Serge E. Hallyn
[not found] ` <20100324164758.GA21021-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2010-03-29 8:52 ` Jiro SEKIBA
[not found] ` <BC2CC354-59BA-465A-A863-0CDCD921A99A-Xy3Dp9s2+bNGIRItUzBvX16hYfS7NtTn@public.gmane.org>
2010-03-30 3:05 ` Serge E. Hallyn
[not found] ` <20100330030535.GA13362-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2010-04-03 9:03 ` Jiro SEKIBA
[not found] ` <18557515-762E-4EE6-90D7-C8F782E487B2-Xy3Dp9s2+bNGIRItUzBvX16hYfS7NtTn@public.gmane.org>
2010-04-05 14:06 ` Serge E. Hallyn
[not found] ` <20100405140629.GG32049-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2010-04-05 14:31 ` Matt Helsley
[not found] ` <20100405143157.GX3345-52DBMbEzqgQ/wnmkkaCWp/UQ3DHhIser@public.gmane.org>
2010-04-06 2:54 ` Jiro SEKIBA
[not found] ` <39FCECBC-BFE3-4328-BCFC-CBACA3CB442E-Xy3Dp9s2+bNGIRItUzBvX16hYfS7NtTn@public.gmane.org>
2010-04-06 21:49 ` Nathan Lynch
2010-04-06 22:23 ` Serge E. Hallyn [this message]
2010-04-07 13:08 ` Jiro SEKIBA
[not found] ` <EF179F3A-4FBA-4776-B7A4-48F5EF73DC9C-Xy3Dp9s2+bNGIRItUzBvX16hYfS7NtTn@public.gmane.org>
2010-03-19 15:34 ` Oren Laadan
[not found] ` <0B4E8136-FFC6-490D-B04A-23A6E1A924FF-Xy3Dp9s2+bNGIRItUzBvX16hYfS7NtTn@public.gmane.org>
2010-03-17 20:55 ` Serge E. Hallyn
[not found] ` <a1c54a921003150155q4a0c7fc1vb02ba0464b07f452-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-03-15 22:55 ` Oren Laadan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100406222345.GA6687@us.ibm.com \
--to=serue-r/jw6+rmf7hqt0dzr+alfa@public.gmane.org \
--cc=containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
--cc=jir-Xy3Dp9s2+bNGIRItUzBvX16hYfS7NtTn@public.gmane.org \
--cc=ntl-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.