On 2021/4/13 9:36, Huang, Ying wrote:
> Miaohe Lin writes:
>
>> swap_cluster_readahead() could race with swapoff and might dereference
>> si->swap_file after it's released by swapoff. Close this race window by
>> using get/put_swap_device() pair.
>
> I think we should fix the callers instead to
Miaohe Lin writes:
> swap_cluster_readahead() could race with swapoff and might dereference
> si->swap_file after it's released by swapoff. Close this race window by
> using get/put_swap_device() pair.
I think we should fix the callers instead to reduce the overhead. Now,
do_swap_page() has bee
swap_cluster_readahead() could race with swapoff and might dereference
si->swap_file after it's released by swapoff. Close this race window by
using get/put_swap_device() pair.
Signed-off-by: Miaohe Lin
---
mm/swap_state.c | 11 +--
1 file changed, 9 insertions(+), 2 deletions(-)
diff -
3 matches
Mail list logo