Re: [PATCH] kernel: sys.c: Avoid copying possible padding bytes in copy_to_user

From: Dan Carpenter
Date: Mon Oct 28 2019 - 03:32:59 EST


We should be able to use memzero_explicit(), right?

The fact that we memset() can't be used to prevent information leaks has
always worried me. Everyone predicted that we would have bugs like this
where memset doesn't work as expected.

regards,
dan carpenter