Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp1019111lqo; Fri, 17 May 2024 08:23:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUcEufUDzfKODSxqy7FDtuurMkEG+FXpsPL1MEjyyzt/96//XINUfKN88Zk9rgT2qM+A914y1usbAwajaNkStdU7e3Y/8V5sVeCvgCHwg== X-Google-Smtp-Source: AGHT+IEyKtCctKNb/1ZJImo45LcnGLxT4PXguL+FGzQtvBKssiBS8hnZ2cuYz4XGjHNw2cDCX4uD X-Received: by 2002:a05:620a:108f:b0:792:bf65:8860 with SMTP id af79cd13be357-792c6ccb5a6mr3342842285a.25.1715959394994; Fri, 17 May 2024 08:23:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715959394; cv=pass; d=google.com; s=arc-20160816; b=N3lT3Ja3YFrObzqviNWAn+v6SQBbxKdaixu0T1KihrZK1hsigtUdbuhTnD4KWtqZjp mCvFP8KDD12VbRxw5n4MkufHVBYyn9NzCGPgByQkKMj2IzIBuPckKfkScJFYy6ftDH1o c136TSkbtYK+f+gAYRo1P3GS5DWV50ppxfChptNMwIEdehPd3nf64IktuaSwUc1KhrBw IGQhrsELKVk5ES7FPQsodj0xE2yk52lIJd3fKYroIrKaHeR1b2S8QbJ9v3VreRtB/Hg5 lEWPxx5WJgkUD5xkQ3OOEh7aLrZvYfpWH27sF+EeCWakqCU7CsVHHTJEKjFmQsRhgUNc NmQQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=xVFeKLAif7faaINhd3g90gbHJm4n6RoondSuME8GzHw=; fh=dKsmvODe4oPPXEkqFplZQt6HrErwRxGzxd0u3h799qg=; b=Xq4ZlLe6oNtoK3sVLN9yupOmj2VyfTW1uK2LgnQUuOm8BMewcXQFFnuu46QGjE4BIR aoiN7W6AhyLKDqzt2CwRbZ3IS4m5PNotOQhM8wuYVAsgnwDCdmoH7EdRFR8oej8PHHJD xZJtWjR6pA92YdDM3CzHX5gpxa4ZOOXoQAim5pLN90Y4Qb7FX+GUFr/coyO13fmCyRgk ETTxuTnavQEgiotcy3ebMQiQnp2aHiVIGnkPvvnuh+4ftdOJEh/rMA637g2V+yed45R8 yLmhTAXAAxWVjUHE2a83utVrnAPcoox7sBI8EB+tFmnyrA85eZAdSKEFO2aFD8omJnzX oZuQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DlwH7tJm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-182290-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182290-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-793161f6e95si151404285a.153.2024.05.17.08.23.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 08:23:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-182290-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DlwH7tJm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-182290-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182290-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B61B21C23082 for ; Fri, 17 May 2024 15:23:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0237C12D212; Fri, 17 May 2024 15:23:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DlwH7tJm" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 28C0412CDAA; Fri, 17 May 2024 15:23:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715959389; cv=none; b=DUGa+GwbIFn5nDa4jcwJbS4JYx5dnDkaSO8RRaQhUOLPskaiAN51EKnYEGFPWktDSqIPEOubDISXgGcAzOvZGqCpexMzqEfKReYNyl9vjlilFDUu2UPZ5h4iBkargegd1F1QRBzfLVETbv0+jkY2eU5Du4CYR9tAp8B6SQOrR/4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715959389; c=relaxed/simple; bh=3LP65tfSXoMyUd/3LOucjGN0buuuw/MegJ3O2QRF7nc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qQwaf9/C7Gg0SRUSPhRLBO2m2Brd21nVP7lpaaevJn7C1gin1a+ZSg5uPo/tj125PNJXyhgzvHHM6393JYnGw8xnXC6UzKt6vjYO+2aYIlI0mIyy+KmUpxCLJjXzmESDiV2X/ka9dc3lww+SaTEYtIfW2UxoM7fgcQB2u/aNvWo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DlwH7tJm; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 718B3C2BD10; Fri, 17 May 2024 15:23:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715959388; bh=3LP65tfSXoMyUd/3LOucjGN0buuuw/MegJ3O2QRF7nc=; h=From:To:Cc:Subject:Date:From; b=DlwH7tJmIMgbOdCT7J2XKc5EPn4qgk9AE/yLrO4HJ+PqM2n7IEt5zhRR5uiyE1FgZ X7FbVb9ZUq7TdePZlyVXFT7wA4lQEyILCAism81vaRsvAX09RoarvFqfRor93FUDLK dHz6SYMKpGt+J+fQ/0TDPim0FJzo1oSY4HyRyElJZA2w3Yvg9z61FVlsHCvtVt69zg ZQYMYhXDcSU+s9nFm7vwRiDHeFCeImNbZncuZZanZ6svBs+lKiwAnpKl8CT2I5+ukb VREu9qYerSxDcXTm136RXT6Gtxj+JtuAExQBBbjc/2SX4jFA+fEgROicfsJG9PGj2o Zeb/kMC8P6OKA== From: Frederic Weisbecker To: LKML Cc: Frederic Weisbecker , Boqun Feng , Joel Fernandes , Neeraj Upadhyay , Uladzislau Rezki , Zqiang , rcu , "Paul E . McKenney" , Peter Zijlstra Subject: [PATCH 0/2] rcu/tasks: Fix stale task snapshot Date: Fri, 17 May 2024 17:23:01 +0200 Message-ID: <20240517152303.19689-1-frederic@kernel.org> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Fix an issue on RCU task trace pre-gp that might collect stale current tasks on online CPUs, missing the read side of latest context switching tasks. Frederic Weisbecker (2): rcu/tasks: Fix stale task snaphot from TASK-TRACE rcu/tasks: Further comment ordering around current task snapshot on TASK-TRACE kernel/rcu/tasks.h | 17 +++++++++++++++++ kernel/sched/core.c | 14 +++++++------- 2 files changed, 24 insertions(+), 7 deletions(-) -- 2.44.0