From nobody Mon Nov 25 19:52:56 2024 Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D07351B0F22 for ; Fri, 25 Oct 2024 07:06:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729840011; cv=none; b=HjJ4p1qN1wtx0VHW8qek+TRXhnQDJLGfD2l8mSUexBBeu3o3IikA6oghqyTKh/fV4ls0fQ+yMwi7VI/T4nVgY1oQmS6+II9WVORetP4X2PMkTc61N6kNlMuuy5QhdrlRTk/esl3l5pPKKvyUbaadrQEfiFipY/P5pGUCs3prhxw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729840011; c=relaxed/simple; bh=rkQE7YIpEQbUrEPfHWGa3mK7WoBXUnnaqE0WUW6yzPo=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=kY54ezCc2/cvctAHOWo6RdTGW8vlxyVvzX/TSsQd1CkydcJ62myq581Belc7NjDvVW6DdiQrJ95w+h/ExTPdW83AgsXTnGd9eD1WugdvV5JN8Jx30mAnia3FKqGitHqXpAYCcQLc1iW2px/iCojIKu7n054nPjKFPsCRloDSR+A= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=IXhttkxu; arc=none smtp.client-ip=209.85.128.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="IXhttkxu" Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-4314c4cb752so17350425e9.2 for ; Fri, 25 Oct 2024 00:06:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1729840008; x=1730444808; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=nIsqbAvxya9NETYgH6mSG74loRrqRLi0pQc/bZmvIDA=; b=IXhttkxul7XVo2rO8BjBmrq8qXNTxWajrr5BUT7qCtxzd7VjDp6LztsYukorOKr+KI T3KktEDCecf/soOzkpRkazbp6En5Gu3Ke+fU6+sRhrM4hBK3SME/gY3Isy/WwAdRvqjY QmGXnnK5OuNSpYPvFbeF3rrFMlINShqECQG80neIrN/Hh3vjbFcGC+XSQW7vdti3twcg RNyE53UdTRjiU69Q4Q9BjPIne7WrfvENMv4G/hHZb7D5y9iFeaxJlQ8Qi0t7V+ttoIng ziWZPMRe8jSAR29e+aYDtgETDptXhTjuAUHKZOXN+/hwZF6o3SpiE8s6guuwK3o/Ashw kcKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729840008; x=1730444808; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=nIsqbAvxya9NETYgH6mSG74loRrqRLi0pQc/bZmvIDA=; b=wz2IHyNj4EZ2HfYnEwwvWEu2Le7iLHseaDNRCLbfhHsggftF9zRffcK4pBFXOx8X2I F+XUbZRqUcqEu124IH9Hyb88cRYJPdrFqcoyjWC+04te85zBh4A00CF5qm0IUz1P6AnQ 2yHS491KaNj0W7T4bLZca4LEUIyLX+oKiE1QETYuYGmYuIQWGuRkblq35ZW++1hrje/P hHCBWEONoM8WJn7OhIkBEUVUAu6RfDGE435f+xag0qj6S5X23GxPvv5yi/QtsO7xMjXQ a5S0sAVKo+sVCAs+N1XbVBWJIkk2v2jjUWYS8OtuJ9B1PbiRch2nPlqHrW6aAKjOCCZ3 NOng== X-Forwarded-Encrypted: i=1; AJvYcCU+ybsDlgvGfIkcG0ULoZnvdUpAuPisTNBFlnCkP7dFoQBnNrzClQ5LthYb/NXoj9ewYCUlD1ka7JzCmcI=@vger.kernel.org X-Gm-Message-State: AOJu0YwONZ5V2vvHrPq7YF3LT8iYZfy4iw/fHkiZ+KB1BL4oiA6OAZxJ fWDWnznKlt2nHz7g77KZAsSsMKY/gcVVGya4J8T43gvNUMcJfogHNtc8CuECVGs= X-Google-Smtp-Source: AGHT+IFDxpEXBGCkffse7fkCSwVB2T/xPt5joroOVn7BJWc3mEQhF1RGjY6fvVprtingP48ezETMtQ== X-Received: by 2002:a05:600c:314d:b0:431:58bc:ad5e with SMTP id 5b1f17b1804b1-4318419a826mr71700265e9.28.1729840008063; Fri, 25 Oct 2024 00:06:48 -0700 (PDT) Received: from localhost ([196.207.164.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38058bb4724sm757578f8f.115.2024.10.25.00.06.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2024 00:06:47 -0700 (PDT) Date: Fri, 25 Oct 2024 10:06:43 +0300 From: Dan Carpenter To: "Paul E. McKenney" Cc: Frederic Weisbecker , Neeraj Upadhyay , Joel Fernandes , Josh Triplett , Boqun Feng , Uladzislau Rezki , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Zqiang , rcu@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [PATCH next] rcu: Unlock correctly in rcu_dump_cpu_stacks() Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline X-Mailer: git-send-email haha only kidding Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The unlock needs to be outside the } close curly braces for this if statement. Otherwise it leads to a deadlock. Fixes: 744e87210b1a ("rcu: Finer-grained grace-period-end checks in rcu_dum= p_cpu_stacks()") Signed-off-by: Dan Carpenter Reviewed-by: Paul E. McKenney --- kernel/rcu/tree_stall.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/rcu/tree_stall.h b/kernel/rcu/tree_stall.h index 8994391b95c7..925fcdad5dea 100644 --- a/kernel/rcu/tree_stall.h +++ b/kernel/rcu/tree_stall.h @@ -357,8 +357,8 @@ static void rcu_dump_cpu_stacks(unsigned long gp_seq) pr_err("Offline CPU %d blocking current GP.\n", cpu); else dump_cpu_task(cpu); - raw_spin_unlock_irqrestore_rcu_node(rnp, flags); } + raw_spin_unlock_irqrestore_rcu_node(rnp, flags); } printk_deferred_exit(); } --=20 2.45.2