aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <[email protected]>2020-01-31 10:07:55 +0000
committerMatthew Wilcox (Oracle) <[email protected]>2020-01-31 20:09:36 +0000
commitbd40b17ca49d7d110adf456e647701ce74de2241 (patch)
tree5b08f821b4204ae3698a8763f63a8d66b73da381 /tools/perf/scripts/python
parentLinux 5.5 (diff)
downloadkernel-bd40b17ca49d7d110adf456e647701ce74de2241.tar.gz
kernel-bd40b17ca49d7d110adf456e647701ce74de2241.zip
XArray: Fix xa_find_next for large multi-index entries
Coverity pointed out that xas_sibling() was shifting xa_offset without promoting it to an unsigned long first, so the shift could cause an overflow and we'd get the wrong answer. The fix is obvious, and the new test-case provokes UBSAN to report an error: runtime error: shift exponent 60 is too large for 32-bit type 'int' Fixes: 19c30f4dd092 ("XArray: Fix xa_find_after with multi-index entries") Reported-by: Bjorn Helgaas <[email protected]> Reported-by: Kees Cook <[email protected]> Signed-off-by: Matthew Wilcox (Oracle) <[email protected]> Cc: [email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions