syzbot


WARNING in batadv_is_on_batman_iface

Status: fixed on 2019/03/06 07:43
Subsystems: batman
[Documentation on labels]
Reported-by: syzbot+c764de0fcfadca9a8595@syzkaller.appspotmail.com
Fix commit: 955d3411a17f batman-adv: Avoid WARN on net_device without parent in netns
First crash: 1934d, last: 1905d
Discussions (10)
Title Replies (including bot) Last reply
[PATCH 3.16 000/202] 3.16.66-rc1 review 205 (205) 2019/04/28 15:45
[PATCH 4.20 00/50] 4.20.9-stable review 62 (62) 2019/02/24 18:25
[PATCH 3.18 000/108] 3.18.135-stable review 112 (112) 2019/02/20 00:18
[PATCH 4.4 000/143] 4.4.175-stable review 153 (153) 2019/02/20 00:16
[PATCH 4.19 00/44] 4.19.22-stable review 48 (48) 2019/02/14 22:23
[PATCH 4.9 00/24] 4.9.157-stable review 30 (30) 2019/02/14 22:22
[PATCH 4.14 00/35] 4.14.100-stable review 41 (41) 2019/02/14 22:21
[PATCH 0/3] pull request for net: batman-adv 2019-02-01 5 (5) 2019/02/01 18:19
Re: WARNING in batadv_is_on_batman_iface 3 (3) 2018/12/30 11:08
WARNING in batadv_is_on_batman_iface 0 (1) 2018/12/30 10:41

Sample crash report:
IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_0: link becomes ready
IPv6: ADDRCONF(NETDEV_CHANGE): team0: link becomes ready
8021q: adding VLAN 0 to HW filter on device batadv0
------------[ cut here ]------------
Cannot find parent device
WARNING: CPU: 1 PID: 7796 at net/batman-adv/hard-interface.c:182 batadv_is_on_batman_iface+0x3e8/0x450 net/batman-adv/hard-interface.c:182
Kernel panic - not syncing: panic_on_warn set ...
CPU: 1 PID: 7796 Comm: syz-executor2 Not tainted 5.0.0-rc3+ #38
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+0x1db/0x2d0 lib/dump_stack.c:113
 panic+0x2cb/0x65c kernel/panic.c:214
 __warn.cold+0x20/0x48 kernel/panic.c:571
 report_bug+0x263/0x2b0 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+0x11b/0x200 arch/x86/kernel/traps.c:271
 do_invalid_op+0x37/0x50 arch/x86/kernel/traps.c:290
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:973
RIP: 0010:batadv_is_on_batman_iface+0x3e8/0x450 net/batman-adv/hard-interface.c:182
Code: ff ff 4c 89 7d c8 e9 ff fe ff ff 48 8b 7d c0 e8 be 5b f4 f9 e9 ff fc ff ff e8 74 68 b0 f9 48 c7 c7 40 31 fb 88 e8 48 b5 79 f9 <0f> 0b eb bb e8 bf 5b f4 f9 e9 45 fc ff ff 48 8b 7d c8 e8 b1 5b f4
RSP: 0018:ffff888092caeb88 EFLAGS: 00010282
RAX: 0000000000000000 RBX: ffff88808d1caa40 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff816854c6 RDI: 0000000000000006
RBP: ffff888092caebd0 R08: ffff88808b912040 R09: ffff88808b9128e0
R10: ffff88808b912040 R11: 0000000000000000 R12: 0000000000000000
R13: ffff88808e4d0080 R14: 000000000000002b R15: ffff88808e4d0080
 batadv_is_valid_iface net/batman-adv/hard-interface.c:205 [inline]
 batadv_hardif_add_interface net/batman-adv/hard-interface.c:917 [inline]
 batadv_hard_if_event+0x935/0x1240 net/batman-adv/hard-interface.c:1043
 notifier_call_chain+0x179/0x380 kernel/notifier.c:93
 __raw_notifier_call_chain kernel/notifier.c:394 [inline]
 raw_notifier_call_chain+0x2e/0x40 kernel/notifier.c:401
 call_netdevice_notifiers_info+0x3f/0x90 net/core/dev.c:1739
 call_netdevice_notifiers_extack net/core/dev.c:1751 [inline]
 call_netdevice_notifiers net/core/dev.c:1765 [inline]
 register_netdevice+0xae0/0x10b0 net/core/dev.c:8658
 ip6gre_newlink_common.isra.0+0x165/0x3d0 net/ipv6/ip6_gre.c:1954
 ip6gre_newlink+0x37a/0x9b0 net/ipv6/ip6_gre.c:1987
 __rtnl_newlink+0x1281/0x1a70 net/core/rtnetlink.c:3182
 rtnl_newlink+0x69/0xa0 net/core/rtnetlink.c:3240
 rtnetlink_rcv_msg+0x481/0xc30 net/core/rtnetlink.c:5130
 netlink_rcv_skb+0x17d/0x410 net/netlink/af_netlink.c:2477
 rtnetlink_rcv+0x1d/0x30 net/core/rtnetlink.c:5148
 netlink_unicast_kernel net/netlink/af_netlink.c:1310 [inline]
 netlink_unicast+0x574/0x770 net/netlink/af_netlink.c:1336
 netlink_sendmsg+0xa05/0xf90 net/netlink/af_netlink.c:1917
 sock_sendmsg_nosec net/socket.c:621 [inline]
 sock_sendmsg+0xdd/0x130 net/socket.c:631
 ___sys_sendmsg+0x7ec/0x910 net/socket.c:2116
 __sys_sendmsg+0x112/0x270 net/socket.c:2154
 __do_sys_sendmsg net/socket.c:2163 [inline]
 __se_sys_sendmsg net/socket.c:2161 [inline]
 __x64_sys_sendmsg+0x78/0xb0 net/socket.c:2161
 do_syscall_64+0x1a3/0x800 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x458099
Code: 6d b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 3b b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f9ca90cdc78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000458099
RDX: 0000000000000000 RSI: 00000000200005c0 RDI: 0000000000000003
RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f9ca90ce6d4
R13: 00000000004c5603 R14: 00000000004d9268 R15: 00000000ffffffff
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/01/22 18:26 upstream 48b161983ae5 985f75cc .config console log report syz ci-upstream-kasan-gce-root
2019/01/04 10:36 upstream 645ff1e8e704 7da23925 .config console log report syz ci-upstream-kasan-gce-root
2018/12/26 11:10 upstream d8924c0d76aa 8a41a0ad .config console log report syz ci-upstream-kasan-gce-root
2019/01/22 18:06 upstream 48b161983ae5 985f75cc .config console log report ci-upstream-kasan-gce-root
2019/01/04 10:17 upstream 645ff1e8e704 7da23925 .config console log report ci-upstream-kasan-gce-root
2018/12/26 09:34 upstream d8924c0d76aa 8a41a0ad .config console log report ci-upstream-kasan-gce-root
2019/01/22 23:02 bpf e7c87bd6cc4e b1ff06b2 .config console log report ci-upstream-bpf-kasan-gce
2019/01/09 05:56 net-old 977e4899c9b4 010ed08b .config console log report ci-upstream-net-this-kasan-gce
2019/01/24 16:15 net-next-old 254764e55652 ce1ccf97 .config console log report ci-upstream-net-kasan-gce
2019/01/03 06:46 net-next-old b71acb0e3721 06a2b89f .config console log report ci-upstream-net-kasan-gce
* Struck through repros no longer work on HEAD.