Commit 9ef1669
committed
ftrace: Get a reference counter for the trace_array on filter files
The ftrace set_ftrace_filter and set_ftrace_notrace files are specific for
an instance now. They need to take a reference to the instance otherwise
there could be a race between accessing the files and deleting the instance.
It wasn't until the :mod: caching where these file operations started
referencing the trace_array directly.
Cc: stable@vger.kernel.org
Fixes: 673feb9 ("ftrace: Add :mod: caching infrastructure to trace_array")
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>1 parent 3ed270b commit 9ef1669
1 file changed
+18
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3540 | 3540 | | |
3541 | 3541 | | |
3542 | 3542 | | |
3543 | | - | |
| 3543 | + | |
3544 | 3544 | | |
3545 | 3545 | | |
3546 | 3546 | | |
3547 | 3547 | | |
3548 | 3548 | | |
3549 | 3549 | | |
| 3550 | + | |
| 3551 | + | |
| 3552 | + | |
3550 | 3553 | | |
3551 | 3554 | | |
3552 | | - | |
| 3555 | + | |
3553 | 3556 | | |
3554 | | - | |
3555 | | - | |
3556 | | - | |
3557 | | - | |
| 3557 | + | |
| 3558 | + | |
3558 | 3559 | | |
3559 | 3560 | | |
3560 | 3561 | | |
| |||
3584 | 3585 | | |
3585 | 3586 | | |
3586 | 3587 | | |
3587 | | - | |
3588 | | - | |
3589 | 3588 | | |
3590 | 3589 | | |
3591 | 3590 | | |
3592 | 3591 | | |
3593 | 3592 | | |
| 3593 | + | |
| 3594 | + | |
3594 | 3595 | | |
3595 | 3596 | | |
3596 | 3597 | | |
| |||
3602 | 3603 | | |
3603 | 3604 | | |
3604 | 3605 | | |
3605 | | - | |
3606 | 3606 | | |
3607 | 3607 | | |
3608 | 3608 | | |
3609 | 3609 | | |
3610 | 3610 | | |
3611 | 3611 | | |
3612 | 3612 | | |
| 3613 | + | |
| 3614 | + | |
| 3615 | + | |
| 3616 | + | |
| 3617 | + | |
| 3618 | + | |
| 3619 | + | |
3613 | 3620 | | |
3614 | 3621 | | |
3615 | 3622 | | |
| |||
5037 | 5044 | | |
5038 | 5045 | | |
5039 | 5046 | | |
| 5047 | + | |
| 5048 | + | |
5040 | 5049 | | |
5041 | 5050 | | |
5042 | 5051 | | |
| |||
0 commit comments