Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp4009570ybd; Tue, 25 Jun 2019 12:21:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqxc8qi0+NjpHwF1JjlNa7C4VuuRz04/v92hNl52Qnca4fzgrLdOLlfQmPzaZY429iudW/3H X-Received: by 2002:a63:3042:: with SMTP id w63mr33401426pgw.21.1561490501593; Tue, 25 Jun 2019 12:21:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561490501; cv=none; d=google.com; s=arc-20160816; b=PG5tP1kCA9/6ealf0IZvV5uyhfknv5PkxcDCZXq2i6x0OVqImpjKx+WkDaCsZPfq++ z+1I2bE+GGlmVOBkki2ZnNtN/0XDuI2xM/VhHiAODMa6F42gBD33xnbQonmARroa1C4D MsSk8Qi0DYTo4h4OXt1TESXJx2hUolaFCcN05fzEV4p4soOzMothK/JdwA5RYOJCnXV6 9hgjfbgQscETXMc2qmn7XMCZ4GeiWCiZvyve3+0kc7RZaiUeN4yYuujMFPD11C9hSAeB b7FScJbap3a3t51stJAOqQ1RzscZ+dyVAdSTzARSpSEjQtnlBZbEzVqVE1uKrqOucCzX ju/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:cc:to:from :dkim-signature; bh=WbHNl0iqFS+h/Y/NRQf+DQGfBRp0QLmLg6AqzLkUiMk=; b=wxXYbp8KapWTD4ApNh2wzCTK9lnm8l49YmZVGw2nxVlh0n3fwWwZk1hCJ0XbmDuHV+ Ara3Kgp55FEc9OILalkaqrmefN14/eDPY7A1FiSdiq2Alb7FRKOedmIREdn/+xbgT9lU ATyTbPDVjS6J5jajMenHREhQIztZOTq+mOCsFyYSqLjKP0udV+SrAmMr1hMycfWs8IDk q8JPIpJuDFBTxmte8jh3KVe2yJNZPzL3H2qaWOSvVngGuWv+JV1mD3jtP9xdDqu6y41R 8nqA5Jq+HSzd6BFbFbBZti4AcuZ18Omvf/WYbDI3+iMqUL4M7eRmTp7cfhnum+afSxt2 D0zA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@cs.msu.ru header.s=dkim header.b="Wb5N2Gy/"; 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 h1si1045745pld.439.2019.06.25.12.21.26; Tue, 25 Jun 2019 12:21:41 -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="Wb5N2Gy/"; 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 S1731669AbfFYQMj (ORCPT + 99 others); Tue, 25 Jun 2019 12:12:39 -0400 Received: from mx.cs.msu.ru ([188.44.42.42]:28016 "EHLO mail.cs.msu.ru" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729458AbfFYQMi (ORCPT ); Tue, 25 Jun 2019 12:12:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cs.msu.ru; s=dkim; h=Subject:Content-Transfer-Encoding:Content-Type:MIME-Version: References:In-Reply-To:Message-Id:Date:Cc:To:From:Sender:Reply-To: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=WbHNl0iqFS+h/Y/NRQf+DQGfBRp0QLmLg6AqzLkUiMk=; b=Wb5N2Gy/kh5fxcqn+fyflXO42N hCO8zUeicEdo1j68Lh9U41jEl87O5CmJfciyb44t+IK1t0KYJNyS/iSb0Ei+Ou73FecQL3o3to1SR +wW6nvLr9v8VKl1gv1KPZVhSl73AVQoJKILCe1P4LAwAEasKk3ckbtk6jZrLimL70+vtW6RQ4X9qh 8t8EBJ1bu35E6WX9ppY7M8jurhkU1VwOwhNcZfxmjRjutqNA+9IkMt58OG+vi0PCQ1PfmfCxzISU0 7mCtuWfjUN3ZAKG/cz7oRCA3dhwjf7IxU872Q1mOkBbXoBkhza/CAJ+IYo2ysUp/Q6+3db6Zen2kd W81kNxCg==; Received: from [10.7.4.141] (port=44632 helo=cello.cs.msu.ru) by mail.cs.msu.ru with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92 (FreeBSD)) (envelope-from ) id 1hfo3F-0006Uf-L9; Tue, 25 Jun 2019 19:12:09 +0300 From: Arseny Maslennikov To: Greg Kroah-Hartman , Jiri Slaby , Ingo Molnar , Peter Zijlstra , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "Vladimir D. Seleznev" , Rob Landley , "Eric W. Biederman" , Pavel Machek , Arseny Maslennikov Date: Tue, 25 Jun 2019 19:11:50 +0300 Message-Id: <20190625161153.29811-5-ar@cs.msu.ru> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190625161153.29811-1-ar@cs.msu.ru> References: <20190625161153.29811-1-ar@cs.msu.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 10.7.4.141 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,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Subject: [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 This matches the behaviour of other Unix-like systems that have SIGINFO and causes less harm to processes that do not install handlers for this signal, making the keyboard status character non-fatal for them. This is implemented with the assumption that SIGINFO is defined to be equivalent to SIGPWR; still, there is no reason for PWR to result in termination of the signal recipient anyway — it does not indicate there is a fatal problem with the recipient's execution context (like e.g. FPE/ILL do), and we have TERM/KILL for explicit termination requests. Signed-off-by: Arseny Maslennikov --- include/linux/signal.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/linux/signal.h b/include/linux/signal.h index 9702016734b1..c365754ea647 100644 --- a/include/linux/signal.h +++ b/include/linux/signal.h @@ -360,7 +360,7 @@ extern bool unhandled_signal(struct task_struct *tsk, int sig); * | SIGSYS/SIGUNUSED | coredump | * | SIGSTKFLT | terminate | * | SIGWINCH | ignore | - * | SIGPWR | terminate | + * | SIGPWR | ignore | * | SIGRTMIN-SIGRTMAX | terminate | * +--------------------+------------------+ * | non-POSIX signal | default action | @@ -411,7 +411,8 @@ extern bool unhandled_signal(struct task_struct *tsk, int sig); #define SIG_KERNEL_IGNORE_MASK (\ rt_sigmask(SIGCONT) | rt_sigmask(SIGCHLD) | \ - rt_sigmask(SIGWINCH) | rt_sigmask(SIGURG) ) + rt_sigmask(SIGWINCH) | rt_sigmask(SIGURG) | \ + rt_sigmask(SIGINFO) ) #define SIG_SPECIFIC_SICODES_MASK (\ rt_sigmask(SIGILL) | rt_sigmask(SIGFPE) | \ -- 2.20.1