All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wei Liu <wei.liu2@citrix.com>
To: Zakirasafi <zakirasafi@gmail.com>
Cc: xen-devel@lists.xensource.com, Wei Liu <wei.liu2@citrix.com>
Subject: Re: Side channel attack
Date: Fri, 15 Apr 2016 10:39:30 +0100	[thread overview]
Message-ID: <20160415093930.GD19098@citrix.com> (raw)
In-Reply-To: <CAJu34xwU2GuwSdTzhQeYt9T4cW5GWAmHp5gmUKS6FHgOahibSw@mail.gmail.com>

Hello

Please don't post HTML mails.

On Fri, Apr 15, 2016 at 03:49:20PM +0800, Zakirasafi wrote:
> Dear All
> The following code is for side channel attack on xen hypevisor. In this
> code I am having problem in understanding the highlighted red line. In the
> line what ".byte 15, byte 49" do???
> 

I don't have HTML capable mail reader, so I can't see "highlighted red
line", but I get you idea.

> #include <sys/types.h>
> #include <sys/socket.h>
> #include <netinet/in.h>
>  #include <openssl/aes.h>
> unsigned int timestamp(void)
>  {
> unsigned int bottom;
> unsigned int top;
> *asm volatile(".byte 15;.byte 49" : "=a"(bottom),"=d"(top)); return bottom;*
>  }

This is probably some sort of opcode. You can probably find out what
they mean in Intel or AMD software developer manual.

Other than that, I don't think we can help you much regarding this
program. You will have better luck contacting the researchers (?) who
wrote this code.

And, if you do find it a security issue in real life, we have a process
of dealing with that, too.

http://www.xenproject.org/security-policy.html


Thanks
Wei.

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

  reply	other threads:[~2016-04-15  9:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-15  7:49 Side channel attack Zakirasafi
2016-04-15  9:39 ` Wei Liu [this message]
2016-04-15 13:00 ` Mihai Donțu
  -- strict thread matches above, loose matches on Subject: below --
2016-04-15 12:35 liuweijie

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=20160415093930.GD19098@citrix.com \
    --to=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xensource.com \
    --cc=zakirasafi@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.