Repository navigation
Commit 1bb933f
ext4: fix possible use-after-free in ext4_remove_li_request()
We need to take reference to the s_li_request after we take a mutex,
because it might be freed since then, hence result in accessing old
already freed memory. Also we should protect the whole
ext4_remove_li_request() because ext4_li_info might be in the process of
being freed in ext4_lazyinit_thread().
Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>1 parent 51ce651 commit 1bb933f
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2735 | 2735 | | |
2736 | 2736 | | |
2737 | 2737 | | |
2738 | | - | |
2739 | | - | |
2740 | | - | |
| 2738 | + | |
| 2739 | + | |
| 2740 | + | |
2741 | 2741 | | |
| 2742 | + | |
2742 | 2743 | | |
2743 | 2744 | | |
2744 | | - | |
| 2745 | + | |
2745 | 2746 | | |
| 2747 | + | |
2746 | 2748 | | |
2747 | 2749 | | |
2748 | 2750 | | |
| |||
0 commit comments