rxrpc kernel sockets hold additional reference to dst
Vadim Fedorenko
vfedorenko at novek.ru
Fri Jan 29 10:21:18 EST 2021
On 29.01.2021 14:51, David Howells wrote:
> Vadim Fedorenko <vfedorenko at novek.ru> wrote:
>
>>
>> And the next problem is a dead lock of releasing references when it was
>> initiated by namespace destruction. Releasing of netdevices is done earlier
>> than subsystems and it assumes that all the refernces to netdevices are
>> released. But in rxrpc subsystem socket destruction (which could release
>> sk_rx_dst) is done in subsystem destruction which should be done after
>> netdevices.
>
> Would simply changing (un)register_pernet_subsys() to
> (un)register_pernet_device() for both rxrpc and afs suffice?
I'm going to test this solution right now. But my test case could not cover the
correct behavior of this subsystem. Could you please test it for correctness too?
Vadim
More information about the linux-afs
mailing list