aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorEvgeny Novikov <[email protected]>2021-09-03 11:26:53 +0300
committerMiquel Raynal <[email protected]>2021-09-14 19:35:08 +0200
commit46a0dc10fb32bec3e765e51bf71fbc070dc77ca3 (patch)
treea15ff295489fd78c28e9f817b4446518a2337544 /scripts/gdb/linux/utils.py
parentabac656349cb9f081bc3b0a4c75d98486ade77f0 (diff)
mtd: rawnand: intel: Fix potential buffer overflow in probe
ebu_nand_probe() read the value of u32 variable "cs" from the device firmware description and used it as the index for array ebu_host->cs that can contain MAX_CS (2) elements at most. That could result in a buffer overflow and various bad consequences later. Fix the potential buffer overflow by restricting values of "cs" with MAX_CS in probe. Found by Linux Driver Verification project (linuxtesting.org). Fixes: 0b1039f016e8 ("mtd: rawnand: Add NAND controller support on Intel LGM SoC") Signed-off-by: Evgeny Novikov <[email protected]> Co-developed-by: Kirill Shilimanov <[email protected]> Signed-off-by: Kirill Shilimanov <[email protected]> Co-developed-by: Anton Vasilyev <[email protected]> Signed-off-by: Anton Vasilyev <[email protected]> Signed-off-by: Miquel Raynal <[email protected]> Link: https://lore.kernel.org/linux-mtd/[email protected]
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions