[Devel] [PATCH VZ9] fs/fuse kio: fixed a bug in pcs_rpc_cancel_msg
Liu Kui
kui.liu at virtuozzo.com
Tue Sep 24 13:09:17 MSK 2024
Set the error when a msg is cancelled, otherwise it could crash kernel
when the cancelled msg has not been sent.
Signed-off-by: Liu Kui <kui.liu 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 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);
--
2.39.3 (Apple Git-146)
More information about the Devel
mailing list