Re: [PATCH v2] arm64: mte: Move MTE TCF0 check in entry-common

2021-04-09 Thread kernel test robot
Hi Vincenzo, I love your patch! Yet something to improve: [auto build test ERROR on arm/for-next] [also build test ERROR on soc/for-next kvmarm/next linus/master v5.12-rc6 next-20210408] [cannot apply to arm64/for-next/core xlnx/master] [If your patch is applied to the wrong git tree, kindly dro

[PATCH v2] arm64: mte: Move MTE TCF0 check in entry-common

2021-04-09 Thread Vincenzo Frascino
The check_mte_async_tcf macro sets the TIF flag non-atomically. This can race with another CPU doing a set_tsk_thread_flag() and all the other flags can be lost in the process. Move the tcf0 check to enter_from_user_mode() and clear tcf0 in exit_to_user_mode() to address the problem. Note: Moving