Re: [PATCH] kasan: fix the missing underflow in memmove and memcpy with CONFIG_KASAN_GENERIC=y

From: Qian Cai
Date: Tue Oct 08 2019 - 07:42:51 EST




> On Oct 8, 2019, at 7:02 AM, Walter Wu <walter-zh.wu@xxxxxxxxxxxx> wrote:
>
> I don't know very well in UBSAN, but I try to build ubsan kernel and
> test a negative number in memset and kmalloc_memmove_invalid_size(), it
> look like no check.

It sounds like more important to figure out why the UBSAN is not working in this case rather than duplicating functionality elsewhere.