Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1503857ybm; Thu, 23 May 2019 02:05:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqzLoO0kSVgmIlL4b8EWRbnRAWl+HaZjsZs4NbFjIFprtgBy88IZ3KSPmayczpMpcBSp70Iw X-Received: by 2002:a63:f551:: with SMTP id e17mr524899pgk.329.1558602322067; Thu, 23 May 2019 02:05:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558602322; cv=none; d=google.com; s=arc-20160816; b=Xh4Q85h2vk4KnzHEGhp1cyjHcPnNsrlPn6CfEdR7fY95cP/mPXibCb5ISxJjLw7BVC F+6CN5jf3kHpPBILyxaJq5OjqIAOI/4aHhN7jiowX76BN786gz0Uqa0Vhxwgp2ge0iIn hVr9jmxBYHRg17OhMcyj6yHaV/7wN8nCu08P37Hjw9/rWNbTNOFaYQGwbKASggc0iWWy Gocoj3dL8pC804LpHrbu3CuN61/337MRDb0LIfRiGCsct7yKzpT52KsMOU0+z/CqvmTp fpQS+5PKdJehTtC2Jqghua36Zqrl4lBqtiqwzOtr1ACJyXErYBpeXCxc+g0wP5igUA2S MQLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=ifQNr7OVN11GF4Cnp+VB7nfw1gme0ts9F7E68WA6N7k=; b=FTST37DiitebieIJweC9380bdpTJN/al/ud4ylcsByy9C+y8zE7I29llHrRRNiPh9A 0o2qGCM4GfzEkCizTlWVaZLGFispalRr93AlNkpuhxYmIo853NS8OgpA/ev1wjGg0UFn 44Kg1jGiTAQ2X2XayOFWB22LNjjTPX+qWIexz0yK/Bv82nQ+Nl6VN+TU2NDOjZm40WVd 603R9k/FB+HqHG01YxaqIijufukRXAepiGynp674DcVq/mubc1f/EI+tOlUqNxpEuK2U LeUe+dzjObBvikcdhpAYtwlvc0O/G+AoqfKfyctSiJ/g9YBG+6QhjPKP3di4R6HWR05a HzxQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b17si25999021pfi.32.2019.05.23.02.05.06; Thu, 23 May 2019 02:05:22 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729996AbfEWJDe (ORCPT + 99 others); Thu, 23 May 2019 05:03:34 -0400 Received: from eu-smtp-delivery-151.mimecast.com ([146.101.78.151]:56179 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727232AbfEWJDe (ORCPT ); Thu, 23 May 2019 05:03:34 -0400 Received: from AcuMS.aculab.com (156.67.243.126 [156.67.243.126]) (Using TLS) by relay.mimecast.com with ESMTP id uk-mta-109-QAnUYR_ZPWu03W_8XUVOfg-1; Thu, 23 May 2019 10:03:30 +0100 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) by AcuMS.aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Thu, 23 May 2019 10:03:29 +0100 Received: from AcuMS.Aculab.com ([fe80::43c:695e:880f:8750]) by AcuMS.aculab.com ([fe80::43c:695e:880f:8750%12]) with mapi id 15.00.1347.000; Thu, 23 May 2019 10:03:29 +0100 From: David Laight To: 'Deepa Dinamani' , Oleg Nesterov CC: Linux Kernel Mailing List , Andrew Morton , Alexander Viro , "Arnd Bergmann" , "dbueso@suse.de" , "axboe@kernel.dk" , Davidlohr Bueso , Eric Wong , Jason Baron , "Linux FS-devel Mailing List" , linux-aio , Omar Kilani , Thomas Gleixner , "stable@vger.kernel.org" Subject: RE: [PATCH v2] signal: Adjust error codes according to restore_user_sigmask() Thread-Topic: [PATCH v2] signal: Adjust error codes according to restore_user_sigmask() Thread-Index: AQHVELwtsgR+BAQFXk2JV68Wk/7LjKZ4aINA Date: Thu, 23 May 2019 09:03:29 +0000 Message-ID: <4f7b6dbeab1d424baaebd7a5df116349@AcuMS.aculab.com> References: <20190522032144.10995-1-deepa.kernel@gmail.com> <20190522150505.GA4915@redhat.com> <20190522161407.GB4915@redhat.com> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-MC-Unique: QAnUYR_ZPWu03W_8XUVOfg-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogRGVlcGEgRGluYW1hbmkNCj4gU2VudDogMjIgTWF5IDIwMTkgMTc6MzQNCj4gT24gV2Vk LCBNYXkgMjIsIDIwMTkgYXQgOToxNCBBTSBPbGVnIE5lc3Rlcm92IDxvbGVnQHJlZGhhdC5jb20+ IHdyb3RlOg0KPiA+DQo+ID4gT24gMDUvMjIsIERlZXBhIERpbmFtYW5pIHdyb3RlOg0KPiA+ID4N Cj4gPiA+IC1EZWVwYQ0KPiA+ID4NCj4gPiA+ID4gT24gTWF5IDIyLCAyMDE5LCBhdCA4OjA1IEFN LCBPbGVnIE5lc3Rlcm92IDxvbGVnQHJlZGhhdC5jb20+IHdyb3RlOg0KPiA+ID4g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