Commit 08275e5
committed
ftrace: Reinitialize hash to EMPTY_HASH after freeing
There's several locations that free a ftrace hash pointer but may be
referenced again. Reset them to EMPTY_HASH so that a u-a-f bug doesn't
happen.
Cc: Masami Hiramatsu <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
Link: https://lore.kernel.org/[email protected]
Fixes: 0ae6b8c ("ftrace: Fix accounting of subop hashes")
Signed-off-by: Steven Rostedt (Google) <[email protected]>1 parent 31d1139 commit 08275e5
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1297 | 1297 | | |
1298 | 1298 | | |
1299 | 1299 | | |
| 1300 | + | |
| 1301 | + | |
1300 | 1302 | | |
1301 | 1303 | | |
1302 | 1304 | | |
| |||
3443 | 3445 | | |
3444 | 3446 | | |
3445 | 3447 | | |
| 3448 | + | |
3446 | 3449 | | |
3447 | 3450 | | |
3448 | 3451 | | |
| |||
3472 | 3475 | | |
3473 | 3476 | | |
3474 | 3477 | | |
| 3478 | + | |
3475 | 3479 | | |
3476 | 3480 | | |
3477 | 3481 | | |
| |||
0 commit comments