general protection fault in macvlan_device_event

9 views
Skip to first unread message

syzbot

unread,
Apr 13, 2020, 6:15:17 PM4/13/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: 6dd0e326 Linux 4.19.115
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=109320c3e00000
kernel config: https://syzkaller.appspot.com/x/.config?x=75bfa32b46e7b6cf
dashboard link: https://syzkaller.appspot.com/bug?extid=df11c1da83132651bd3f
compiler: gcc (GCC) 9.0.0 20181231 (experimental)

Unfortunately, I don't have any reproducer for this crash yet.

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+df11c1...@syzkaller.appspotmail.com

bond2 (unregistering): Released all slaves
bond1 (unregistering): Released all slaves
bond0 (unregistering): Releasing backup interface macvlan5
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 19837 Comm: kworker/u4:2 Not tainted 4.19.115-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: netns cleanup_net
RIP: 0010:macvlan_device_event+0x62c/0x930 drivers/net/macvlan.c:1679
Code: df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 09 03 00 00 4c 89 e2 48 8b b3 58 03 00 00 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 d2 02 00 00 49 8b 3c 24 41 bc 02 80 00 00 e8 cb
RSP: 0018:ffff8880536c7530 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffff888094404a00 RCX: ffffffff844c5145
RDX: 0000000000000000 RSI: ffff88804f93dd10 RDI: ffff888094404d58
RBP: 1ffff1100a6d8eac R08: ffff8880a87e4340 R09: fffffbfff12c0495
R10: ffff8880536c75f8 R11: ffffffff896024a7 R12: 0000000000000000
R13: ffff8880994b9a08 R14: ffff8880994b9a08 R15: ffff8880994b9200
FS: 0000000000000000(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c4270b1000 CR3: 00000000a1228000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
notifier_call_chain+0xc0/0x230 kernel/notifier.c:93
call_netdevice_notifiers net/core/dev.c:1766 [inline]
dev_set_mac_address net/core/dev.c:7898 [inline]
dev_set_mac_address+0x22f/0x320 net/core/dev.c:7883
macvlan_set_mac_address drivers/net/macvlan.c:751 [inline]
macvlan_set_mac_address+0x296/0x320 drivers/net/macvlan.c:737
dev_set_mac_address+0x189/0x320 net/core/dev.c:7894
__bond_release_one+0xb81/0x15c0 drivers/net/bonding/bond_main.c:2000
bond_slave_netdev_event drivers/net/bonding/bond_main.c:3113 [inline]
bond_netdev_event+0x980/0xb00 drivers/net/bonding/bond_main.c:3225
notifier_call_chain+0xc0/0x230 kernel/notifier.c:93
call_netdevice_notifiers net/core/dev.c:1766 [inline]
rollback_registered_many+0x7bc/0xc40 net/core/dev.c:8182
unregister_netdevice_many.part.0+0x16/0x1e0 net/core/dev.c:9296
unregister_netdevice_many net/core/dev.c:9295 [inline]
default_device_exit_batch+0x2ff/0x3c0 net/core/dev.c:9767
ops_exit_list.isra.0+0xef/0x140 net/core/net_namespace.c:156
cleanup_net+0x3bf/0x850 net/core/net_namespace.c:553
process_one_work+0x91f/0x1640 kernel/workqueue.c:2155
worker_thread+0x96/0xe20 kernel/workqueue.c:2298
kthread+0x34a/0x420 kernel/kthread.c:246
ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Modules linked in:
---[ end trace aa334d0df4644ee4 ]---
RIP: 0010:macvlan_device_event+0x62c/0x930 drivers/net/macvlan.c:1679
Code: df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 09 03 00 00 4c 89 e2 48 8b b3 58 03 00 00 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 d2 02 00 00 49 8b 3c 24 41 bc 02 80 00 00 e8 cb
RSP: 0018:ffff8880536c7530 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffff888094404a00 RCX: ffffffff844c5145
RDX: 0000000000000000 RSI: ffff88804f93dd10 RDI: ffff888094404d58
RBP: 1ffff1100a6d8eac R08: ffff8880a87e4340 R09: fffffbfff12c0495
R10: ffff8880536c75f8 R11: ffffffff896024a7 R12: 0000000000000000
R13: ffff8880994b9a08 R14: ffff8880994b9a08 R15: ffff8880994b9200
FS: 0000000000000000(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c4270b1000 CR3: 00000000a1228000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
This bug is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Apr 15, 2020, 10:25:15 AM4/15/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: c10b57a5 Linux 4.14.176
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=10bc1fe0100000
kernel config: https://syzkaller.appspot.com/x/.config?x=457897b554d08537
dashboard link: https://syzkaller.appspot.com/bug?extid=bb889a58eabaca0cec3a
compiler: gcc (GCC) 9.0.0 20181231 (experimental)

Unfortunately, I don't have any reproducer for this crash yet.

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+bb889a...@syzkaller.appspotmail.com

bond2 (unregistering): Released all slaves
bond0 (unregistering): Released all slaves
� (unregistering): Releasing backup interface macvlan2
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 1 PID: 2342 Comm: kworker/u4:4 Not tainted 4.14.176-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: netns cleanup_net
task: ffff8880a1606500 task.stack: ffff8880a1610000
RIP: 0010:macvlan_device_event+0x47f/0x890 drivers/net/macvlan.c:1676
RSP: 0018:ffff8880a1617658 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffff8880429d2d80 RCX: 1ffffffff10279bc
RDX: 0000000000000000 RSI: ffff88808e115010 RDI: ffff8880429d30d8
RBP: 1ffff110142c2ed1 R08: 0000000000000001 R09: 0000000000000000
R10: ffff8880a1617700 R11: 0000000000000000 R12: 0000000000000000
R13: ffff88803baee188 R14: ffff88803baee188 R15: ffff88803baed980
FS: 0000000000000000(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f424a1aadb8 CR3: 0000000050b5a000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
notifier_call_chain+0x107/0x1a0 kernel/notifier.c:93
call_netdevice_notifiers net/core/dev.c:1687 [inline]
dev_set_mac_address net/core/dev.c:6964 [inline]
dev_set_mac_address+0x1cd/0x2b0 net/core/dev.c:6949
macvlan_set_mac_address drivers/net/macvlan.c:756 [inline]
macvlan_set_mac_address+0x228/0x290 drivers/net/macvlan.c:742
dev_set_mac_address+0x153/0x2b0 net/core/dev.c:6960
__bond_release_one+0xa03/0x1390 drivers/net/bonding/bond_main.c:1981
bond_slave_netdev_event drivers/net/bonding/bond_main.c:3093 [inline]
bond_netdev_event+0x784/0x8c0 drivers/net/bonding/bond_main.c:3191
notifier_call_chain+0x107/0x1a0 kernel/notifier.c:93
call_netdevice_notifiers net/core/dev.c:1687 [inline]
rollback_registered_many+0x694/0xa70 net/core/dev.c:7205
unregister_netdevice_many.part.0+0x16/0x1d0 net/core/dev.c:8278
unregister_netdevice_many net/core/dev.c:8277 [inline]
default_device_exit_batch+0x2dd/0x380 net/core/dev.c:8739
ops_exit_list.isra.0+0xef/0x140 net/core/net_namespace.c:145
cleanup_net+0x3bb/0x820 net/core/net_namespace.c:484
process_one_work+0x813/0x1540 kernel/workqueue.c:2116
worker_thread+0x5d1/0x1070 kernel/workqueue.c:2250
kthread+0x30d/0x420 kernel/kthread.c:232
ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404
Code: ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 04 04 00 00 4c 89 e2 48 8b b3 58 03 00 00 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 cd 03 00 00 49 8b 3c 24 41 bc 02 80 00 00 e8
RIP: macvlan_device_event+0x47f/0x890 drivers/net/macvlan.c:1676 RSP: ffff8880a1617658
---[ end trace 53b2d3f453ed26e8 ]---

syzbot

unread,
Aug 24, 2020, 4:28:12 AM8/24/20
to syzkaller...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.

syzbot

unread,
Aug 26, 2020, 2:23:10 AM8/26/20
to syzkaller...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages