« Previous | Next » 

Revision adb2a9b5

IDadb2a9b5d4d5170f0b58b9f92f816048f6b8932b

Added by Tyler Hall over 11 years ago

exec.c: Fix off-by-one error in register_subpage

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 <>
Reviewed-by: Peter Maydell <>
Reviewed-by: Avi Kivity <>
Signed-off-by: Stefan Hajnoczi <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences