lkml.org 
[lkml]   [2022]   [Aug]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/2 v2] lib/vsprintf: Remove static_branch_likely() from __ptr_to_hashval().
Also,

On Fri, Jul 29, 2022 at 05:47:15PM +0200, Sebastian Andrzej Siewior wrote:
> if (!filled) {
> get_random_bytes(&ptr_key, sizeof(ptr_key));
> - queue_work(system_unbound_wq, &enable_ptr_key_work);
> + /* Pairs with smp_rmb() before reading ptr_key. */
> + smp_wmb();
> + WRITE_ONCE(filled_random_ptr_key, true);
> filled = true;

Also, should `filled` be changed there?

Jason

\
 
 \ /
  Last update: 2022-08-01 14:35    [W:0.094 / U:1.308 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site