[Devel] [PATCH RHEL9 COMMIT] fs/fuse kio: fixed a bug in pcs_rpc_cancel_msg
Konstantin Khorenko
khorenko at virtuozzo.com
Tue Sep 24 15:52:54 MSK 2024
The commit is pushed to "branch-rh9-5.14.0-427.33.1.vz9.72.x-ovz" and will appear at git at bitbucket.org:openvz/vzkernel.git
after rh9-5.14.0-427.33.1.vz9.72.3
------>
commit 1a7852cce89230701ff1dca7374a735bde639cac
Author: Liu Kui <kui.liu at virtuozzo.com>
Date: Tue Sep 24 18:09:17 2024 +0800
fs/fuse kio: fixed a bug in pcs_rpc_cancel_msg
Set the error when a msg is cancelled, otherwise it could crash kernel
when the cancelled msg has not been sent.
Fixes: 4f8e574fab72 ("fs/fuse kio: fixed krpc abort, implement proper request
msg cancellation")
Signed-off-by: Liu Kui <kui.liu at virtuozzo.com>
Acked-by: Alexey Kuznetsov <kuznet at virtuozzo.com>
Feature: fuse: kRPC - single RPC for kernel and userspace
---
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 80bbffcb88a8..a4f3ae1fdf5b 100644
--- a/fs/fuse/kio/pcs/pcs_rpc.c
+++ b/fs/fuse/kio/pcs/pcs_rpc.c
@@ -592,6 +592,7 @@ int pcs_rpc_cancel_msg(struct pcs_msg *msg)
list_del(&msg->list);
spin_unlock(&ep->q_lock);
+ pcs_set_local_error(&msg->error, PCS_ERR_CANCEL_REQUEST);
pcs_msg_del_calendar(msg);
msg->stage = PCS_MSG_STAGE_NONE;
msg->done(msg);
More information about the Devel
mailing list