syzbot


WARNING in compat_copy_entries (2)

Status: fixed on 2019/05/27 12:48
Reported-by: syzbot+659574e7bcc7f7eb4df7@syzkaller.appspotmail.com
Fix commit: 7caa56f006e9 netfilter: ebtables: CONFIG_COMPAT: drop a bogus WARN_ON
First crash: 2454d, last: 2020d
Cause bisection: introduced by (bisect log) :
commit 9dea5dc921b5f4045a18c63eb92e84dc274d17eb
Author: Andy Lutomirski <luto@kernel.org>
Date: Tue Jul 14 22:24:24 2015 +0000

  x86/entry/syscalls: Wire up 32-bit direct socket calls

Crash: no output from test machine (log)
Repro: syz .config
  
Discussions (10)
Title Replies (including bot) Last reply
[PATCH 3.16 000/157] 3.16.72-rc1 review 162 (162) 2019/08/11 15:25
[PATCH 4.4 000/266] 4.4.180-stable review 282 (282) 2019/05/17 09:42
[PATCH 3.18 00/86] 3.18.140-stable review 93 (93) 2019/05/16 14:59
[PATCH 5.0 00/89] 5.0.11-stable review 106 (106) 2019/05/03 11:48
[PATCH 4.19 000/100] 4.19.38-stable review 108 (108) 2019/05/02 05:30
[PATCH 4.14 00/53] 4.14.115-stable review 59 (59) 2019/05/01 16:44
[PATCH 4.9 00/41] 4.9.172-stable review 47 (47) 2019/05/01 16:43
[PATCH 00/10] Netfilter/IPVS fixes for net 12 (12) 2019/04/23 04:25
[PATCH nf] netfilter: ebtables: CONFIG_COMPAT: drop a bogus WARN_ON 2 (2) 2019/04/22 08:37
WARNING in compat_copy_entries (2) 3 (5) 2019/04/14 22:32
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in compat_copy_entries bridge netfilter C 434 2454d 2469d 4/28 fixed on 2018/03/06 13:29

Sample crash report:
IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready
IPv6: ADDRCONF(NETDEV_CHANGE): bond0: link becomes ready
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
WARNING: CPU: 1 PID: 6113 at net/bridge/netfilter/ebtables.c:2086 ebt_size_mwt net/bridge/netfilter/ebtables.c:2086 [inline]
WARNING: CPU: 1 PID: 6113 at net/bridge/netfilter/ebtables.c:2086 size_entry_mwt net/bridge/netfilter/ebtables.c:2167 [inline]
WARNING: CPU: 1 PID: 6113 at net/bridge/netfilter/ebtables.c:2086 compat_copy_entries+0x1088/0x1500 net/bridge/netfilter/ebtables.c:2206
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 6113 Comm: syz-executor0 Not tainted 4.19.0-rc7+ #180
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+0x1c4/0x2b4 lib/dump_stack.c:113
 panic+0x238/0x4e7 kernel/panic.c:184
 __warn.cold.8+0x163/0x1ba kernel/panic.c:536
 report_bug+0x254/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:993
