diff options
author | Reiji Watanabe <[email protected]> | 2021-12-05 16:47:36 -0800 |
---|---|---|
committer | Catalin Marinas <[email protected]> | 2021-12-06 17:02:10 +0000 |
commit | 685e2564daa1493053fcd7f1dbed38b35ee2f3cb (patch) | |
tree | f7409f8ee9f4ac811079d1f671cce80cf530d0e8 /drivers/usb/cdns3/cdns3-imx.c | |
parent | f0616abd4e67143b45b04b565839148458857347 (diff) |
arm64: mte: DC {GVA,GZVA} shouldn't be used when DCZID_EL0.DZP == 1
Currently, mte_set_mem_tag_range() and mte_zero_clear_page_tags() use
DC {GVA,GZVA} unconditionally. But, they should make sure that
DCZID_EL0.DZP, which indicates whether or not use of those instructions
is prohibited, is zero when using those instructions.
Use ST{G,ZG,Z2G} instead when DCZID_EL0.DZP == 1.
Fixes: 013bb59dbb7c ("arm64: mte: handle tags zeroing at page allocation time")
Fixes: 3d0cca0b02ac ("kasan: speed up mte_set_mem_tag_range")
Signed-off-by: Reiji Watanabe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions