From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932365AbdJYIlr (ORCPT ); Wed, 25 Oct 2017 04:41:47 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:52015 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932198AbdJYIlm (ORCPT ); Wed, 25 Oct 2017 04:41:42 -0400 X-Google-Smtp-Source: ABhQp+TW96r11MZrccUy7701JgmLkRLvP0D35448wLtueSDkSc2ymF4xGhmyDGTE7g4x2ELveaZYrQ== From: Miklos Szeredi To: linux-fsdevel@vger.kernel.org Cc: Jan Kara , Amir Goldstein , Xiong Zhou , linux-kernel@vger.kernel.org Subject: [PATCH v2 0/7] fix fanotify issues with the series in v4.12 Date: Wed, 25 Oct 2017 10:41:32 +0200 Message-Id: <1508920899-8115-1-git-send-email-mszeredi@redhat.com> X-Mailer: git-send-email 2.5.5 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We discovered some problems in the latest fsnotify/fanotify codebase with the help of a stress test (Xiong Zhou is working on upstreaming it to fstests). This series attempts to fix these. With the patch applied the stress test passes. Please review/test. Changes in v2 (only cosmetic fixes, no functional change): - split first patch into 3 parts to make it more readable - checkpatch fixes - added cleanup patch for fanotify Thanks, Miklos --- Miklos Szeredi (7): fsnotify: clean up fsnotify_prepare/finish_user_wait() fsnotify: pin both inode and vfsmount mark fsnotify: fix pinning group in fsnotify_prepare_user_wait() fsnotify: skip unattached marks fanotify: fix fsnotify_prepare_user_wait() failure fsnotify: clean up fsnotify() fanotify: clean up CONFIG_FANOTIFY_ACCESS_PERMISSIONS ifdefs fs/notify/fanotify/fanotify.c | 49 ++++++--------- fs/notify/fanotify/fanotify.h | 8 ++- fs/notify/fanotify/fanotify_user.c | 123 ++++++++++++++++++------------------- fs/notify/fsnotify.c | 108 ++++++++++++++++---------------- fs/notify/mark.c | 100 ++++++++++++++---------------- include/linux/fsnotify_backend.h | 2 - 6 files changed, 184 insertions(+), 206 deletions(-) -- 2.5.5