[CRIU] About BE support

Lei, Maohui leimaohui at cn.fujitsu.com
Thu Jul 19 09:25:26 MSK 2018


Hi Adrian

> CRIU supports s390x which is big endian only. Have a look at that
> architecture inside CRIU.

Thank you for your reply. Is s390 can be build by cross-compile? I mean, can it be compiled criu for s390 on an x86-64 host?
Because I debugged part of source code of criu, and I found that the common function __handle_elf(void *mem, size_t size) doesn't support BE.
I tried to compile criu for a arm-32BE target by cross compile, this common function will output error message as follows. The reason is that there is no endian check of "mem" and handle when read data from this address. So even for s390, I think the same error also exists.

-------------------------------------
| Error (compel/src/lib/handle-elf-host.c:165): Unsupported header detected
| Header
| ------------
|       type 0x200 machine 0x2800 version 0x1000000
| criu/pie/Makefile:50: recipe for target 'criu/pie/restorer-blob.h' failed
| make[2]: *** [criu/pie/restorer-blob.h] Error 255
| make[2]: *** Waiting for unfinished jobs....
| Error (compel/src/lib/handle-elf-host.c:165): Unsupported header detected
| Header
| ------------
|       type 0x200 machine 0x2800 version 0x1000000
| criu/pie/Makefile:50: recipe for target 'criu/pie/parasite-blob.h' failed
| make[2]: *** [criu/pie/parasite-blob.h] Error 255
-------------------------------------

Best regards 
Lei



> -----Original Message-----
> From: Adrian Reber [mailto:adrian at lisas.de]
> Sent: Wednesday, July 18, 2018 8:31 PM
> To: Lei, Maohui
> Cc: criu at openvz.org
> Subject: Re: [CRIU] About BE support
> 
> On Wed, Jul 18, 2018 at 08:35:41AM +0000, Lei, Maohui wrote:
> >    I'm working on build criu for my arm-32BE system. But I found that criu
> still doesn't support BE now.
> >    I want to know is there any plan about BE support.
> 
> CRIU supports s390x which is big endian only. Have a look at that
> architecture inside CRIU.
> 
> 		Adrian
> 






More information about the CRIU mailing list