Searched hist:"9 baa1415d9abdd1e08362ea2dcfadfacee8690b5" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/misc/ |
H A D | fastrpc.c | diff 9baa1415d9abdd1e08362ea2dcfadfacee8690b5 Mon Aug 29 03:05:29 CDT 2022 Johan Hovold <johan+linaro@kernel.org> misc: fastrpc: fix memory corruption on probe
Add the missing sanity check on the probed-session count to avoid corrupting memory beyond the fixed-size slab-allocated session array when there are more than FASTRPC_MAX_SESSIONS sessions defined in the devicetree.
Fixes: f6f9279f2bf0 ("misc: fastrpc: Add Qualcomm fastrpc basic driver model") Cc: stable@vger.kernel.org # 5.1 Signed-off-by: Johan Hovold <johan+linaro@kernel.org> Link: https://lore.kernel.org/r/20220829080531.29681-2-johan+linaro@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|