Re: [PATCH] vt: fix memory overlapping when deleting chars in the buffer

From: Yangxi Xiang
Date: Mon Jun 27 2022 - 07:04:32 EST


> What commit does this fix? how was this tested?

This bug is triggered by running a dynamic analysis on the kernel,
with the help of sanitizer to observe this bug. This memory
overlapping copy can cause data corruption when scr_memcpyw is
optimized to memcpy because memcpy does not ensure its behavior if
the destination buffer overlaps with the source buffer.

Yangxi Xiang