[Devel] [PATCH RHEL7 COMMIT] fuse kio: Add schedule_timeout() into pcs_rpc_fini_verify()
Konstantin Khorenko
khorenko at virtuozzo.com
Mon Oct 8 19:16:53 MSK 2018
The commit is pushed to "branch-rh7-3.10.0-862.14.4.vz7.72.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-862.14.4.vz7.72.4
------>
commit a372d0dc827aec404b8e36a22bec82ce6ea3582c
Author: Kirill Tkhai <ktkhai at virtuozzo.com>
Date: Mon Oct 8 19:16:51 2018 +0300
fuse kio: Add schedule_timeout() into pcs_rpc_fini_verify()
In case of real cs leak, this begins to printk like a hell, and node goes down
under DDoS attack. Add schedule_timeout() to sleep instead of this.
Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
Reviewed-by: Pavel Butsykin <pbutsykin at virtuozzo.com>
---
fs/fuse/kio/pcs/pcs_rpc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/fuse/kio/pcs/pcs_rpc.c b/fs/fuse/kio/pcs/pcs_rpc.c
index 27c32589313e..e358fede38a2 100644
--- a/fs/fuse/kio/pcs/pcs_rpc.c
+++ b/fs/fuse/kio/pcs/pcs_rpc.c
@@ -1268,6 +1268,7 @@ static void pcs_rpc_fini_verify(struct hlist_head *rpc_list)
atomic_read(&ep->refcnt));
WARN_ON(!(ep->flags & PCS_RPC_F_DEAD));
WARN_ON(atomic_read(&ep->refcnt) <= 0);
+ schedule_timeout(5 * HZ);
}
}
More information about the Devel
mailing list