On Mon, Jul 9, 2018 at 10:54 AM, Kees Cook <keescook@xxxxxxxxxxxx> wrote: > On Sun, Jul 8, 2018 at 11:44 AM, Jason Gunthorpe <jgg@xxxxxxxxxxxx> wrote: >> On Sun, Jul 08, 2018 at 01:38:32PM +0300, Leon Romanovsky wrote: >>> From: Jason Gunthorpe <jgg@xxxxxxxxxxxx> >>> >>> Add shift_overflow() helper to help driver authors to ensure that >>> shift operand doesn't cause to overflow. >>> >>> Signed-off-by: Jason Gunthorpe <jgg@xxxxxxxxxxxx> >>> Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxxxx> >>> --- >>> include/linux/overflow.h | 23 +++++++++++++++++++++++ >>> 1 file changed, 23 insertions(+) >> >> Kees/Rasmus, if you are happy with this please ack, I can run it >> through the RDMA tree. Thanks > > Going through RDMA is fine by me. I'll let Rasmus ack this, assuming > the current threads resolve. :) Has this happened? I don't see the shift helper in linux-next yet. -Kees -- Kees Cook Pixel Security -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html