Received: by 2002:ab2:715a:0:b0:1fd:c064:50c with SMTP id l26csp62260lqm; Mon, 10 Jun 2024 12:42:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVBJwulBguA4vse3WiYo5DgI08apoAP/Jm87et0YdfUpeT/NJSiOkxqPZlS4eCtqNzpXFMtpEldp3gb51+LIx3BxQ1mkzFtfGfesK5lVA== X-Google-Smtp-Source: AGHT+IFJtRBOJEELc0ThTCZoyTrbscZ+W/Y/xAaj1UG/XBQOitJ92eEYb7V5mUg9ZWpkw7L/ltX1 X-Received: by 2002:a05:6a00:3d07:b0:704:21e8:73c3 with SMTP id d2e1a72fcca58-70421e87708mr8709269b3a.22.1718048539837; Mon, 10 Jun 2024 12:42:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718048539; cv=pass; d=google.com; s=arc-20160816; b=ysKoaBTRLqE1OMTvbpOTazcenwB6ZJNAwBMT5pjv2y4PxmBHhlGE5n0neg0xjUE+KZ IsPBSCm5WV0tfPLR0kkh4esDJV78NbcuNd3OnESfLaKMXzXTJJQzrRrsWsuJUWCyN/fE smMOwvp1G+EOCO5mmZaPRFp82a7jREXnL5twMNUCbtRy3XdNwiea/gP/m8FncpaLx2z+ LtScDBWP0WCCCbCl2t5pEeTJdY43U4TVE9eajzY3udRLlyiP4BPxWm3pDUQEG8eSL3zr E65heSLDzHauLf3QmElgDwmLSdAzff7V9SvGs7GoPPSp//vUuN+0jeZ4uCjaBQ7lTKUK ravg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=L1HTw9G/UUErCscSCP2Sqxf7LcEzTZTC+MZ93k6hHJ4=; fh=mkXlDUdsekbiq7zBnqMC+St5bAKbX33F9H95AP41bKQ=; b=w3iD+eFjk+bDcjZABduZu+1j/J6aEQp6HYYS1Zs5X4wup6edX1kwlGum1wd0XP0Vbi m/1/kh4G3kXuYLbRkCvKh0RGYkIQa1nT2wwWsopbquX0F2391YGqmbld3trY4n1+8IWk Mp458kYcP+iZ8WrXLE+PlX24gMUfLEXcLQ345/4yQVkFIXyZM4ysqS6rha+DkLPkxL5T B/cm+XScUXrAtAZd+4HyZLHKyjLjenmzsS6rINQnNmsaF9BHJjZiXvEzLHxE+pGRNOwb P8QYRY9EwUfr9R/X2aajjaAJizDsJyzHnagWQtDs9pod1Su+WQvqI14czk3SaS6n3QI8 IFIA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kHo6SH5m; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-208808-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208808-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-7059b8f689dsi1720982b3a.184.2024.06.10.12.42.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 12:42:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208808-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kHo6SH5m; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-208808-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208808-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 5D5A8283229 for ; Mon, 10 Jun 2024 19:42:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AFFE714E2DE; Mon, 10 Jun 2024 19:42:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="kHo6SH5m" 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 D232A1EB5B; Mon, 10 Jun 2024 19:42:11 +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=1718048531; cv=none; b=rlPn75X4lLQnkJeMo0Ly0usCMz2cqMk8V45NJS+g6+rvhsphnvxH97X+h1S+dn93w9RvAjM2g8EuSEzVMpEiQ80tCplBE1C6xmgT32me4vWzNCebsU1WdGdlb1H6br6p/sZTWWOpm4cvegOB+IddadM/Dma2pwLhmVSHIR/tgX8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718048531; c=relaxed/simple; bh=EJBht4tMP2l8jMFa7LTPLZQ4plnUvfp6wbmmf0/FaBA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ORW0McSDjLthL3bnBgbwTmTnMqTcEhHJFbxWxI4YeJb75BvVsQvC5tmMyZFmtPYNkvGXb6/HxShTYuSjdDhcNlfZ1bVN70U0gBYMWuGPF6tgqd0cCZ4mUCTj0ccoou4CUmZvl4y7EeS+NZ6CZ4xvnz98b9u3Rsm6fAaYzlYOB18= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kHo6SH5m; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E4F8AC2BBFC; Mon, 10 Jun 2024 19:42:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718048531; bh=EJBht4tMP2l8jMFa7LTPLZQ4plnUvfp6wbmmf0/FaBA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kHo6SH5m23ecwFHSYRtH8gixMm25xdiP7xhbwvjkmJ++k4X2NQZjzo13Lpa7RNmCT +yO35F+Nmh+aXkGSMGSsRWeYaKsWyMv1vln4eZSdJZXUqrjWxS8HTSh0O+WCIBPns5 hGp0VPI7m9xqPCKwLWRdRAaUlHE27ov0zmfb6Oo0tX96/5jedxKyBwZ8OuT+yqeRlm UAP4ImVI/c4uNoK8S33qlETnQEIPDA12zw/FBX240SiG1ngQoqY61EMNJCQcCeR0kV +WO/5SQSNVWw/eaiRP79KEPIhFmTyw02Xkzlnux7M5iYu9Wkx1wJ/jQBR6jII5ombr p/MKSSGZzL9Xw== Date: Mon, 10 Jun 2024 21:42:08 +0200 From: Frederic Weisbecker To: linux-kernel@vger.kernel.org Cc: linux-tip-commits@vger.kernel.org, Oleg Nesterov , Thomas Gleixner , stable@vger.kernel.org, x86@kernel.org Subject: Re: [tip: timers/urgent] tick/nohz_full: Don't abuse smp_call_function_single() in tick_setup_device() Message-ID: References: <20240528122019.GA28794@redhat.com> <171804398181.10875.7931386382573929520.tip-bot2@tip-bot2> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <171804398181.10875.7931386382573929520.tip-bot2@tip-bot2> Le Mon, Jun 10, 2024 at 06:26:21PM -0000, tip-bot2 for Oleg Nesterov a ?crit : > The following commit has been merged into the timers/urgent branch of tip: > > Commit-ID: 07c54cc5988f19c9642fd463c2dbdac7fc52f777 > Gitweb: https://git.kernel.org/tip/07c54cc5988f19c9642fd463c2dbdac7fc52f777 > Author: Oleg Nesterov > AuthorDate: Tue, 28 May 2024 14:20:19 +02:00 > Committer: Thomas Gleixner > CommitterDate: Mon, 10 Jun 2024 20:18:13 +02:00 > > tick/nohz_full: Don't abuse smp_call_function_single() in tick_setup_device() > > After the recent commit 5097cbcb38e6 ("sched/isolation: Prevent boot crash > when the boot CPU is nohz_full") the kernel no longer crashes, but there is > another problem. > > In this case tick_setup_device() calls tick_take_do_timer_from_boot() to > update tick_do_timer_cpu and this triggers the WARN_ON_ONCE(irqs_disabled) > in smp_call_function_single(). > > Kill tick_take_do_timer_from_boot() and just use WRITE_ONCE(), the new > comment explains why this is safe (thanks Thomas!). > > Fixes: 08ae95f4fd3b ("nohz_full: Allow the boot CPU to be nohz_full") > Signed-off-by: Oleg Nesterov > Signed-off-by: Thomas Gleixner > Cc: stable@vger.kernel.org > Link: https://lore.kernel.org/r/20240528122019.GA28794@redhat.com > Link: https://lore.kernel.org/all/20240522151742.GA10400@redhat.com I think we agreed on that version actually: https://lore.kernel.org/all/20240603153557.GA8311@redhat.com/ Thanks.