Many processes are blocked in fanotify code when fapolicyd is enabled

Solution Verified - Updated -

Issue

  • Many processes are blocked in fanotify code when fapolicyd.service is enabled. The issue is similar as System hang due to blocked tasks in fanotify code, but there are no INFO: task <process>:<pid> blocked for more than 120 seconds. messages. /proc/<pid>/stack of the blocked processes show the following stack.

    [<0>] fanotify_handle_event+0x306/0x360
    [<0>] fsnotify+0x253/0x580
    [<0>] do_dentry_open+0xce/0x340
    [<0>] path_openat+0x53e/0x14f0
    [<0>] do_filp_open+0x93/0x100
    [<0>] do_sys_open+0x184/0x220
    [<0>] do_syscall_64+0x5b/0x1a0
    [<0>] entry_SYSCALL_64_after_hwframe+0x65/0xca
    

Environment

  • Red Hat Enterprise Linux 8 and later
    • fapolicyd

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content