From: Peter Zijlstra Date: Mon, 22 Sep 2025 13:49:19 +0000 (+0200) Subject: unwind: Clarify calling context X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1e74829f36b5db19afc3d17f0a3750e9573710ae;p=thirdparty%2Flinux.git 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) Acked-by: Steven Rostedt (Google) Link: https://patch.msgid.link/20250924080119.122507632@infradead.org --- diff --git a/kernel/unwind/deferred.c b/kernel/unwind/deferred.c index d2cd3a7fd286d..6395192d7225e 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;