WARNING in ipvlan_unregister_nf_hook

13 views
Skip to first unread message

syzbot

unread,
Mar 7, 2020, 4:17:12 AM3/7/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: 7472c402 Linux 4.19.108
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=14fbf70de00000
kernel config: https://syzkaller.appspot.com/x/.config?x=6d889e71eea7bde
dashboard link: https://syzkaller.appspot.com/bug?extid=6fcd3e62f67b669a80f9
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=143fdfa1e00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=113c481de00000

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

hsr_slave_1: Device is already in use.
device hsr_slave_1 left promiscuous mode
veth1_vlan: Device is already in use.
------------[ cut here ]------------
WARNING: CPU: 1 PID: 8508 at drivers/net/ipvlan/ipvlan_main.c:65 ipvlan_unregister_nf_hook.cold+0x11/0x1d drivers/net/ipvlan/ipvlan_main.c:65
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 8508 Comm: syz-executor794 Not tainted 4.19.108-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x188/0x20d lib/dump_stack.c:118
panic+0x26a/0x50e kernel/panic.c:186
__warn.cold+0x20/0x46 kernel/panic.c:541
report_bug+0x262/0x2a0 lib/bug.c:186
fixup_bug arch/x86/kernel/traps.c:178 [inline]
fixup_bug arch/x86/kernel/traps.c:173 [inline]
do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296
invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1037
RIP: 0010:ipvlan_unregister_nf_hook.cold+0x11/0x1d drivers/net/ipvlan/ipvlan_main.c:65
Code: 24 e8 10 c2 53 fd 48 8b 04 24 e9 cc f7 ff ff e8 02 c2 53 fd e9 a5 f7 ff ff e8 58 fb 1d fd 48 c7 c7 40 a2 d4 87 e8 85 19 09 fd <0f> 0b e9 08 d5 ff ff 90 90 90 90 90 53 48 89 fb e8 37 fb 1d fd 48
RSP: 0018:ffff888085036ff0 EFLAGS: 00010282
RAX: 0000000000000024 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8152d2f1 RDI: ffffed1010a06df0
RBP: ffff8880905e8040 R08: 0000000000000024 R09: ffffed1015ce5079
R10: ffffed1015ce5078 R11: ffff8880ae7283c7 R12: ffff8880a95dc680
R13: ffff888091f53240 R14: 0000000000000001 R15: 0000000000001002
ipvlan_set_port_mode+0x538/0x650 drivers/net/ipvlan/ipvlan_main.c:106
ipvlan_link_new+0x68d/0xc40 drivers/net/ipvlan/ipvlan_main.c:679
rtnl_newlink+0xf03/0x1440 net/core/rtnetlink.c:3141
rtnetlink_rcv_msg+0x453/0xaf0 net/core/rtnetlink.c:4777
netlink_rcv_skb+0x160/0x410 net/netlink/af_netlink.c:2455
netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline]
netlink_unicast+0x4d7/0x6a0 net/netlink/af_netlink.c:1344
netlink_sendmsg+0x80b/0xcd0 net/netlink/af_netlink.c:1909
sock_sendmsg_nosec net/socket.c:622 [inline]
sock_sendmsg+0xcf/0x120 net/socket.c:632
___sys_sendmsg+0x803/0x920 net/socket.c:2115
__sys_sendmsg+0xec/0x1b0 net/socket.c:2153
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x445659
Code: e8 9c 0b 03 00 48 83 c4 18 c3 0f 1f 80 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 eb 08 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffe6bf60ba8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000445659
RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000000000005
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000030
R13: 0000000000406460 R14: 0000000000000000 R15: 0000000000000000
Kernel Offset: disabled
Rebooting in 86400 seconds..


---
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 can test patches for this bug, for details see:
https://goo.gl/tpsmEJ#testing-patches

syzbot

unread,
Mar 9, 2020, 11:13:10 AM3/9/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: 78d697fc Linux 4.14.172
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=177331fde00000
kernel config: https://syzkaller.appspot.com/x/.config?x=3484a1ea90b8523a
dashboard link: https://syzkaller.appspot.com/bug?extid=d944924fd645966ae7b9
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+d94492...@syzkaller.appspotmail.com

