Skip to contentSkip to conversation

rxrpc/afs: leaked peer during netns teardown

BUG Shuangpeng Bai 1 participant 1 message Jul 5

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi,

I can reproduce an RxRPC leaked-peer warning during network namespace teardown after adding an AFS cell.

Reproducer:

dmesg -C

unshare -n sh -c '

          ip link set lo up 2>/dev/null || true
          echo "add reprocell 127.0.0.1" > /proc/fs/afs/cells
          cat /proc/net/rxrpc/peers

'

sleep 2
dmesg | grep "Leaked peer"

Observed output:

  Proto Local                                           Remote                                          Use SST   Maxd LastUse      RTT      RTO
  UDP   [::]:7001                                       127.0.0.1:7003                                    1  128  1440     37s       -1        0
  [   37.969040] rxrpc: Leaked peer 61 {1} 127.0.0.1:7003

Tested on:

commit 9fbbf69eab3417732ec2adf93e42e507351dd80a
Linux 7.1.0-13212-g9fbbf69eab34
CONFIG_NET_NS=y
CONFIG_AF_RXRPC=y
CONFIG_AFS_FS=y

Thanks.