Files
android_kernel_xiaomi_sm8450/arch/x86/kernel
Valentin Schneider 9554af9801 x86/resctrl: Apply READ_ONCE/WRITE_ONCE to task_struct.{rmid,closid}
commit 6d3b47ddffed70006cf4ba360eef61e9ce097d8f upstream.

A CPU's current task can have its {closid, rmid} fields read locally
while they are being concurrently written to from another CPU.
This can happen anytime __resctrl_sched_in() races with either
__rdtgroup_move_task() or rdt_move_group_tasks().

Prevent load / store tearing for those accesses by giving them the
READ_ONCE() / WRITE_ONCE() treatment.

Signed-off-by: Valentin Schneider <valentin.schneider@arm.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/9921fda88ad81afb9885b517fbe864a2bc7c35a9.1608243147.git.reinette.chatre@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-03-11 16:40:19 +01:00
..
2023-02-01 08:23:19 +01:00
2022-07-21 21:20:17 +02:00
2022-07-25 11:26:45 +02:00
2022-07-25 11:26:36 +02:00
2023-03-11 16:39:23 +01:00
2020-06-02 10:59:12 -07:00
2020-08-20 13:12:58 +02:00
2020-07-27 14:31:07 -04:00
2020-07-27 14:31:07 -04:00
2022-07-25 11:26:40 +02:00