Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1598121ybc; Wed, 13 Nov 2019 01:05:31 -0800 (PST) X-Google-Smtp-Source: APXvYqxZP8fJFHGSUE7CMWx03mj8NJSz4o/uEcJdEswfB+q/aWHWyLcyMPbCK/KyxCsLJ1O27fgq X-Received: by 2002:a17:906:4dda:: with SMTP id f26mr1656821ejw.89.1573635931573; Wed, 13 Nov 2019 01:05:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573635931; cv=none; d=google.com; s=arc-20160816; b=GUddtF3DbK9yKfQLijXD1H96aNc3ck4Jd+fX99pX2brP3g7rRJMyZb2YYo40BJUFzp hrMTqa/Y4w0LTdcqa5wINFxtmbY7RGOtorGiB8MF5xx4ScSAQRZCBKixm5R0j43WhmHN xv3oe57ArWyHNatxGrbRxPliTr0IpHOnTotLeu+PyMhinmg0jRbxQnDCbymz0/SROTZ3 a9o6ii5PEk0LbpjO4XJ62qf81XeEqEcqjA9XJgalsWlK0SlcPCLwEM4gyeF6GlN+S+U2 821gsW3sXphFG/8OZ7dsJ+lTIv9IBdZR3qZOISvWm96iaGYbr0XrESNN52G2LCTKSIB7 e2Rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=3b7l7NIBlE+wfHffYk5Pg1tnx9iFsKnWhRH6So6sfUs=; b=F7NfYaqBvhTmtsp+ou26/MGP5ww8D6vd+cJwxcDZo3bW4NCAD3ifHPF+2Pg9Ibzqw3 IlZj8xloKttKjbxxp93S7AoQoBRJjRUqsEzdVGEjmV81vhXqbBfFwAS8ZfOLl9bBRZFk E6X7l+K5/VudtXGZDqYKhPk8TWdeN85U5E365lcVnRojVnmPsVv6VWjyzfxfawFSNVvl BknfaLrKb9mseW5t8HDLlGbPVtsm+6uiLXKPyeFX5JPSy+otDQu4ocY1CgtdiNcyXkvG Q+UFgD3WvLReyju05tiGYJ9vfwRjlZ/pwwHz2w871K2n9C1vo5aTv5hKaMTCVZgZBS5j LLhg== 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 25si760217ejw.349.2019.11.13.01.05.06; Wed, 13 Nov 2019 01:05:31 -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; 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 S1726486AbfKMJEV (ORCPT + 99 others); Wed, 13 Nov 2019 04:04:21 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:36972 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726086AbfKMJEV (ORCPT ); Wed, 13 Nov 2019 04:04:21 -0500 Received: from p5b06da22.dip0.t-ipconnect.de ([91.6.218.34] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1iUoZT-0006K4-Gd; Wed, 13 Nov 2019 10:04:15 +0100 Date: Wed, 13 Nov 2019 10:04:14 +0100 (CET) From: Thomas Gleixner To: "Harris, Robert" cc: Ingo Molnar , "peterz@infradead.org" , "dvhart@infradead.org" , "linux-kernel@vger.kernel.org" Subject: Re: Help requested: futex(..., FUTEX_WAIT_PRIVATE, ...) returns EPERM In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 12 Nov 2019, Harris, Robert wrote: > 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. sys_futex(FUTEX_WAIT_PRIVATE) does not return -EPERM. Only the PI variants do that. Thanks, tglx