syzbot


general protection fault in macvlan_device_event

Status: fixed on 2020/06/18 13:57
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+5035b1f9dc7ea4558d5a@syzkaller.appspotmail.com
Fix commit: 4dee15b4fd0d macvlan: fix null dereference in macvlan_device_event()
First crash: 1532d, last: 1514d
Discussions (11)
Title Replies (including bot) Last reply
[PATCH 4.4 00/70] 4.4.221-rc1 review 74 (74) 2020/05/02 23:27
[PATCH 4.9 00/80] 4.9.221-rc1 review 85 (85) 2020/05/02 23:18
[PATCH 4.14 000/117] 4.14.178-rc1 review 123 (123) 2020/05/02 23:17
[PATCH AUTOSEL 4.4 01/11] iio:ad7797: Use correct attribute_group 11 (11) 2020/04/30 13:54
[PATCH AUTOSEL 4.9 01/17] iio:ad7797: Use correct attribute_group 17 (17) 2020/04/30 13:54
[PATCH AUTOSEL 4.14 01/27] iio:ad7797: Use correct attribute_group 27 (27) 2020/04/30 13:54
[PATCH 5.6 000/167] 5.6.8-rc1 review 176 (176) 2020/04/30 06:41
[PATCH 5.4 000/168] 5.4.36-rc1 review 173 (173) 2020/04/29 14:05
[PATCH 4.19 000/131] 4.19.119-rc1 review 136 (136) 2020/04/29 14:04
[PATCH net] macvlan: fix null dereference in macvlan_device_event() 2 (2) 2020/04/21 22:52
general protection fault in macvlan_device_event 0 (1) 2020/04/16 11:08
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 general protection fault in macvlan_device_event 10 1516d 1529d 0/1 auto-closed as invalid on 2020/08/26 06:23
linux-4.19 general protection fault in macvlan_device_event 5 1518d 1531d 0/1 auto-closed as invalid on 2020/08/24 08:28

