Translated message

A translation of this page exists in English.

fanotify_handle_event() 함수에서 사용자 공간으로부터 fanotify 권한 응답을 기다리는 작업으로 인해 서버가 멈췄습니다.

Solution In Progress - Updated -

Issue

  • 서버가 멈췄습니다.

  • hung_task_panic이 활성화된 경우 서버가 다운됩니다. 그렇지 않으면 서버가 완전히 멈췄을 경우 강제 재부팅만이 유일한 해결책입니다.

  • 커널 링 버퍼에서 차단된 작업 메시지가 관찰되었습니다.

[13919.504321] INFO: task fsbspamd:19047 blocked for more than 120 seconds.
[13919.504396] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[13919.504433] fsbspamd        D ffff999c7fc1acc0     0 19047   1246 0x00000080
[13919.504458] Call Trace:
[13919.504595]  [<ffffffffb0b85da9>] schedule+0x29/0x70
[13919.504668]  [<ffffffffb0699d55>] fanotify_handle_event+0x265/0x3a0
[13919.504704]  [<ffffffffb0acd65c>] ? udp_send_skb+0xac/0x2b0
[13919.504749]  [<ffffffffb04c7780>] ? wake_up_atomic_t+0x30/0x30
[13919.504754]  [<ffffffffb0696128>] fsnotify+0x388/0x460
[13919.504786]  [<ffffffffb0707f3e>] security_file_open+0x6e/0x70
[13919.504822]  [<ffffffffb064a7b9>] do_dentry_open+0xc9/0x2d0
[13919.504829]  [<ffffffffb0707992>] ? security_inode_permission+0x22/0x30
[13919.504834]  [<ffffffffb064aa5a>] vfs_open+0x5a/0xb0
[13919.504853]  [<ffffffffb06590da>] ? may_open+0x5a/0x120
[13919.504860]  [<ffffffffb065d006>] do_last+0x1f6/0x1340
[13919.504866]  [<ffffffffb065e21d>] path_openat+0xcd/0x5a0
[13919.504872]  [<ffffffffb066046d>] do_filp_open+0x4d/0xb0
[13919.504884]  [<ffffffffb066e512>] ? __alloc_fd+0xc2/0x170
[13919.504890]  [<ffffffffb064c044>] do_sys_open+0x124/0x220
[13919.504896]  [<ffffffffb064c15e>] SyS_open+0x1e/0x20
[13919.504910]  [<ffffffffb0b92ed2>] system_call_fastpath+0x25/0x2a
  • 많은 작업들이 fanotify_handle_event()를 호출하고, 사용자 공간에서 권한 이벤트 응답을 기다리다가 TASK_UNINTERRUPTIBLE 상태로 무기한 대기하는 문제가 발생하고 있습니다.

  • 이때, 권한 이벤트 응답을 다른 태스크에 전달하는 역할을 맡은 태스크 자체가 사용자 공간으로부터 권한 이벤트 응답을 기다리고 있는 상황이 발생하는데, 이는 사용자 공간의 버그로 인해 발생하는 교착 상태입니다.

Environment

  • Red Hat Enterprise Linux 7.9
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9
  • Red Hat Enterprise Linux 10

  • VMware Endpoint Security Solution(vsep/pool)은 이전에는 vShield Endpoint로 알려졌으며, Trend Micro, McAfee, Symantec 등 다양한 보안 소프트웨어와 연동하여 작동합니다.

  • F-Secure(fsavd/fsaccd)
  • Microsoft Defender for Linux(wdavdaemon)
  • Kaspersky(kesl)
  • Twistlock Defender(OpenShift 운영자를 위한 인증된 클라우드 네이티브 보안 솔루션 중 하나)
  • Linux용 Cybereason Sensor
  • TrendMicro Deep Security Agent for Linux
  • Airlock(airlock-client.service)
  • ThreatLocker Agent(threatlocker-ag )
  • Aqua Security Enforcer/Scanner (slkavd )

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