diff options
author | Dennis Zhou <[email protected]> | 2021-07-03 03:49:57 +0000 |
---|---|---|
committer | Dennis Zhou <[email protected]> | 2021-07-04 18:30:17 +0000 |
commit | 93274f1dd6b0a615b299beddf99871fe81f91275 (patch) | |
tree | 17da89981870f2d114e673fe57beeb80bc35a252 /lib/mpi/mpi-sub-ui.c | |
parent | d6b63b5b7d7f363c6a54421533791e9849adf2e0 (diff) |
percpu: flush tlb in pcpu_reclaim_populated()
Prior to "percpu: implement partial chunk depopulation",
pcpu_depopulate_chunk() was called only on the destruction path. This
meant the virtual address range was on its way back to vmalloc which
will handle flushing the tlbs for us.
However, with pcpu_reclaim_populated(), we are now calling
pcpu_depopulate_chunk() during the active lifecycle of a chunk.
Therefore, we need to flush the tlb as well otherwise we can end up
accessing the wrong page through an invalid tlb mapping as reported in
[1].
[1] https://lore.kernel.org/lkml/[email protected]/
Fixes: f183324133ea ("percpu: implement partial chunk depopulation")
Reported-and-tested-by: Guenter Roeck <[email protected]>
Signed-off-by: Dennis Zhou <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions