From mboxrd@z Thu Jan 1 00:00:00 1970 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 D61A119F485; Tue, 27 Aug 2024 14:51:13 +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=1724770273; cv=none; b=GNwZEOvQwn+MIjg1m22ei2cWLSeMtTvbgAStgwvmYcK6jqvJ2Ey+ef94bLbXUm96Qc6tTdupD5WftNrXphwqjFRCdv2VK3oOvP3ikQYKxsi9621XDylUyhYF36N3WxkveuYXEmOPyuKsw9k1MuItjJkQhCcjIwwhyZ1RWC3ZLdE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724770273; c=relaxed/simple; bh=tbfb1t2+ipqGqybOvLNfaLA2ixPhi3mCchvapvipDDE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tR8O0ns+x5nY4LO6YqRzy2LjkYAgpwu/8nDvOw1QRMKQNsuPh7FV98Rwj9JfwfI2y4759zXdaBqJtNFyVuucAIdb12KbHwEAm5ngMKkh1uhV4fLQ12Oo5oqwUonk+gubPo2YMQ/IlQXBQi5DW/aXWynG9iaTY4OEB+2IR6lC6nU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=shreODB9; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="shreODB9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D715C4DDFF; Tue, 27 Aug 2024 14:51:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1724770273; bh=tbfb1t2+ipqGqybOvLNfaLA2ixPhi3mCchvapvipDDE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=shreODB9lcY/KYr9fKdpzO8czLMGJ0jlGIWeyQ56oBndExo0JsGrfRtF+zndmygeA iSf0B2KVrNtnEf41dvN3gnHv/k/f+g63h92LiP7AaI9dGw5xk3qxV8SbDBBywwzPg5 1SJP1ufVmNdtZq0BHTbm9oalEkG3V28vYf8UJ0Gc= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Helge Deller , Sasha Levin Subject: [PATCH 6.6 179/341] parisc: Use irq_enter_rcu() to fix warning at kernel/context_tracking.c:367 Date: Tue, 27 Aug 2024 16:36:50 +0200 Message-ID: <20240827143850.224947975@linuxfoundation.org> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240827143843.399359062@linuxfoundation.org> References: <20240827143843.399359062@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Helge Deller [ Upstream commit 73cb4a2d8d7e0259f94046116727084f21e4599f ] Use irq*_rcu() functions to fix this kernel warning: WARNING: CPU: 0 PID: 0 at kernel/context_tracking.c:367 ct_irq_enter+0xa0/0xd0 Modules linked in: CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.7.0-rc3-64bit+ #1037 Hardware name: 9000/785/C3700 IASQ: 0000000000000000 0000000000000000 IAOQ: 00000000412cd758 00000000412cd75c IIR: 03ffe01f ISR: 0000000000000000 IOR: 0000000043c20c20 CPU: 0 CR30: 0000000041caa000 CR31: 0000000000000000 ORIG_R28: 0000000000000005 IAOQ[0]: ct_irq_enter+0xa0/0xd0 IAOQ[1]: ct_irq_enter+0xa4/0xd0 RP(r2): irq_enter+0x34/0x68 Backtrace: [<000000004034a3ec>] irq_enter+0x34/0x68 [<000000004030dc48>] do_cpu_irq_mask+0xc0/0x450 [<0000000040303070>] intr_return+0x0/0xc Signed-off-by: Helge Deller Signed-off-by: Sasha Levin --- arch/parisc/kernel/irq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/parisc/kernel/irq.c b/arch/parisc/kernel/irq.c index 2f81bfd4f15e1..dff66be65d290 100644 --- a/arch/parisc/kernel/irq.c +++ b/arch/parisc/kernel/irq.c @@ -498,7 +498,7 @@ asmlinkage void do_cpu_irq_mask(struct pt_regs *regs) old_regs = set_irq_regs(regs); local_irq_disable(); - irq_enter(); + irq_enter_rcu(); eirr_val = mfctl(23) & cpu_eiem & per_cpu(local_ack_eiem, cpu); if (!eirr_val) @@ -533,7 +533,7 @@ asmlinkage void do_cpu_irq_mask(struct pt_regs *regs) #endif /* CONFIG_IRQSTACKS */ out: - irq_exit(); + irq_exit_rcu(); set_irq_regs(old_regs); return; -- 2.43.0