Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1245354rdb; Fri, 1 Dec 2023 10:31:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IFYx2EIX5HkVtHLrKr3X+dxuOlbP7BnWgTghn+baiQcYNHaUTX+6beCFbxqHVgzNnQr3USz X-Received: by 2002:a05:6a20:8421:b0:185:876f:4f4d with SMTP id c33-20020a056a20842100b00185876f4f4dmr35602028pzd.32.1701455492650; Fri, 01 Dec 2023 10:31:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701455492; cv=none; d=google.com; s=arc-20160816; b=dp5rOmji8kKNPLmQ0JjO8d6bYLd1PINqJH7noPRNFqN1HpPx1s93wHQVIAQMhSKWlV wvrbyQ+1MG19maGVYyInfsERE+8Fd3m6thouhN/aAkpL2/xQ6+NdTZ/5XhiUQUAB8gdm NeCtzl9ifCGiNoNFOytKrfv3DU9SkrA7oROlwTMEh/9UkT/L6JnOg8Xry61Rg3lRmHs/ EoAal0qdFGsNJks8tdQJU5Gtu33YqG5C5ZRH6xHqsOShVeK2Unyed0e+6u0ZP8A3RE0x L+6i5ed7pQBCQ9Yqi6w5DTCXcP0lPbbEwvnVFwqVOzkTVVJlMLg43pbKXLA4ZLUlo1T2 YKCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=66/axPRrgEQIjMZsJwh+Xy+nvU7yQKjwPzWvP3zsT4g=; fh=Xd16D3p6Qdq8jkSfQJfT4xT1IWs5/QxbX2O4OV6Q8r8=; b=WgiliPOpFmf4APCOrLjCm6IBHCGPtsREo6/mqyKHgaacfjWiveF1Tqo3UqLX7HlyM3 e8plMB1a/pERiCduLj0E2t+cFhq56g39xf16qFOI96NQ2viNM8UQtdPEFhdAcMUOoPoB riqb0nmsHw4iLgFNfFLT66fd2R11HqZc/8yfOs6WBmU8Wl5SUgm4UxnFPvkjqhZgjucq pmce1IGdBlGVa7ql1zgl8hEReJRWM891jXFHi5QtlVWZBPRwdkGWZf9CleOVW6d/jQX/ iwH8KGrsCCQcjXtROKDxuSn2NnWr/GVK8CJ8NNduuoAMorRvcAyzo2z7I4WcvWtUQYws 88NA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id ei14-20020a056a0080ce00b006c386ea46dbsi3538255pfb.35.2023.12.01.10.31.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 10:31:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 0C199807C7FA; Fri, 1 Dec 2023 10:30:38 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229905AbjLASaW (ORCPT + 99 others); Fri, 1 Dec 2023 13:30:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229534AbjLASaU (ORCPT ); Fri, 1 Dec 2023 13:30:20 -0500 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.85.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00D8E106 for ; Fri, 1 Dec 2023 10:30:22 -0800 (PST) Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with both STARTTLS and AUTH (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-64-l9Pbyyc5NbCVu4Mqkqv9Yg-1; Fri, 01 Dec 2023 18:30:13 +0000 X-MC-Unique: l9Pbyyc5NbCVu4Mqkqv9Yg-1 Received: from AcuMS.Aculab.com (10.202.163.4) by AcuMS.aculab.com (10.202.163.4) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Fri, 1 Dec 2023 18:30:05 +0000 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.048; Fri, 1 Dec 2023 18:30:05 +0000 From: David Laight To: 'Jann Horn' , Jens Axboe , "Pavel Begunkov" , io-uring CC: kernel list , Peter Zijlstra , Ingo Molnar , Will Deacon , Waiman Long Subject: RE: io_uring: incorrect assumption about mutex behavior on unlock? Thread-Topic: io_uring: incorrect assumption about mutex behavior on unlock? Thread-Index: AQHaJHVMNn8At2QRcESH/qhfYed73LCUvC/Q Date: Fri, 1 Dec 2023 18:30:05 +0000 Message-ID: <811a97651e144b83a35fd7eb713aeeae@AcuMS.aculab.com> References: In-Reply-To: Accept-Language: en-GB, 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-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 01 Dec 2023 10:30:38 -0800 (PST) RnJvbTogSmFubiBIb3JuDQo+IFNlbnQ6IDAxIERlY2VtYmVyIDIwMjMgMTY6NDENCj4gDQo+IG11 dGV4X3VubG9jaygpIGhhcyBhIGRpZmZlcmVudCBBUEkgY29udHJhY3QgY29tcGFyZWQgdG8gc3Bp bl91bmxvY2soKS4NCj4gc3Bpbl91bmxvY2soKSBjYW4gYmUgdXNlZCB0byByZWxlYXNlIG93bmVy c2hpcCBvZiBhbiBvYmplY3QsIHNvIHRoYXQNCj4gYXMgc29vbiBhcyB0aGUgc3BpbmxvY2sgaXMg dW5sb2NrZWQsIGFub3RoZXIgdGFzayBpcyBhbGxvd2VkIHRvIGZyZWUNCj4gdGhlIG9iamVjdCBj b250YWluaW5nIHRoZSBzcGlubG9jay4NCj4gbXV0ZXhfdW5sb2NrKCkgZG9lcyBub3Qgc3VwcG9y dCB0aGlzIGtpbmQgb2YgdXNhZ2U6IFRoZSBjYWxsZXIgb2YNCj4gbXV0ZXhfdW5sb2NrKCkgbXVz dCBlbnN1cmUgdGhhdCB0aGUgbXV0ZXggc3RheXMgYWxpdmUgdW50aWwNCj4gbXV0ZXhfdW5sb2Nr KCkgaGFzIHJldHVybmVkLg0KDQpUaGUgcHJvYmxlbSBzZXF1ZW5jZSBtaWdodCBiZToNCglUaHJl YWQgQQkJVGhyZWFkIEINCgltdXRleF9sb2NrKCkNCgkJCQljb2RlIHRvIHN0b3AgbXV0ZXggYmVp bmcgcmVxdWVzdGVkDQoJCQkJLi4uDQoJCQkJbXV0ZXhfbG9jaygpIC0gc2xlZXBzDQoJbXV0Z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