audit: type=1400 audit(1583766724.845:7885): avc: denied { map } for pid=2385 comm="net.agent" path="/bin/dash" dev="sda1" ino=1473 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1
bond1 (unregistering): Released all slaves
------------[ cut here ]------------
WARNING: CPU: 1 PID: 8657 at drivers/net/ipvlan/ipvlan_main.c:63 ipvlan_unregister_nf_hook+0x230/0x260 drivers/net/ipvlan/ipvlan_main.c:63
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 8657 Comm: kworker/u4:8 Not tainted 4.14.172-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: netns cleanup_net
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x13e/0x194 lib/dump_stack.c:58
panic+0x1f9/0x42d kernel/panic.c:183
__warn.cold+0x2f/0x30 kernel/panic.c:547
report_bug+0x20a/0x248 lib/bug.c:186
fixup_bug arch/x86/kernel/traps.c:177 [inline]
fixup_bug arch/x86/kernel/traps.c:172 [inline]
do_error_trap+0x195/0x2d0 arch/x86/kernel/traps.c:295
invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:963
RIP: 0010:ipvlan_unregister_nf_hook+0x230/0x260 drivers/net/ipvlan/ipvlan_main.c:63
RSP: 0018:ffff88805edefa00 EFLAGS: 00010297
RAX: ffff88808b4da480 RBX: 0000000000000000 RCX: 1ffff1101169b59e
RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000286
RBP: ffff8880603fc140 R08: 0000000000000001 R09: 0000000000000004
R10: ffff88808b4dada0 R11: ffff88808b4da480 R12: ffff8880a96a14c0
R13: ffff88805edefab8 R14: ffff88805d9e4180 R15: ffffffff83d4bb00
ipvlan_port_destroy+0x2ca/0x3f0 drivers/net/ipvlan/ipvlan_main.c:176
ipvlan_uninit+0xb6/0xe0 drivers/net/ipvlan/ipvlan_main.c:233
rollback_registered_many+0x76e/0xa70 net/core/dev.c:7219
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:2114
worker_thread+0x5d1/0x1070 kernel/workqueue.c:2248
kthread+0x30d/0x420 kernel/kthread.c:232
ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404

syzbot

unread,
Mar 15, 2020, 5:45:11 AM3/15/20
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following crash on:

HEAD commit: 12cd844a Linux 4.14.173
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=11567919e00000
kernel config: https://syzkaller.appspot.com/x/.config?x=8a9d0602a0f7791e
dashboard link: https://syzkaller.appspot.com/bug?extid=d944924fd645966ae7b9
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1308b52de00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=15204bc3e00000

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

hsr_slave_1: Device is already in use.
device hsr_slave_1 left promiscuous mode
veth1_vlan: Device is already in use.
------------[ cut here ]------------
WARNING: CPU: 1 PID: 7824 at drivers/net/ipvlan/ipvlan_main.c:63 ipvlan_unregister_nf_hook+0x230/0x260 drivers/net/ipvlan/ipvlan_main.c:63
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 7824 Comm: syz-executor199 Not tainted 4.14.173-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x13e/0x194 lib/dump_stack.c:58
panic+0x1f9/0x42d kernel/panic.c:183
__warn.cold+0x2f/0x30 kernel/panic.c:547
report_bug+0x20a/0x248 lib/bug.c:186
fixup_bug arch/x86/kernel/traps.c:177 [inline]
fixup_bug arch/x86/kernel/traps.c:172 [inline]
do_error_trap+0x195/0x2d0 arch/x86/kernel/traps.c:295
invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:963
RIP: 0010:ipvlan_unregister_nf_hook+0x230/0x260 drivers/net/ipvlan/ipvlan_main.c:63
RSP: 0018:ffff888091af73e8 EFLAGS: 00010297
RAX: ffff8880972b8600 RBX: 0000000000000000 RCX: 1ffff11012e571ce
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000282
RBP: ffff888090ccc040 R08: 0000000000000001 R09: 0000000000000001
R10: ffff8880972b8ea8 R11: ffff8880972b8600 R12: ffff8880a0522980
R13: ffff8880a4bd87c0 R14: 0000000000000000 R15: ffff8880a465ea00
ipvlan_set_port_mode+0x491/0x5a0 drivers/net/ipvlan/ipvlan_main.c:104
ipvlan_link_new+0xbb2/0xfc0 drivers/net/ipvlan/ipvlan_main.c:619
rtnl_newlink+0xecb/0x1720 net/core/rtnetlink.c:2728
rtnetlink_rcv_msg+0x3be/0xb10 net/core/rtnetlink.c:4315
netlink_rcv_skb+0x127/0x370 net/netlink/af_netlink.c:2433
netlink_unicast_kernel net/netlink/af_netlink.c:1287 [inline]
netlink_unicast+0x437/0x620 net/netlink/af_netlink.c:1313
netlink_sendmsg+0x733/0xbe0 net/netlink/af_netlink.c:1878
sock_sendmsg_nosec net/socket.c:646 [inline]
sock_sendmsg+0xc5/0x100 net/socket.c:656
___sys_sendmsg+0x70a/0x840 net/socket.c:2062
__sys_sendmsg+0xa3/0x120 net/socket.c:2096
SYSC_sendmsg net/socket.c:2107 [inline]
SyS_sendmsg+0x27/0x40 net/socket.c:2103
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x444159
RSP: 002b:00007ffc329dd138 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000444159
RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000000000005
RBP: 00007ffc329dd140 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000008b670
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Reply all
Reply to author
Forward
0 new messages