Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp16506lqs; Thu, 13 Jun 2024 02:20:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXn/wXgXzMUqUd4fOIrKY6lx9ENGk7IW1sTGhfhXmv+i6xNKHWXHsMGxvB6JKYRONjvMWtj/lmpW01wyXLqF/lvU+u005sMXlNMqOzpxw== X-Google-Smtp-Source: AGHT+IEKrhsP20Ar+2qYYjal5fglXxQIl/zkkrpuKbl45BRXV8rJlJ0BU1EX/qv6A9gGqX7x0eFY X-Received: by 2002:a05:6358:5699:b0:19f:4a60:e6fc with SMTP id e5c5f4694b2df-19f69d9a4cbmr511101655d.25.1718270455335; Thu, 13 Jun 2024 02:20:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718270455; cv=pass; d=google.com; s=arc-20160816; b=hlSrywM4SUgrASsH4/HOoj4sHxWIq6bCmSDPTU2nuzKDH0TmDwWs/ikOxFWBLLmDhP QCSHPBIA+k+zJdT8oKN9EtHL6mPgnq2DnZ05cbFEV0zSUHPWFho9rj9Mp2ig0fsJ2H1G GR8I/aWxLu1OW+iUsNhtRDyGNt13tHgWmnJmzBwH4HvnZ5fW7QqIhc8trDsFu7LJ3f2i w3ma3TBx8hTksJMFSapAW+W0YtNmYb1ZmoqGBFH7GVAlOY6SRuv38RbIuQfycq+mBL73 Pd0QAOOkuNCTfkHjxpG7/CKifYbvVQMaVuAvm3ZEPkUgeC9pSJYS15UtYusZzjGe7jMh 7bKg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=7DWa4uKZBAMc6op6qMAtcTxtC4xSnLjhYVAt3XqSRZk=; fh=SAqdURHEwYH8Fo+cGDXO6w1CpLMrX5Lo05W2qUZ1NB0=; b=fO2M8cDBsb1F+kOgL6/aPoVA7XDAb4DVG7wSdpIqTucAzSaPmulbr/ykPHcgo5vTka sGSqHoRF6LtlYa3VedIAaU/AEiMHE/+2inEn9pM5FPW2npouR3YfpgBfSdb9wEo8aoN8 2muBDMnxoxZz77C2RGSA+kno6QIwlEKZ1TzfeoVHP8CPJpyKvjMr7JY5sK4ggkascxIi gy0H/an1YKt1n34uRRPm6GZy/BkvuE0lewC96Xu0zIFDXRyEHhkewpqe8IevXsoh3JVO tyJSKGTFwWXidPkIqp8g+0bRzN9PkOdU15U5219RgsvwtpNa6PnFHqXopMz2ig+1FBKc 0dxA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=o9FwA2BH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-212934-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212934-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6ff61c80c42si674332a12.9.2024.06.13.02.20.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 02:20:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212934-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=o9FwA2BH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-212934-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212934-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 3D783285DC1 for ; Thu, 13 Jun 2024 09:20:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A43FA13DDD5; Thu, 13 Jun 2024 09:19:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="o9FwA2BH" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 C845F29AB; Thu, 13 Jun 2024 09:19:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718270395; cv=none; b=rX9cy6dxGhh8+mjRUd20LcKUDrzoI13hXk0m/fo+lYiGJOuIJMI4o/fU9cQHJ3QYC/hGXYa3kfm+F2C2LZrXtqAxz9fLdyIAwh01l9eroXkcFv+NXgKU4ON7/9Z/Hy3SWwjzKo9cAwibk0CZQUj0Tmz55y05g1xUicO+ZXdMmHs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718270395; c=relaxed/simple; bh=8Xjm/uj9cAgItooDzOKc5oI7NbTaImBSC4XKzPzMWAY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kKraMzGHwnnoQhDIivBl8aLlE3v6d1A1UBKmXfw7pHTDlT+y30EaUYeKYdThFK7aZm1bAD3Q22OIIGsEHqs4uC4Ck0EntlkVgzEgrc7RvGWZPrWEi79hdUNlKHpv+I96xJoDDGquRk3Pc4YeF+F84/SPxdiSzK00uSDsBHKGBx8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=o9FwA2BH; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CBD1BC2BBFC; Thu, 13 Jun 2024 09:19:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718270395; bh=8Xjm/uj9cAgItooDzOKc5oI7NbTaImBSC4XKzPzMWAY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=o9FwA2BHwLLmZ/7ti+Yq9/n6AalsdGJWg2ax2sYZQGUCb/xn+XoMMbgd/9muEROwH TBOm3a3DZy98nUC8dHQryUBpQuXRWlkfbh85h49ZrvkJhyVzES0rAWS7jWpI9fLXzu r8uMvqN/BcwNslxHy9o5vDdojL9yZQXUcVqGhdBJCa7qWSmu/UTi6wE06Vy9VtriaK dRvGi+cYDdN4nqmFi98hiLWhX3LQ0JOVubmpvQg4859Er3Av9PHqpruZGrVPiQFfwd SDTL3ax4y1ycLXw9u3MYl1FXXqHeVpcODHpTR9wbSFMGoFsqFlY1HW/UvyVPKu1P0h kmmPJ3NJ9P45Q== Date: Thu, 13 Jun 2024 10:19:52 +0100 From: Mark Brown To: Dev Jain Cc: shuah@kernel.org, oleg@redhat.com, stsp2@yandex.ru, mingo@kernel.org, tglx@linutronix.de, mark.rutland@arm.com, ryan.roberts@arm.com, suzuki.poulose@arm.com, Anshuman.Khandual@arm.com, DeepakKumar.Mishra@arm.com, AneeshKumar.KizhakeVeetil@arm.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/2] selftests: Add a test mangling with uc_sigmask Message-ID: References: <20240611075650.814397-1-dev.jain@arm.com> <20240611075650.814397-3-dev.jain@arm.com> <920f2e27-39ee-4c53-9c90-63d67e7d7586@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="YUY1zS9czf83kEFd" Content-Disposition: inline In-Reply-To: <920f2e27-39ee-4c53-9c90-63d67e7d7586@arm.com> X-Cookie: Your love life will be... interesting. --YUY1zS9czf83kEFd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Jun 13, 2024 at 10:21:39AM +0530, Dev Jain wrote: > I guess we agree on the same thing; so, how about I rephrase the delivery > and blocking code comments this way: > "A process can request blocking of a signal by masking it into its set of > blocked signals; such a signal, when sent to the process by the kernel, will > get blocked by the process and it may later unblock it and take an action. > At that point, the signal will be "delivered". Yes. > A signal sent by the kernel to the process, is said to be delivered to the > process when the process takes an action upon receipt of the signal: such > action may include termination, or jumping to a signal handler." I'd just drop this last paragraph. > > TBH I'm not sure what you mean there by real time signals, I can't see > > a reference to real time in the copies of signal(2), signal(7) or > > sigaction(2) on my system. I suspect SA_NODEFER is the actual thing > > here. > Real-time signals get a mention on signal(7), under the heading > "Real-time signals": Ah, it's got a - in there so it doesn't show up in searches. > > I still don't follow what the above means. When you say "invariant" you > > don't specify with respect to what, and it's not clear to me why the > > saved context in ucontext would have changed without the handler writing > > to it. For clarity I think this needs to say what the ucontext is > > expected to be the same as/different to. > The ucontext at this stage is supposed to be empty, I guess I'll replace > the word "invariant" then. > "it's not clear to me why the saved context in ucontext would have changed > without the handler writing to it" - by invariant I meant, the set of blocked > signals before invocation of handler is exactly the set of signals blocked in > ucontext, which, in this case, is the empty set. I'll just write that ucontext > is empty. Yes, or like I say in general it's the the interrupted context (there's other parts of the signal frame which are changed). --YUY1zS9czf83kEFd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmZqubMACgkQJNaLcl1U h9AXLQf/aNzj6GO0tVDsn4lAZgwmn9+i5bZOPoYs2VUX+xjqGAgxXGaBHZYGTtQv x6p5xqPIKZMH0IqOL2t6GjyQsvuxFLZqXSiTgTKUpGQBYzt5yG9HtHIWkQdDBelM 3hXcZHCqYaqIh0eDTcJZcrMfHb4QUJIVXqsa1i2/Oz8oJNDVYTs+NeXtO8V5Z9dp rpJjtQF61pCwH3H6KaBlAUWcy8qnkA+WrwfgIgBU1lG1UFgmUp4FOTadg45JlBne zKHGSw9N74vmrNfrCxZp6961JbMxDWFRaHOVNlHlwpjkQwJiDHvWcYjED1L+32YO 7Kp1Dq+eoxoW8dmF1uLF3VVYnyXXzg== =/g6T -----END PGP SIGNATURE----- --YUY1zS9czf83kEFd--