Re: [PATCH] rxrpc: fix bad unlock balance in rxrpc_do_sendmsg

From: Khalid Masum
Date: Mon Aug 22 2022 - 12:01:06 EST




On August 22, 2022 9:39:43 PM GMT+06:00, Hawkins Jiawei <yin31149@xxxxxxxxx> wrote:
>On Mon, 22 Aug 2022 at 22:06, Dan Carpenter <dan.carpenter@xxxxxxxxxx> wrote:

>I trid this before, it doesn't work as Dan points out. I think
>it seems that mutex_is_locked() only checks whether there is a task

I see.
>holding the mutex, but do not check whether it is current task holding
>mutex. I also tried lockdep_is_held(), lockdep_is_held() seems can detect

Ok.
>call->user_mutex is still held accurately, although this cannot be the patch.

Useful to know! Thanks for the information.

-- Khalid Masum