[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [Qemu-trivial] [PATCH 1/2] exec.c: Fix off-by-one error
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [Qemu-trivial] [PATCH 1/2] exec.c: Fix off-by-one error in register_subpage |
Date: |
Fri, 3 Aug 2012 10:55:15 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Wed, Jul 25, 2012 at 06:45:03PM -0400, Tyler Hall wrote:
> subpage_register() expects "end" to be the last byte in the mapping.
> Registering a non-page-aligned memory region that extends up to or
> beyond a page boundary causes subpage_register() to silently fail
> through the (end >= PAGE_SIZE) check.
>
> This bug does not cause noticeable problems for mappings that do not
> extend to a page boundary, though they do register an extra byte.
>
> Signed-off-by: Tyler Hall <address@hidden>
> ---
> exec.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Thanks, both applied to the trivial patches tree:
https://github.com/stefanha/qemu/commits/trivial-patches
Stefan