Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp214911lqp; Tue, 11 Jun 2024 02:09:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWfE3rFJCZ/xPZpky+fcw8ipTOv1503gxyGl50eecmVeY6LhL94kUg9FNVlSbGKMHAuM2QGUtyQUD6mSqeh41Gngv1oApNuI1EzigIJNw== X-Google-Smtp-Source: AGHT+IH3DoY5+K8caakFnTc4uygCn5mrq8USv3xzOb9P9yN5B7cclw0jasYir6Oc5wvg8/k27wRj X-Received: by 2002:a50:9eef:0:b0:578:56e1:7ba3 with SMTP id 4fb4d7f45d1cf-57c509a5fb8mr6949790a12.38.1718096962325; Tue, 11 Jun 2024 02:09:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718096962; cv=pass; d=google.com; s=arc-20160816; b=wGgP850E8A7TWxXZ6b/JQX0Rx/z7hv74tb90mMx7cv0bLjzjFO0RAC76IUUh6zSPcB qf1PivVYJYYW5oU8IBN/4c7IPolNGpNDNLooVU4CEot7OthzD/Q6eum6sZG8l57PrTqx 69UEFNCgkIexVxqP9N9CWGe81R2kojTp0uD/KnBtb+Vb3nLBG/lgSEYa2Ii1mJ/YR61w 37KINL83jS8GIUM7guwOzTIwkZAJLgeQ0HfwysmIxk8LHehybVEjcIiKHhNcvt1bBqrU Old59ZtIW5UP5Eq81tdOpvwOhZu1R5FS7YN1zPucpBEf3b6XEYogxVAlxZ1xsr2vsP1r GyaQ== 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=1BqIFKAMC8NOyd5nZ8Vf2JEti94TPh2JGU+rNVpSZds=; fh=rJ4wDx8t0kvKpF/5bOhqZc4l5Hl4BdiRaigwOzMcF+I=; b=P1bXPX1cGKvApVh683uHar0FX3C2iFSXirn5xRlqAsQAnWFOeMcWUUfAXJp91O13Jo Cvf/D/i/kKcVkBTg/Vf9nVSx3DYBoNbDVYVn6bc267FqPLLcszSt123NzmnLsqllo5Dh QogHbzOtA/+deQkUaE2SLkY4JKqNbDLV2deDxV4Fe7AQ6IILpj+FPDPTocVQYWvsUxZe SVAROU8nnXPMyWq+3nFkbNFmsaTF85FdbMFrSnnQhiTMPRbHDx78ZArhO4ZospzO0pNS 44XebeoD2MdyYO0v6LgjLlkxHCKXQ1/lciTmATJlX/uIuwKIU5dDADfgTwXVmPmf9GW/ KvSA==; 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-209544-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209544-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57c7eddef54si2302274a12.44.2024.06.11.02.09.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 02:09:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209544-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; 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-209544-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209544-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 am.mirrors.kernel.org (Postfix) with ESMTPS id A89471F259D9 for ; Tue, 11 Jun 2024 09:09:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CD9D5176ACD; Tue, 11 Jun 2024 09:09:01 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9A097176AC3; Tue, 11 Jun 2024 09:08:59 +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=1718096941; cv=none; b=Tj8CCmXXvACvwSOExFvvlrHAhCUuhQGucZnUn31oA3smOqwuDGxuPWmJYlWVfu3oCqrq9Pctu6BGsijyZnqMgKyEkmW5NwwHFyg1Xm3yCXAaNHd+N1qinyeDVg8XH0ULkYUKVpE3nTe8UREKbEfupCGUMBP4zUg0hFACAw2zICk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718096941; c=relaxed/simple; bh=gMGIbcYSqSHoE5CvRf7XjU36fpK+8Zecb6Mw8n0emOQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=VJt8dpa0gd+n2Hwmrkxl87OXIp8qj/0CGDC27C+9+//3lfjZurG4DaZikDFme1R14uwGR8AEvogFlb6JepHZmmnDyM6CNWqxcWRZrw6rZO6i2jTWTJvJ/7QK3OKYidv+uGIIXYaHF3zMC7ltaqSVJ/5l50PYasPaD1gmfKjgI5Y= 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 3E50B152B; Tue, 11 Jun 2024 02:09:23 -0700 (PDT) Received: from e116581.blr.arm.com (e116581.arm.com [10.162.41.16]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 2171C3F5A1; Tue, 11 Jun 2024 02:08:53 -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, aneesh.kumar@kernel.org, linux-kernel@vger.kernel.org, Dev Jain Subject: [PATCH v2 1/2] signal.7: Clearly describe ucontext kernel dump to userspace Date: Tue, 11 Jun 2024 14:38:22 +0530 Message-Id: <20240611090823.820724-2-dev.jain@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240611090823.820724-1-dev.jain@arm.com> References: <20240611090823.820724-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 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/man/man7/signal.7 b/man/man7/signal.7 index 4ba5306c8..7d22a7cfe 100644 --- a/man/man7/signal.7 +++ b/man/man7/signal.7 @@ -282,7 +282,13 @@ 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. +This object reflects the state at which the signal is delivered, rather +than in the handler; +for example, the mask of blocked signals stored in this object will not +contain the mask of new signals blocked through +.BR sigaction(2)). + .IP (1.4) Any signals specified in .I act\->sa_mask -- 2.34.1