[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250924080119.122507632@infradead.org>
Date: Wed, 24 Sep 2025 09:59:55 +0200
From: Peter Zijlstra <peterz@...radead.org>
To: jpoimboe@...nel.org,
rostedt@...nel.org
Cc: linux-kernel@...r.kernel.org,
peterz@...radead.org
Subject: [PATCH 07/12] unwind: Clarify calling context
The get_cookie() function hard relies on IRQs being disabled, but this
isn't immediately obvious when reading the function.
Signed-off-by: Peter Zijlstra (Intel) <peterz@...radead.org>
---
kernel/unwind/deferred.c | 2 ++
1 file changed, 2 insertions(+)
--- a/kernel/unwind/deferred.c
+++ b/kernel/unwind/deferred.c
@@ -79,6 +79,8 @@ static u64 get_cookie(struct unwind_task
{
u32 cnt = 1;
+ lockdep_assert_irqs_disabled();
+
if (info->id.cpu)
return info->id.id;
Powered by blists - more mailing lists