[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] blktap: Fix unaligned access to blktap/tapdisk message payloads.
# HG changeset patch # User kfraser@xxxxxxxxxxxxxxxxxxxxx # Date 1185955868 -3600 # Node ID ad9a79db3839a711fc21388d1a087179e1db2138 # Parent 425c3d6f755791941233092e75edd8da08f5073c blktap: Fix unaligned access to blktap/tapdisk message payloads. Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx> --- tools/blktap/lib/blktaplib.h | 4 +++- 1 files changed, 3 insertions(+), 1 deletion(-) diff -r 425c3d6f7557 -r ad9a79db3839 tools/blktap/lib/blktaplib.h --- a/tools/blktap/lib/blktaplib.h Wed Aug 01 09:04:20 2007 +0100 +++ b/tools/blktap/lib/blktaplib.h Wed Aug 01 09:11:08 2007 +0100 @@ -169,12 +169,14 @@ typedef struct image { unsigned int info; } image_t; +/* 16-byte message header, immediately followed by message payload. */ typedef struct msg_hdr { - uint16_t type; + uint16_t type; uint16_t len; uint16_t drivertype; uint16_t cookie; uint8_t readonly; + uint8_t pad[7]; } msg_hdr_t; typedef struct msg_newdev { _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |