aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf
diff options
context:
space:
mode:
authorXiao Yang <[email protected]>2021-08-20 19:15:09 +0800
committerJason Gunthorpe <[email protected]>2021-08-20 15:48:58 -0300
commitcc4f596cf85e97ca6606e1bd10b3b9851ef52ddf (patch)
tree926a27cccf0b31b81a774222e34362edaed3149d /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf
parentdbe986bdfd6dfe6ef24b833767fff4151e024357 (diff)
RDMA/rxe: Zero out index member of struct rxe_queue
1) New index member of struct rxe_queue was introduced but not zeroed so the initial value of index may be random. 2) The current index is not masked off to index_mask. In this case producer_addr() and consumer_addr() will get an invalid address by the random index and then accessing the invalid address triggers the following panic: "BUG: unable to handle page fault for address: ffff9ae2c07a1414" Fix the issue by using kzalloc() to zero out index member. Fixes: 5bcf5a59c41e ("RDMA/rxe: Protext kernel index from user space") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Xiao Yang <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf')
0 files changed, 0 insertions, 0 deletions