Messages: "Debug: sleeping function called from invalid context at mm/slab.c:206"

Solution Verified - Updated

Environment

Red Hat Enterprise Linux 4

Issue

When you stop the network service with bonding enabled, you get the following messages:

     kernel: Debug: sleeping function called from invalid context at mm/slab.c:2063
     kernel: in_atomic():1[expected: 0], irqs_disabled():0
     kernel: Call Trace:
     kernel: [c0000001cdd4f6a0] [c00000000005d7dc] .__might_sleep+0xcc/0xec (unreliable)
     kernel: [c0000001cdd4f740] [c0000000000a1cf8] .__kmalloc+0x70/0x104
     kernel: [c0000001cdd4f7d0] [c0000000000a1f9c] .kzalloc+0x1c/0x50
     kernel: [c0000001cdd4f860] [d0000000000cb0e4] .ehea_get_stats+0x50/0x194 [ehea]
     kernel: [c0000001cdd4f900] [d0000000004fddf0] .bond_get_stats+0xb0/0x298 [bonding]
     kernel: [c0000001cdd4fab0] [c000000000284e88] .dev_seq_printf_stats+0x58/0x184
     kernel: [c0000001cdd4fba0] [c000000000284fe4] .dev_seq_show+0x30/0x48
     kernel: [c0000001cdd4fc20] [c0000000000f1330] .seq_read+0x310/0x480
     kernel: [c0000001cdd4fcf0] [c0000000000c3abc] .vfs_read+0x148/0x1ac
     kernel: [c0000001cdd4fd90] [c0000000000c3e10] .sys_read+0x4c/0x8c
     kernel: [c0000001cdd4fe30] [c000000000011280] syscall_exit+0x0/0x18

Resolution

If you use Red Hat Enterprise 4.7 kernel or less , you can try to update to 4.8 kernel(kernel-2.6.9-89.EL or later).

Comments

The information and bugzilla for this issue:

Tags

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.