Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1523169ybc; Tue, 12 Nov 2019 23:30:54 -0800 (PST) X-Google-Smtp-Source: APXvYqyYQH3fci7RnRXL+PPK1e2TvBuv3mJmqg4PltY0Fky8bO0MsnO9TU/aVuvYTa+5qcIxQfry X-Received: by 2002:aa7:c942:: with SMTP id h2mr2134585edt.238.1573630254486; Tue, 12 Nov 2019 23:30:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1573630254; cv=pass; d=google.com; s=arc-20160816; b=GCadwbb8/d/LhjZZeCISehqxrUe0Ddmt6A9ghHIoNJXVRuJtNNeS0z3s10j0wsPnXA 6tNU7dAiCsN5wtk+3mUolUax8nt8SCjkhXOiAqGO1Q4sAwaANM+Q/TZRCRbvoMW9oKV1 RX5d8IoUKSyDJVGZhtT81EjqJIMqR79X98Yw06uVeV+wjD9B8n87zN1E686QvuM6YH5A HAc+tn5hq48plSbTQLdn9OnI2o3hV312vUx+KVsvpIXWWDy6BIglFzuZj9xHgUIfD2Fj W6F4PzQuxqD8T0iHLgx7c47ZyBxmWupy6zKOnXAIfLe1OUcRx8XydAmOHmpdLMT6VN/5 0iNQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=fcrK36+ewixZOqFtTOR7hTWVsZPnN/PTT+1crPsWITA=; b=Af7hoSleDi5JgUy/J85GJpfyVqr+O9ef5yazLF70vCvsDqvbCnzjJSitMgl1vHFDjO Qgbt7NdLPTR6pFH2KvOwXclHJWsFWtNJzgah1biJ4LUUUAuuNo3AaYE9LTYxsf1ajZdN I6weYZ4eFGZqnRnvvIxPbzfeNIm26GldS+23/wEmsDaVudVIaM64lEb9zEqdpGPa2UvI HQy6jB9TPChF9T4Abl0C4DVlDoXiRF6klsm4ZCkYIxBdhaHRyP9NO2f0VCvk75aD4SUa AvykuO3oHPOvrEiSjKywQ5yTJh7LyZ5tMA0MbCBDZlOu1lFyowetLoqB0LQLW2VOU8OU WAJg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alertlogic.onmicrosoft.com header.s=selector2-alertlogic-onmicrosoft-com header.b=QMqE8x82; arc=pass (i=1 spf=pass spfdomain=alertlogic.com dkim=pass dkdomain=alertlogic.com dmarc=pass fromdomain=alertlogic.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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alertlogic.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h11si819462edf.93.2019.11.12.23.30.29; Tue, 12 Nov 2019 23:30:54 -0800 (PST) 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; dkim=pass header.i=@alertlogic.onmicrosoft.com header.s=selector2-alertlogic-onmicrosoft-com header.b=QMqE8x82; arc=pass (i=1 spf=pass spfdomain=alertlogic.com dkim=pass dkdomain=alertlogic.com dmarc=pass fromdomain=alertlogic.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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alertlogic.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726339AbfKMH3i (ORCPT + 99 others); Wed, 13 Nov 2019 02:29:38 -0500 Received: from mail-eopbgr680096.outbound.protection.outlook.com ([40.107.68.96]:27621 "EHLO NAM04-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725966AbfKMH3i (ORCPT ); Wed, 13 Nov 2019 02:29:38 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HhPUTDo5p64h6IucY7ZS6o/UGPnoFbwZbIsnL9qOKASJGmhSFEDuY84mUY+SMheEVfzYGm+yOtXrR1x1yVNffoQA0tMw+l0Ihgy+xyZn8KvyYfW6Y+tTcObq/R1aj9HYvEP7inbDWXb6OOEUQZIuIqEWCKFjDF8TTmTcLADmbPmiVDgPw9BzuakQ9HyfO+KYUw0kDjL/uNiyf5zL410ynWBSc3XtmySs0gQ3mSq5eFakgseEL54qpnpYo6ZdLET+R8LFN+NmzVlmPUyYswIKhYgVdAz4REv1brrT2MxPfBHa9Kaivr1vipvdH0iHfJeXyykOIQDW301wTZ972RXUDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fcrK36+ewixZOqFtTOR7hTWVsZPnN/PTT+1crPsWITA=; b=df5n6JdtUJ1KjJxaw5Mtv3noWWmTpuh8Z6LN+jrvVtWpUbO+S9NMMvEWZTghi1d45lvS3gk9AFbw/To4uq1EhKcg6+oQRNY0LPKA4IgEcNBDWIJLQGdOLtDw8KD5/O/mFnZawjqPKnQNcQcEjJjh7hES94ysWjLUpvP5x9/uNoHf6WIkEDyQShux037nagSq5e65ybJ3s1EYclKBZBp1w6B9u2r9mv061SNayM5wekb3OBFjUKB2Pafs4PerS1mKzSzV45xZCToYFgNmCxvE4iGDVKtp4ACpBYPIJNBUrcUxfjB0Mq8jCNq/4hSeFYXNyanZuFgTKlyEp+0Nkdmkag== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=alertlogic.com; dmarc=pass action=none header.from=alertlogic.com; dkim=pass header.d=alertlogic.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alertlogic.onmicrosoft.com; s=selector2-alertlogic-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fcrK36+ewixZOqFtTOR7hTWVsZPnN/PTT+1crPsWITA=; b=QMqE8x82PLBcLWEH97WcZ9RX2eiuIILaZU+jLzSs1VzXfrl3qXM9OmCP6rbfdBK4fzA1V8IDXy0nLBsc5koymql7Kd58WBBSkL9Q/HkGo1ei18NTljj3hl8PVIksOl2TSOhpLSABcsK/yS0pidxQObCkpLqnytSYw07X5Uj5hM0= Received: from BYAPR20MB2726.namprd20.prod.outlook.com (20.178.238.150) by BYAPR20MB2662.namprd20.prod.outlook.com (20.178.237.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2430.24; Wed, 13 Nov 2019 07:29:34 +0000 Received: from BYAPR20MB2726.namprd20.prod.outlook.com ([fe80::b1ef:70a1:4100:26a4]) by BYAPR20MB2726.namprd20.prod.outlook.com ([fe80::b1ef:70a1:4100:26a4%3]) with mapi id 15.20.2451.023; Wed, 13 Nov 2019 07:29:34 +0000 From: "Harris, Robert" To: "tglx@linutronix.de" , "mingo@redhat.com" , "peterz@infradead.org" , "dvhart@infradead.org" CC: "linux-kernel@vger.kernel.org" Subject: Re: Help requested: futex(..., FUTEX_WAIT_PRIVATE, ...) returns EPERM Thread-Topic: Help requested: futex(..., FUTEX_WAIT_PRIVATE, ...) returns EPERM Thread-Index: AQHVmYBWfg0+aL4WQEeFFOC3OWpiUqeItS+A Date: Wed, 13 Nov 2019 07:29:33 +0000 Message-ID: <0FFCBE3B-65D0-493F-9DB6-D4D64218EB0D@alertlogic.com> References: In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=robert.harris@alertlogic.com; x-originating-ip: [165.225.81.101] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c1f086fa-7e45-4f5a-4fb8-08d7680b3b1f x-ms-traffictypediagnostic: BYAPR20MB2662: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-forefront-prvs: 0220D4B98D x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(346002)(136003)(376002)(366004)(396003)(39850400004)(189003)(199004)(305945005)(14454004)(66446008)(14444005)(66946007)(5024004)(71200400001)(76176011)(26005)(446003)(25786009)(110136005)(11346002)(91956017)(256004)(64756008)(36756003)(66476007)(2616005)(2501003)(486006)(476003)(71190400001)(86362001)(66556008)(7736002)(53546011)(6506007)(2201001)(99286004)(478600001)(3846002)(8936002)(6116002)(81166006)(6246003)(66066001)(4326008)(102836004)(55236004)(6512007)(8676002)(81156014)(33656002)(2906002)(76116006)(6486002)(5660300002)(229853002)(316002)(186003)(6436002);DIR:OUT;SFP:1102;SCL:1;SRVR:BYAPR20MB2662;H:BYAPR20MB2726.namprd20.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: alertlogic.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: M0QLY090c53ewFVJAZZM5z0LSAfQUUVUTZi0/xih6xQQgMFftvyGSJa1qxrYKikg6l3FKaTh737I/hIYn3RcovXZROUQC6L6Nr++C20p5JQACxxDrWC+guU6HrKutPbiu6QIQQSvi97Hytfh5gVFggJnG4ZbFrL4TWWcDp03+gMVdi71hCspvp4l2fTfq8U/PfggTA6B9AdVDrE/BophxnHgdUB6n3EV6yX155aGbnpsJpl16wyNVEKv0QwL5ru0mTLrEFYabaGaebm3VrqXk+j6V6rxhGBvhJCn+QlAASN7Kh7gK1O5v9TzrV8E3P3NmomWaXWSpglh1CDpIyP4idF++OfQsKx41EwPdylXd87URLiG0yGLCIdFWmDIcLuqThiclU7EaszTqWJZR1zvFjFv5kUJoXPmv+nopxXZ2H7rt6UqOyJJ05LryeCy+3sO x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: alertlogic.com X-MS-Exchange-CrossTenant-Network-Message-Id: c1f086fa-7e45-4f5a-4fb8-08d7680b3b1f X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Nov 2019 07:29:34.0072 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 04151827-cb2a-4231-9c24-1ef5ffc408eb X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: BuLJ5oPFSNbvU2HtPAL7w0tRaLwVav+xoXBz5WQceMiHvO39DK5jHUoGUTlPUQ+iMhwRBTTwEYisnnMaW7WqbYtA8LmPO1ClgEhEjve8FXU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR20MB2662 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On 12 Nov 2019, at 17:40, Harris, Robert w= rote: > > I am investigating an issue on 4.9.184 in which futex() returns EPERM > intermittently for > > futex(uaddr, FUTEX_WAIT_PRIVATE, val, &timeout, NULL, 0) > > The failure affects an application in an AWS lambda; traditional > debugging approaches vary from difficult to impossible. I cannot > reproduce the problem at will, instrument the kernel, install a new > kernel or get an application core dump. > > Understanding the circumstances under which EPERM can be returned for > FUTEX_WAIT_PRIVATE would be useful but it is not a documented failure > mode. I have spent some time looking through futex.c but have not > found anything yet. I would be grateful for a hint from someone more > knowledgeable. > > Please address/cc me on any reply. To be clear, I do mean that futex() is returning -1 and setting errno to EPERM. Robert Confidentiality Notice | This email and any included attachments may be pri= vileged, confidential and/or otherwise protected from disclosure. Access to= this email by anyone other than the intended recipient is unauthorized. If= you believe you have received this email in error, please contact the send= er immediately and delete all copies. If you are not the intended recipient= , you are notified that disclosing, copying, distributing or taking any act= ion in reliance on the contents of this information is strictly prohibited.