syzbot


WARNING in ebt_do_table

Status: fixed on 2018/07/09 18:05
Subsystems: bridge netfilter
[Documentation on labels]
Reported-by: syzbot+2b43f681169a2a0d306a@syzkaller.appspotmail.com
Fix commit: 11ff7288beb2 netfilter: ebtables: reject non-bridge targets
First crash: 2152d, last: 2127d
Duplicate bugs (1)
duplicates (1):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
BUG: unable to handle kernel paging request in ebt_do_table bridge netfilter C 5 2144d 2148d 0/26 closed as dup on 2018/06/09 23:54
Discussions (7)
Title Replies (including bot) Last reply
[PATCH 4.4 00/31] 4.4.143-stable review 37 (37) 2018/09/12 18:54
[PATCH 3.18 00/29] 3.18.116-stable review 32 (32) 2018/07/22 11:42
[PATCH 4.17 000/101] 4.17.9-stable review 100 (101) 2018/07/22 11:42
[PATCH 4.14 00/92] 4.14.57-stable review 91 (92) 2018/07/21 13:41
[PATCH 4.9 00/66] 4.9.114-stable review 69 (69) 2018/07/21 13:40
[PATCH 00/15] Netfilter/IPVS fixes for net 17 (17) 2018/06/11 23:31
WARNING in ebt_do_table 0 (1) 2018/06/06 03:47

Sample crash report:
IPv6: ADDRCONF(NETDEV_UP): team0: link is not ready
8021q: adding VLAN 0 to HW filter on device team0
IPv6: ADDRCONF(NETDEV_CHANGE): team0: link becomes ready
------------[ cut here ]------------
jump to non-chain
WARNING: CPU: 0 PID: 4495 at net/bridge/netfilter/ebtables.c:283 ebt_do_table+0x1c45/0x2140 net/bridge/netfilter/ebtables.c:283
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 4495 Comm: syz-executor989 Not tainted 4.17.0+ #85
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+0x1b9/0x294 lib/dump_stack.c:113
 panic+0x22f/0x4de kernel/panic.c:184
 __warn.cold.8+0x163/0x1b3 kernel/panic.c:536
 report_bug+0x252/0x2d0 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 do_error_trap+0x1fc/0x4d0 arch/x86/kernel/traps.c:296
 do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:316
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:992
RIP: 0010:ebt_do_table+0x1c45/0x2140 net/bridge/netfilter/ebtables.c:283
Code: 61 6c 9c fa 0f 0b 48 8b bd 48 fe ff ff 31 db e8 71 16 c7 00 e9 29 fe ff ff e8 87 39 d0 fa 48 c7 c7 c0 d5 57 88 e8 3b 6c 9c fa <0f> 0b 48 8b bd 48 fe ff ff 31 db e8 4b 16 c7 00 e9 03 fe ff ff bb 
RSP: 0018:ffff8801ac565de8 EFLAGS: 00010282
RAX: 0000000000000011 RBX: 0000000000000200 RCX: ffffffff8160d09d
RDX: 0000000000000000 RSI: ffffffff81611d51 RDI: ffff8801ac565948
RBP: ffff8801ac565fb8 R08: ffff8801d932a180 R09: 0000000000000002
R10: ffff8801d932a180 R11: 0000000000000000 R12: ffffc90001e2a000
R13: ffffc90001e26130 R14: ffffc90001e26090 R15: dffffc0000000000
 ebt_in_hook+0x65/0x80 net/bridge/netfilter/ebtable_filter.c:63
 ebt_out_hook+0x25/0x30 net/bridge/netfilter/ebtable_filter.c:63
 nf_hook_entry_hookfn include/linux/netfilter.h:120 [inline]
 nf_hook_slow+0xc2/0x1c0 net/netfilter/core.c:483
 nf_hook include/linux/netfilter.h:243 [inline]
 NF_HOOK include/linux/netfilter.h:286 [inline]
 __br_forward+0x520/0xd90 net/bridge/br_forward.c:112
 deliver_clone+0x61/0xc0 net/bridge/br_forward.c:128
 maybe_deliver net/bridge/br_forward.c:169 [inline]
 br_flood+0x781/0x8d0 net/bridge/br_forward.c:211
 br_dev_xmit+0x1121/0x1810 net/bridge/br_device.c:103
 __netdev_start_xmit include/linux/netdevice.h:4087 [inline]
 netdev_start_xmit include/linux/netdevice.h:4096 [inline]
 xmit_one net/core/dev.c:3035 [inline]
 dev_hard_start_xmit+0x264/0xc10 net/core/dev.c:3051
 __dev_queue_xmit+0x2724/0x34c0 net/core/dev.c:3566
 dev_queue_xmit+0x17/0x20 net/core/dev.c:3599
 neigh_resolve_output+0x679/0xad0 net/core/neighbour.c:1358
 neigh_output include/net/neighbour.h:482 [inline]
 ip_finish_output2+0xa5f/0x1840 net/ipv4/ip_output.c:229
 ip_do_fragment+0x218e/0x2ac0 net/ipv4/ip_output.c:675
 ip_fragment.constprop.49+0x179/0x240 net/ipv4/ip_output.c:546
 ip_finish_output+0x6cb/0xf80 net/ipv4/ip_output.c:315
 NF_HOOK_COND include/linux/netfilter.h:277 [inline]
 ip_output+0x21b/0x850 net/ipv4/ip_output.c:405
 dst_output include/net/dst.h:444 [inline]
 ip_local_out+0xc5/0x1b0 net/ipv4/ip_output.c:124
 ip_send_skb+0x40/0xe0 net/ipv4/ip_output.c:1425
 udp_send_skb+0x581/0xcc0 net/ipv4/udp.c:803
 udp_push_pending_frames+0x4e/0xe0 net/ipv4/udp.c:831
 udp_sendmsg+0x161e/0x35e0 net/ipv4/udp.c:1072
 udpv6_sendmsg+0x2627/0x30f0 net/ipv6/udp.c:1180
 inet_sendmsg+0x19f/0x690 net/ipv4/af_inet.c:798
 sock_sendmsg_nosec net/socket.c:633 [inline]
 sock_sendmsg+0xd5/0x120 net/socket.c:643
 __sys_sendto+0x3d7/0x670 net/socket.c:1814
 __do_sys_sendto net/socket.c:1826 [inline]
 __se_sys_sendto net/socket.c:1822 [inline]
 __x64_sys_sendto+0xe1/0x1a0 net/socket.c:1822
 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x441ba9
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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 6b 08 fc ff c3 66 2e 0f 1f 84 00 00 00 00 
RSP: 002b:00007ffdf98d0d78 EFLAGS: 00000213 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000441ba9
RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000000000004
RBP: 00000000006cd018 R08: 0000000020000180 R09: 000000000000001c
R10: 0000000000000000 R11: 0000000000000213 R12: 00000000004028a0
R13: 0000000000402930 R14: 0000000000000000 R15: 0000000000000000
Dumping ftrace buffer:
   (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (13):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/06/06 02:40 upstream 5037be168f0e 863a24bb .config console log report syz C ci-upstream-kasan-gce
2018/06/06 02:34 upstream 5037be168f0e 863a24bb .config console log report syz C ci-upstream-kasan-gce-root
2018/06/06 02:14 net-next-old 75d4e704fa8d 863a24bb .config console log report syz C ci-upstream-net-kasan-gce
2018/06/16 02:43 upstream 4c5e8fc62d6a 27c5f59f .config console log report ci-upstream-kasan-gce
2018/06/11 20:53 upstream f0dc7f9c6dd9 ae8bdb50 .config console log report ci-upstream-kasan-gce
2018/06/06 05:10 upstream 5037be168f0e 863a24bb .config console log report ci-upstream-kasan-gce
2018/06/11 09:09 net-next-old f0dc7f9c6dd9 866118af .config console log report ci-upstream-net-kasan-gce
2018/06/08 08:03 net-next-old 3a979e8c07e3 f7b27b7a .config console log report ci-upstream-net-kasan-gce
2018/06/06 19:16 net-next-old 4016a7f15efc 41f9540d .config console log report ci-upstream-net-kasan-gce
2018/06/06 17:44 net-next-old 4016a7f15efc 41f9540d .config console log report ci-upstream-net-kasan-gce
2018/06/06 03:31 net-next-old 75d4e704fa8d 863a24bb .config console log report ci-upstream-net-kasan-gce
2018/06/06 01:20 net-next-old 75d4e704fa8d 863a24bb .config console log report ci-upstream-net-kasan-gce
2018/07/01 00:33 https://github.com/google/kmsan.git master 123906095e30 dba0b50e .config console log report ci-upstream-kmsan-gce
* Struck through repros no longer work on HEAD.