Re: [PATCH 2/2] kasan: add test for invalid size in memmove

From: Matthew Wilcox
Date: Mon Oct 14 2019 - 11:07:16 EST


On Mon, Oct 14, 2019 at 06:36:54PM +0800, Walter Wu wrote:
> Test size is negative numbers in memmove in order to verify
> whether it correctly get KASAN report.

You're not testing negative numbers, though. memmove() takes an unsigned
type, so you're testing a very large number.