Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1392349pxb; Fri, 26 Feb 2021 09:32:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJzpMi54uPcpEdxVmA7lBOJkRNMlZrn9EpQ4a7AUNlVKABz+RJFzKPn0hWim2XH5QPYm+x2L X-Received: by 2002:a17:906:c402:: with SMTP id u2mr4504425ejz.546.1614360768064; Fri, 26 Feb 2021 09:32:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614360768; cv=none; d=google.com; s=arc-20160816; b=PBHYGATuutuam3ZA26hYgc80akfC3mGg/jWCqQIrE6GtH0KnWD0/LUSuc9NszZUGjF qHDWbfOfylmnd2VE3aTFQzucXKZ5uABbGmXp5I0f5ydzoqzO6PkIGxqXnsae2GZjFtX5 jNvETBuebI8PIv62iXVwFXZ/0npf3hZKRwFs8G3JSKvfbPumDuwxohlKOH/0Bcx7+SCM yE5xAve1bTezOAVTHWjpeNmelSinUH5D/9LPve2VmnEKHp77WCQNkQ1uRX/RG/cSxndc EN87USTRmT29WmuAdIGtKEDeIJp4XqaUVeBkLTan/S4fp0a2fRf4IlBxpn2xLAZnvLs+ YeDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :ironport-sdr:ironport-sdr; bh=X9DYqUGE1rBjQ486XgtJh6n6VgslVzQ3ntLU0HqWWmc=; b=t83mbDskzJpnDh72A0zqYUE9f+Lfk8DKL/TiSIaxPF9opevPFk8LzXpevunrGWtQPj TvKQn6xyv9ErMoxvZ/NEO6NXQ3qJNmlpE9DX6qrU7ubFNgmegBBpyHT4sChU2LmsEke0 0jkr6lK58PQJvOQb3ULbsk3PzL/CA+djBqUT4n5dQpbdH8VL54aKomxU9XqntZEDvESb 3/3zWCJRXMzSA0+KMRdq2U+FqIfxYPt98U+57MnF/jAeTG3ELbaHPhywHtbnCG0A7F5s EqadDS3f+F/6ewKiBMlXQttNaYys+zBx3Uole2xKW9xbOZyut7cfNSnbfM3Xja4oGoLs unlw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p21si6233309eds.457.2021.02.26.09.32.22; Fri, 26 Feb 2021 09:32:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230099AbhBZR3N (ORCPT + 99 others); Fri, 26 Feb 2021 12:29:13 -0500 Received: from mga18.intel.com ([134.134.136.126]:11180 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229550AbhBZR3J (ORCPT ); Fri, 26 Feb 2021 12:29:09 -0500 IronPort-SDR: D/VfvmTR5ATfkswZahODZMySIaSUEAULDrbmuHUARSCyzxbJQAYOpINfbTk2uU2SUyUZKE3sn0 7DmNGnasL+0w== X-IronPort-AV: E=McAfee;i="6000,8403,9907"; a="173587224" X-IronPort-AV: E=Sophos;i="5.81,209,1610438400"; d="scan'208";a="173587224" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Feb 2021 09:27:57 -0800 IronPort-SDR: kWM7i6bjCnSp3GFBkPPuXG6TEQ8gl2sM91C8rHZuwUn4QGEn2r9gs7D2f0QdAbeKOvMAjafXzV QLa6+fK0Ff8A== X-IronPort-AV: E=Sophos;i="5.81,209,1610438400"; d="scan'208";a="405052447" Received: from yyu32-desk.sc.intel.com ([143.183.136.146]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Feb 2021 09:27:57 -0800 From: Yu-cheng Yu To: linux-man@vger.kernel.org Cc: Yu-cheng Yu , Alejandro Colomar , Michael Kerrisk , Andy Lutomirski , Borislav Petkov , Dave Hansen , Florian Weimer , "H.J. Lu" , linux-kernel@vger.kernel.org, linux-api@vger.kenel.org Subject: [PATCH 2/2] sigaction.2: wfix - Clarify si_addr description. Date: Fri, 26 Feb 2021 09:26:34 -0800 Message-Id: <20210226172634.26905-3-yu-cheng.yu@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20210226172634.26905-1-yu-cheng.yu@intel.com> References: <20210226172634.26905-1-yu-cheng.yu@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SIGSEGV fills si_addr only for memory access faults. Add a note to clarify. Signed-off-by: Yu-cheng Yu Cc: Alejandro Colomar Cc: Michael Kerrisk Cc: Andy Lutomirski Cc: Borislav Petkov Cc: Dave Hansen Cc: Florian Weimer Cc: "H.J. Lu" Cc: linux-kernel@vger.kernel.org Cc: linux-api@vger.kenel.org Link: https://lore.kernel.org/linux-api/20210217222730.15819-7-yu-cheng.yu@intel.com/ --- man2/sigaction.2 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/man2/sigaction.2 b/man2/sigaction.2 index 49a30f11e..bea884a23 100644 --- a/man2/sigaction.2 +++ b/man2/sigaction.2 @@ -467,7 +467,7 @@ and .BR SIGTRAP fill in .I si_addr -with the address of the fault. +with the address of the fault (see notes). On some architectures, these signals also fill in the .I si_trapno @@ -955,6 +955,11 @@ It is not possible to block .IR sa_mask ). Attempts to do so are silently ignored. .PP +In a +.B SIGSEGV, +if the fault is a memory access fault, si_addr is filled with the address +causing the fault, otherwise it is not filled. +.PP See .BR sigsetops (3) for details on manipulating signal sets. -- 2.21.0