From: Kees Cook <keescook@chromium.org>
To: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Cc: Kees Cook <keescook@chromium.org>, Jason Gunthorpe <jgg@ziepe.ca>,
Leon Romanovsky <leon@kernel.org>,
Bart Van Assche <Bart.VanAssche@wdc.com>,
Doug Ledford <dledford@redhat.com>,
Dan Carpenter <dan.carpenter@oracle.com>,
linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH v3 0/3] overflow.h: Add arithmetic shift helper
Date: Tue, 31 Jul 2018 23:09:44 -0700 [thread overview]
Message-ID: <20180801060947.16670-1-keescook@chromium.org> (raw)
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
next reply other threads:[~2018-08-01 6:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-01 6:09 Kees Cook [this message]
2018-08-01 6:09 ` [PATCH v3 1/3] overflow.h: Add arithmetic shift helper Kees Cook
2018-08-01 16:28 ` Randy Dunlap
2018-08-01 18:44 ` Kees Cook
2018-08-01 6:09 ` [PATCH v3 2/3] test_overflow: Add shift overflow tests Kees Cook
2018-08-01 6:09 ` [PATCH v3 3/3] RDMA/mlx5: Fix shift overflow in mlx5_ib_create_wq Kees Cook
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180801060947.16670-1-keescook@chromium.org \
--to=keescook@chromium.org \
--cc=Bart.VanAssche@wdc.com \
--cc=dan.carpenter@oracle.com \
--cc=dledford@redhat.com \
--cc=jgg@ziepe.ca \
--cc=leon@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=linux@rasmusvillemoes.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox