{"id":2233405,"url":"http://patchwork.ozlabs.org/api/1.1/covers/2233405/?format=json","web_url":"http://patchwork.ozlabs.org/project/ltp/cover/20260506113655.10797-1-mmenashe@redhat.com/","project":{"id":59,"url":"http://patchwork.ozlabs.org/api/1.1/projects/59/?format=json","name":"Linux Test Project development","link_name":"ltp","list_id":"ltp.lists.linux.it","list_email":"ltp@lists.linux.it","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20260506113655.10797-1-mmenashe@redhat.com>","date":"2026-05-06T11:36:51","name":"[0/4] futex: Add error coverage tests for wait, wake and cmp_requeue","submitter":{"id":93123,"url":"http://patchwork.ozlabs.org/api/1.1/people/93123/?format=json","name":"Michael Menasherov","email":"mmenashe@redhat.com"},"mbox":"http://patchwork.ozlabs.org/project/ltp/cover/20260506113655.10797-1-mmenashe@redhat.com/mbox/","series":[{"id":502973,"url":"http://patchwork.ozlabs.org/api/1.1/series/502973/?format=json","web_url":"http://patchwork.ozlabs.org/project/ltp/list/?series=502973","date":"2026-05-06T11:36:51","name":"futex: Add error coverage tests for wait, wake and cmp_requeue","version":1,"mbox":"http://patchwork.ozlabs.org/series/502973/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/covers/2233405/comments/","headers":{"Return-Path":"<ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it>","X-Original-To":["incoming@patchwork.ozlabs.org","ltp@lists.linux.it"],"Delivered-To":["patchwork-incoming@legolas.ozlabs.org","ltp@picard.linux.it"],"Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=lists.linux.it header.i=@lists.linux.it\n header.a=rsa-sha256 header.s=picard header.b=bOYrCFKW;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=G7TY/5ga;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it\n (client-ip=2001:1418:10:5::2; helo=picard.linux.it;\n envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it;\n receiver=patchwork.ozlabs.org)"],"Received":["from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g9YJS3r2Fz1yJq\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 06 May 2026 21:37:12 +1000 (AEST)","from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id 8DD4C3E6157\n\tfor <incoming@patchwork.ozlabs.org>; Wed,  6 May 2026 13:37:09 +0200 (CEST)","from in-4.smtp.seeweb.it (in-4.smtp.seeweb.it\n [IPv6:2001:4b78:1:20::4])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature ECDSA (secp384r1))\n (No client certificate requested)\n by picard.linux.it (Postfix) with ESMTPS id 9DC813E2CC3\n for <ltp@lists.linux.it>; Wed,  6 May 2026 13:37:03 +0200 (CEST)","from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.129.124])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by in-4.smtp.seeweb.it (Postfix) with ESMTPS id 2741010009DA\n for <ltp@lists.linux.it>; Wed,  6 May 2026 13:37:02 +0200 (CEST)","from mail-wr1-f72.google.com (mail-wr1-f72.google.com\n [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS\n (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id\n us-mta-481-rIXFlTYMOAypVFxzIzbJ5Q-1; Wed, 06 May 2026 07:37:00 -0400","by mail-wr1-f72.google.com with SMTP id\n ffacd0b85a97d-44a3aee3813so2690917f8f.3\n for <ltp@lists.linux.it>; Wed, 06 May 2026 04:37:00 -0700 (PDT)","from fedora.redhat.com (85.65.168.167.dynamic.barak-online.net.\n [85.65.168.167]) by smtp.gmail.com with ESMTPSA id\n ffacd0b85a97d-45055960022sm11919938f8f.26.2026.05.06.04.36.56\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 06 May 2026 04:36:57 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=lists.linux.it;\n i=@lists.linux.it; q=dns/txt; s=picard; t=1778067429; h=to : date :\n message-id : mime-version : subject : list-id : list-unsubscribe :\n list-archive : list-post : list-help : list-subscribe : from :\n reply-to : content-type : content-transfer-encoding : sender : from;\n bh=nurL+9twBOeAoI9m1qGsuSrhKCwnBAMuSJzeoKio0vY=;\n b=bOYrCFKWdOo9DMq1WUFR+PPlUTOTBs+5vQHD5jgqu+q9RvW0dqJkm7DBOVSk8QqIR49O3\n CCLcLIJZSYJbTKX25oxyhNW1nFlUl9cfYdhZ8IbobWkUN2/GC1+8/rSlorlop5atuz2V3RW\n 7hNpblfsNHTnhyyin8RPFhfZTpBfJbo=","v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1778067421;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding;\n bh=jwau9/uKRXTuowftiIELM0UQcpfs4i/wgqca84bJBJQ=;\n b=G7TY/5gaCjbSIesy6N5j02jIhwzRn+a+F08mMjVf964tXF1egp1gJZg6aYI3XBjLZXHUTU\n QoEtvVy9d4Slj5PqAh8t0AVSIYkyjkbtKg3zBY6xlkQt+4CGcuZSufTqN2v8aHvm/ue05y\n G4tf4kmwui+e86k1b2Ds+J7V6Bz43II="],"X-MC-Unique":"rIXFlTYMOAypVFxzIzbJ5Q-1","X-Mimecast-MFC-AGG-ID":"rIXFlTYMOAypVFxzIzbJ5Q_1778067419","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1778067418; x=1778672218;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=jwau9/uKRXTuowftiIELM0UQcpfs4i/wgqca84bJBJQ=;\n b=lpAtS/yPZQfHfEw/6ma0KzmmWE5PHtwwif9WcQcH1EgpIqc1IubT7R3P2FsV90Fzl7\n 3LSmkMvFDr+HGkMJQfY9kg94Y8eCnK6CwpGJkE9secK91k9ggRCiV4o31Sa3IpkUEiku\n /z/rBkq1FsANYV1O71TiLaGIJ3DlT6inuFpLTB/LJUVyGUdf29DSDrIRm+xCA6SgIkN9\n NQp1kmT4rDVvljZOnB+umzOdlRwK1SYVb5ziDHYSqYpxeAA6hJ8MzPRtipDosvm239LX\n VjRWAdYIHfFSzEWPkBRVyUyBRrqP1DkuPFfFvggzoa5AImVuOwAqvdq34BbcpJDjLGFC\n YNGw==","X-Gm-Message-State":"AOJu0Ywlga1j96y0cwnYvq2Du7Mm9hWn47pkdGNmTwCvT39q+UutHzeU\n wDmfBxQpsqpmwZVnHIVX9sWqmICRvPM9/o5L52TINVkt5gV50LYPcr3oqEV9WAuLOp1tYS3QWaL\n O8+D6ceSNpOZQKomCY0miEaT8RJnYsA2D1Ju9e1AVJuL7GKHQdEj4M4jTFPTiAXGo00Efym6zU5\n 2YHRRljrVT0PU0zNBwdW4v3nz1mJHhaoQcrNG2","X-Gm-Gg":"AeBDievuP1GZNxR6Yl8l6OMVBGpAAuS/oNbl04u/Tr8lg0tr9BfIdcHUd0OKs2UeqiM\n o21cxIKlv0yUPp9B+sczX8zfvwryivOlYh+/Z8kZPRTO8HhbeYwKGnr0A/WA2z5sNHOFSZxqN2N\n TR6PhjEY9NuS6SRdKNTMMeXTHxc3aHIbrEPiwzcAmT5pkZXvRdFYSfvbD4oxcdaiF5/nog1br5Z\n c7qFARs+tZbBti6oWGUs6Hyz4knrrSuFtU+/+rq3CAcB43CbonI57XSQ30q83Bza5OoC4FhlJ9h\n ePuME0gX4YN+8tpVK/ey9Fe7ZLaUkdYutGxUU0ToNVZo6yDwJOQhoDah49d7UvaQNUoXySxHl6S\n tCdUmuhSFo9QGT6gjQ01NyyENDeMdN9iz4tVCWgsATVHbkyj5cvk5p7lSlGdyOSCkyqxUUPTbac\n 8yCIyUbQ==","X-Received":["by 2002:a05:6000:2f87:b0:43c:ef4f:79e4 with SMTP id\n ffacd0b85a97d-4515dc808b2mr5045134f8f.37.1778067418379;\n Wed, 06 May 2026 04:36:58 -0700 (PDT)","by 2002:a05:6000:2f87:b0:43c:ef4f:79e4 with SMTP id\n ffacd0b85a97d-4515dc808b2mr5045090f8f.37.1778067417826;\n Wed, 06 May 2026 04:36:57 -0700 (PDT)"],"To":"ltp@lists.linux.it","Date":"Wed,  6 May 2026 14:36:51 +0300","Message-ID":"<20260506113655.10797-1-mmenashe@redhat.com>","X-Mailer":"git-send-email 2.53.0","MIME-Version":"1.0","X-Mimecast-Spam-Score":"0","X-Mimecast-MFC-PROC-ID":"NkMNLAx0xJcOiWomENWunwt0mpPItHnP0ysMvVWN2HE_1778067419","X-Mimecast-Originator":"redhat.com","X-Spam-Status":"No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID,\n DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS shortcircuit=no\n autolearn=disabled version=4.0.1","X-Spam-Checker-Version":"SpamAssassin 4.0.1 (2024-03-25) on in-4.smtp.seeweb.it","X-Virus-Scanned":"clamav-milter 1.0.9 at in-4.smtp.seeweb.it","X-Virus-Status":"Clean","Subject":"[LTP] [PATCH 0/4] futex: Add error coverage tests for wait,\n wake and cmp_requeue","X-BeenThere":"ltp@lists.linux.it","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"Linux Test Project <ltp.lists.linux.it>","List-Unsubscribe":"<https://lists.linux.it/options/ltp>,\n <mailto:ltp-request@lists.linux.it?subject=unsubscribe>","List-Archive":"<http://lists.linux.it/pipermail/ltp/>","List-Post":"<mailto:ltp@lists.linux.it>","List-Help":"<mailto:ltp-request@lists.linux.it?subject=help>","List-Subscribe":"<https://lists.linux.it/listinfo/ltp>,\n <mailto:ltp-request@lists.linux.it?subject=subscribe>","From":"Michael Menasherov via ltp <ltp@lists.linux.it>","Reply-To":"Michael Menasherov <mmenashe@redhat.com>","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Errors-To":"ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it","Sender":"\"ltp\" <ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it>"},"content":"Improve error handling coverage for futex syscalls by adding tests\nfor missing error conditions that were previously untested.\n\nfutex_wait06 verifies EFAULT is returned when uaddr or timeout\npoints to unmapped memory.\n\nfutex_wait07 verifies EINTR is returned when futex_wait() is\ninterrupted by a signal.\n\nfutex_wake05 verifies EFAULT is returned when uaddr points to\nunmapped or PROT_NONE memory.\n\nfutex_cmp_requeue03 verifies EFAULT is returned when uaddr or\nuaddr2 points to unmapped memory, and EACCES or EFAULT when uaddr\npoints to memory without read permission (PROT_NONE). The EACCES\nbehavior was introduced in kernel 5.9.\n\nMichael Menasherov (4):\n  futex_wait06: Add EFAULT error coverage test\n  futex_wait07: Add EINTR error coverage test\n  futex_wake05: Add EFAULT error coverage test\n  futex_cmp_requeue03: Add EFAULT and EACCES error coverage test\n\n runtest/syscalls                              |  7 ++\n testcases/kernel/syscalls/futex/.gitignore    |  4 +\n .../syscalls/futex/futex_cmp_requeue03.c      | 96 +++++++++++++++++++\n .../kernel/syscalls/futex/futex_wait06.c      | 73 ++++++++++++++\n .../kernel/syscalls/futex/futex_wait07.c      | 91 ++++++++++++++++++\n .../kernel/syscalls/futex/futex_wake05.c      | 86 +++++++++++++++++\n 6 files changed, 357 insertions(+)\n create mode 100644 testcases/kernel/syscalls/futex/futex_cmp_requeue03.c\n create mode 100644 testcases/kernel/syscalls/futex/futex_wait06.c\n create mode 100644 testcases/kernel/syscalls/futex/futex_wait07.c\n create mode 100644 testcases/kernel/syscalls/futex/futex_wake05.c"}