aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorIan Abbott <[email protected]>2025-07-07 13:09:08 +0000
committerGreg Kroah-Hartman <[email protected]>2025-07-16 13:02:26 +0000
commited93c6f68a3be06e4e0c331c6e751f462dee3932 (patch)
tree937bce6849da9fa0ef450bfa65343d39866eb0fd /tools/perf/scripts/python/flamegraph.py
parentcomedi: Fix some signed shift left operations (diff)
downloadkernel-ed93c6f68a3be06e4e0c331c6e751f462dee3932.tar.gz
kernel-ed93c6f68a3be06e4e0c331c6e751f462dee3932.zip
comedi: das16m1: Fix bit shift out of bounds
When checking for a supported IRQ number, the following test is used: /* only irqs 2, 3, 4, 5, 6, 7, 10, 11, 12, 14, and 15 are valid */ if ((1 << it->options[1]) & 0xdcfc) { However, `it->options[i]` is an unchecked `int` value from userspace, so the shift amount could be negative or out of bounds. Fix the test by requiring `it->options[1]` to be within bounds before proceeding with the original test. Reported-by: [email protected] Closes: https://syzkaller.appspot.com/bug?extid=c52293513298e0fd9a94 Fixes: 729988507680 ("staging: comedi: das16m1: tidy up the irq support in das16m1_attach()") Tested-by: [email protected] Suggested-by: "Enju, Kohei" <[email protected]> Cc: [email protected] # 5.13+ Signed-off-by: Ian Abbott <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions