lkml.org 
[lkml]   [2018]   [Aug]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Subject[PATCH v3 0/3] overflow.h: Add arithmetic shift helper
    Date
    This adds the shift overflow helper, selftests, and first usage.

    -Kees

    v3:
    - add even more test cases (type mismatches, more signed overflows).
    - fix documentation typo on argument name.
    v2:
    - swap out selftests with framework from Rasmus, add lots more tests.
    - drop double-assignment in helper.


    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 | 198 +++++++++++++++++++++++++++++++-
    3 files changed, 232 insertions(+), 2 deletions(-)

    --
    2.17.1

    \
     
     \ /
      Last update: 2018-08-01 08:10    [W:5.197 / U:0.952 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site