All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug] Kernel Panic on Deletion of the network-namespace containing the SocketCAN interface
@ 2020-07-16 16:46 Philipp Lehmann
  2020-07-16 18:37 ` Oliver Hartkopp
  0 siblings, 1 reply; 6+ messages in thread
From: Philipp Lehmann @ 2020-07-16 16:46 UTC (permalink / raw)
  To: wg, mkl, socketcan; +Cc: linux-can, christian.sauer.w

If a SocketCAN Interface (Tested with a PCAN-USB adapter) is moved into a network-namespace and the network namespace is deleted afterwards, without moving the device out of the namespace prior to the deletion. The device could not be found in any of the network namespaces afterwards, only a reboot of the system fixes this. If the device is instead removed from the USB-Bus without a restart, a kernel panic is the result.


Output of uname -r [Linux cpc4x 5.4.0-40-generic #44-Ubuntu SMP Tue Jun 23 00:01:04 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux]


The bug could be reproduced with the following steps:


1. Connect the (USB)-SocketCAN device to the host

2. Add a new network namespace [sudo ip netns add test]
3. Move the CAN-interface to the network name-space [sudo ip link set dev can0 netns test]
4. Delete the namespace [sudo ip netns delete test]
5. Remove the adapter from the USB-Bus. In most cases this should result in a kernel panic

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

end of thread, other threads:[~2020-07-17 14:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-16 16:46 [Bug] Kernel Panic on Deletion of the network-namespace containing the SocketCAN interface Philipp Lehmann
2020-07-16 18:37 ` Oliver Hartkopp
2020-07-17  7:55   ` Stéphane Grosjean
2020-07-17 11:02     ` Oliver Hartkopp
2020-07-17 11:32       ` Oliver Hartkopp
2020-07-17 14:55         ` Stéphane Grosjean

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.