From: Marc Zyngier <marc.zyngier@arm.com>
To: Christoffer Dall <christoffer.dall@linaro.org>
Cc: linux-arm-kernel@lists.infradead.org,
kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org
Subject: Re: [PATCH] arm/arm64: KVM: Feed initialized memory to MMIO accesses
Date: Wed, 24 Feb 2016 12:06:52 +0000 [thread overview]
Message-ID: <56CD9CDC.2020100@arm.com> (raw)
In-Reply-To: <20160224114044.GA18451@cbox>
On 24/02/16 11:40, Christoffer Dall wrote:
> On Wed, Feb 17, 2016 at 03:34:20PM +0000, Marc Zyngier wrote:
>> On an MMIO access, we always copy the on-stack buffer info
>> the shared "run" structure, even if this is a read access.
>> This ends up leaking up to 8 bytes of uninitialized memory
>> into userspace.
>
> I think it only leaks 'len' bytes to userspace ;)
>
>>
>> An obvious fix for this one is to only perform the copy if
>> this is an actual write.
>
> Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Thanks. I've pushed this onto master, with a view of sending a PR to
Paolo this evening (hopefully the last one for this cycle).
M.
--
Jazz is not dead. It just smells funny...
WARNING: multiple messages have this Message-ID (diff)
From: marc.zyngier@arm.com (Marc Zyngier)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] arm/arm64: KVM: Feed initialized memory to MMIO accesses
Date: Wed, 24 Feb 2016 12:06:52 +0000 [thread overview]
Message-ID: <56CD9CDC.2020100@arm.com> (raw)
In-Reply-To: <20160224114044.GA18451@cbox>
On 24/02/16 11:40, Christoffer Dall wrote:
> On Wed, Feb 17, 2016 at 03:34:20PM +0000, Marc Zyngier wrote:
>> On an MMIO access, we always copy the on-stack buffer info
>> the shared "run" structure, even if this is a read access.
>> This ends up leaking up to 8 bytes of uninitialized memory
>> into userspace.
>
> I think it only leaks 'len' bytes to userspace ;)
>
>>
>> An obvious fix for this one is to only perform the copy if
>> this is an actual write.
>
> Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Thanks. I've pushed this onto master, with a view of sending a PR to
Paolo this evening (hopefully the last one for this cycle).
M.
--
Jazz is not dead. It just smells funny...
next prev parent reply other threads:[~2016-02-24 12:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-17 15:34 [PATCH] arm/arm64: KVM: Feed initialized memory to MMIO accesses Marc Zyngier
2016-02-17 15:34 ` Marc Zyngier
2016-02-24 11:40 ` Christoffer Dall
2016-02-24 11:40 ` Christoffer Dall
2016-02-24 12:06 ` Marc Zyngier [this message]
2016-02-24 12:06 ` Marc Zyngier
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=56CD9CDC.2020100@arm.com \
--to=marc.zyngier@arm.com \
--cc=christoffer.dall@linaro.org \
--cc=kvm@vger.kernel.org \
--cc=kvmarm@lists.cs.columbia.edu \
--cc=linux-arm-kernel@lists.infradead.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 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.