From patchwork Thu Jun 20 09:57:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Bobrowski X-Patchwork-Id: 1119320 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.linux.it (client-ip=2001:1418:10:5::2; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=mbobrowski.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=mbobrowski-org.20150623.gappssmtp.com header.i=@mbobrowski-org.20150623.gappssmtp.com header.b="n8lf8s9b"; dkim-atps=neutral Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45Ty1L5pCnz9s5c for ; Thu, 20 Jun 2019 19:57:58 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 1A2452988EA for ; Thu, 20 Jun 2019 11:57:50 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-6.smtp.seeweb.it (in-6.smtp.seeweb.it [217.194.8.6]) by picard.linux.it (Postfix) with ESMTP id C19272987A9 for ; Thu, 20 Jun 2019 11:57:48 +0200 (CEST) Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by in-6.smtp.seeweb.it (Postfix) with ESMTPS id 9D5EA1401728 for ; Thu, 20 Jun 2019 11:57:47 +0200 (CEST) Received: by mail-pf1-x443.google.com with SMTP id 19so1379209pfa.4 for ; Thu, 20 Jun 2019 02:57:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mbobrowski-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=QlUaUdcNsZZVlzTCF6frkggAbClIotE/jTEQ4zOSrYQ=; b=n8lf8s9bIcLWwdLm5wkir+icnEJOAK7kK00b4WaPHxoDzsKCn6g3PYmdfP2boQuCkg sMVVYgdYGbbQucTthSJW8EiGkqXNMUjwiimAj2sTDMWpmx6A60IUj1XC7gOb2B3N/17Q ilFPStXZXWGmwe/UFBF0jyUTtBXmWYH8Lr7yu8/uQzmXuAzYowR/TrnA2xOdAKpB8A+k YHlu6G9bA346uy92FG7wohYbFprss1afsnM1635KpZZKL0uErNHbRgGOA9TMdPfQ3aLg G8GEsh30DJrATjMIDWj4Fp/ctoWdVi9iXsLcoiYxk5efwyIl2K6A7Y147VVEez8Hk/lE kPuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=QlUaUdcNsZZVlzTCF6frkggAbClIotE/jTEQ4zOSrYQ=; b=XlgI3Ll5O0FCFmo9fuYcnxKrqNhg8KmPINp8NCD/xuFIefRtTqkWQAg1L8kdkOAY4W T/YPXlKLXRuj5z5xUUQrbN9TtE7CJ7DZH8rjKHVwpCFJPTfsWPTWg+0rJFMZCjXlbk0j sfaZ4LG0htgf4lja0OmtFzO+JdGPKxHlaTEddVXd24c1mkV6GLijgBo1aCaqRFYNsbMp vuVSuKWxRiEmTBjYuHB17wpsNBLiu/msjC9/bCLtyFsyLj4xsNTvGFyCiuMOpXWkMy8b k+yIjtEhH5Tv3HGJrUHbRCo2TPPCFSy7CWB2tPTOvZ1kWA8R4lcjY2IQWkW6zKkBlyz2 n/KQ== X-Gm-Message-State: APjAAAUReM7eupGZ/KK87UAS2RAhshmA43RO+J/pqDp0ZkGHLAsAKH8/ ye/9RGZr78uf3zfb3cQhhXpcfm2CWA== X-Google-Smtp-Source: APXvYqwYtzZAPIhjragREDlmU5j9NCk4PG9g8mdJpgDrUqTgm+47ppaCoPy2s/ucA6t/613FGtRT1w== X-Received: by 2002:a17:90a:d151:: with SMTP id t17mr2222317pjw.60.1561024665452; Thu, 20 Jun 2019 02:57:45 -0700 (PDT) Received: from neo.Home ([114.78.0.167]) by smtp.gmail.com with ESMTPSA id m41sm11490271pje.18.2019.06.20.02.57.42 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 20 Jun 2019 02:57:44 -0700 (PDT) Date: Thu, 20 Jun 2019 19:57:38 +1000 From: Matthew Bobrowski To: ltp@lists.linux.it Message-ID: MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Virus-Scanned: clamav-milter 0.99.2 at in-6.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, SPF_HELO_NONE,SPF_NONE autolearn=disabled version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on in-6.smtp.seeweb.it Cc: jack@suse.cz Subject: [LTP] [PATCH v5 0/4] syscalls/fanotify: FAN_REPORT_FID and Directory Modification Events X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.18 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" This patch series contains the changes needed to validate the new FAN_REPORT_FID flag and directory modification event functionality within the fanotify API. Changes since version 4: * Fixed problems with unbalanced file descriptor close. * Reorded functions in the test files fanotify13, fanotify14 and fanotify15 so that they all follow a basic template i.e. test() ... do_setup() do_cleanup() Thank you Amir for your feedback. Amir Goldstein (1): syscalls/fanotify13: add test coverage for fsid cache bug Matthew Bobrowski (3): syscalls/fanotify13: new test to verify FAN_REPORT_FID functionality syscalls/fanotify14: new test to validate FAN_REPORT_FID interface return values syscalls/fanotify15: verify fid for dirent events configure.ac | 1 + runtest/syscalls | 3 + testcases/kernel/syscalls/fanotify/.gitignore | 3 + testcases/kernel/syscalls/fanotify/fanotify.h | 81 +++++- testcases/kernel/syscalls/fanotify/fanotify05.c | 1 + testcases/kernel/syscalls/fanotify/fanotify13.c | 328 ++++++++++++++++++++++++ testcases/kernel/syscalls/fanotify/fanotify14.c | 176 +++++++++++++ testcases/kernel/syscalls/fanotify/fanotify15.c | 246 ++++++++++++++++++ 8 files changed, 836 insertions(+), 3 deletions(-) create mode 100644 testcases/kernel/syscalls/fanotify/fanotify13.c create mode 100644 testcases/kernel/syscalls/fanotify/fanotify14.c create mode 100644 testcases/kernel/syscalls/fanotify/fanotify15.c Signed-off-by: Amir Goldstein