Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4822757ybl; Tue, 4 Feb 2020 02:36:29 -0800 (PST) X-Google-Smtp-Source: APXvYqzopcxViI9IOe+56hC8lD7/IDlEIUZ6B1Kwz5sv5rRQZJbnRTtoOb6/Nnr0aU+ht/OPpP/s X-Received: by 2002:aca:f4c4:: with SMTP id s187mr2909884oih.154.1580812589522; Tue, 04 Feb 2020 02:36:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580812589; cv=none; d=google.com; s=arc-20160816; b=zHflJSPY8pt2J5GxYUKFRTQoc5iVdZu8hzlq+L7EXGvJYmcDNic5dZJO+9TSlQyjPN /N8vyYMG0p2gq7ppx6oJsbN4iM6h5pIlnutgxF5lErgzYWnxK5bMdZSvOtL3hJk1VoTB vRf7HJokn4zRsZqfGFGNH8YWIDA6NEyZEU1QMlDAp2y7X5uj+TQk6NtXXQLIcahJcfXb l0x0ceZnpxCVgzK2VUx9GO55pzriwYJmyD71Fp8mNeQbrV0p2jwaxw2cAOBrqmjjdI7M Xd+p/9YWkkWcff1MHOToqB1G8nuphdCz7EhGENvxS6MMXXJb4OWh7n0rrZvGp5YL/ZBq 4RCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version; bh=t2WdOWRMP4s5zVbQGYA4j6jRs5Ia4i6P8ZYC81FiuQ8=; b=iwk1LWXa/yqRCVNT5Q9y68fHokO1xZscCwf/XOsTfDbLrCGnwkP9JrJv7TWaur/df+ 28rZYIo3oXdVKERD/2+Stmhi9l4pPZwyZCxQiPzyjRO+jK+yKAquDOytHfZvgrB+E4Ff 0SeqrkDpkHpLqbkSN1J5Q3ksecvdurvlz2pJWafbaUuyE3IlvPLQ5tObSs8hT8cPCIFw 5oSO8lfnfZ/NmvNKKqKv+wdUst2X/mpJ5PGOZwG50hngqAqCVyjZ507U7ZXV7euzNhse 7blpINx9YV6ufOPoMOlj+livsa60Fuay1XwcqR3Wp7j9JSjWN0zcYmzTKtLmfyrC16d2 tTSw== 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 w202si4838772oif.121.2020.02.04.02.36.17; Tue, 04 Feb 2020 02:36:29 -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 S1727126AbgBDKfU (ORCPT + 99 others); Tue, 4 Feb 2020 05:35:20 -0500 Received: from mx2.suse.de ([195.135.220.15]:49090 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726364AbgBDKfU (ORCPT ); Tue, 4 Feb 2020 05:35:20 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 00132AAC2; Tue, 4 Feb 2020 10:35:17 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Tue, 04 Feb 2020 11:35:16 +0100 From: Roman Penyaev To: =?UTF-8?Q?Max_Neunh=C3=B6ffer?= Cc: Jakub Kicinski , netdev@vger.kernel.org, linux-fsdevel@vger.kernel.org, LKML , Christopher Kohlhoff , lars@arangodb.com Subject: Re: epoll_wait misses edge-triggered eventfd events: bug in Linux 5.3 and 5.4 In-Reply-To: References: <20200131135730.ezwtgxddjpuczpwy@tux> <20200201121647.62914697@cakuba.hsd1.ca.comcast.net> <20200203151536.caf6n4b2ymvtssmh@tux> <5a16db1f2983ab105b99121ce0737d11@suse.de> Message-ID: X-Sender: rpenyaev@suse.de User-Agent: Roundcube Webmail Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-02-03 22:03, Max Neunhöffer wrote: > Hi Roman, > > Thanks for your quick response. This sounds fantastic! > > The epollbug.c program was originally written by my colleague Lars > Maier and then modified by me and subsequently by Chris Kohlhoff. Note > that the bugzilla bug report contains altogether three variants which > test epoll_wait/epoll_ctl in three different ways. It might be > sensible to take all three variants for the test suite. I checked 3 variants, they do same things: epoll_ctl() races against epoll_wait(), and this is exactly the bug reproduction, regardless actual read() from a file descriptor or EPOLLET flag set. > I cannot imagine that any of the three authors would object to this, I > definitely do not, the other two are on Cc in this email and can speak > for themselves. I adapted the logic from epollbug.c and included it into epoll_wakeup_test.c test suite, you should have received the email: "[PATCH 3/3] kselftest: introduce new epoll test case". Please, take a look or ask your colleague to take a look. If no objections - then fine, leave as is. Thanks. -- Roman