From patchwork Mon Jan 20 22:02:27 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: DJ Delorie X-Patchwork-Id: 105145 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D4DAE3858C2B for ; Mon, 20 Jan 2025 22:04:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D4DAE3858C2B Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=fW1B4DnA X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTP id 258673858406 for ; Mon, 20 Jan 2025 22:02:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 258673858406 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 258673858406 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1737410552; cv=none; b=bcThFB2WvCl5Gxfa8a84jhDgetr97R9OMIQXpaQF/MYeuYjwCfFL1W3w5x5WWjEqNbBL9kQy+TVXy4oZspb/DKu3++8egxjJ5/0V8n04oSnBQYooeAlinPTR+scLYSdImvo176qi7pCv21Ie+bIoyZvUje5Cr0ObE1zT9S6l+Z8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1737410552; c=relaxed/simple; bh=K+X0H8Ixl1suDkMbl8e5cT/IFf+3hkOb/WweqW5nHsU=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=vWkW9Hjg1nfuowWQjq7kQyrGOjudNm4xJibPcUuWhKzQNwX2/H9YNSGmber0j1LCFaQ7/mTX66LPbbhyEaxQyQk5jJTvYju6+fHvkwZSRdyqQLk12i/feBUOmhjf9yDlMCT8WNl7rqgPvteGfmK3xVDEHmVWRgvRCCVBco1VTcU= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 258673858406 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1737410551; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=q5iHlUczIYaFXGStPMBbN4dxYJZ40PyL8zqrks+tI0k=; b=fW1B4DnAh7xBLC7bu19BDnYZQQzC4yPY1bGRBZnzLP+8BT4Op484+lksj8bDWYQ1yt7Xuw bv/wOENxNE81m83NOxHmEgK4aJIMhn2JrA+rzF0jrePSArwmoj3NOxRi8JW5xcASqzyUcm yIqDXgQ0lhqna5jueN1qzaly485TWZw= Received: from mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-176-0eyLugEIO9mvPt9qKE9fCw-1; Mon, 20 Jan 2025 17:02:30 -0500 X-MC-Unique: 0eyLugEIO9mvPt9qKE9fCw-1 X-Mimecast-MFC-AGG-ID: 0eyLugEIO9mvPt9qKE9fCw Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (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) by mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 7869819560BA for ; Mon, 20 Jan 2025 22:02:29 +0000 (UTC) Received: from greed.delorie.com (unknown [10.22.88.18]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 3422919560B0 for ; Mon, 20 Jan 2025 22:02:29 +0000 (UTC) Received: from greed.delorie.com.redhat.com (localhost [127.0.0.1]) by greed.delorie.com (8.16.1/8.16.1) with ESMTP id 50KM2Rhs914992 for ; Mon, 20 Jan 2025 17:02:27 -0500 From: DJ Delorie To: libc-alpha@sourceware.org Subject: [patch v2] manual: Update signal descriptions Date: Mon, 20 Jan 2025 17:02:27 -0500 Message-ID: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: qQ4kPTYKFrO0ZNk44SDqAn-43H1aM61XyO4Pzei2ljw_1737410549 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~patchwork=sourceware.org@sourceware.org Based on auditing all the signals and source trees for Hurd and Linux... SIGSYS - This is not used for a bad system call (ENOSYS is used for that). This is used by SECCOMP and some cases where an invalid sub-function was requested. SIGSTKFLT - Note it used to be a coprocessor stack fault but is now obsolete and available for general user use. SIGLOST - Hurd only now; note that its original purpose as an NFS lock lost signal is obsolete. SIGPWR - Note this is for power lost *and* power restored, and is more a user-mode signal than a kernel-generated signal. Reviewed-by: Florian Weimer diff --git a/manual/signal.texi b/manual/signal.texi index 2012980efe..a9cf34c459 100644 --- a/manual/signal.texi +++ b/manual/signal.texi @@ -427,9 +427,18 @@ failure to properly emulate them. @deftypevr Macro int SIGSYS @standards{Unix, signal.h} -Bad system call; that is to say, the instruction to trap to the -operating system was executed, but the code number for the system call -to perform was invalid. +System call event. This signal may be generated by a valid system +call which requested an invalid sub-function, and also by the SECCOMP +filter when it filters a system call. + +If the system call itself is invalid or unsupported by the kernel, the +call will not raise this signal, but will return @code{ENOSYS}. +@end deftypevr + +@deftypevr Macro int SIGSTKFLT +Coprocessor stack fault. Obsolete, no longer generated. This signal +may be used by applications in much the way @code{SIGUSR1} and +@code{SIGUSR2} are. @end deftypevr @node Termination Signals @@ -752,12 +761,11 @@ that isn't connected. @xref{Sending Data}. @deftypevr Macro int SIGLOST @standards{GNU, signal.h} @cindex lost resource signal -Resource lost. This signal is generated when you have an advisory lock -on an NFS file, and the NFS server reboots and forgets about your lock. - -On @gnuhurdsystems{}, @code{SIGLOST} is generated when any server program -dies unexpectedly. It is usually fine to ignore the signal; whatever -call was made to the server that died just returns an error. +Resource lost. On @gnuhurdsystems{}, @code{SIGLOST} is generated when +any server program dies unexpectedly. It is usually fine to ignore +the signal; whatever call was made to the server that died just +returns an error. This signal's original purpose of signalling a lost +NFS lock is obsolete. @end deftypevr @deftypevr Macro int SIGXCPU @@ -817,6 +825,17 @@ to print some status information about the system and what the process is doing. Otherwise the default is to do nothing. @end deftypevr +@deftypevr Macro int SIGPWR +@cindex power event signal +Power lost or restored. On s390x Linux systems, this signal is +generated when a machine check warning is issued, and is sent to the +process designated to receive ctrl-alt-del notifications. Otherwise, +it is up to userspace applications to generate this signal and manage +notifications as to the type of power event that happened. + +The default action is to terminate the process. +@end deftypevr + @node Signal Messages @subsection Signal Messages @cindex signal messages