Project

General

Profile

Actions

Bug #87

closed

warning: sock_create_kern(): sleeping function from atomic context called

Added by Anonymous over 15 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

present in revision 1103, caused by sock_create_kern() from within hardif_activate_interface().

BUG: sleeping function called from invalid context at mm/slab.c:3054
in_atomic():1, irqs_disabled():0
3 locks held by bat_event_workq/538:
 #0:  (bat_event_workqueue){--..}, at: [<c012ac61>] run_workqueue+0x80/0x18e
 #1:  ((hardif_check_interfaces_wq).work){--..}, at: [<c012ac61>] run_workqueue+0x80/0x18e
 #2:  (rcu_read_lock){..--}, at: [<c288bb38>] hardif_check_interfaces_status+0x14/0x13a [batman_adv_core]
Pid: 538, comm: bat_event_workq Not tainted 2.6.25.7 #22
 [<c0116a61>] +might_sleep+0xb3/0xb8
 [<c015c595>] kmem_cache_alloc+0x27/0xd9
 [<c0225f44>] ? sock_alloc_inode+0x13/0x52
 [<c0225f44>] sock_alloc_inode+0x13/0x52
 [<c016f219>] alloc_inode+0x15/0x1a2
 [<c016f5f9>] new_inode+0x17/0x70
 [<c0226771>] sock_alloc+0x12/0x7e
 [<c0226f46>] +sock_create+0x67/0x222
 [<c0227118>] sock_create_kern+0x17/0x19
 [<c288b681>] hardif_activate_interface+0x39/0x119 [batman_adv_core]
 [<c02325a1>] ? dev_get_by_name+0x33/0x39
 [<c288b82c>] ? hardif_is_interface_up+0xcb/0xf4 [batman_adv_core]
 [<c288bb85>] hardif_check_interfaces_status+0x61/0x13a [batman_adv_core]
 [<c012ac9c>] run_workqueue+0xbb/0x18e
 [<c012ac61>] ? run_workqueue+0x80/0x18e
 [<c288bb24>] ? hardif_check_interfaces_status+0x0/0x13a [batman_adv_core]
 [<c012b542>] ? worker_thread+0x0/0x85
 [<c012b5bc>] worker_thread+0x7a/0x85
 [<c012da76>] ? autoremove_wake_function+0x0/0x33
 [<c012d9b7>] kthread+0x3b/0x64
 [<c012d97c>] ? kthread+0x0/0x64
 [<c0104ab3>] kernel_thread_helper+0x7/0x10
 =======================

Actions #1

Updated by Simon Wunderlich over 14 years ago

  • Status changed from New to Closed

we don't create sockets anymore, therefore this is solved.

Actions #2

Updated by Anonymous about 13 years ago

  • Category set to 2
  • Assignee deleted (Anonymous)
Actions #3

Updated by Sven Eckelmann about 7 years ago

  • Target version set to 0.2.1
Actions

Also available in: Atom PDF