Re: [PATCH 0/3] net: socket: do not close file descriptor if it's not a socket

2023-06-29 Thread Jason Wang
On Fri, Jun 9, 2023 at 3:28 PM Laurent Vivier wrote: > > The socket netdev with a file descriptor (fd) cannot be removed > and then added again because the fd is closed when the backend is > removed and thus is not available anymore when we want to add the > backend again. > > But this can bring t

[PATCH 0/3] net: socket: do not close file descriptor if it's not a socket

2023-06-09 Thread Laurent Vivier
The socket netdev with a file descriptor (fd) cannot be removed and then added again because the fd is closed when the backend is removed and thus is not available anymore when we want to add the backend again. But this can bring to a core dump: 1- boot a VM with an fd socket netdev 2- remove the