[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v3 2/2] xmalloc: add a Kconfig option to poison free pool memory



On 05.07.2019 16:48, Paul Durrant wrote:
> This patch adds XMEM_POOL_POISON to the Kconfig DEBUG options. If set,
> free blocks (greater than MIN_BLOCK_SIZE) will be poisoned with 0xAA
> bytes which will then be verified when memory is subsequently allocated.
> This can help in spotting heap corruption, particularly use-after-free.
> 
> Signed-off-by: Paul Durrant <paul.durrant@xxxxxxxxxx>

Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>

(I'm pondering whether to add the suggested blank lines while
committing.)

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.