From patchwork Wed Aug 1 00:00:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kees Cook X-Patchwork-Id: 10551547 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 42A5613BB for ; Wed, 1 Aug 2018 00:00:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 27ECD2AFDB for ; Wed, 1 Aug 2018 00:00:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 17DCA2B0A4; Wed, 1 Aug 2018 00:00:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 222262AFDB for ; Wed, 1 Aug 2018 00:00:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732852AbeHABne (ORCPT ); Tue, 31 Jul 2018 21:43:34 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:43671 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732870AbeHABne (ORCPT ); Tue, 31 Jul 2018 21:43:34 -0400 Received: by mail-pl0-f67.google.com with SMTP id x6-v6so7864684plv.10 for ; Tue, 31 Jul 2018 17:00:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id; bh=b+l7MhKf4lpWiZvBhHDJjBfM4XZLVidfK5I4zRVgcPA=; b=dcd0LLO3Vyzqzn1SYv/EktNKZ35n503yWimd+8FHvSJp1wEXFCcPtDVXAfZFPKEEUx 3nPVqESowd57gvjrwFKvNJsh5r2OA8UdZ8tYY9DFuHINLeeWLIr3VAeyURTqzylqNRor ygFCkF9GjYI96HK61bSIl0ucS05EVDdH8gf54= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=b+l7MhKf4lpWiZvBhHDJjBfM4XZLVidfK5I4zRVgcPA=; b=fug1u9pEWIimtHO5Y1RPOnZv18QrDRs8wM5N84V0YTdISRGw9kpN1x+xh2ST/ep0l3 og39dY+qM4FpxIizGsYfh4O3PUkqAyEYuY73SIdEyFU8+8Y82ThmGYKFmimTJdQzBGDZ SW5g6R/im4qLeRe90BkB5nHPukjPEAVr5y0wAcwYiSySWlK/i8OEq7sDDt3C1xXLbPtH So5LJF19nihueZcXhEuEiYUi/wUnOpbOWG3DXPThTA1jnwP1LpN/5eHomU7brmqcW/f+ P7IHNRInSLLl8e04AS80BrLpUM0xB1GH5BYqmJRZg6Flq6OnncLmGTTNmucvqpjPUQFM o26Q== X-Gm-Message-State: AOUpUlG6Fzh63PVTQkadLeN7PgRRwRtHMTVOPIAhj61sCgfB54f2CpfL IVBLOiVmGmW7xVHIQe03j6Dc5Q== X-Google-Smtp-Source: AAOMgpdpmVBO9x9xd4xDxDFpRGDISk40j/3m1VPm5uFulecr05FTDuUG6fDF4+zym3aAxTkS5h0f6g== X-Received: by 2002:a17:902:b60b:: with SMTP id b11-v6mr7391460pls.301.1533081648145; Tue, 31 Jul 2018 17:00:48 -0700 (PDT) Received: from www.outflux.net (173-164-112-133-Oregon.hfc.comcastbusiness.net. [173.164.112.133]) by smtp.gmail.com with ESMTPSA id o4-v6sm40633659pgq.16.2018.07.31.17.00.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 31 Jul 2018 17:00:44 -0700 (PDT) From: Kees Cook To: Rasmus Villemoes Cc: Kees Cook , Jason Gunthorpe , Leon Romanovsky , Bart Van Assche , Doug Ledford , Dan Carpenter , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/3] overflow.h: Add arithmetic shift helper Date: Tue, 31 Jul 2018 17:00:36 -0700 Message-Id: <20180801000039.44314-1-keescook@chromium.org> X-Mailer: git-send-email 2.17.1 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This adds the shift overflow helper, selftests, and first usage. -Kees Jason Gunthorpe (1): overflow.h: Add arithmetic shift helper Kees Cook (1): test_overflow: Add shift overflow tests Leon Romanovsky (1): RDMA/mlx5: Fix shift overflow in mlx5_ib_create_wq drivers/infiniband/hw/mlx5/qp.c | 5 +- include/linux/overflow.h | 31 +++++++ lib/test_overflow.c | 140 +++++++++++++++++++++++++++++++- 3 files changed, 174 insertions(+), 2 deletions(-)