RIP: 0010:ebt_size_mwt net/bridge/netfilter/ebtables.c:2086 [inline]
RIP: 0010:size_entry_mwt net/bridge/netfilter/ebtables.c:2167 [inline]
RIP: 0010:compat_copy_entries+0x1088/0x1500 net/bridge/netfilter/ebtables.c:2206
Code: 9e 5b a0 fa e9 31 fc ff ff e8 94 5b a0 fa 8b 9d f8 fe ff ff 31 ff 89 de e8 95 5c a0 fa 85 db 0f 84 14 fd ff ff e8 78 5b a0 fa <0f> 0b e9 51 f7 ff ff 41 bc ea ff ff ff e8 66 5b a0 fa b8 ff ff 37
RSP: 0018:ffff8801d317f788 EFLAGS: 00010293
RAX: ffff8801ce26e6c0 RBX: 0000000000000004 RCX: ffffffff86de7a0b
RDX: 0000000000000000 RSI: ffffffff86de7a18 RDI: 0000000000000005
RBP: ffff8801d317f910 R08: ffff8801ce26e6c0 R09: ffffed00397695aa
R10: ffffed00397695aa R11: ffff8801cbb4ad57 R12: 0000000000000000
R13: ffff8801d317f970 R14: dffffc0000000000 R15: ffffc90001f8d11c
 compat_do_replace+0x483/0x8e0 net/bridge/netfilter/ebtables.c:2297
 compat_do_ebt_set_ctl+0x2a3/0x31b net/bridge/netfilter/ebtables.c:2379
 compat_nf_sockopt net/netfilter/nf_sockopt.c:144 [inline]
 compat_nf_setsockopt+0x9b/0x140 net/netfilter/nf_sockopt.c:156
 compat_ip_setsockopt+0xff/0x140 net/ipv4/ip_sockglue.c:1286
 inet_csk_compat_setsockopt+0x97/0x120 net/ipv4/inet_connection_sock.c:1048
 compat_tcp_setsockopt+0x49/0x80 net/ipv4/tcp.c:3073
 compat_sock_common_setsockopt+0xb4/0x150 net/core/sock.c:3049
 __compat_sys_setsockopt+0x1b3/0x860 net/compat.c:404
 __do_compat_sys_setsockopt net/compat.c:417 [inline]
 __se_compat_sys_setsockopt net/compat.c:414 [inline]
 __ia32_compat_sys_setsockopt+0xbd/0x150 net/compat.c:414
 do_syscall_32_irqs_on arch/x86/entry/common.c:326 [inline]
 do_fast_syscall_32+0x34d/0xfb2 arch/x86/entry/common.c:397
 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139