Sample crash report:
device veth1_macvtap left promiscuous mode
device veth0_macvtap left promiscuous mode
device veth1_vlan left promiscuous mode
device veth0_vlan left promiscuous mode
bond0 (unregistering): (slave macvlan2): Releasing backup interface
general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 0 PID: 21 Comm: kworker/u4:1 Not tainted 5.7.0-rc2-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:1707
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 50 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 5b
RSP: 0018:ffffc90000dd7410 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffff88809e430000 RCX: ffffffff84b25f75
RDX: 0000000000000000 RSI: ffff888097ea8490 RDI: ffff88809e430350
RBP: 1ffff920001bae88 R08: ffff8880a97e8580 R09: fffffbfff14b0491
R10: ffffffff8a582487 R11: fffffbfff14b0490 R12: 0000000000000000
R13: ffff8880425d0808 R14: ffff8880425d0808 R15: ffff8880425d0000
FS:  0000000000000000(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055cfb462da50 CR3: 000000009f8a4000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 notifier_call_chain+0xc0/0x230 kernel/notifier.c:83
 call_netdevice_notifiers_info net/core/dev.c:1948 [inline]
 call_netdevice_notifiers_info+0xb5/0x130 net/core/dev.c:1933
 call_netdevice_notifiers_extack net/core/dev.c:1960 [inline]
 call_netdevice_notifiers net/core/dev.c:1974 [inline]
 dev_set_mac_address net/core/dev.c:8405 [inline]
 dev_set_mac_address+0x2ef/0x3f0 net/core/dev.c:8386
 macvlan_set_mac_address drivers/net/macvlan.c:747 [inline]
 macvlan_set_mac_address+0x298/0x320 drivers/net/macvlan.c:733
 dev_set_mac_address+0x283/0x3f0 net/core/dev.c:8401
 __bond_release_one.cold+0xcb3/0xd11 drivers/net/bonding/bond_main.c:2055
 bond_slave_netdev_event drivers/net/bonding/bond_main.c:3166 [inline]
 bond_netdev_event+0x81c/0x930 drivers/net/bonding/bond_main.c:3277
 notifier_call_chain+0xc0/0x230 kernel/notifier.c:83
 call_netdevice_notifiers_info net/core/dev.c:1948 [inline]
 call_netdevice_notifiers_info+0xb5/0x130 net/core/dev.c:1933
 call_netdevice_notifiers_extack net/core/dev.c:1960 [inline]
 call_netdevice_notifiers net/core/dev.c:1974 [inline]
 rollback_registered_many+0x75c/0xe70 net/core/dev.c:8828
 unregister_netdevice_many.part.0+0x16/0x1e0 net/core/dev.c:9988
 unregister_netdevice_many net/core/dev.c:9987 [inline]
 default_device_exit_batch+0x311/0x3d0 net/core/dev.c:10471
 ops_exit_list.isra.0+0x103/0x150 net/core/net_namespace.c:189
 cleanup_net+0x511/0xa50 net/core/net_namespace.c:603
 process_one_work+0x965/0x16a0 kernel/workqueue.c:2268
 worker_thread+0x96/0xe20 kernel/workqueue.c:2414
 kthread+0x388/0x470 kernel/kthread.c:268
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352
Modules linked in:
---[ end trace 6da7f3b1b1ee7ce6 ]---
RIP: 0010:macvlan_device_event+0x62c/0x930 drivers/net/macvlan.c:1707
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 50 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 5b
RSP: 0018:ffffc90000dd7410 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffff88809e430000 RCX: ffffffff84b25f75
RDX: 0000000000000000 RSI: ffff888097ea8490 RDI: ffff88809e430350
RBP: 1ffff920001bae88 R08: ffff8880a97e8580 R09: fffffbfff14b0491
R10: ffffffff8a582487 R11: fffffbfff14b0490 R12: 0000000000000000
R13: ffff8880425d0808 R14: ffff8880425d0808 R15: ffff8880425d0000
FS:  0000000000000000(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055cfb462da50 CR3: 000000009f8a4000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (86):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/04/25 21:37 upstream 5ef58e290782 b8bb8e5f .config console log report ci-upstream-kasan-gce
2020/04/25 09:51 upstream 5ef58e290782 03d97a1b .config console log report ci-upstream-kasan-gce-smack-root
2020/04/25 04:43 upstream b4f633221f0a 03d97a1b .config console log report ci-upstream-kasan-gce
2020/04/24 02:42 upstream c578ddb39e56 2e44d63e .config console log report ci-upstream-kasan-gce
2020/04/17 21:44 upstream 95988fbc7c31 435c6d53 .config console log report ci-upstream-kasan-gce-root
2020/04/14 15:42 upstream 8f3d9f354286 3f3c5574 .config console log report ci-upstream-kasan-gce
2020/04/20 18:37 net-old bdbe05b381ec 347a5dc3 .config console log report ci-upstream-net-this-kasan-gce
2020/04/20 16:40 net-old 9bacd256f135 347a5dc3 .config console log report ci-upstream-net-this-kasan-gce
2020/04/20 12:05 net-old 9bacd256f135 347a5dc3 .config console log report ci-upstream-net-this-kasan-gce
2020/04/19 18:29 net-old 9bacd256f135 6dfd45e1 .config console log report ci-upstream-net-this-kasan-gce
2020/04/12 11:01 net-old 3b72f84f8fb6 a8c6a3f8 .config console log report ci-upstream-net-this-kasan-gce
2020/04/26 13:46 net-next-old 6033cebdfff9 99b258dd .config console log report ci-upstream-net-kasan-gce
2020/04/26 11:25 net-next-old 6033cebdfff9 99b258dd .config console log report ci-upstream-net-kasan-gce
2020/04/26 07:49 net-next-old 6033cebdfff9 99b258dd .config console log report ci-upstream-net-kasan-gce
2020/04/26 03:18 net-next-old 6033cebdfff9 99b258dd .config console log report ci-upstream-net-kasan-gce
2020/04/25 20:32 net-next-old 10395e99f4a6 b8bb8e5f .config console log report ci-upstream-net-kasan-gce
2020/04/25 17:56 net-next-old 10395e99f4a6 b8bb8e5f .config console log report ci-upstream-net-kasan-gce
2020/04/25 16:26 net-next-old 10395e99f4a6 b8bb8e5f .config console log report ci-upstream-net-kasan-gce
2020/04/25 08:04 net-next-old 493f3cc7ee02 03d97a1b .config console log report ci-upstream-net-kasan-gce
2020/04/25 05:54 net-next-old 493f3cc7ee02 03d97a1b .config console log report ci-upstream-net-kasan-gce
2020/04/25 02:49 net-next-old 493f3cc7ee02 03d97a1b .config console log report ci-upstream-net-kasan-gce
2020/04/25 00:48 net-next-old 493f3cc7ee02 03d97a1b .config console log report ci-upstream-net-kasan-gce
2020/04/25 00:02 net-next-old 493f3cc7ee02 03d97a1b .config console log report ci-upstream-net-kasan-gce
2020/04/24 21:12 net-next-old 493f3cc7ee02 03d97a1b .config console log report ci-upstream-net-kasan-gce
2020/04/24 08:49 net-next-old b86a0373855b 2e44d63e .config console log report ci-upstream-net-kasan-gce
2020/04/24 06:10 net-next-old b86a0373855b 2e44d63e .config console log report ci-upstream-net-kasan-gce
2020/04/24 04:48 net-next-old b86a0373855b 2e44d63e .config console log report ci-upstream-net-kasan-gce
2020/04/23 19:20 net-next-old b86a0373855b 2e44d63e .config console log report ci-upstream-net-kasan-gce
2020/04/23 17:18 net-next-old b86a0373855b 2e44d63e .config console log report ci-upstream-net-kasan-gce
2020/04/23 11:53 net-next-old b86a0373855b 2e44d63e .config console log report ci-upstream-net-kasan-gce
2020/04/23 10:04 net-next-old b86a0373855b 2e44d63e .config console log report ci-upstream-net-kasan-gce
2020/04/23 07:49 net-next-old b86a0373855b 2e44d63e .config console log report ci-upstream-net-kasan-gce
2020/04/23 06:29 net-next-old b86a0373855b 2e44d63e .config console log report ci-upstream-net-kasan-gce
2020/04/22 21:14 net-next-old b86a0373855b 2e44d63e .config console log report ci-upstream-net-kasan-gce
2020/04/22 19:09 net-next-old 44dd5efc97da 2e44d63e .config console log report ci-upstream-net-kasan-gce
2020/04/22 18:00 net-next-old 44dd5efc97da 2e44d63e .config console log report ci-upstream-net-kasan-gce
2020/04/22 13:09 net-next-old 44dd5efc97da 2e44d63e .config console log report ci-upstream-net-kasan-gce
2020/04/22 12:58 net-next-old 44dd5efc97da 2e44d63e .config console log report ci-upstream-net-kasan-gce
2020/04/22 12:34 net-next-old 44dd5efc97da 2e44d63e .config console log report ci-upstream-net-kasan-gce
2020/04/22 07:20 net-next-old 44dd5efc97da 2e44d63e .config console log report ci-upstream-net-kasan-gce
2020/04/22 04:14 net-next-old 44dd5efc97da 2e44d63e .config console log report ci-upstream-net-kasan-gce
2020/04/21 10:02 net-next-old 6d9279771600 98a9f9e6 .config console log report ci-upstream-net-kasan-gce
2020/04/21 00:16 net-next-old 6d9279771600 98a9f9e6 .config console log report ci-upstream-net-kasan-gce
2020/04/20 08:50 net-next-old 0fde6e3b55a1 9f7c6d12 .config console log report ci-upstream-net-kasan-gce
2020/04/19 23:06 net-next-old 0fde6e3b55a1 6dfd45e1 .config console log report ci-upstream-net-kasan-gce
2020/04/19 20:49 net-next-old 0fde6e3b55a1 6dfd45e1 .config console log report ci-upstream-net-kasan-gce
2020/04/19 19:53 net-next-old 0fde6e3b55a1 6dfd45e1 .config console log report ci-upstream-net-kasan-gce
2020/04/19 19:22 net-next-old 0fde6e3b55a1 6dfd45e1 .config console log report ci-upstream-net-kasan-gce
2020/04/30 15:17 linux-next ac935d227366 3698959a .config console log report ci-upstream-linux-next-kasan-gce-root
2020/04/30 02:29 linux-next ac935d227366 2dd552a5 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.