WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] [ACM] Add missing alignment operations fo

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [ACM] Add missing alignment operations for the ACM module.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 19 Oct 2006 16:40:21 +0000
Delivery-date: Thu, 19 Oct 2006 09:41:53 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Node ID d088aec406c04282eed35a0b31e3fede0132f883
# Parent  8551487a637d5798601e86ce6563e9a8abaa2325
[ACM] Add missing alignment operations for the ACM module.

Signed-off-by: Stefan Berger <stefanb@xxxxxxxxxx>
---
 xen/acm/acm_chinesewall_hooks.c             |    2 ++
 xen/acm/acm_simple_type_enforcement_hooks.c |    2 ++
 2 files changed, 4 insertions(+)

diff -r 8551487a637d -r d088aec406c0 xen/acm/acm_chinesewall_hooks.c
--- a/xen/acm/acm_chinesewall_hooks.c   Thu Oct 19 15:13:09 2006 +0100
+++ b/xen/acm/acm_chinesewall_hooks.c   Thu Oct 19 15:14:25 2006 +0100
@@ -153,6 +153,8 @@ static int chwall_dump_policy(u8 * buf, 
 
     ret = ntohl(chwall_buf->chwall_conflict_aggregate_offset) +
         sizeof(domaintype_t) * chwall_bin_pol.max_types;
+
+    ret = (ret + 7) & ~7;
 
     if (buf_size < ret)
         return -EINVAL;
diff -r 8551487a637d -r d088aec406c0 xen/acm/acm_simple_type_enforcement_hooks.c
--- a/xen/acm/acm_simple_type_enforcement_hooks.c       Thu Oct 19 15:13:09 
2006 +0100
+++ b/xen/acm/acm_simple_type_enforcement_hooks.c       Thu Oct 19 15:14:25 
2006 +0100
@@ -149,6 +149,8 @@ ste_dump_policy(u8 *buf, u32 buf_size) {
     ste_buf->ste_ssid_offset = htonl(sizeof(struct acm_ste_policy_buffer));
     ret = ntohl(ste_buf->ste_ssid_offset) +
         sizeof(domaintype_t)*ste_bin_pol.max_ssidrefs*ste_bin_pol.max_types;
+
+    ret = (ret + 7) & ~7;
 
     if (buf_size < ret)
         return -EINVAL;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [ACM] Add missing alignment operations for the ACM module., Xen patchbot-unstable <=