From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from 011.lax.mailroute.net (011.lax.mailroute.net [199.89.1.14]) (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 7F0112FFDEB for ; Wed, 25 Feb 2026 18:33:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=199.89.1.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772044394; cv=none; b=L32trfTqsYl68XUzjELX8jo7vo/h3d1h7YR7AHriTTOd7enzwQxEEPP5djwbFLJ5ZRWfH355fEO7XK0JNSdtaZmLkwCJcBuDdPnd/5GWIhXObIDnyu4LR8RmMxLcTVcsJ519RuRrLF0L3SgVVeguE/9xjLGxiBA11lqaPtxjkoo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772044394; c=relaxed/simple; bh=6f9GfGJ2Gzu7ZYLkSWFpmuY/tkL1/aIu9THuv+5mV/w=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=O0mfNDeei8GwUspQGrZqRbW2t1ZujR+4HpITuWCrT+8/iGip2NApeDHIin5SfLCPp2tgGlIPlmhhuKrBNDEuugdyykhf1gH3+WxGyklrorMMM5yY9ljN1KiZ7ORJ0XuQbLLyXxIV4P2ivbH1z2SAqJ0Rkx4srovoxUiqzqYwz18= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=acm.org; spf=pass smtp.mailfrom=acm.org; dkim=pass (2048-bit key) header.d=acm.org header.i=@acm.org header.b=qrdPQNd/; arc=none smtp.client-ip=199.89.1.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=acm.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=acm.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=acm.org header.i=@acm.org header.b="qrdPQNd/" Received: from localhost (localhost [127.0.0.1]) by 011.lax.mailroute.net (Postfix) with ESMTP id 4fLjrl3N3pz1XM0nj; Wed, 25 Feb 2026 18:33:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=acm.org; h= content-transfer-encoding:mime-version:references:in-reply-to :x-mailer:message-id:date:date:subject:subject:from:from :received:received; s=mr01; t=1772044388; x=1774636389; bh=qTAu5 42T8RbwwcrRZ0FBJa2c/ejJrRXMOJ9faNFLEC0=; b=qrdPQNd/gWM31fN+9XXvb el0jjuZYX+oUVBEo1xjJPVMaKZXHlGuwIq4EEuRwHR6kYCZMn0zFnrYa3O8yXY0/ L0WDn+UGajyatTrJyekxMoboPLGstg+jv1K2uJXYACPOZ+/YLr8yQLIxYN4vVpUX B01FSxXpkn4h1Spsoy1xBPf/k7JBXi1JKOW91ihF215b9AQR6fbFohyJK1FhyOHa E++UZVxifAkkLdjB1NeIFNXErRQAIlVbJa8qVyR79TMlbtmF4p0U1XuSh9ztfDon 4Zj7Cq+ATHY13RB1rLENoGjooRHxJb+cwWva9xXVDdqplB5qRhFK97J3BpOPkzZt w== X-Virus-Scanned: by MailRoute Received: from 011.lax.mailroute.net ([127.0.0.1]) by localhost (011.lax [127.0.0.1]) (mroute_mailscanner, port 10029) with LMTP id Gj1AnTdlv0pm; Wed, 25 Feb 2026 18:33:08 +0000 (UTC) Received: from bvanassche.mtv.corp.google.com (unknown [104.135.180.219]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: bvanassche@acm.org) by 011.lax.mailroute.net (Postfix) with ESMTPSA id 4fLjrd6hvZz1XM6J6; Wed, 25 Feb 2026 18:33:05 +0000 (UTC) From: Bart Van Assche To: Peter Zijlstra Cc: Ingo Molnar , Will Deacon , Boqun Feng , Waiman Long , linux-kernel@vger.kernel.org, Marco Elver , Christoph Hellwig , Steven Rostedt , Nick Desaulniers , Nathan Chancellor , Kees Cook , Jann Horn , Bart Van Assche Subject: [PATCH v2 2/4] signal: Fix the lock_task_sighand() annotation Date: Wed, 25 Feb 2026 10:32:42 -0800 Message-ID: <20260225183244.4035378-3-bvanassche@acm.org> X-Mailer: git-send-email 2.53.0.414.gf7e9f6c205-goog In-Reply-To: <20260225183244.4035378-1-bvanassche@acm.org> References: <20260225183244.4035378-1-bvanassche@acm.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable lock_task_sighand() may return NULL. Make this clear in its lock context annotation. Fixes: 04e49d926f43 ("sched: Enable context analysis for core.c and fair.= c") Signed-off-by: Bart Van Assche --- include/linux/sched/signal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/sched/signal.h b/include/linux/sched/signal.h index a22248aebcf9..a4835a7de07e 100644 --- a/include/linux/sched/signal.h +++ b/include/linux/sched/signal.h @@ -739,7 +739,7 @@ static inline int thread_group_empty(struct task_stru= ct *p) =20 extern struct sighand_struct *lock_task_sighand(struct task_struct *task= , unsigned long *flags) - __acquires(&task->sighand->siglock); + __cond_acquires(nonnull, &task->sighand->siglock); =20 static inline void unlock_task_sighand(struct task_struct *task, unsigned long *flags)