Re: [PATCH v2 49/63] btrfs: Use memset_startat() to clear end of struct

2021-08-17 Thread Nikolay Borisov
writing > beyond the destination member that is intended to be the starting point > of zeroing through the end of the struct. > > Cc: Chris Mason > Cc: Josef Bacik > Cc: David Sterba > Cc: linux-bt...@vger.kernel.org > Signed-off-by: Kees Cook Reviewed-by: Nikolay Borisov

Re: [RFC][PATCH] kernel.h: Add generic roundup_64() macro

2019-05-24 Thread Nikolay Borisov
On 24.05.19 г. 18:26 ч., Steven Rostedt wrote: > On Fri, 24 May 2019 16:11:14 +0100 > Roger Willcocks wrote: > >> On 23/05/2019 16:27, Steven Rostedt wrote: >>> >>> I haven't yet tested this, but what about something like the following: >>> >>> ...perhaps forget about the constant check, and j