lkml.org 
[lkml]   [2024]   [May]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] x86/efi: mark racy access on efi_rts_work.efi_rts_id
Date
> Why is this the only reference that needs an annotation?

In the function efi_runtime_services_init(), the if check on
efi_rts_work.efi_rts_id in line 728 uses READ_ONCE(), and the comment
explains that this is to reduce reports from KTSAN.

I propose that the check in line 754 undergoes a similar treatment for
consistency and to potentially reduce sanitizer reports.

Thank you.


\
 
 \ /
  Last update: 2024-05-01 05:00    [W:0.055 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site