From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 03981C2D0F4 for ; Wed, 8 Apr 2020 18:58:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5E70C206BE for ; Wed, 8 Apr 2020 18:58:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=cert.org header.i=@cert.org header.b="GdiAiX5C" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728560AbgDHS6F (ORCPT ); Wed, 8 Apr 2020 14:58:05 -0400 Received: from taper.sei.cmu.edu ([147.72.252.16]:34498 "EHLO taper.sei.cmu.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726730AbgDHS6E (ORCPT ); Wed, 8 Apr 2020 14:58:04 -0400 Received: from delp.sei.cmu.edu (delp.sei.cmu.edu [10.64.21.31]) by taper.sei.cmu.edu (8.14.7/8.14.7) with ESMTP id 038Iw2lN015578; Wed, 8 Apr 2020 14:58:02 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 taper.sei.cmu.edu 038Iw2lN015578 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cert.org; s=yc2bmwvrj62m; t=1586372282; bh=nDGwARLz6IzT4e2hihxcIa84jDbOOqw1v9YebUxCeRM=; h=From:To:Subject:Date:References:In-Reply-To:From; b=GdiAiX5CrfyK2G8N9XAoHJPVNUDEWCoftyMzxMqWydCzr1W2LOLWyMRT9bFgaMKVM CO6laUIOQ5Wm7R8wMZQaw4x2DK8ZmkgR8MywLxAYSwuSnU0nSCj7jCZlMRwzatZOa2 foy3OHzbOyB2eyrBaO09TRX+sx22wC2jylccaJak= Received: from CASCADE.ad.sei.cmu.edu (cascade.ad.sei.cmu.edu [10.64.28.248]) by delp.sei.cmu.edu (8.14.7/8.14.7) with ESMTP id 038IvvTr028408; Wed, 8 Apr 2020 14:57:57 -0400 Received: from MORRIS.ad.sei.cmu.edu (147.72.252.46) by CASCADE.ad.sei.cmu.edu (10.64.28.248) with Microsoft SMTP Server (TLS) id 14.3.487.0; Wed, 8 Apr 2020 14:57:57 -0400 Received: from MORRIS.ad.sei.cmu.edu (147.72.252.46) by MORRIS.ad.sei.cmu.edu (147.72.252.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1847.3; Wed, 8 Apr 2020 14:57:56 -0400 Received: from MORRIS.ad.sei.cmu.edu ([fe80::555b:9498:552e:d1bb]) by MORRIS.ad.sei.cmu.edu ([fe80::555b:9498:552e:d1bb%22]) with mapi id 15.01.1847.007; Wed, 8 Apr 2020 14:57:56 -0400 From: Joseph Christopher Sible To: "'Jens Axboe'" , "'io-uring@vger.kernel.org'" Subject: RE: Spurious/undocumented EINTR from io_uring_enter Thread-Topic: Spurious/undocumented EINTR from io_uring_enter Thread-Index: AdYNHCB8t2qqN/asQKmA7dRl2D+7cwAKrhOAAB25dbAADHSFgAAGsldQ Date: Wed, 8 Apr 2020 18:57:56 +0000 Message-ID: <00c3981899fd44ff9727cf36494992e0@cert.org> References: <43b339d3dc0c4b6ab15652faf12afa30@cert.org> <12cca225-d95c-da61-fdba-f69427a2726f@kernel.dk> In-Reply-To: <12cca225-d95c-da61-fdba-f69427a2726f@kernel.dk> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.64.64.23] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: io-uring-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org T24gNC84LzIwIDE6NDkgUE0sIEplbnMgQXhib2Ugd3JvdGU6DQo+IE9uIDQvOC8yMCA5OjQxIEFN LCBKb3NlcGggQ2hyaXN0b3BoZXIgU2libGUgd3JvdGU6DQo+ID4gT24gNC83LzIwIDU6NDIgUE0s IEplbnMgQXhib2Ugd3JvdGU6DQo+ID4+IExvdHMgb2Ygc3lzdGVtIGNhbGxzIHJldHVybiAtRUlO VFIgaWYgaW50ZXJydXB0ZWQgYnkgYSBzaWduYWwsIGRvbid0DQo+ID4+IHRoaW5rIHRoZXJlJ3Mg YW55dGhpbmcgd29ydGggZml4aW5nIHRoZXJlLiBGb3IgdGhlIHdhaXQgcGFydCwgdGhlDQo+ID4+ IGFwcGxpY2F0aW9uIG1heSB3YW50IHRvIGhhbmRsZSB0aGUgc2lnbmFsIGJlZm9yZSB3ZSBjYW4g d2FpdCBhZ2Fpbi4NCj4gPj4gV2UgY2FuJ3QgZ28gdG8gc2xlZXAgd2l0aCBhIHBlbmRpbmcgc2ln bmFsLg0KPiA+DQo+ID4gVGhpcyBzZWVtcyB0byBiZSBhbiB1bmFtYmlndW91cyBidWcsIGF0IGxl YXN0IGFjY29yZGluZyB0byB0aGUgQlVHUw0KPiA+IHNlY3Rpb24gb2YgdGhlIHB0cmFjZSBtYW4g cGFnZS4gVGhlIGJlaGF2aW9yIG9mIGVwb2xsX3dhaXQgaXMNCj4gPiBleHBsaWNpdGx5IGNhbGxl ZCBvdXQgYXMgYmVpbmcgYnVnZ3kvd3JvbmcsIGFuZCB3ZSdyZSBlbXVsYXRpbmcgaXRzDQo+ID4g YmVoYXZpb3IuIEFzIGZvciB0aGUgYXBwbGljYXRpb24gd2FudGluZyB0byBoYW5kbGUgdGhlIHNp Z25hbCwgaW4NCj4gPiB0aG9zZSBjYXNlcywgaXQg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