All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nathan Lynch <ntl-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org>
To: containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org
Subject: ckpt-16-dev BUG() - bisected
Date: Wed, 03 Jun 2009 17:00:59 -0500	[thread overview]
Message-ID: <m3vdndkmec.fsf@pobox.com> (raw)

Pulled latest updates today, started seeing the bug below when doing
simple bash shell checkpoint/restart.  Git bisect blames:

commit 505d9949cac385c5111bbd8ff3d2e123d5c468d8
Author: Oren Laadan <orenl-eQaUEPhvms7ENvBUuze7eA@public.gmane.org>
Date:   Sun May 31 12:59:40 2009 -0400

    c/r: [X86_32] validate task's cpu registers and tls during restart
    
    Check the eflags, segment registers and tls entries from the
    checkpoint image to prevent breakpoints inside the kernel code.
    
    Fixes in restore_thread() and load_cpu_regs():
            /* TODO: ADD SANITY CHECKS TO VERIFY VALIDITY OF VALUES */
    
    Based on patch from Alexey Dobriyan:
    https://lists.linux-foundation.org/pipermail/containers/2009-May/017886.html
        Segment registers are abstracted to allow i386 => x86_64
        migration (BTW, I'm not so sure if just making 32-bit selectors
        the same will achieve same effect)


kernel BUG at arch/x86/mm/checkpoint.c:86!
invalid opcode: 0000 [#1] PREEMPT SMP DEBUG_PAGEALLOC
last sysfs file: /sys/block/sda/size
Modules linked in:

Pid: 2236, comm: ckpt Not tainted (2.6.30-rc7-00054-g505d994 #55) 
EIP: 0060:[<c021c3dd>] EFLAGS: 00010202 CPU: 0
EIP is at encode_segment+0x51/0x57
EAX: 1fffe009 EBX: df03a720 ECX: 00000130 EDX: 1fffe00f
ESI: df996fb4 EDI: def3f250 EBP: de8abf18 ESP: de8abf18
 DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
Process ckpt (pid: 2236, ti=de8ab000 task=de8e28e0 task.ti=de8ab000)
Stack:
 de8abf38 c021cc07 decf51c0 def3f250 00000062 dc99a440 00000000 def3f250
 de8abf58 c038eb3c decf51c0 decf54e8 00000007 00000000 00000000 def3f250
 de8abf98 c038d7bf c07a69e0 00000001 00000001 00000000 def73ee0 c07ad224
Call Trace:
 [<c021cc07>] ? checkpoint_cpu+0x11a/0x426
 [<c038eb3c>] ? checkpoint_task+0x226/0x239
 [<c038d7bf>] ? do_checkpoint+0x404/0x511
 [<c038c669>] ? sys_checkpoint+0x6d/0x83
 [<c0202ce5>] ? syscall_call+0x7/0xb
Code: 74 2d 83 fa 7b b8 02 00 00 00 74 23 f6 c2 04 74 0a 89 d0 c1 e8 03 80 cc 80 eb 14 c1 ea 03 8d 42 fa 83 f8 02 77 05 80 cc 40 eb 04 <0f> 0b eb fe 5d c3 55 89 e5 e8 f9 72 fe ff 85 c0 74 40 83 f8 01 
EIP: [<c021c3dd>] encode_segment+0x51/0x57 SS:ESP 0068:de8abf18
---[ end trace 270dba57a69e79e1 ]---

             reply	other threads:[~2009-06-03 22:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-03 22:00 Nathan Lynch [this message]
     [not found] ` <m3vdndkmec.fsf-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org>
2009-06-04  0:31   ` ckpt-16-dev BUG() - bisected Oren Laadan
     [not found]     ` <Pine.LNX.4.64.0906032027370.22069-CXF6herHY6ykSYb+qCZC/1i27PF6R63G9nwVQlTi/Pw@public.gmane.org>
2009-06-04 18:08       ` Nathan Lynch
2009-06-10  6:07   ` Nathan Lynch

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=m3vdndkmec.fsf@pobox.com \
    --to=ntl-e+axbwqsrlaavxtiumwx3w@public.gmane.org \
    --cc=containers-qjLDD68F18O7TbgM5vRIOg@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.