Commit 5d08c5a
FROMLIST: misc: fastrpc: Remove buffer from list prior to unmap operation
fastrpc_req_munmap_impl() is called to unmap any buffer. The buffer is
getting removed from the list after it is unmapped from DSP. This can
create potential race conditions if any other thread removes the entry
from list while unmap operation is ongoing. Remove the entry before
calling unmap operation.
Link: https://lore.kernel.org/all/20260409062617.1182-3-jianping.li@oss.qualcomm.com/
Fixes: 2419e55 ("misc: fastrpc: add mmap/unmap support")
Cc: stable@kernel.org
Co-developed-by: Ekansh Gupta <ekansh.gupta@oss.qualcomm.com>
Signed-off-by: Ekansh Gupta <ekansh.gupta@oss.qualcomm.com>
Signed-off-by: Jianping Li <jianping.li@oss.qualcomm.com>1 parent 10c92d2 commit 5d08c5a
1 file changed
Lines changed: 15 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1958 | 1958 | | |
1959 | 1959 | | |
1960 | 1960 | | |
1961 | | - | |
1962 | | - | |
1963 | | - | |
1964 | 1961 | | |
1965 | 1962 | | |
1966 | 1963 | | |
| |||
1974 | 1971 | | |
1975 | 1972 | | |
1976 | 1973 | | |
| 1974 | + | |
1977 | 1975 | | |
1978 | 1976 | | |
1979 | 1977 | | |
1980 | 1978 | | |
1981 | 1979 | | |
1982 | 1980 | | |
1983 | 1981 | | |
| 1982 | + | |
1984 | 1983 | | |
1985 | 1984 | | |
1986 | 1985 | | |
| |||
1993 | 1992 | | |
1994 | 1993 | | |
1995 | 1994 | | |
1996 | | - | |
| 1995 | + | |
| 1996 | + | |
| 1997 | + | |
| 1998 | + | |
| 1999 | + | |
| 2000 | + | |
| 2001 | + | |
| 2002 | + | |
1997 | 2003 | | |
1998 | 2004 | | |
1999 | 2005 | | |
| |||
2083 | 2089 | | |
2084 | 2090 | | |
2085 | 2091 | | |
2086 | | - | |
| 2092 | + | |
2087 | 2093 | | |
2088 | 2094 | | |
2089 | 2095 | | |
2090 | 2096 | | |
2091 | 2097 | | |
2092 | 2098 | | |
2093 | | - | |
| 2099 | + | |
| 2100 | + | |
| 2101 | + | |
| 2102 | + | |
2094 | 2103 | | |
2095 | 2104 | | |
2096 | 2105 | | |
| |||
0 commit comments