aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strlcpy-src.c
diff options
context:
space:
mode:
authorJohan Hovold <[email protected]>2022-08-29 10:05:30 +0200
committerGreg Kroah-Hartman <[email protected]>2022-09-01 16:13:07 +0200
commitd245f43aab2b61195d8ebb64cef7b5a08c590ab4 (patch)
treecbd6b969fa8e7ad5cab7a7bbaa44aead909197aa /lib/test_fortify/write_overflow-strlcpy-src.c
parent9baa1415d9abdd1e08362ea2dcfadfacee8690b5 (diff)
misc: fastrpc: fix memory corruption on open
The probe session-duplication overflow check incremented the session count also when there were no more available sessions so that memory beyond the fixed-size slab-allocated session array could be corrupted in fastrpc_session_alloc() on open(). Fixes: f6f9279f2bf0 ("misc: fastrpc: Add Qualcomm fastrpc basic driver model") Cc: [email protected] # 5.1 Signed-off-by: Johan Hovold <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions