Skip to contentSkip to conversation

sleeping function called from invalid context (rtnetlink)

DISCUSSION Dave Jones 3 participants 4 messages Mar 1, 2012 – Mar 4, 2012 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Dave Jones

author
#1 lore raw

Just had this reported by a Fedora user.
It's against 3.3-rc4, but afaik, the only changes to rtnetlink since then wouldn't have fixed this unless I've overlooked something.

https://bugzilla.redhat.com/show_bug.cgi?id=799099

BUG: sleeping function called from invalid context at kernel/mutex.c:271
in_atomic(): 1, irqs_disabled(): 0, pid: 10451, name: NetworkManager
INFO: lockdep is turned off.
Pid: 10451, comm: NetworkManager Not tainted 3.3.0-0.rc4.git1.4.fc17.x86_64 #1
Call Trace:
 [<ffffffff810966fc>] __might_sleep+0x13c/0x200
 [<ffffffff8154c470>] ? sock_def_readable+0x30/0x1c0
 [<ffffffff8169a81e>] mutex_lock_nested+0x2e/0x3a0
 [<ffffffff81571100>] ? rtnetlink_net_init+0x50/0x50
 [<ffffffff8158e25c>] ? netlink_dump_start+0xdc/0x180
 [<ffffffff81571100>] ? rtnetlink_net_init+0x50/0x50
 [<ffffffff81571897>] rtnl_lock+0x17/0x20
 [<ffffffff81573ef8>] rtnetlink_rcv_msg+0x1f8/0x2e0
 [<ffffffff81571897>] ? rtnl_lock+0x17/0x20
 [<ffffffff81573d00>] ? __rtnl_unlock+0x20/0x20
 [<ffffffff815901b1>] netlink_rcv_skb+0xa1/0xb0
 [<ffffffff815718c5>] rtnetlink_rcv+0x25/0x40
 [<ffffffff8158fafd>] netlink_unicast+0x19d/0x1f0
 [<ffffffff8158fe2b>] netlink_sendmsg+0x2db/0x360
 [<ffffffff8154c66d>] ? sock_update_netprioidx+0x6d/0x250
 [<ffffffff81544888>] sock_sendmsg+0xf8/0x130
 [<ffffffff81545f9d>] ? sock_recvmsg+0xfd/0x130
 [<ffffffff811745d5>] ? might_fault+0xa5/0xb0
 [<ffffffff8117458c>] ? might_fault+0x5c/0xb0
 [<ffffffff81555266>] ? verify_iovec+0x56/0xd0
 [<ffffffff81545e8e>] __sys_sendmsg+0x42e/0x440
 [<ffffffff811bd612>] ? fget_light+0x62/0x4a0
 [<ffffffff811bd6a0>] ? fget_light+0xf0/0x4a0
 [<ffffffff811bd612>] ? fget_light+0x62/0x4a0
 [<ffffffff81548c59>] sys_sendmsg+0x49/0x90
 [<ffffffff816a74a9>] system_call_fastpath+0x16/0x1b
#2 lore raw
Quoted 38 lines · Dave Jones

Just had this reported by a Fedora user.
It's against 3.3-rc4, but afaik, the only changes to rtnetlink since then wouldn't have fixed this unless I've overlooked something.

https://bugzilla.redhat.com/show_bug.cgi?id=799099

BUG: sleeping function called from invalid context at kernel/mutex.c:271
in_atomic(): 1, irqs_disabled(): 0, pid: 10451, name: NetworkManager
INFO: lockdep is turned off.
Pid: 10451, comm: NetworkManager Not tainted 3.3.0-0.rc4.git1.4.fc17.x86_64 #1
Call Trace:
 [<ffffffff810966fc>] __might_sleep+0x13c/0x200
 [<ffffffff8154c470>] ? sock_def_readable+0x30/0x1c0
 [<ffffffff8169a81e>] mutex_lock_nested+0x2e/0x3a0
 [<ffffffff81571100>] ? rtnetlink_net_init+0x50/0x50
 [<ffffffff8158e25c>] ? netlink_dump_start+0xdc/0x180
 [<ffffffff81571100>] ? rtnetlink_net_init+0x50/0x50
 [<ffffffff81571897>] rtnl_lock+0x17/0x20
 [<ffffffff81573ef8>] rtnetlink_rcv_msg+0x1f8/0x2e0
 [<ffffffff81571897>] ? rtnl_lock+0x17/0x20
 [<ffffffff81573d00>] ? __rtnl_unlock+0x20/0x20
 [<ffffffff815901b1>] netlink_rcv_skb+0xa1/0xb0
 [<ffffffff815718c5>] rtnetlink_rcv+0x25/0x40
 [<ffffffff8158fafd>] netlink_unicast+0x19d/0x1f0
 [<ffffffff8158fe2b>] netlink_sendmsg+0x2db/0x360
 [<ffffffff8154c66d>] ? sock_update_netprioidx+0x6d/0x250
 [<ffffffff81544888>] sock_sendmsg+0xf8/0x130
 [<ffffffff81545f9d>] ? sock_recvmsg+0xfd/0x130
 [<ffffffff811745d5>] ? might_fault+0xa5/0xb0
 [<ffffffff8117458c>] ? might_fault+0x5c/0xb0
 [<ffffffff81555266>] ? verify_iovec+0x56/0xd0
 [<ffffffff81545e8e>] __sys_sendmsg+0x42e/0x440
 [<ffffffff811bd612>] ? fget_light+0x62/0x4a0
 [<ffffffff811bd6a0>] ? fget_light+0xf0/0x4a0
 [<ffffffff811bd612>] ? fget_light+0x62/0x4a0
 [<ffffffff81548c59>] sys_sendmsg+0x49/0x90
 [<ffffffff816a74a9>] system_call_fastpath+0x16/0x1b
