Skip to content
Commit d1964540 authored by Steven Price's avatar Steven Price
Browse files

arm64: mte: Prevent restoring tags multiple times



Previously it was possible for tags to be restored after swap multiple
times. Rework the code so that tags are only restored if the page
doesn't already have the PG_mte_tagged flag on it.

mte_restore_tags() now doesn't set the flag, and returns whether the
page had tags, so arch_swap_restore_tags() also needs updating to
conditionally set the flag.

Signed-off-by: Steven Price's avatarSteven Price <steven.price@arm.com>
parent 58d166f6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment