Commit 181ae400 authored by Paolo 'Blaisorblade' Giarrusso's avatar Paolo 'Blaisorblade' Giarrusso Committed by Linus Torvalds

[PATCH] uml: make 64-bit COW files compatible with 32-bit ones

This is the minimal fix to make 64-bit UML binaries create 32-bit
compatible COW files and read them.

I've indeed tested that current code doesn't do this - the code gets
SIGFPE for a division by a value read at the wrong place, where 0 is
found.
Signed-off-by: default avatarPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 8bbde0e6
...@@ -100,7 +100,7 @@ struct cow_header_v3_broken { ...@@ -100,7 +100,7 @@ struct cow_header_v3_broken {
__u32 alignment; __u32 alignment;
__u32 cow_format; __u32 cow_format;
char backing_file[PATH_LEN_V3]; char backing_file[PATH_LEN_V3];
}; } __attribute__((packed));
/* COW format definitions - for now, we have only the usual COW bitmap */ /* COW format definitions - for now, we have only the usual COW bitmap */
#define COW_BITMAP 0 #define COW_BITMAP 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment