[PATCH OLK-5.10] dm: fix a buffer overflow in ioctl processing