Fix ptr calculation when converting from a VA
A message that is not in the archive (sent off-list or not yet received): [email protected]
Jan Beulich
Reviewed-byQuoted 6 lines
Quoted 1 line
Quoted 1 line · On 29.11.13 at 11:39, <[email protected]> wrote:
From: Jean-Yves Migeon <[email protected]>
The ptr calculation shall take the offset into the page into account when ptr is valid.
Quoted 8 lines
Reported regression on NetBSD's port-xen with last known working libxen being rev 2.9. This corrupts the kernel symbol table when the table is not loaded on a page boundary.
Issue was tracked down by FastIce and Jeff Rizzo. See also
http://mail-index.netbsd.org/port-xen/2013/10/16/msg008088.htmlSigned-off-by Jean-Yves Migeon <[email protected]>
Quoted 27 lines
--- tools/libxc/xc_dom.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/libxc/xc_dom.h +1
-1@@ -342,7 +342,7 @@ static inline void *xc_dom_vaddr_to_ptr(struct xc_dom_image *dom, if ( ptr == NULL )return ptr; *safe_region_out = (safe_region_count <<XC_DOM_PAGE_SHIFT (dom)) - offset; -return ptr; +return ptr + offset; }static inline
xen_pfn_txc_dom_p2m_host(structxc_dom_image*dom,xen_pfn_t
pfn)Signature · 7 lines
1.8.1.5 _______________________________________________ Xen-devel mailing list [email protected] http://lists.xen.org/xen-devel
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 10 lines · Jan Beulich
Quoted 10 lines
Quoted 1 line
Quoted 1 line · On 29.11.13 at 11:39, <[email protected]> wrote:
From: Jean-Yves Migeon <[email protected]>
The ptr calculation shall take the offset into the page into account when ptr is valid.
Reported regression on NetBSD's port-xen with last known working libxen being rev 2.9. This corrupts the kernel symbol table when the table is not loaded on a page boundary.
Quoted 6 lines
Quoted 4 lines
Issue was tracked down by FastIce and Jeff Rizzo. See also
http://mail-index.netbsd.org/port-xen/2013/10/16/msg008088.htmlSigned-off-by Jean-Yves Migeon <[email protected]>Reviewed-by Jan Beulich <[email protected]>
I see that Ian J also agreed this was correct in <[email protected]>.
Acked + applied. Thanks everyone.