Kernel Bug Tracker – Bug 15006
Network testing packet generator (NET_PKTGEN) module breaks suspend to ram
Last modified: 2013-04-09 06:23:26 UTC
(Note: I'm not sure if I should submit this bug to the "Power management" or "Networking" component, so please correct me.)
So, the problem is simple (at least to diagnostic):
* when enabling `CONFIG_NET_PKTGEN=y`,
* and I try to suspend to ram (by either `s2ram -f`, or manually with `echo mem >/proc/...`,
* the system fails to suspend with the following error in `dmesg`:
[ 36.576132] Freezing user space processes ... (elapsed 0.00 seconds) done.
[ 36.576215] Freezing remaining freezable tasks ...
[ 49.493737] psmouse.c: TouchPad at isa0060/serio1/input0 lost sync at byte 1
[ 56.577265] Freezing of tasks failed after 20.00 seconds (2 tasks refusing to freeze):
[ 56.582777] kpktgend_0
[ 56.582779] kpktgend_1
[ 56.582785] Restarting tasks ... done.
How I've solved it: I've disabled the module with `CONFIG_NET_PKTGEN=n`.
Attached is my config file and dmesg output. (One note about the config file: every module I think I'll ever use is built inside the kernel (`=y`), so the resulting kernel is large (7MB), and thus the problem may arise only in corroboration with one of the modules I've enabled.)
Created attachment 24481 [details]
Created attachment 24482 [details]
please also attach the dmesg output when CONFIG_NET_PKTGEN=n.
Created attachment 24613 [details]
`dmesg` for a working build
Created attachment 24782 [details]
Net / pktgen: Fix freezing
Sorry for the delay.
Can you please test with this patch applied?
And with CONFIG_NET_PKTGEN=y, of course.
Thanks! I confirm that your patch works when applied on top of the latest 188.8.131.52. (Of course with CONFIG_NET_PKTGEN=y, and checked to see if I have kpktgend kernel threads.)
Handled-By : Rafael J. Wysocki <firstname.lastname@example.org>
Thanks for testing, I'll push the patch upstream soon.