diff options
author | Colin Ian King <colin.king@canonical.com> | 2016-09-22 19:48:58 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-23 13:25:16 +0200 |
commit | e12934d9806e61d2727069cd56757987f3da76aa (patch) | |
tree | 5deca3943fa0b2d4c99a43c7381a12f352dfe2ae /fs/eventpoll.c | |
parent | Merge branch 'mlx5-sriov-vlan-push-pop' (diff) | |
download | linux-e12934d9806e61d2727069cd56757987f3da76aa.tar.xz linux-e12934d9806e61d2727069cd56757987f3da76aa.zip |
cxgb4: fix signed wrap around when decrementing index idx
Change predecrement compare to post decrement compare to avoid an
unsigned integer wrap-around comparison when decrementing idx in
the while loop.
For example, when idx is zero, the current situation will
predecrement idx in the while loop, wrapping idx to the maximum
signed integer and cause out of bounds reads on rxq_info->msix_tbl[idx].
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/eventpoll.c')
0 files changed, 0 insertions, 0 deletions