When running the above program we just see "calling socket" and it blocks forever on the socket call. After a couple of minutes we get the kernel hung task warning. We also see repeated messages:
unregister_netdevice: waiting for eth0 to become free. Usage count = 1
Easy steps to reproduce this issue:
sudo modprobe l2tp_core 5.4.0/tools/ testing/ selftests/ net/l2tp. sh
sudo ./linux-
./close
where close is compiled from:
#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>
#include <stdio.h>
int main()
{
int fd;
fd = socket(
}
When running the above program we just see "calling socket" and it blocks forever on the socket call. After a couple of minutes we get the kernel hung task warning. We also see repeated messages:
unregister_ netdevice: waiting for eth0 to become free. Usage count = 1
I'll bisect the kernel next.