Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp1002308lqt; Fri, 7 Jun 2024 05:32:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXk503W18bgcC1WwelFdjwxT+1/JduUiEH/ykOXzqyeq00vM9ELF049wsY6lHnsRaUtUQZFyh5JeGYN9tbnr7hYGvFRuXuDmMIyw1CmJg== X-Google-Smtp-Source: AGHT+IFfo5hh0E1r/puV7hWpbnqn+WRpnNgGEbqLhOYpu9GGYvrEpWpM6okBctFCMUaGn9CvYSRU X-Received: by 2002:a05:622a:11d1:b0:437:ba24:2dd0 with SMTP id d75a77b69052e-44041c5d955mr27244731cf.31.1717763551688; Fri, 07 Jun 2024 05:32:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717763551; cv=pass; d=google.com; s=arc-20160816; b=Rvfr1SwlVpb8aI49X9jST9+bqjvJZ/Mn8e/AMCnhjjXSRyUfzWU+2le2uBgjuizGVl 7uQsqDXH7260D4ibH+zecp91kvBv02KJFlm/zDZyQxoDkJrpjiIjtxZwoMfNaEtnD36n TrEvjNXqS8uk5lJEy+06NmfjdravJiazOlqclLDu2WFdYoii8q04AH9slPLrZpSGsiCK LG7xQW0rtX8bKkCXDL1PWfetSJf00P1v260z82DiSCEq+D++UDGe6DuNB7KUzqZogZAz K4OEAdHy2sEOymOQpWwXXgWlv5FIOXMPHjA2azu/KYoheEPo69J39ku7nuWHarHCTGHe sAow== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=26wMXHdkJ2MvT5dE7ZTEZIB7pDf0hsOjs4AQtqBIZMY=; fh=7hTsMhK9PYWl6wGtKSGH0vASBx+vm87tFMcx/AmxrgQ=; b=IF3vRG2nRS8xtrqWkziq0uSIX5HDriMJ8H87xYPIZV9VN68usojTwfb1O3zkzTrie0 Fm5LOzf+aY2/IOTv23pLswXPOWIn4Ar3manvR6Q1AKT2Pp96E+R7T6WoEuYIS81xp5BB jp1rnovSRudhoUVBYt7wfjkARv843vG8ApkQfKavRqdWZETLzKnaos8qWl3TO8LM7VAh ktx1T4kBjyVnRztOdZVoE0keaSqiXqVU7p3lM5dr0aa1HMv63/h42llsw6j+5fESsZOz pozxX1Kv/23zmEU0V+YLCC5/jIO42rsseZWRSWaTwRF9xtF0n7SZRWFQQB6SB1c/AlfP IYeQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-206051-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206051-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-44038b79536si39164841cf.705.2024.06.07.05.32.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 05:32:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-206051-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-206051-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206051-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 66CBB1C20D02 for ; Fri, 7 Jun 2024 12:32:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CA4631946DE; Fri, 7 Jun 2024 12:31:44 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D87841922F2; Fri, 7 Jun 2024 12:31:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717763504; cv=none; b=ZgO7DxouoTlUzn0Y7cuESNc+/tGiVTadxHhPq1A5Kab8a8sIyLQFmsFkUKFx72gLD6t5oOnICHn/BDqZhf18lYssCUFQCeZa5lBJSk9uuav9MFm94OjlpznVfZjyQeQH9iOXtZm7eH9F14SarWyY4S1vSIr2SWdb5xePg+w7NFg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717763504; c=relaxed/simple; bh=uvn1dH5DVwalWgzz8CNEqutoNR+0pMPyZqiaBbrRUi4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=md5QTUhrTadLoJCea+jLtedVIhvpLTqljF45iuNsC4e6nKByeIEpxjrjkYLqFWlnsPkWsj/VtKVvSMXETNoPqgeS/E3uo9aBAGPfQz8LMoUSiLrgbEXZVtX3jOgBNzlzp76NicA1MCyQfXC51IpOskjj0QKLln931RhH9JSwxXw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9071513D5; Fri, 7 Jun 2024 05:32:06 -0700 (PDT) Received: from e116581.blr.arm.com (e116581.arm.com [10.162.42.8]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 312203F64C; Fri, 7 Jun 2024 05:31:37 -0700 (PDT) From: Dev Jain To: alx@kernel.org, linux-man@vger.kernel.org Cc: mingo@kernel.org, tglx@linutronix.de, mark.rutland@arm.com, ryan.roberts@arm.com, broonie@kernel.org, suzuki.poulose@arm.com, Anshuman.Khandual@arm.com, DeepakKumar.Mishra@arm.com, AneeshKumar.KizhakeVeetil@arm.com, linux-kernel@vger.kernel.org, Dev Jain Subject: [PATCH 1/2] signal.7: Clearly describe ucontext kernel dump to userspace Date: Fri, 7 Jun 2024 18:01:18 +0530 Message-Id: <20240607123119.769044-2-dev.jain@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240607123119.769044-1-dev.jain@arm.com> References: <20240607123119.769044-1-dev.jain@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The set of blocked signals is updated from struct sigaction after the kernel dumps ucontext. Mention this to avoid misunderstanding. Signed-off-by: Dev Jain --- man/man7/signal.7 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/man/man7/signal.7 b/man/man7/signal.7 index 4ba5306c8..17e75c86d 100644 --- a/man/man7/signal.7 +++ b/man/man7/signal.7 @@ -282,7 +282,15 @@ the thread's alternate signal stack settings. .B SA_SIGINFO flag, then the above information is accessible via the .I ucontext_t -object that is pointed to by the third argument of the signal handler.) +object that is pointed to by the third argument of the signal handler. +We emphasize on the fact that this object contains context information +of the thread, present before jumping into the handler; the set of +blocked signals for the current thread would be updated from struct +sigaction only after +.I ucontext_t +has been dumped to userspace. This semantically makes sense since the +context for which the signals have been blocked, remains only during +execution of the handler.) .IP (1.4) Any signals specified in .I act\->sa_mask -- 2.34.1