[Devel] [PATCH VZ9] fs/fuse kio: fixed a bug in pcs_rpc_cancel_msg
Alexey Kuznetsov
kuznet at virtuozzo.com
Tue Sep 24 13:13:57 MSK 2024
Ack
On Tue, Sep 24, 2024 at 6:11 PM Liu Kui <kui.liu at virtuozzo.com> wrote:
>
> 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