Commit 1ec7504
io-stat: xlator Segmentation fault
The process is getting crashed during call ios_bump_stats
in cbk code path. After checked the code it seems the
process is getting crashed because the ios_stat_head list is
destroyed by the function ios_destroy_top_stats without
taking a list mutex while receive a clear profile event from
the client. If at the same time a process is trying to
access the list it can be crash.
Change-Id: I1b4d56517fa405eb84da7fffca61e15530652204
Solution: Destroy the ios_stat under the list mutex.
Fixes: gluster#3901
Signed-off-by: Mohit Agrawal <moagrawa@redhat.com>1 parent 68856f7 commit 1ec7504
1 file changed
+26
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3619 | 3619 | | |
3620 | 3620 | | |
3621 | 3621 | | |
3622 | | - | |
| 3622 | + | |
3623 | 3623 | | |
3624 | | - | |
3625 | | - | |
3626 | | - | |
3627 | | - | |
3628 | | - | |
3629 | | - | |
| 3624 | + | |
| 3625 | + | |
| 3626 | + | |
| 3627 | + | |
| 3628 | + | |
| 3629 | + | |
| 3630 | + | |
| 3631 | + | |
| 3632 | + | |
| 3633 | + | |
| 3634 | + | |
3630 | 3635 | | |
3631 | | - | |
| 3636 | + | |
3632 | 3637 | | |
3633 | 3638 | | |
3634 | 3639 | | |
3635 | 3640 | | |
3636 | 3641 | | |
3637 | 3642 | | |
3638 | | - | |
| 3643 | + | |
3639 | 3644 | | |
3640 | | - | |
3641 | | - | |
3642 | | - | |
3643 | | - | |
3644 | | - | |
3645 | | - | |
| 3645 | + | |
| 3646 | + | |
| 3647 | + | |
| 3648 | + | |
| 3649 | + | |
| 3650 | + | |
| 3651 | + | |
| 3652 | + | |
| 3653 | + | |
| 3654 | + | |
| 3655 | + | |
3646 | 3656 | | |
3647 | | - | |
| 3657 | + | |
3648 | 3658 | | |
3649 | 3659 | | |
3650 | 3660 | | |
| |||
0 commit comments