summaryrefslogtreecommitdiff
path: root/kernel/unwind/deferred.c
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2025-09-22 15:49:19 +0200
committerPeter Zijlstra <peterz@infradead.org>2025-10-29 10:29:56 +0100
commit1e74829f36b5db19afc3d17f0a3750e9573710ae (patch)
treea9736c13892180c77f95afccdd340a021c5a407a /kernel/unwind/deferred.c
parenta38a64712e740d6e9df6940a997a47f5fab7efa2 (diff)
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@infradead.org> Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org> Link: https://patch.msgid.link/20250924080119.122507632@infradead.org
Diffstat (limited to 'kernel/unwind/deferred.c')
-rw-r--r--kernel/unwind/deferred.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/unwind/deferred.c b/kernel/unwind/deferred.c
index d2cd3a7fd286..6395192d7225 100644
--- a/kernel/unwind/deferred.c
+++ b/kernel/unwind/deferred.c
@@ -79,6 +79,8 @@ static u64 get_cookie(struct unwind_task_info *info)
{
u32 cnt = 1;
+ lockdep_assert_irqs_disabled();
+
if (info->id.cpu)
return info->id.id;