Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp533630ybi; Thu, 30 May 2019 02:36:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqxW4PD2Wc3J/FVmetvyS9J3m4lWifbphPwLsCdyXJOvH2ZPRQSXoPSdDJccnHnVcJjOT1UZ X-Received: by 2002:a63:f703:: with SMTP id x3mr2839232pgh.394.1559208998972; Thu, 30 May 2019 02:36:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559208998; cv=none; d=google.com; s=arc-20160816; b=VcELorBLh1w/MqEi8To0NUXGMjwD/+nqRAxDgFb19Emi2G+k9McaDz8WnEfOdjcgqg rSkNmZMjkpHN4Uoe7fjJZUbJB8Y43HPG0rg0VyQM1XTeQss8DvQrsp7GuTVZMVbMaZcQ /ZhmfI4XkLqHk/ST729Cd49ofrGCOe6TvQfeEogY4eINAwtKqNu5DGsbtk/oZQ+/DuKZ co5co6OgcsSal9zZUcUFQaEh3iGJm5Nka/giPb6auVP5JU+wnBcrb/je2I4d3DSEwXJc F+6RfKxZRw7lwf45kTqBW6OAD+miJCZ4Nomnj0WLc8YKzkERDNnHcLMbT75tFk8l/KW2 Buqg== 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=4rvExVMIZcxmSa3E0DZ1w50hKptbX7Dyr0b+/1oU7qs=; b=cdUy7pBQgu3UtoLkJlgG0eN72IoOoz896ij+JLiHSW+5cv6LjuEBoLDLKLgZBpCIcr oobE+HqRP4dbu1v8V4Sf+bZo0Jk47ZYt/66DVbtcvVu82iFC+3jWBEpLH+InBiWsz2qh Ldxy4rrLhVMWpIWp8kFTT7e8pd+toT6kGd3l5ICcvlMhoUAbbb36tdUlGvWF3fwylc3P f+64eGd+5EzIXfafg+YLEuEr1dUiIZvy2fN5o72TBZKZ3+W0F+/4hvzcm1xV4qKyNZky rrpzvXhiYzTahSGRdMg1gkTyax11NxHjeL7k3Jzv+XNlhlYCs4NYbSxJp/FIhRDeTQ3x DkFw== 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 c8si2397092pjs.87.2019.05.30.02.36.21; Thu, 30 May 2019 02:36:38 -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 S1726454AbfE3Je5 (ORCPT + 99 others); Thu, 30 May 2019 05:34:57 -0400 Received: from eu-smtp-delivery-151.mimecast.com ([146.101.78.151]:34844 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727402AbfE3Je4 (ORCPT ); Thu, 30 May 2019 05:34:56 -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-43-7gh7PonmMjqzmTiRGe_CfA-1; Thu, 30 May 2019 10:34:54 +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, 30 May 2019 10:34:53 +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, 30 May 2019 10:34:53 +0100 From: David Laight To: 'Eric Wong' CC: 'Oleg Nesterov' , Deepa Dinamani , Al Viro , "Eric W. Biederman" , Linus Torvalds , "linux-kernel@vger.kernel.org" , "akpm@linux-foundation.org" , "arnd@arndb.de" , "dbueso@suse.de" , "axboe@kernel.dk" , "dave@stgolabs.net" , "jbaron@akamai.com" , "linux-fsdevel@vger.kernel.org" , "linux-aio@kvack.org" , "omar.kilani@gmail.com" , "tglx@linutronix.de" , "stable@vger.kernel.org" Subject: RE: pselect/etc semantics (Was: [PATCH v2] signal: Adjust error codes according to restore_user_sigmask()) Thread-Topic: pselect/etc semantics (Was: [PATCH v2] signal: Adjust error codes according to restore_user_sigmask()) Thread-Index: AQHVFjlRjDlHH6TU60ajIVKPNNmjrqaCR7xwgAAZvgCAAP1NYA== Date: Thu, 30 May 2019 09:34:53 +0000 Message-ID: References: <20190522032144.10995-1-deepa.kernel@gmail.com> <20190529161157.GA27659@redhat.com> <20190529185012.qqeqq4fsolprknrz@dcvr> In-Reply-To: <20190529185012.qqeqq4fsolprknrz@dcvr> 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: 7gh7PonmMjqzmTiRGe_CfA-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 RnJvbTogRXJpYyBXb25nDQo+IFNlbnQ6IDI5IE1heSAyMDE5IDE5OjUwDQouLi4NCj4gPiBQZXJz b25hbGx5IEkgdGhpbmsgdGhhdCBpcyB3cm9uZy4NCj4gPiBHaXZlbiBjb2RlIGxpa2UgdGhlIGFi b3ZlIHRoYXQgaGFzOg0KPiA+IAkJd2hpbGUgKCFpbnRlcnJ1cHRlZCkgew0KPiA+IAkJCXBzZWxl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