Translated message

A translation of this page exists in English.

サーバーがハングアップする。大量のタスクが fanotify_handle_event() を呼び出し、ユーザー空間からの権限イベントの応答を待機している。hung_task_panic が有効になっているとサーバーがクラッシュする。ハード再起動する以外に解決策はない

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.5 - 8.9

  • 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 Operator 向け認定クラウドネイティブセキュリティーの 1 つ)
  • Linux 用 Cybereason Sensor
  • Trend Micro Deep Security Agent for Linux
  • Airlock (airlock-client.service)

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