Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3277614ybi; Mon, 29 Jul 2019 03:57:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqwKoO8Z8xgsj+OwEWNpoZDcHR7g7UJzzqNXK8SNY4G9MPrEkK4WghRLi6vLlMxYrAyhpRxO X-Received: by 2002:a17:90a:2525:: with SMTP id j34mr114426895pje.11.1564397864025; Mon, 29 Jul 2019 03:57:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564397864; cv=none; d=google.com; s=arc-20160816; b=EU5RmgcAxBf6H9RK4WceMWBWoEtNNlcJsmd32iooZEVCKbkCJmkx/IgT/SMQzUZ+Hn Jef205T7a0tELrxWxTULCnjtYXKwldFQBaFIFzltrfKudQhaCfAm6C7WOJtfM/+dBW8Y Mjs7grr1UGi9f68/dR7d6CeFioiek+JENWMKS+ZoHfuPkM3cBbewiWGw9yHLtv07hSLl xOYPUfgOjNfPOIWK6MxC+Jdi1SGwcq4g64QFhwryk2Dk30YoHPbXYo4nlz/alwVMT34E xzXVLy8cdVgQi0WP4v88gEJ3aQXYcHh8mqyEOuk8w8QgHx+RdfW76qOpET9Rlvrjk2GO 2AlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:user-agent:openpgp:in-reply-to :content-disposition:mime-version:references:message-id:cc:to:from :date:dkim-signature; bh=qJwhLMPSe3C9YgLvBSNOGorf/nwsbbvmT2Y7mbu5aMI=; b=iFJRsGmT/8IlHW1sbqK+RwFRFSeg2dOy3ktcHlzVFyOs6YHtw6LrCVwP7tObqckImL mwHVzUgJxTAnxrLzY6fk62NjHwiJr8HYAgnhvXw7LMjCCOXzz2V0Fou5939U33ovCe98 BMUepLkO/a/yasYwTKXeNWIezBJUv+Y+hHdSNGYTGoSuVljz/fgyqyHPBP4xanMnI7fs MztCIRhy4GIkk7EOiihWAweVrYHzPdPklPtnBb7ZJ1H2h3VVvjW6vtN7d7oz4yW/Pssb 1I2LujZrf0v0xKu7bIc0Nir+0WARJjsBr1wglPvSgldR3zjSfP2Mq2zdozlVKVA2ny1o Htog== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@cs.msu.ru header.s=dkim header.b=FMBVGqlJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cs.msu.ru Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s37si24626838pjb.16.2019.07.29.03.57.28; Mon, 29 Jul 2019 03:57:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@cs.msu.ru header.s=dkim header.b=FMBVGqlJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cs.msu.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387560AbfG2Kzt (ORCPT + 99 others); Mon, 29 Jul 2019 06:55:49 -0400 Received: from mx.cs.msu.ru ([188.44.42.42]:42485 "EHLO mail.cs.msu.ru" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2387424AbfG2Kzs (ORCPT ); Mon, 29 Jul 2019 06:55:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cs.msu.ru; s=dkim; h=Subject:In-Reply-To:Content-Type:MIME-Version:References: Message-ID:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=qJwhLMPSe3C9YgLvBSNOGorf/nwsbbvmT2Y7mbu5aMI=; b=FMBVGqlJlkL5BslLpwdm3U0Yer e16bQoNK6my/0tSlydt6gNRBMs5Iua7+FIDR9C/QBoSFbYEl1sbamXLgvrkSW3ps6kerNy0CmUJvE ghUW/WxBWGrBw1jzhlcpjVq6De7XGFWJN0avJ7eLijcn/74D5NEzTUQdp49P7EqJ6O2ELbQgM/kVK UIXux3+igNhEDPlTX2CRZZ6DAmzjyZuj59+O1tFQ5ZCBK/v5t4HnD7gjCSHoqgdTSudm5Cujvq7XC peFWhFSSvj9bmddcrdlaL9VUOIhXrgqRQhEVCaPAbimQvu1vbTC9V4i8NWRLfKkJ+ePnVAmQX2PVw djYGvaPA==; Received: from [37.204.119.143] (port=58276 helo=cello) by mail.cs.msu.ru with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92 (FreeBSD)) (envelope-from ) id 1hs3JS-0008Jg-Rr; Mon, 29 Jul 2019 13:55:31 +0300 Date: Mon, 29 Jul 2019 13:55:21 +0300 From: Arseny Maslennikov To: Theodore Ts'o Cc: Greg Kroah-Hartman , Jiri Slaby , Ingo Molnar , Peter Zijlstra , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, "Vladimir D. Seleznev" , Rob Landley , "Eric W. Biederman" , Pavel Machek Message-ID: <20190729105520.GA25742@cello> References: <20190625161153.29811-1-ar@cs.msu.ru> <20190625161153.29811-5-ar@cs.msu.ru> <20190625213215.GB3116@mit.edu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="jI8keyz6grp/JLjh" Content-Disposition: inline In-Reply-To: <20190625213215.GB3116@mit.edu> OpenPGP: url=http://grep.cs.msu.ru/~ar/pgp-key.asc User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: 37.204.119.143 X-SA-Exim-Mail-From: ar@cs.msu.ru X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.cs.msu.ru X-Spam-Level: X-Spam-Status: No, score=-5.1 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_ALL autolearn=no autolearn_force=no version=3.4.2 Subject: Re: [PATCH v2 4/7] linux/signal.h: Ignore SIGINFO by default in new tasks X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on mail.cs.msu.ru) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --jI8keyz6grp/JLjh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 25, 2019 at 05:32:15PM -0400, Theodore Ts'o wrote: > <...> >=20 > (In particular it might be worth checking Linux ports of Oracle and > DB2.) A couple of weeks of asking around got me to have a look at a DB2 9.7 instance. sn1:~ # uname -a Linux sn1 2.6.16.60-0.54.5-ppc64 #1 SMP Fri Sep 4 01:28:03 UTC 2009 ppc64 p= pc64 ppc64 GNU/Linux That particular deployment used the following set of processes: sn1:~ # ps -eo user,ppid,pid,pgid,sid,tty,state,cmd | grep db2 | grep -v ja= va bgpsysdb 8505 672 8504 7146 ? S db2fmp ( ,0,0,0,0,0,0,0,1,0,8a6= 678,14,1e014,2,0,1,171fc0,0x110000000,0x110000000,1600000,18002,2,384f00b7 bgpsysdb 8505 687 8504 7146 ? S db2fmp ( ,0,0,0,0,0,0,0,1,0,8a6= 678,14,1e014,2,0,1,191fc0,0x110000000,0x110000000,1600000,18002,2,384f80b9 bgpsysdb 8505 4309 8504 7146 ? S db2fmp ( ,0,0,0,0,0,0,0,1,0,8a6= 678,14,1e014,2,0,1,151fc0,0x110000000,0x110000000,1600000,18002,2,6f5080c5 root 1 8505 8504 7146 ? S db2wdog 0 bgpsysdb 8505 8511 8511 7146 ? S db2sysc 0 root 8511 8512 8511 7146 ? S db2ckpwd 0 root 8511 8513 8511 7146 ? S db2ckpwd 0 root 8511 8514 8511 7146 ? S db2ckpwd 0 bgpsysdb 8505 8630 8504 7146 ? S db2acd 0 ,0,0,0,1,0,0,0,1,0,8a6= 678,14,1e014,2,0,1,11fc0,0x110000000,0x110000000,1600000,18002,2,398072 bgpsysdb 8505 15280 8504 7146 ? S db2fmp ( ,1,0,0,0,0,0,0,1,0,8a6= 678,14,1e014,2,0,1,31fc0,0x110000000,0x110000000,1600000,18002,2,bd80bb bgpsysdb 8505 16032 8504 7146 ? S db2fmp ( ,0,0,0,0,0,0,0,1,0,8a6= 678,14,1e014,2,0,1,b1fc0,0x110000000,0x110000000,1600000,18002,2,81980ba bgpsysdb 8505 16073 8504 7146 ? S db2fmp ( ,0,0,0,0,0,0,0,1,0,8a6= 678,14,1e014,2,0,1,91fc0,0x110000000,0x110000000,1600000,18002,2,12300c0 bgpsysdb 8505 17683 8504 7146 ? S db2fmp ( ,0,0,0,0,0,0,0,1,0,8a6= 678,14,1e014,2,0,1,131fc0,0x110000000,0x110000000,1600000,18002,2,248600db bgpsysdb 8505 30731 8504 7146 ? S db2fmp ( ,0,0,0,0,0,0,0,1,0,8a6= 678,14,1e014,2,0,1,f1fc0,0x110000000,0x110000000,1600000,18002,2,370080d1 None of them has a controlling tty, so ^T pressed at any tty won't send them a signal. To get an idea on how do they handle signals, we can look at /proc/*/status: sn1:~ # cat /proc/{8512,8505,687,8511}/status | egrep '^(Pid|Sig|Shd)' Pid: 687 SigQ: 0/128000 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: fffffffe2bbaf007 SigCgt: 00000001c44004f8 Pid: 8505 SigQ: 0/128000 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: fffffffe7ffbfeff SigIgn: fffffffe2fbaf007 SigCgt: 00000001c0410ef8 Pid: 8511 SigQ: 0/128000 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: fffffffe7ffbfeff SigIgn: fffffffe23b3c005 SigCgt: 00000001dc483efa Pid: 8512 SigQ: 0/128000 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: fffffffe2fbbf007 SigCgt: 00000001c0400ef8 It can be seen from the above that SIGPWR in particular is always ignored and sometimes blocked, which means its default disposition has no effect. This leads me to think that DB2 in particular would be unaffected by the patch set. p.s.: I do not have shell access to the machine, and never did; the commands cited in this email were executed by a person who does, and the output was handed back to me. --jI8keyz6grp/JLjh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE56JD3UKTLEu/ddrm9dQjyAYL01AFAl0+0JAACgkQ9dQjyAYL 01CzdRAAu38njim8DW61okHfX3GyhvxAvUy7Fg7QPJfoLIgFRrW+s6MB1myRyem+ rvn+XScQaSlpH5a+aa50V3l3bxRuD38WF1+hU6USyjl4Jpv+DBFH5aNmYqkQIFJ1 4yKySdyOVF+jFCIpdCihoT3nfRhim7rhd4sjlYX6zWzLEvnmsYe7zPm7BZMcNPTV wgEz/AwLXjtKCoa/W6EHQUiylutWcs0TLqMCQhYpt9p9FSg2/GmCczYGc1/SZ4en Fvjp7BMYg9Ha2rNnVHkd3QbJu6S+1eyKx5srz5x2CEuAwR3Q/ojw0f4kMJgUXqCk fqj81B9hxwXoV8f3gfhLUTmZO9tmt2hP9J9aLDFfETNxzhTs0hPdPW+7Vg3CsUQ/ /WbGu6riGUsRQkUjvRoiisIVRHthxO2g6MD0taEJx3ZBfUFEtnNfzzP6xCrrKaHY LQ59yngfVUTVkHFlK+WYEHlhLXqrRHS1Kt9LFR/k7N6o7h2RspJoEOFzTZwlwV9+ A2o4xAuUeg+3frmbUC3aWljzfet5FmSZ9And6QhtD1C40DQWVtZpitI6xWULcj1i UgLFd+/02Nu1jeDnfV1r5dWGdn1K7B1TmNJ8E0xZPwPQ+d8r3bN4Cg6lwVuz7wUp tba+wUzDoTqvjmJ6sHz5qwjBfzi+OKwBR2ip4AbkWMtY843R5lQ= =6Ez9 -----END PGP SIGNATURE----- --jI8keyz6grp/JLjh--