From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 87899CA90AF for ; Wed, 13 May 2020 10:31:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 626D5206E5 for ; Wed, 13 May 2020 10:31:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="YJZXUtqv" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732811AbgEMKbC (ORCPT ); Wed, 13 May 2020 06:31:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732741AbgEMKbB (ORCPT ); Wed, 13 May 2020 06:31:01 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C6A1C061A0C; Wed, 13 May 2020 03:31:01 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id k12so25935334wmj.3; Wed, 13 May 2020 03:31:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=cc:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=enpUZvjkQss8gHomlUnSJVUnHMRo4OMFu6aNUmI7cJ4=; b=YJZXUtqvodAsDEAf8liUg5EebEMCVfcwdF+S37QudHwBTaFeVTXICF8fmGc9hsSbEU 6mO1q2+iQpPOvTiAgtCtWscTusqwUk4WfIO/+P9a7N60X8ffCDAdslOtQUNe4T/4d99k iqxgILhx9JssUqZp7/yNm92/C8mDTTISFKYlX9hfZFgwBf5OhMuAUsWaAvbnjbycyZJD CQqmOQj2dFgywfolXjGcPfHc/ZF7Qiuo2oeNvkcVYzamt5i6FQtsixGNVm2L0JTGKbh9 JMBAY1IIDLnYLDdp5CHPoOfg58WTWRhVdp7GX6IFdJEULr3wPb+5XSP0aBcZ5S9yoGAg g0kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:cc:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=enpUZvjkQss8gHomlUnSJVUnHMRo4OMFu6aNUmI7cJ4=; b=tyn3flNWqHk4Sc7lovm4nNSQvCOUisk1AKBUbhRIh9W6J+5GqDJ5DAPmjpBGqtTec+ WbC8pxOm4ZphX8Bngn4M1DROmJ7g7GS+6vyzfjA3p/9aqxIx3T3NrrPXkdedAPQ3nHXR Ke94YhBw5Kjg//rLKdcntGbCl5dcHRyASOkcuMW888Sa1e6W5XgwVz4tCHP+z8gIAEke FSSqkL2JSQv1McxBld0nJ3qP7QAKLPhDd0K/dDnqcZ8rCd7JN8hnjodV9Rpn8f3Uy5d2 SFla8EeTDqClVTZo6X7aJTVozd4VC5uHbIJBT1xZqH2ovWoTB4dLhaKCg0XLgsyg84uo fBnw== X-Gm-Message-State: AGi0PuZUg7Q62CkMVGwXyZb+0RmcyBqJ/K8EF5umCUXUhO+Txtl0qPuR u4GbvfNCl8EmExJpyIcyeh7B10Xq X-Google-Smtp-Source: APiQypJQORUtkZqQlGqp/s6dtCIjUd8w0QNwTR/GG97rIJs3hRduo1O9Z1SpkPRdRxCUbOTLcXc4Zg== X-Received: by 2002:a1c:b354:: with SMTP id c81mr34844461wmf.136.1589365859942; Wed, 13 May 2020 03:30:59 -0700 (PDT) Received: from ?IPv6:2001:a61:2482:101:a081:4793:30bf:f3d5? ([2001:a61:2482:101:a081:4793:30bf:f3d5]) by smtp.gmail.com with ESMTPSA id h20sm14642904wma.6.2020.05.13.03.30.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 May 2020 03:30:59 -0700 (PDT) Cc: mtk.manpages@gmail.com, linux-man@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 08/14] prctl.2: Work around bogus constant "maxsig" in PR_SET_PDEATHSIG To: Dave Martin References: <1589301419-24459-1-git-send-email-Dave.Martin@arm.com> <1589301419-24459-9-git-send-email-Dave.Martin@arm.com> From: "Michael Kerrisk (man-pages)" Message-ID: <4f7bee2a-1db6-1cf5-6561-b24397c33707@gmail.com> Date: Wed, 13 May 2020 12:30:58 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <1589301419-24459-9-git-send-email-Dave.Martin@arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-man-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-man@vger.kernel.org On 5/12/20 6:36 PM, Dave Martin wrote: > The description of PR_SET_PDEATHSIG refers to "maxsig", which is > apparently intended to stand for the maximum defined signal number. > > maxsig seems not to be a thing, even in the kernel. > > Reword to use the standard constant NSIG. (Discussion of SIGRTMIN > and SIGRTMAX seems out of scope here, and anyway is not relevant to > the kernel.) Thanks, Dave. Patch applied. Cheers, Michael > Signed-off-by: Dave Martin > --- > man2/prctl.2 | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/man2/prctl.2 b/man2/prctl.2 > index a84fb1d..1e04859 100644 > --- a/man2/prctl.2 > +++ b/man2/prctl.2 > @@ -955,7 +955,9 @@ will operate in the privilege-restricting mode described above. > .BR PR_SET_PDEATHSIG " (since Linux 2.1.57)" > Set the parent-death signal > of the calling process to \fIarg2\fP (either a signal value > -in the range 1..maxsig, or 0 to clear). > +in the range 1 .. > +.BR NSIG " \-" > +1, or 0 to clear). > This is the signal that the calling process will get when its > parent dies. > .IP > -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/ From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael Kerrisk (man-pages)" Subject: Re: [PATCH 08/14] prctl.2: Work around bogus constant "maxsig" in PR_SET_PDEATHSIG Date: Wed, 13 May 2020 12:30:58 +0200 Message-ID: <4f7bee2a-1db6-1cf5-6561-b24397c33707@gmail.com> References: <1589301419-24459-1-git-send-email-Dave.Martin@arm.com> <1589301419-24459-9-git-send-email-Dave.Martin@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1589301419-24459-9-git-send-email-Dave.Martin-5wv7dgnIgG8@public.gmane.org> Content-Language: en-US Sender: linux-man-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Dave Martin Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arch-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org List-Id: linux-arch.vger.kernel.org On 5/12/20 6:36 PM, Dave Martin wrote: > The description of PR_SET_PDEATHSIG refers to "maxsig", which is > apparently intended to stand for the maximum defined signal number. > > maxsig seems not to be a thing, even in the kernel. > > Reword to use the standard constant NSIG. (Discussion of SIGRTMIN > and SIGRTMAX seems out of scope here, and anyway is not relevant to > the kernel.) Thanks, Dave. Patch applied. Cheers, Michael > Signed-off-by: Dave Martin > --- > man2/prctl.2 | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/man2/prctl.2 b/man2/prctl.2 > index a84fb1d..1e04859 100644 > --- a/man2/prctl.2 > +++ b/man2/prctl.2 > @@ -955,7 +955,9 @@ will operate in the privilege-restricting mode described above. > .BR PR_SET_PDEATHSIG " (since Linux 2.1.57)" > Set the parent-death signal > of the calling process to \fIarg2\fP (either a signal value > -in the range 1..maxsig, or 0 to clear). > +in the range 1 .. > +.BR NSIG " \-" > +1, or 0 to clear). > This is the signal that the calling process will get when its > parent dies. > .IP > -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/ From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 60EBDCA90AF for ; Wed, 13 May 2020 10:39:01 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0D99920673 for ; Wed, 13 May 2020 10:39:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="b9PXk+w5"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="YJZXUtqv" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0D99920673 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:From:References:To:Subject:Reply-To:Content-ID:Content-Description :Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=xCT+Xj3T7nUyNCqcUSlBjG0GrE53RkuhXWPtpVIaCzY=; b=b9PXk+w5yV4ezM +/Yu+wA4nuUnk6Ki+bAjWYCRb4rTfPIzvvoSbVfvg2MsUyhulZ8RmXczMY+XtoGUr48cYbrx4ccsA rbZKBXlqo/37NBEtghyGN1nKPfrvCtQjSJoWJKuHgYGQWweXjUuamlVtEMaGfjviYbneKjGgReXRh RsinMiQ67QaCqzdBLi/x1QVcERCXSfCXfKWArTz4si4W3eeJ+b3HP2SAWvwqDb3ZL3UweEdhhvDnI bN5oaK5SVkzFmW8QLTG2iu21Jp3YhE+4pF88uRwDgFIJFpdu+jjtcE8pGXtsahTAQWYVzX4BuJOMB BJc4W1thVrY/wRIcUzyw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jYohr-0007qT-5d; Wed, 13 May 2020 10:33:43 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jYofF-0005e4-OZ for linux-arm-kernel@lists.infradead.org; Wed, 13 May 2020 10:31:04 +0000 Received: by mail-wm1-x344.google.com with SMTP id f134so13811390wmf.1 for ; Wed, 13 May 2020 03:31:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=cc:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=enpUZvjkQss8gHomlUnSJVUnHMRo4OMFu6aNUmI7cJ4=; b=YJZXUtqvodAsDEAf8liUg5EebEMCVfcwdF+S37QudHwBTaFeVTXICF8fmGc9hsSbEU 6mO1q2+iQpPOvTiAgtCtWscTusqwUk4WfIO/+P9a7N60X8ffCDAdslOtQUNe4T/4d99k iqxgILhx9JssUqZp7/yNm92/C8mDTTISFKYlX9hfZFgwBf5OhMuAUsWaAvbnjbycyZJD CQqmOQj2dFgywfolXjGcPfHc/ZF7Qiuo2oeNvkcVYzamt5i6FQtsixGNVm2L0JTGKbh9 JMBAY1IIDLnYLDdp5CHPoOfg58WTWRhVdp7GX6IFdJEULr3wPb+5XSP0aBcZ5S9yoGAg g0kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:cc:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=enpUZvjkQss8gHomlUnSJVUnHMRo4OMFu6aNUmI7cJ4=; b=aZQEtMk/FVNaT/cmLnQXJU7tnzaJKTW5+DBnFHRnk2bOh9z61WHfW5JMbMrnZCf+6P 9ZuGtY2Tq2PVe5bLYd87+PJ4zmtuwfOKF26FbM4jcQroIPAEqym12Kg/ie1cqcS/qQYc iSNAfUB5wV9bnBNKSPsR0hBuosQCJjxfJ5a/Db/1wy30tzSHvakkODxLnkh/EDyuPBeL r05vlOXMC0s+y8gHQqWQ6qc/Z3l02jvHTw6lek3+RbShpFoUD5hGxE7J2D7TVe67fDRO 5Q4BiqRKvWEL/CfVWFwM5xG893esKc83+sum0yqz8pO/+R4E3vUzB7iyRTjo3wNqSpXf 9FOg== X-Gm-Message-State: AGi0PuasO3k6RqtXjTJCMR39UaI0DaJlp26eoNat3z8mquKkisaYsU0r juOGo4EpCBl1rREbnjZjYS8Go6h9 X-Google-Smtp-Source: APiQypJQORUtkZqQlGqp/s6dtCIjUd8w0QNwTR/GG97rIJs3hRduo1O9Z1SpkPRdRxCUbOTLcXc4Zg== X-Received: by 2002:a1c:b354:: with SMTP id c81mr34844461wmf.136.1589365859942; Wed, 13 May 2020 03:30:59 -0700 (PDT) Received: from ?IPv6:2001:a61:2482:101:a081:4793:30bf:f3d5? ([2001:a61:2482:101:a081:4793:30bf:f3d5]) by smtp.gmail.com with ESMTPSA id h20sm14642904wma.6.2020.05.13.03.30.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 May 2020 03:30:59 -0700 (PDT) Subject: Re: [PATCH 08/14] prctl.2: Work around bogus constant "maxsig" in PR_SET_PDEATHSIG To: Dave Martin References: <1589301419-24459-1-git-send-email-Dave.Martin@arm.com> <1589301419-24459-9-git-send-email-Dave.Martin@arm.com> From: "Michael Kerrisk (man-pages)" Message-ID: <4f7bee2a-1db6-1cf5-6561-b24397c33707@gmail.com> Date: Wed, 13 May 2020 12:30:58 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <1589301419-24459-9-git-send-email-Dave.Martin@arm.com> Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200513_033101_836066_044FD3A6 X-CRM114-Status: GOOD ( 17.21 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arch@vger.kernel.org, linux-man@vger.kernel.org, mtk.manpages@gmail.com, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 5/12/20 6:36 PM, Dave Martin wrote: > The description of PR_SET_PDEATHSIG refers to "maxsig", which is > apparently intended to stand for the maximum defined signal number. > > maxsig seems not to be a thing, even in the kernel. > > Reword to use the standard constant NSIG. (Discussion of SIGRTMIN > and SIGRTMAX seems out of scope here, and anyway is not relevant to > the kernel.) Thanks, Dave. Patch applied. Cheers, Michael > Signed-off-by: Dave Martin > --- > man2/prctl.2 | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/man2/prctl.2 b/man2/prctl.2 > index a84fb1d..1e04859 100644 > --- a/man2/prctl.2 > +++ b/man2/prctl.2 > @@ -955,7 +955,9 @@ will operate in the privilege-restricting mode described above. > .BR PR_SET_PDEATHSIG " (since Linux 2.1.57)" > Set the parent-death signal > of the calling process to \fIarg2\fP (either a signal value > -in the range 1..maxsig, or 0 to clear). > +in the range 1 .. > +.BR NSIG " \-" > +1, or 0 to clear). > This is the signal that the calling process will get when its > parent dies. > .IP > -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/ _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel