Bug 1083455 - Ethernet Channel Bonding Driver, v3.7.1 woes
Summary: Ethernet Channel Bonding Driver, v3.7.1 woes
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: rawhide
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-02 09:44 UTC by poma
Modified: 2014-04-03 19:37 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-04-03 13:58:00 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
3.15.0-0.rc0.git2.1.fc21.x86_64 Bonding (20.15 KB, text/plain)
2014-04-02 09:46 UTC, poma
no flags Details

Description poma 2014-04-02 09:44:22 UTC
/sys/devices/virtual/net/bond0/bonding/mode:
active-backup 1

- systemd-networkd
dmesg:
BUG: sleeping function called from invalid context at mm/slub.c:965
in_atomic(): 1, irqs_disabled(): 0, pid: 593, name: systemd-network
2 locks held by systemd-network/593:
 #0:  (rtnl_mutex){+.+.+.}, at: [<ffffffff8169e57b>] rtnetlink_rcv+0x1b/0x40
 #1:  (&bond->curr_slave_lock){+...+.}, at: [<ffffffffa0487291>] bond_enslave+0xf31/0xf50 [bonding]
CPU: 2 PID: 593 Comm: systemd-network Not tainted 3.15.0-0.rc0.git2.1.fc21.x86_64 #1
Call Trace:
dump_stack+0x4d/0x66
__might_sleep+0x17e/0x230
kmem_cache_alloc_node+0x4a/0x390
 [<ffffffff816779dd>] __alloc_skb+0x5d/0x2d0
 [<ffffffff816a0bd8>] rtmsg_ifinfo+0x48/0x110
 [<ffffffff810fa18d>] ? trace_hardirqs_on+0xd/0x10
 [<ffffffff8109dd45>] ? __local_bh_enable_ip+0x75/0xe0
 [<ffffffffa0485ca7>] bond_change_active_slave+0x197/0x670 [bonding]
 [<ffffffffa0486264>] bond_select_active_slave+0xe4/0x1e0 [bonding]
 [<ffffffffa048729a>] bond_enslave+0xf3a/0xf50 [bonding]
 [<ffffffff8169fdf2>] do_setlink+0xa02/0xa70
 [<ffffffff813f4fc6>] ? nla_parse+0x96/0xe0
 [<ffffffff816a0da1>] rtnl_setlink+0xc1/0x130
 [<ffffffff810a1739>] ? ns_capable+0x39/0x70
 [<ffffffff8169e64b>] rtnetlink_rcv_msg+0xab/0x270
 [<ffffffff8169e57b>] ? rtnetlink_rcv+0x1b/0x40
 [<ffffffff8169e57b>] ? rtnetlink_rcv+0x1b/0x40
 [<ffffffff8169e5a0>] ? rtnetlink_rcv+0x40/0x40
 [<ffffffff816c3e29>] netlink_rcv_skb+0xa9/0xc0
 [<ffffffff8169e58a>] rtnetlink_rcv+0x2a/0x40
 [<ffffffff816c3420>] netlink_unicast+0x100/0x1e0
 [<ffffffff816c3847>] netlink_sendmsg+0x347/0x770
 [<ffffffff8166c78c>] sock_sendmsg+0x9c/0xe0
 [<ffffffff811de22f>] ? might_fault+0x5f/0xb0
 [<ffffffff811de278>] ? might_fault+0xa8/0xb0
 [<ffffffff811de22f>] ? might_fault+0x5f/0xb0
 [<ffffffff8166cd04>] SYSC_sendto+0x124/0x1d0
 [<ffffffff81024879>] ? sched_clock+0x9/0x10
 [<ffffffff810ddb75>] ? local_clock+0x25/0x30
 [<ffffffff8111cfc9>] ? current_kernel_time+0x69/0xd0
 [<ffffffff810fa0b5>] ? trace_hardirqs_on_caller+0x105/0x1d0
 [<ffffffff810fa18d>] ? trace_hardirqs_on+0xd/0x10
 [<ffffffff8166dede>] SyS_sendto+0xe/0x10
 [<ffffffff817e79a9>] system_call_fastpath+0x16/0x1b

- NetworkManager
dmesg:
BUG: sleeping function called from invalid context at mm/slub.c:965
in_atomic(): 1, irqs_disabled(): 0, pid: 73, name: kworker/u16:5
4 locks held by kworker/u16:5/73:
 #0:  ("%s"(bond_dev->name)){.+.+.+}, at: [<ffffffff810bbd14>] process_one_work+0x1b4/0x6f0
 #1:  ((&(&bond->mii_work)->work)){+.+.+.}, at: [<ffffffff810bbd14>] process_one_work+0x1b4/0x6f0
 #2:  (rtnl_mutex){+.+.+.}, at: [<ffffffff8169d9c5>] rtnl_trylock+0x15/0x20
 #3:  (&bond->curr_slave_lock){+...+.}, at: [<ffffffffa040d2bd>] bond_mii_monitor+0x51d/0x7f0 [bonding]
CPU: 0 PID: 73 Comm: kworker/u16:5 Not tainted 3.15.0-0.rc0.git2.1.fc21.x86_64 #1
Workqueue: bond0 bond_mii_monitor [bonding]
Call Trace:
 [<ffffffff817d3c00>] dump_stack+0x4d/0x66
 [<ffffffff810d044e>] __might_sleep+0x17e/0x230
 [<ffffffff8121034a>] kmem_cache_alloc_node+0x4a/0x390
 [<ffffffff816779dd>] __alloc_skb+0x5d/0x2d0
 [<ffffffff816a0bd8>] rtmsg_ifinfo+0x48/0x110
 [<ffffffff810fa18d>] ? trace_hardirqs_on+0xd/0x10
 [<ffffffff8109dd45>] ? __local_bh_enable_ip+0x75/0xe0
 [<ffffffffa0409ca7>] bond_change_active_slave+0x197/0x670 [bonding]
 [<ffffffffa040a264>] bond_select_active_slave+0xe4/0x1e0 [bonding]
 [<ffffffffa040d2c6>] bond_mii_monitor+0x526/0x7f0 [bonding]
 [<ffffffffa040cdf6>] ? bond_mii_monitor+0x56/0x7f0 [bonding]
 [<ffffffff810bbd80>] process_one_work+0x220/0x6f0
 [<ffffffff810bbd14>] ? process_one_work+0x1b4/0x6f0
 [<ffffffff810bc36b>] worker_thread+0x11b/0x3a0
 [<ffffffff810bc250>] ? process_one_work+0x6f0/0x6f0
 [<ffffffff810c473f>] kthread+0xff/0x120
 [<ffffffff810c4640>] ? insert_kthread_work+0x80/0x80
 [<ffffffff817e78fc>] ret_from_fork+0x7c/0xb0
 [<ffffffff810c4640>] ? insert_kthread_work+0x80/0x80

Comment 1 poma 2014-04-02 09:46:25 UTC
Created attachment 881690 [details]
3.15.0-0.rc0.git2.1.fc21.x86_64 Bonding

Comment 2 Josh Boyer 2014-04-02 12:46:21 UTC
Eric says this should be fixed by commit 072256d1f2b8ba0bbb265d590c703f.  The network tree hasn't been merged yet.

Comment 3 poma 2014-04-02 16:06:12 UTC
Yeah.
Tested with
3.15.0-0.rc0.git3.2.fc21.x86_64
i.e.
3.15.0-0.rc0.git3.1.fc21.x86_64[1] &
bonding-make-slave-status-notifications-GFP_ATOMIC.patch[2]

PASSED!

[1]
http://koji.fedoraproject.org/koji/buildinfo?buildID=508615
[2]
https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/drivers/net/bonding?id=072256d1f2b8ba0bbb265d590c703f3d57a39d6a

Comment 4 Josh Boyer 2014-04-03 13:58:00 UTC
The git8 build going now contains the aforementioned commit.

Comment 5 poma 2014-04-03 19:37:42 UTC
Yeah, tested with 3.15.0-0.rc0.git8.1.fc21.x86_64 & 3.15.0-0.rc0.git8.2.fc21.x86_64(nodebug).
Thanks.


Note You need to log in before you can comment on or make changes to this bug.