]> xenbits.xensource.com Git - xen.git/commit
xmalloc: make whole pages xfree() clear the order field (ab)used by xmalloc()
authorJan Beulich <jbeulich@suse.com>
Mon, 9 Sep 2013 12:34:12 +0000 (14:34 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 9 Sep 2013 12:34:12 +0000 (14:34 +0200)
commit0fbf3208d9c1a568aeeb61d9f4fbca03b1cfa1f8
treee6353a1192afa6c9612ccd7489b49eab3fb7a2f3
parenta35137373aa9042424565e5ee76dc0a3bb7642ae
xmalloc: make whole pages xfree() clear the order field (ab)used by xmalloc()

Not doing this was found to cause problems with sequences of allocation
(multi-page), freeing, and then again allocation of the same page upon
boot when interrupts are still disabled (causing the owner field to be
non-zero, thus making the allocator attempt a TLB flush and, in its
processing, triggering an assertion).

Reported-by: Tomasz Wroblewski <tomasz.wroblewski@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Tested-by: Tomasz Wroblewski <tomasz.wroblewski@citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/common/xmalloc_tlsf.c