Commit b338817
kprobes: Free kretprobe_instance with RCU callback
Free kretprobe_instance with RCU callback instead of directly
freeing the object in the kretprobe handler context.
This will make kretprobe run safer in NMI context.
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/159870616685.1229682.11978742048709542226.stgit@devnote21 parent e03b4a0 commit b338817
2 files changed
Lines changed: 10 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
160 | 163 | | |
161 | 164 | | |
162 | 165 | | |
| |||
395 | 398 | | |
396 | 399 | | |
397 | 400 | | |
398 | | - | |
399 | 401 | | |
400 | 402 | | |
401 | 403 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1223 | 1223 | | |
1224 | 1224 | | |
1225 | 1225 | | |
1226 | | - | |
1227 | | - | |
| 1226 | + | |
1228 | 1227 | | |
1229 | 1228 | | |
1230 | 1229 | | |
| |||
1236 | 1235 | | |
1237 | 1236 | | |
1238 | 1237 | | |
1239 | | - | |
1240 | | - | |
| 1238 | + | |
1241 | 1239 | | |
1242 | 1240 | | |
1243 | 1241 | | |
| |||
1313 | 1311 | | |
1314 | 1312 | | |
1315 | 1313 | | |
1316 | | - | |
| 1314 | + | |
1317 | 1315 | | |
1318 | 1316 | | |
1319 | 1317 | | |
| |||
1323 | 1321 | | |
1324 | 1322 | | |
1325 | 1323 | | |
1326 | | - | |
1327 | 1324 | | |
1328 | 1325 | | |
1329 | 1326 | | |
1330 | 1327 | | |
1331 | 1328 | | |
1332 | | - | |
| 1329 | + | |
1333 | 1330 | | |
1334 | 1331 | | |
1335 | | - | |
1336 | | - | |
1337 | | - | |
1338 | | - | |
1339 | 1332 | | |
1340 | 1333 | | |
1341 | 1334 | | |
| |||
1936 | 1929 | | |
1937 | 1930 | | |
1938 | 1931 | | |
1939 | | - | |
| 1932 | + | |
1940 | 1933 | | |
1941 | 1934 | | |
1942 | 1935 | | |
1943 | 1936 | | |
1944 | 1937 | | |
1945 | | - | |
1946 | 1938 | | |
1947 | 1939 | | |
1948 | 1940 | | |
| |||
2011 | 2003 | | |
2012 | 2004 | | |
2013 | 2005 | | |
2014 | | - | |
| 2006 | + | |
2015 | 2007 | | |
2016 | 2008 | | |
2017 | 2009 | | |
2018 | 2010 | | |
2019 | 2011 | | |
2020 | 2012 | | |
2021 | 2013 | | |
2022 | | - | |
2023 | | - | |
2024 | | - | |
2025 | | - | |
2026 | | - | |
2027 | 2014 | | |
2028 | 2015 | | |
2029 | 2016 | | |
| |||
0 commit comments