No description
Find a file
Alexander Kartashov a94512dc13 arm: reset the CPSR.T bit when executing the infected code
The infected code must be executed in the ARM mode but the dumpee
may run in the Thumb mode while being dumped so the bit CPSR.T
may be set when the control is transfered to the infected blobs
so this code is executed in the Thumb mode too.

We have to clear the bit CPSR.T before transfering control
to the infected code to prevent the behavior described above.

Signed-off-by: Alexander Kartashov <alekskartashov@parallels.com>
Reported-by: Chanho Park <chanho61.park@samsusng.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2013-05-07 22:41:02 +04:00
arch arm: reset the CPSR.T bit when executing the infected code 2013-05-07 22:41:02 +04:00
Documentation Makefiles: add install target 2013-05-03 01:56:30 +04:00
include restore: change type of blk_sigset on k_rtsigset_t 2013-04-29 17:54:25 +04:00
pie restore: fix restoring signal blocking mask on arm 2013-04-29 16:36:04 +04:00
protobuf cr: Preparations for snapshot 2013-04-12 19:45:15 +04:00
scripts make: Provide mandatory options in cflags-y variable 2013-02-23 00:36:36 +04:00
test test: app-emu -- job: Fix comparison and wait for restore complete by a signal 2013-05-07 22:35:32 +04:00
.gitignore crtools: rename binary to criu 2013-04-30 20:17:55 +04:00
.mailmap repo: Add mailmap file 2012-03-25 23:31:20 +04:00
COPYING Add LGPL licence for library directory 2013-04-01 12:29:06 +04:00
cr-check.c cr-check: potential fd leak in check_fdinfo_inotify 2013-05-02 22:49:44 +04:00
cr-dump.c kerndat: Introduce the storage of kernel run-time info 2013-04-15 13:02:09 +04:00
cr-exec.c Fix typos in log messages 2013-04-15 12:46:25 +04:00
cr-restore.c Don't use \Newline in pr_perror 2013-05-02 22:44:24 +04:00
cr-show.c show: Show nr_pages in pagemap in decimal 2013-04-18 16:29:56 +04:00
CREDITS Add the CREDITS file 2012-07-30 13:52:37 +04:00
crtools crtools: rename binary to criu 2013-04-30 20:17:55 +04:00
crtools.c criu --help: reformat -v description 2013-05-02 22:48:15 +04:00
eventfd.c Fix typos in comments 2013-04-15 12:46:46 +04:00
eventpoll.c Fix typos in comments 2013-04-15 12:46:46 +04:00
fifo.c Fix typos in comments 2013-04-15 12:46:46 +04:00
file-ids.c x86: moved x86-specific files into the directory arch/x86. 2013-01-09 17:02:47 +04:00
file-lock.c Fix typos in log messages 2013-04-15 12:46:25 +04:00
files-reg.c Don't use \Newline in pr_perror 2013-05-02 22:44:24 +04:00
files.c Don't use \Newline in pr_perror 2013-05-02 22:44:24 +04:00
fsnotify.c Fix typos in comments 2013-04-15 12:46:46 +04:00
image.c cr: Preparations for snapshot 2013-04-12 19:45:15 +04:00
ipc_ns.c img: Get rid of open_image_ro helper 2013-04-09 19:22:21 +04:00
kcmp-ids.c x86: moved x86-specific files into the directory arch/x86. 2013-01-09 17:02:47 +04:00
kerndat.c kerndat: munmap when stat call fail 2013-05-04 22:03:08 +04:00
libnetlink.c netlink: return errno from do_rtnl_req 2013-03-28 18:21:11 +04:00
log.c log: log_init -- Check for dup return code 2013-04-12 20:50:27 +04:00
Makefile make help: document dist target 2013-05-03 01:56:31 +04:00
Makefile.crtools kerndat: Introduce the storage of kernel run-time info 2013-04-15 13:02:09 +04:00
Makefile.inc Makefiles: add install target 2013-05-03 01:56:30 +04:00
mem.c mem: Treat /proc/pid/pagemap2 file as optional 2013-04-23 23:22:25 +04:00
mount.c Fix typos in log messages 2013-04-15 12:46:25 +04:00
namespaces.c Fix typos in comments 2013-04-15 12:46:46 +04:00
net.c Fix typos in log messages 2013-04-15 12:46:25 +04:00
netfilter.c x86: moved x86-specific files into the directory arch/x86. 2013-01-09 17:02:47 +04:00
page-pipe.c page-pipe: fixed format strings 2013-04-30 18:31:34 +04:00
page-read.c page-read: fixed format strings 2013-04-30 18:31:35 +04:00
page-xfer.c Don't use \Newline in pr_perror 2013-05-02 22:44:24 +04:00
parasite-syscall.c Fix typos in comments 2013-04-15 12:46:46 +04:00
pipes.c img: Get rid of open_image_ro helper 2013-04-09 19:22:21 +04:00
proc_parse.c Don't use \Newline in pr_perror 2013-05-02 22:44:24 +04:00
protobuf.c img: Get rid of open_image_ro helper 2013-04-09 19:22:21 +04:00
pstree.c img: Get rid of open_image_ro helper 2013-04-09 19:22:21 +04:00
ptrace.c ptrace: don't call PTRACE_INTERRUPT many times 2013-04-23 20:55:20 +04:00
rbtree.c code: Fix spaced indentation where found 2012-08-11 21:36:03 +04:00
README Drop kernel patching from README 2012-01-29 16:26:36 +04:00
shmem.c shmem: Add missing \Newline into pr_info 2013-04-16 21:52:15 +04:00
signalfd.c files: pass a file descriptor on an fdinfo image instead of cr_fdset 2013-01-11 14:47:09 +04:00
sk-inet.c Fix typos in log messages 2013-04-15 12:46:25 +04:00
sk-netlink.c sk-netlink: fix overflow 2013-04-29 16:09:04 +04:00
sk-packet.c sk-packet: fix memory leak 2013-04-10 00:56:29 +04:00
sk-queue.c Don't use \Newline in pr_perror 2013-05-02 22:44:24 +04:00
sk-tcp.c Don't use \Newline in pr_perror 2013-05-02 22:44:24 +04:00
sk-unix.c Fix typos in comments 2013-04-15 12:46:46 +04:00
sockets.c Don't use \Newline in pr_perror 2013-05-02 22:44:24 +04:00
sysctl.c sysctl: Don't forget to close fds 2013-04-05 08:23:17 +04:00
tty.c tty: Don't try to restore a group on inherited terminal if session leader present 2013-05-07 22:35:33 +04:00
util.c Fix CRTOOLS_SCRIPT_ACTION name 2013-05-02 22:48:07 +04:00
uts_ns.c img: Get rid of open_image_ro helper 2013-04-09 19:22:21 +04:00

crtools
=======

An utility to checkpoint/restore tasks.

Some code snippets are borrowed from

 - Linux kernel (http://kernel.org/)
 - git (http://git-scm.com/)
 - kvm-tools (https://github.com/penberg/linux-kvm)
 - ptrace-parasite (https://code.google.com/p/ptrace-parasite/)

Many thanks to these projects.

Licensed under GPLv2 (http://www.gnu.org/licenses/gpl-2.0.txt)