How to unload lksctp kernel module?
(cc: linux-sctp, which is the right list to address this question)
Quoted 11 lines · Jon Leighton
I'm trying to unload the lksctp kernel module (sudo modprobe -r sctp), but the operation fails with "FATAL: Module sctp is in use.". lsmod shows a reference count of 2 for sctp. If I restart the machine, and load the lksctp module by running a simple SCTP based program, the module loads, but the reference count is 2 again, and the module can't be unloaded. I've also tried to force the unload with sudo rmmod -f sctp, but that fails with "ERROR: Removing 'sctp': Resource temporarily unavailable". Is there a way to unload the module? I'm running Ubuntu 10.04 LTS with linux kernel 2.6.32-45-generic-pae. Thanks for any help.
- Jon
Quoted 12 lines · Daniel Borkmann
(cc: linux-sctp, which is the right list to address this question)
Quoted 9 lines · Jon Leighton
I'm trying to unload the lksctp kernel module (sudo modprobe -r sctp), but the operation fails with "FATAL: Module sctp is in use.". lsmod shows a reference count of 2 for sctp. If I restart the machine, and load the lksctp module by running a simple SCTP based program, the module loads, but the reference count is 2 again, and the module can't be unloaded. I've also tried to force the unload with sudo rmmod -f sctp, but that fails with "ERROR: Removing 'sctp': Resource temporarily unavailable". Is there a way to unload the module? I'm running Ubuntu 10.04 LTS with linux kernel 2.6.32-45-generic-pae. Thanks for any help.
rmmod -f used to work, but I haven't tried it lately.
The reason for the ref=2 is that when lksctp starts up, it creates a control socket which holds those 2 refs on the module. 'modprobe -r' will not let you unload when the module is refed. rmmod -f works around that.
-vlad
Quoted 6 lines
Quoted 2 lines
- Jon
--
To unsubscribe from this list: send the line "unsubscribe linux-sctp" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 14 lines · Vlad Yasevich
Quoted 12 lines · Daniel Borkmann
(cc: linux-sctp, which is the right list to address this question)
Quoted 9 lines · Jon Leighton
I'm trying to unload the lksctp kernel module (sudo modprobe -r sctp), but the operation fails with "FATAL: Module sctp is in use.". lsmod shows a reference count of 2 for sctp. If I restart the machine, and load the lksctp module by running a simple SCTP based program, the module loads, but the reference count is 2 again, and the module can't be unloaded. I've also tried to force the unload with sudo rmmod -f sctp, but that fails with "ERROR: Removing 'sctp': Resource temporarily unavailable". Is there a way to unload the module? I'm running Ubuntu 10.04 LTS with linux kernel 2.6.32-45-generic-pae. Thanks for any help.
Quoted 6 lines
rmmod -f used to work, but I haven't tried it lately.
The reason for the ref=2 is that when lksctp starts up, it creates a control socket which holds those 2 refs on the module. 'modprobe -r' will not let you unload when the module is refed. rmmod -f works around that.
sudo rmmod -f sctp returns "ERROR: Removing 'sctp': Resource temporarily unavailable". Is there any workaround for this? Or perhaps this means that I need to rebuild my kernel with CONFIG_MODULE_FORCE_UNLOAD enabled?
Quoted 9 lines
-vlad
Quoted 6 lines
Quoted 2 lines
- Jon
Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe linux-sctp" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 17 lines · Jon Leighton
Quoted 16 lines · Vlad Yasevich
Quoted 12 lines · Daniel Borkmann
(cc: linux-sctp, which is the right list to address this question)
Quoted 9 lines · Jon Leighton
I'm trying to unload the lksctp kernel module (sudo modprobe -r sctp), but the operation fails with "FATAL: Module sctp is in use.". lsmod shows a reference count of 2 for sctp. If I restart the machine, and load the lksctp module by running a simple SCTP based program, the module loads, but the reference count is 2 again, and the module can't be unloaded. I've also tried to force the unload with sudo rmmod -f sctp, but that fails with "ERROR: Removing 'sctp': Resource temporarily unavailable". Is there a way to unload the module? I'm running Ubuntu 10.04 LTS with linux kernel 2.6.32-45-generic-pae. Thanks for any help.
rmmod -f used to work, but I haven't tried it lately.
Quoted 8 lines
Quoted 4 lines
The reason for the ref=2 is that when lksctp starts up, it creates a control socket which holds those 2 refs on the module. 'modprobe -r' will not let you unload when the module is refed. rmmod -f works around that.
sudo rmmod -f sctp returns "ERROR: Removing 'sctp': Resource temporarily unavailable". Is there any workaround for this? Or perhaps this means that I need to rebuild my kernel with
CONFIG_MODULE_FORCE_UNLOADenabled?
Yes, you need CONFIG_MODULE_FORCE_UNLOAD. Without it rmmod -f doesn't work.
-vlad
Quoted 11 lines
Quoted 10 lines
-vlad
Quoted 6 lines
Quoted 2 lines
- Jon
--
To unsubscribe from this list: send the line "unsubscribe linux-sctp" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html