From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 61D40C77B7C for ; Tue, 9 May 2023 11:04:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235401AbjEILEf (ORCPT ); Tue, 9 May 2023 07:04:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234798AbjEILE2 (ORCPT ); Tue, 9 May 2023 07:04:28 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6792B421F for ; Tue, 9 May 2023 04:04:27 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id EE1B462D35 for ; Tue, 9 May 2023 11:04:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E1290C433D2; Tue, 9 May 2023 11:04:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683630266; bh=tCwZ6+qIZG1gjhd8Pl4yTC3xJMpCK82VwNlmmRtXi7c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bvYJ3YGeRdbRnB8fqOYN0OvcrU2XThCr43HctvqjmFBStID0zuGkzcNUaBvlPNDUZ yuOpTLQw6NsBExpB/CvxfBzyj1rX3MUxf2TYJRug9YfNHarsB4lEu0im6fnxSzjRbq AMmzojvgdhAp6XZFp1qXCG8baXL0LqIA63A3JD1dLrRGPkHmcSyNTunT5Ip5z5MG0C C6/KCf4JGcgE46lEnXyr28l4wb3FegEcpK4GGwO+x6bGKrsyMHpucpb08hmAjzFZxC aa1Y1L+kgDCtP8lFlw3/31MsuLxN8nf1efTw5N1IEmX8gK6Qvsl1/uCI/igstxvTmy A1FuFh91k0zNw== Date: Tue, 9 May 2023 13:04:23 +0200 From: Frederic Weisbecker To: Thomas Gleixner Cc: LKML , Anna-Maria Behnsen , Peter Zijlstra , Sebastian Siewior , syzbot+5c54bd3eb218bb595aa9@syzkaller.appspotmail.com, Dmitry Vyukov , Michael Kerrisk Subject: Re: [patch 06/20] posix-timers: Annotate concurrent access to k_itimer::it_signal Message-ID: References: <20230425181827.219128101@linutronix.de> <20230425183313.143596887@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230425183313.143596887@linutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 25, 2023 at 08:49:05PM +0200, Thomas Gleixner wrote: > k_itimer::it_signal is read lockless in the RCU protected hash lookup, but > it can be written concurrently in the timer_create() and timer_delete() > path. Annotate these places with READ_ONCE() and WRITE_ONCE() > > Signed-off-by: Thomas Gleixner Reviewed-by: Frederic Weisbecker