xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: "Lengyel, Tamas" <tlengyel@novetta.com>
To: Razvan Cojocaru <rcojocaru@bitdefender.com>
Cc: Jun Nakajima <jun.nakajima@intel.com>,
	Wei Liu <wei.liu2@citrix.com>,
	kevin.tian@intel.com, keir@xen.org,
	Ian Campbell <ian.campbell@citrix.com>,
	Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
	George Dunlap <george.dunlap@eu.citrix.com>,
	Andrew Cooper <andrew.cooper3@citrix.com>,
	eddie.dong@intel.com, Xen-devel <xen-devel@lists.xen.org>,
	Aravind.Gopalakrishnan@amd.com, Jan Beulich <jbeulich@suse.com>,
	suravee.suthikulpanit@amd.com, boris.ostrovsky@oracle.com,
	Ian Jackson <ian.jackson@eu.citrix.com>
Subject: Re: [PATCH V4 1/3] xen/mem_access: Support for memory-content hiding
Date: Wed, 8 Jul 2015 08:24:43 -0400	[thread overview]
Message-ID: <CAD33N+4jPayAO-SdAvDppcLdAmNY_LfRJUWS6v6c7rn2VddseQ@mail.gmail.com> (raw)
In-Reply-To: <1436350970-4987-2-git-send-email-rcojocaru@bitdefender.com>


[-- Attachment #1.1: Type: text/plain, Size: 1869 bytes --]

On Wed, Jul 8, 2015 at 6:22 AM, Razvan Cojocaru <rcojocaru@bitdefender.com>
wrote:

> This patch adds support for memory-content hiding, by modifying the
> value returned by emulated instructions that read certain memory
> addresses that contain sensitive data. The patch only applies to
> cases where MEM_ACCESS_EMULATE or MEM_ACCESS_EMULATE_NOWRITE have
> been set to a vm_event response.
>
> Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
> Acked-by: George Dunlap <george.dunlap@eu.citrix.com>
>
> ---
> Changes since V3:
>  - Renamed MEM_ACCESS_SET_EMUL_READ_DATA to
>    VM_EVENT_FLAG_SET_EMUL_READ_DATA and updated its comment.
>  - Removed xfree(v->arch.vm_event.emul_read_data) from
>    free_vcpu_struct().
>  - Returning X86EMUL_UNHANDLEABLE from hvmemul_cmpxchg() when
>    !curr->arch.vm_event.emul_read_data.
>  - Replaced in xmalloc_bytes() with xmalloc_array() in
>    hvmemul_rep_outs_set_context().
>  - Setting the rest of the buffer to zero in hvmemul_rep_movs()
>    (no longer leaking heap contents).
>  - No longer memset()ing the whole buffer before copy (just zeroing
>    out the rest).
>  - Moved hvmemul_ctxt->set_context = 0 to hvm_emulate_prepare() and
>    removed hvm_emulate_one_set_context().
> ---
>  tools/tests/xen-access/xen-access.c |    2 +-
>  xen/arch/x86/hvm/emulate.c          |  138
> ++++++++++++++++++++++++++++++++++-
>  xen/arch/x86/hvm/event.c            |   50 ++++++-------
>  xen/arch/x86/mm/p2m.c               |   92 +++++++++++++----------
>  xen/common/domain.c                 |    2 +
>  xen/common/vm_event.c               |   23 ++++++
>  xen/include/asm-x86/domain.h        |    2 +
>  xen/include/asm-x86/hvm/emulate.h   |   10 ++-
>  xen/include/public/vm_event.h       |   31 ++++++--
>  9 files changed, 274 insertions(+), 76 deletions(-)
>

Acked-by: Tamas K Lengyel <tlengyel@novetta.com>

[-- Attachment #1.2: Type: text/html, Size: 2530 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

  reply	other threads:[~2015-07-08 12:24 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-08 10:22 [PATCH V4 0/3] Vm_event memory introspection helpers Razvan Cojocaru
2015-07-08 10:22 ` [PATCH V4 1/3] xen/mem_access: Support for memory-content hiding Razvan Cojocaru
2015-07-08 12:24   ` Lengyel, Tamas [this message]
2015-07-10 12:41   ` Jan Beulich
2015-07-10 14:00     ` Razvan Cojocaru
2015-07-08 10:22 ` [PATCH V4 2/3] xen/vm_event: Support for guest-requested events Razvan Cojocaru
2015-07-08 12:41   ` George Dunlap
2015-07-08 10:22 ` [PATCH V4 3/3] xen/vm_event: Deny register writes if refused by vm_event reply Razvan Cojocaru
2015-07-08 12:18   ` Lengyel, Tamas
2015-07-08 12:26     ` Razvan Cojocaru
2015-07-08 12:39       ` Lengyel, Tamas
2015-07-08 12:52         ` Razvan Cojocaru

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAD33N+4jPayAO-SdAvDppcLdAmNY_LfRJUWS6v6c7rn2VddseQ@mail.gmail.com \
    --to=tlengyel@novetta.com \
    --cc=Aravind.Gopalakrishnan@amd.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=boris.ostrovsky@oracle.com \
    --cc=eddie.dong@intel.com \
    --cc=george.dunlap@eu.citrix.com \
    --cc=ian.campbell@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=jbeulich@suse.com \
    --cc=jun.nakajima@intel.com \
    --cc=keir@xen.org \
    --cc=kevin.tian@intel.com \
    --cc=rcojocaru@bitdefender.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=suravee.suthikulpanit@amd.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).