Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6513948ybi; Wed, 5 Jun 2019 02:05:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqzuh9oBrN0J6pz7vr+OZs3XnC67oYCXSz5MAP5AQhPW0Hi+wFSVwFuTR/x6D1F98/kxMDdd X-Received: by 2002:a63:5023:: with SMTP id e35mr2891528pgb.194.1559725504410; Wed, 05 Jun 2019 02:05:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559725504; cv=none; d=google.com; s=arc-20160816; b=1BLi23WhN9EgL6WtDXWCmfmoDEhDxbPuRbYI58hSh5l19gKB7Uh3BqUvwlvvbkWYej 0D77p98WPaX1SsIUR+jo/g/zfTQjMx4XWiVVjGLpsnWGl/HMA5hlA3oXoa00xsVAihak RE+VAxE8Ks/EM0TOJsdclQp5KrAR9OgLGQ4hdGi6woOEwtyIW1e8u8v6/YKJ9uyZc0cr YAXFeT1X6sHIBmuItSCAnvExSj78EOWr8xT5c7BUTJHQUDS18D4+TwbnUjpo7iaSuFdG uJPstv6w6G8fhz8BQ5YwmJgc4AJwvy+iCZycuZZTm4KvP+UvwTyru/T4Xu29lRDaLC/j SShQ== 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=1IH1hBb6XwOOci0+mVn97+X+ovsgRvdaBHM8pU7/SsE=; b=N/KO8tPnKRVMNUQQlrewBA3XzDXbqda6l/iwcRZ8LxMuaOUVBR8tVMjtOV3cYTEC7L il5BAe6Yssqere+JQDy9DbQefEyb20YVSIO+afDSx0yXlU3x2nB7H1/xvdGaloSA06Wy F2nxlodF8XptJGOJrG16V4IfV0DhQZ1759beZFZ8Ez1qIFrJDct5cjMRvRzLoky8sfnO EhBGEC1kiHgOmOeazbvyPOoxx4vX3FMCkHrPkJwNHT96AOjHooiadB0qEJFqA7HZkUU3 nPp4caAAGNrVZwr7ZkkHYa38Gz7njKpmVwECGka6gnk5YCqXtJv6RHISeaG6JDik4dBD t1/A== 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 18si30146783pfy.280.2019.06.05.02.04.47; Wed, 05 Jun 2019 02:05:04 -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 S1726996AbfFEJC7 (ORCPT + 99 others); Wed, 5 Jun 2019 05:02:59 -0400 Received: from eu-smtp-delivery-151.mimecast.com ([207.82.80.151]:25981 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726823AbfFEJC7 (ORCPT ); Wed, 5 Jun 2019 05:02:59 -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-38-VxfF2aphNgutSa8OvI8kog-1; Wed, 05 Jun 2019 10:02:56 +0100 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b::d117) by AcuMS.aculab.com (fd9f:af1c:a25b::d117) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Wed, 5 Jun 2019 10:02:54 +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; Wed, 5 Jun 2019 10:02:54 +0100 From: David Laight To: 'Linus Torvalds' , Oleg Nesterov CC: Andrew Morton , Deepa Dinamani , Linux List Kernel Mailing , Arnd Bergmann , "Davidlohr Bueso" , Jens Axboe , Davidlohr Bueso , "e@80x24.org" , Jason Baron , linux-fsdevel , "linux-aio@kvack.org" , "omar.kilani@gmail.com" , Thomas Gleixner , stable , Al Viro , "Eric W. Biederman" Subject: RE: [PATCH] signal: remove the wrong signal_pending() check in restore_user_sigmask() Thread-Topic: [PATCH] signal: remove the wrong signal_pending() check in restore_user_sigmask() Thread-Index: AQHVGxwzwFf0q/qAAkiR7PRGfFAGAqaMwPEw Date: Wed, 5 Jun 2019 09:02:54 +0000 Message-ID: <263d0e478ee447d9aa10baab0d8673a5@AcuMS.aculab.com> References: <20190522032144.10995-1-deepa.kernel@gmail.com> <20190529161157.GA27659@redhat.com> <20190604134117.GA29963@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: VxfF2aphNgutSa8OvI8kog-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 RnJvbTogTGludXMgVG9ydmFsZHMNCj4gU2VudDogMDQgSnVuZSAyMDE5IDIyOjI3DQo+IFVnaC4g SSBodGluayB0aGlzIGlzIGNvcnJlY3QsIGJ1dCBJIHdpc2ggd2UgaGFkIGEgYmV0dGVyIGFuZCBt b3JlDQo+IGludHVpdGl2ZSBpbnRlcmZhY2UuDQo+IA0KPiBJbiBwYXJ0aWN1bGFyLCBzaW5jZSBy ZXN0b3JlX3VzZXJfc2lnbWFzaygpIGJhc2ljYWxseSB3YW50cyB0byBjaGVjaw0KPiBmb3IgInNp Z25hbF9wZW5kaW5nKCkiIGFueXdheSAodG8gZGV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