RIP: 0023:0xf7f89ca9
Code: 85 d2 74 02 89 0a 5b 5d c3 8b 04 24 c3 8b 0c 24 c3 8b 1c 24 c3 90 90 90 90 90 90 90 90 90 90 90 90 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90
RSP: 002b:00000000ffbd3a1c EFLAGS: 00000296 ORIG_RAX: 000000000000016e
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000000000
RDX: 0000000000000080 RSI: 0000000020000100 RDI: 00000000000001a0
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (19416):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/10/11 06:22 upstream b8db9e69dba9 5f818b4b .config console log report syz ci-upstream-kasan-gce-386
2018/10/11 04:47 upstream b8db9e69dba9 5f818b4b .config console log report syz ci-upstream-kasan-gce-386
2018/10/11 04:31 upstream b8db9e69dba9 5f818b4b .config console log report syz ci-upstream-kasan-gce-386
2018/10/11 03:56 upstream b8db9e69dba9 5f818b4b .config console log report syz ci-upstream-kasan-gce-386
2018/10/11 03:22 upstream b8db9e69dba9 5f818b4b .config console log report syz ci-upstream-kasan-gce-386
2018/10/11 02:38 upstream b8db9e69dba9 5f818b4b .config console log report syz ci-upstream-kasan-gce-386
2018/10/11 02:02 upstream b8db9e69dba9 5f818b4b .config console log report syz ci-upstream-kasan-gce-386
2018/10/11 01:46 upstream b8db9e69dba9 5f818b4b .config console log report syz ci-upstream-kasan-gce-386
2018/10/10 21:50 upstream 3d647e62686f 5b11ac2c .config console log report syz ci-upstream-kasan-gce-386
2018/10/10 21:27 upstream 3d647e62686f 5b11ac2c .config console log report syz ci-upstream-kasan-gce-386
2018/06/09 14:27 upstream 7d3bf613e99a 866118af .config console log report syz ci-upstream-kasan-gce-386
2018/06/06 02:34 upstream 5037be168f0e 863a24bb .config console log report syz ci-upstream-kasan-gce-386
2018/04/11 16:12 upstream f2d285669aae 8b8de427 .config console log report syz ci-upstream-kasan-gce-386
2018/04/11 15:47 upstream f2d285669aae 8b8de427 .config console log report syz ci-upstream-kasan-gce-386
2018/04/11 15:21 upstream f2d285669aae 8b8de427 .config console log report syz ci-upstream-kasan-gce-386
2018/04/11 15:07 upstream f2d285669aae 8b8de427 .config console log report syz ci-upstream-kasan-gce-386
2018/04/11 14:31 upstream f2d285669aae 8b8de427 .config console log report syz ci-upstream-kasan-gce-386
2018/04/11 13:43 upstream f2d285669aae 8b8de427 .config console log report syz ci-upstream-kasan-gce-386
2018/04/11 12:43 upstream f2d285669aae 8b8de427 .config console log report syz ci-upstream-kasan-gce-386
2018/04/11 12:07 upstream f2d285669aae 8b8de427 .config console log report syz ci-upstream-kasan-gce-386
2018/04/11 11:53 upstream f2d285669aae 8b8de427 .config console log report syz ci-upstream-kasan-gce-386
2018/03/06 20:23 upstream ce380619fab9 c8a18476 .config console log report syz ci-upstream-kasan-gce-386
2018/03/06 19:18 upstream ce380619fab9 c8a18476 .config console log report syz ci-upstream-kasan-gce-386
2018/03/06 19:07 upstream ce380619fab9 c8a18476 .config console log report syz ci-upstream-kasan-gce-386
2018/03/06 18:16 upstream ce380619fab9 a17d898a .config console log report syz ci-upstream-kasan-gce-386
2018/03/06 17:35 upstream ce380619fab9 aef0b792 .config console log report syz ci-upstream-kasan-gce-386
2018/03/06 16:58 upstream ce380619fab9 aef0b792 .config console log report syz ci-upstream-kasan-gce-386
2018/03/06 16:38 upstream ce380619fab9 aef0b792 .config console log report syz ci-upstream-kasan-gce-386
2018/03/06 16:03 upstream ce380619fab9 aef0b792 .config console log report syz ci-upstream-kasan-gce-386
2018/03/06 15:13 upstream ce380619fab9 aef0b792 .config console log report syz ci-upstream-kasan-gce-386
2018/03/06 14:40 upstream ce380619fab9 aef0b792 .config console log report syz ci-upstream-kasan-gce-386
2019/05/14 03:05 upstream a13f0655503a 7c305b44 .config console log report ci-upstream-kasan-gce-386
2019/05/13 20:50 upstream a13f0655503a 7c305b44 .config console log report ci-upstream-kasan-gce-386
2019/05/13 10:41 upstream d7a02fa0a8f9 16ab1e89 .config console log report ci-upstream-kasan-gce-386
2019/05/11 07:23 upstream 1fb3b526df3b 46caad94 .config console log report ci-upstream-kasan-gce-386
2019/05/10 20:17 upstream b970afcfcabd cfeec859 .config console log report ci-upstream-kasan-gce-386
2019/05/09 06:13 upstream 80f232121b69 1ab4c999 .config console log report ci-upstream-kasan-gce-386
2019/05/09 03:11 upstream 80f232121b69 1ab4c999 .config console log report ci-upstream-kasan-gce-386
2019/05/09 00:53 upstream 80f232121b69 1ab4c999 .config console log report ci-upstream-kasan-gce-386
2019/05/08 15:37 upstream 8ff468c29e9a a7383bfa .config console log report ci-upstream-kasan-gce-386
2019/05/08 05:32 upstream 8ff468c29e9a a7383bfa .config console log report ci-upstream-kasan-gce-386
2019/05/07 18:38 upstream 71ae5fc87c34 d28f4ce5 .config console log report ci-upstream-kasan-gce-386
2019/05/04 18:50 upstream aa1be08f5258 d28f4ce5 .config console log report ci-upstream-kasan-gce-386
2019/05/04 04:04 upstream a4ccb5f9dc6c d28f4ce5 .config console log report ci-upstream-kasan-gce-386
2019/04/30 11:21 upstream 83a50840e72a 20f16bef .config console log report ci-upstream-kasan-gce-386
2019/04/29 10:00 upstream 37624b58542f b617407b .config console log report ci-upstream-kasan-gce-386
2019/04/29 04:33 upstream 9520b5324b0e b617407b .config console log report ci-upstream-kasan-gce-386
2019/04/28 19:58 upstream 9520b5324b0e b617407b .config console log report ci-upstream-kasan-gce-386
2019/04/28 15:26 upstream 037904a22bf8 b617407b .config console log report ci-upstream-kasan-gce-386
2019/04/28 12:48 upstream 037904a22bf8 b617407b .config console log report ci-upstream-kasan-gce-386
2019/04/27 20:24 upstream baf76f0c58ae b617407b .config console log report ci-upstream-kasan-gce-386
2019/04/27 16:02 upstream baf76f0c58ae b617407b .config console log report ci-upstream-kasan-gce-386
2019/04/27 02:47 upstream d0473f978e61 b617407b .config console log report ci-upstream-kasan-gce-386
2019/04/27 01:42 upstream d0473f978e61 b617407b .config console log report ci-upstream-kasan-gce-386
2019/04/26 17:09 upstream 8113a85f8720 b617407b .config console log report ci-upstream-kasan-gce-386
2019/04/25 08:05 upstream cd8dead0c394 8e3c52b1 .config console log report ci-upstream-kasan-gce-386
2019/04/25 03:00 upstream cd8dead0c394 8e3c52b1 .config console log report ci-upstream-kasan-gce-386
2019/04/24 23:55 upstream ba25b50d582f 8e3c52b1 .config console log report ci-upstream-kasan-gce-386
2019/04/24 22:52 upstream ba25b50d582f 8e3c52b1 .config console log report ci-upstream-kasan-gce-386
2019/04/24 22:04 upstream ba25b50d582f 8e3c52b1 .config console log report ci-upstream-kasan-gce-386
2019/04/24 19:35 upstream ba25b50d582f 8e3c52b1 .config console log report ci-upstream-kasan-gce-386
2019/04/24 18:13 upstream ba25b50d582f 8e3c52b1 .config console log report ci-upstream-kasan-gce-386
2019/04/24 16:44 upstream ba25b50d582f 8e3c52b1 .config console log report ci-upstream-kasan-gce-386
2019/04/24 15:52 upstream ba25b50d582f 8e3c52b1 .config console log report ci-upstream-kasan-gce-386
2019/04/24 14:32 upstream ba25b50d582f 8e3c52b1 .config console log report ci-upstream-kasan-gce-386
2019/04/24 13:03 upstream ba25b50d582f 8e3c52b1 .config console log report ci-upstream-kasan-gce-386
2019/04/24 12:36 upstream ba25b50d582f 8e3c52b1 .config console log report ci-upstream-kasan-gce-386
2019/04/24 12:07 upstream ba25b50d582f 8e3c52b1 .config console log report ci-upstream-kasan-gce-386
2019/04/24 11:44 upstream ba25b50d582f 8e3c52b1 .config console log report ci-upstream-kasan-gce-386
2019/04/24 11:32 upstream ba25b50d582f 8e3c52b1 .config console log report ci-upstream-kasan-gce-386
2019/04/24 06:03 upstream 7142eaa58b49 4d3d6a50 .config console log report ci-upstream-kasan-gce-386
2019/04/24 03:54 upstream 7142eaa58b49 4d3d6a50 .config console log report ci-upstream-kasan-gce-386
2019/04/24 02:48 upstream 7142eaa58b49 4d3d6a50 .config console log report ci-upstream-kasan-gce-386
2019/04/24 01:07 upstream 7142eaa58b49 4d3d6a50 .config console log report ci-upstream-kasan-gce-386
2019/04/23 23:31 upstream 7142eaa58b49 4d3d6a50 .config console log report ci-upstream-kasan-gce-386
2019/04/23 23:29 upstream 7142eaa58b49 4d3d6a50 .config console log report ci-upstream-kasan-gce-386
2019/04/23 22:27 upstream 7142eaa58b49 4d3d6a50 .config console log report ci-upstream-kasan-gce-386
2018/03/06 13:35 upstream 094b58e1040a aef0b792 .config console log report ci-upstream-kasan-gce-386
* Struck through repros no longer work on HEAD.