aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/gcc-generate-rtl-pass.h
diff options
context:
space:
mode:
authorBen Dai <[email protected]>2021-04-25 15:09:03 +0000
committerThomas Gleixner <[email protected]>2021-08-10 13:39:00 +0000
commitb9cc7d8a4656a6e815852c27ab50365009cb69c1 (patch)
treeeedd846b978aa1c7783fdd1c5e281715c558044f /scripts/gcc-plugins/gcc-generate-rtl-pass.h
parentx86/msi: Force affinity setup before startup (diff)
downloadkernel-b9cc7d8a4656a6e815852c27ab50365009cb69c1.tar.gz
kernel-b9cc7d8a4656a6e815852c27ab50365009cb69c1.zip
genirq/timings: Prevent potential array overflow in __irq_timings_store()
When the interrupt interval is greater than 2 ^ PREDICTION_BUFFER_SIZE * PREDICTION_FACTOR us and less than 1s, the calculated index will be greater than the length of irqs->ema_time[]. Check the calculated index before using it to prevent array overflow. Fixes: 23aa3b9a6b7d ("genirq/timings: Encapsulate storing function") Signed-off-by: Ben Dai <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-rtl-pass.h')
0 files changed, 0 insertions, 0 deletions