Quoted 4 lines

--
To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Yes, this is on my TODO list, it should be done in a couple of days.

Thanks

#3 lore raw
In reply to Dave Jones
Quoted 29 lines · Dave Jones

Just had this reported by a Fedora user.
It's against 3.3-rc4, but afaik, the only changes to rtnetlink since then wouldn't have fixed this unless I've overlooked something.

https://bugzilla.redhat.com/show_bug.cgi?id=799099

BUG: sleeping function called from invalid context at kernel/mutex.c:271
in_atomic(): 1, irqs_disabled(): 0, pid: 10451, name: NetworkManager
INFO: lockdep is turned off.
Pid: 10451, comm: NetworkManager Not tainted 3.3.0-0.rc4.git1.4.fc17.x86_64 #1
Call Trace:
 [<ffffffff810966fc>] __might_sleep+0x13c/0x200
 [<ffffffff8154c470>] ? sock_def_readable+0x30/0x1c0
 [<ffffffff8169a81e>] mutex_lock_nested+0x2e/0x3a0
 [<ffffffff81571100>] ? rtnetlink_net_init+0x50/0x50
 [<ffffffff8158e25c>] ? netlink_dump_start+0xdc/0x180
 [<ffffffff81571100>] ? rtnetlink_net_init+0x50/0x50
 [<ffffffff81571897>] rtnl_lock+0x17/0x20
 [<ffffffff81573ef8>] rtnetlink_rcv_msg+0x1f8/0x2e0
 [<ffffffff81571897>] ? rtnl_lock+0x17/0x20
 [<ffffffff81573d00>] ? __rtnl_unlock+0x20/0x20
 [<ffffffff815901b1>] netlink_rcv_skb+0xa1/0xb0
 [<ffffffff815718c5>] rtnetlink_rcv+0x25/0x40
 [<ffffffff8158fafd>] netlink_unicast+0x19d/0x1f0
 [<ffffffff8158fe2b>] netlink_sendmsg+0x2db/0x360
 [<ffffffff8154c66d>] ? sock_update_netprioidx+0x6d/0x250
 [<ffffffff81544888>] sock_sendmsg+0xf8/0x130
 [<ffffffff81545f9d>] ? sock_recvmsg+0xfd/0x130
 [<ffffffff811745d5>] ? might_fault+0xa5/0xb0
Quoted 9 lines
 [<ffffffff8117458c>] ? might_fault+0x5c/0xb0
 [<ffffffff81555266>] ? verify_iovec+0x56/0xd0
 [<ffffffff81545e8e>] __sys_sendmsg+0x42e/0x440
 [<ffffffff811bd612>] ? fget_light+0x62/0x4a0
 [<ffffffff811bd6a0>] ? fget_light+0xf0/0x4a0
 [<ffffffff811bd612>] ? fget_light+0x62/0x4a0
 [<ffffffff81548c59>] sys_sendmsg+0x49/0x90
 [<ffffffff816a74a9>] system_call_fastpath+0x16/0x1b

I took a look at this and couldnt find a reason for this error.

Thats pretty strange...

maintainer
#4 lore raw

From: Eric Dumazet <[email protected]>
Date: Sat, 03 Mar 2012 21:00:14 -0800

Quoted 3 lines

I took a look at this and couldnt find a reason for this error.

Thats pretty strange...

That was the conclusion I came to when I looked at other instances of this.

Some piece of state we're not seeing here is being corrupted, thus corrupting the locking state.