All of lore.kernel.org
 help / color / mirror / Atom feed
* [bug report] rdma_rxe module unload failure with DEBUG_LOCK_ALLOC enabled
@ 2025-12-19 11:29 Shinichiro Kawasaki
  2025-12-19 13:45 ` Stefan Metzmacher
  0 siblings, 1 reply; 4+ messages in thread
From: Shinichiro Kawasaki @ 2025-12-19 11:29 UTC (permalink / raw)
  To: linux-rdma@vger.kernel.org; +Cc: Stefan Metzmacher, Leon Romanovsky

Hello all,

While I evaluate v6.19-rc1 kernel, I found that rdma_rxe module unload fails.
The failure can be recreated by simple two commands below:

   $ sudo modprobe rdma_rxe
   $ sudo modprobe -r rdma_rxe
   modprobe: FATAL: Module rdma_rxe is in use.

I bisected and found the trigger commit is this:

   80a85a771deb ("RDMA/rxe: reclassify sockets in order to avoid false positives from lockdep")

This commit changes the driver behavior when the kconfig DEBUG_LOCK_ALLOC is
enabled, and my kconfig does so.

Actions for fix will be appreciated.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [bug report] rdma_rxe module unload failure with DEBUG_LOCK_ALLOC enabled
  2025-12-19 11:29 [bug report] rdma_rxe module unload failure with DEBUG_LOCK_ALLOC enabled Shinichiro Kawasaki
@ 2025-12-19 13:45 ` Stefan Metzmacher
  2025-12-19 17:59   ` yanjun.zhu
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Metzmacher @ 2025-12-19 13:45 UTC (permalink / raw)
  To: Shinichiro Kawasaki, linux-rdma@vger.kernel.org; +Cc: Leon Romanovsky

Hi Shinichiro,

> While I evaluate v6.19-rc1 kernel, I found that rdma_rxe module unload fails.
> The failure can be recreated by simple two commands below:
> 
>     $ sudo modprobe rdma_rxe
>     $ sudo modprobe -r rdma_rxe
>     modprobe: FATAL: Module rdma_rxe is in use.
> 
> I bisected and found the trigger commit is this:
> 
>     80a85a771deb ("RDMA/rxe: reclassify sockets in order to avoid false positives from lockdep")
> 
> This commit changes the driver behavior when the kconfig DEBUG_LOCK_ALLOC is
> enabled, and my kconfig does so.
> 
> Actions for fix will be appreciated.

I have a fix for this, see:
https://git.samba.org/?p=metze/linux/wip.git;a=commitdiff;h=7f55eb3373dca97b706e8521705a06d4bf84b0f0

I'll post it to the list later today.

Sorry for the trouble!
metze

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [bug report] rdma_rxe module unload failure with DEBUG_LOCK_ALLOC enabled
  2025-12-19 13:45 ` Stefan Metzmacher
@ 2025-12-19 17:59   ` yanjun.zhu
  2025-12-20  5:22     ` Shinichiro Kawasaki
  0 siblings, 1 reply; 4+ messages in thread
From: yanjun.zhu @ 2025-12-19 17:59 UTC (permalink / raw)
  To: Stefan Metzmacher, Shinichiro Kawasaki,
	linux-rdma@vger.kernel.org
  Cc: Leon Romanovsky

On 12/19/25 5:45 AM, Stefan Metzmacher wrote:
> Hi Shinichiro,
> 
>> While I evaluate v6.19-rc1 kernel, I found that rdma_rxe module unload 
>> fails.
>> The failure can be recreated by simple two commands below:
>>
>>     $ sudo modprobe rdma_rxe
>>     $ sudo modprobe -r rdma_rxe
>>     modprobe: FATAL: Module rdma_rxe is in use.
>>
>> I bisected and found the trigger commit is this:
>>
>>     80a85a771deb ("RDMA/rxe: reclassify sockets in order to avoid 
>> false positives from lockdep")

Thanks a lot.

https://git.samba.org/?p=metze/linux/wip.git;a=commitdiff;h=7f55eb3373dca97b706e8521705a06d4bf84b0f0

Hi, Shinichiro Kawasaki

Please confirm if the above link can fix the above problem or not.

Best Regards,
Yanjun.Zhu

>>
>> This commit changes the driver behavior when the kconfig 
>> DEBUG_LOCK_ALLOC is
>> enabled, and my kconfig does so.
>>
>> Actions for fix will be appreciated.
> 
> I have a fix for this, see:
> https://git.samba.org/?p=metze/linux/ 
> wip.git;a=commitdiff;h=7f55eb3373dca97b706e8521705a06d4bf84b0f0
> 
> I'll post it to the list later today.
> 
> Sorry for the trouble!
> metze


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [bug report] rdma_rxe module unload failure with DEBUG_LOCK_ALLOC enabled
  2025-12-19 17:59   ` yanjun.zhu
@ 2025-12-20  5:22     ` Shinichiro Kawasaki
  0 siblings, 0 replies; 4+ messages in thread
From: Shinichiro Kawasaki @ 2025-12-20  5:22 UTC (permalink / raw)
  To: yanjun.zhu, Stefan Metzmacher, linux-rdma@vger.kernel.org; +Cc: Leon Romanovsky

On 12/20/25 2:59 AM, yanjun.zhu wrote:
> On 12/19/25 5:45 AM, Stefan Metzmacher wrote:
>> Hi Shinichiro,
>>
>>> While I evaluate v6.19-rc1 kernel, I found that rdma_rxe module unload
>>> fails.
>>> The failure can be recreated by simple two commands below:
>>>
>>>      $ sudo modprobe rdma_rxe
>>>      $ sudo modprobe -r rdma_rxe
>>>      modprobe: FATAL: Module rdma_rxe is in use.
>>>
>>> I bisected and found the trigger commit is this:
>>>
>>>      80a85a771deb ("RDMA/rxe: reclassify sockets in order to avoid
>>> false positives from lockdep")
> 
> Thanks a lot.
> 
> https://git.samba.org/?p=metze/linux/wip.git;a=commitdiff;h=7f55eb3373dca97b706e8521705a06d4bf84b0f0
> 
> Hi, Shinichiro Kawasaki
> 
> Please confirm if the above link can fix the above problem or not.

Yes, I confirmed that the patch avoids the rdma_rxe module unload failure,
and replied with my Tested-by tag. Stefan, Yenjun, thank you again for the fix.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-12-20  5:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-19 11:29 [bug report] rdma_rxe module unload failure with DEBUG_LOCK_ALLOC enabled Shinichiro Kawasaki
2025-12-19 13:45 ` Stefan Metzmacher
2025-12-19 17:59   ` yanjun.zhu
2025-12-20  5:22     ` Shinichiro Kawasaki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.