aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorRichard Acayan <[email protected]>2023-05-23 16:25:50 +0100
committerGreg Kroah-Hartman <[email protected]>2023-05-29 15:09:50 +0100
commit46248400d81e2aa0b65cd659d6f40188192a58b6 (patch)
treee9d71f97d701d1585f062f0aed0195baec2c7d3a /lib/mpi/mpiutil.c
parentb6a062853ddf6b4f653af2d8b75ba45bb9a036ad (diff)
misc: fastrpc: reject new invocations during device removal
The channel's rpmsg object allows new invocations to be made. After old invocations are already interrupted, the driver shouldn't try to invoke anymore. Invalidating the rpmsg at the end of the driver removal function makes it easy to cause a race condition in userspace. Even closing a file descriptor before the driver finishes its cleanup can cause an invocation via fastrpc_release_current_dsp_process() and subsequent timeout. Invalidate the channel before the invocations are interrupted to make sure that no invocations can be created to hang after the device closes. Fixes: c68cfb718c8f ("misc: fastrpc: Add support for context Invoke method") Cc: stable <[email protected]> Signed-off-by: Richard Acayan <[email protected]> Signed-off-by: Srinivas Kandagatla <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions