syzbot


WARNING in xt_cluster_mt

Status: fixed on 2018/04/06 16:37
Subsystems: netfilter
[Documentation on labels]
Reported-by: syzbot+0346441ae0545cfcea3a@syzkaller.appspotmail.com
Fix commit: aebfa52a925d netfilter: drop template ct when conntrack is skipped.
First crash: 2446d, last: 2446d
Discussions (5)
Title Replies (including bot) Last reply
[PATCH 4.15 00/72] 4.15.16-stable review 78 (78) 2018/04/07 06:10
[PATCH 4.14 00/67] 4.14.33-stable review 71 (71) 2018/04/06 22:10
[PATCH 0/7] Netfilter fixes for net 9 (9) 2018/03/24 21:10
[PATCH nf] netfilter: drop template ct when conntrack is skipped. 3 (3) 2018/03/22 11:56
WARNING in xt_cluster_mt 0 (1) 2018/02/27 18:59
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in xt_cluster_mt (2) netfilter C inconclusive 5 37d 36d 27/28 upstream: reported C repro on 2024/10/03 16:14

Sample crash report:
audit: type=1400 audit(1519754637.635:6): avc:  denied  { map } for  pid=4215 comm="bash" path="/bin/bash" dev="sda1" ino=1457 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1
audit: type=1400 audit(1519754643.917:7): avc:  denied  { map } for  pid=4229 comm="syzkaller803108" path="/root/syzkaller803108663" dev="sda1" ino=16481 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1
xt_connbytes: Forcing CT accounting to be enabled
WARNING: CPU: 1 PID: 4229 at net/netfilter/xt_cluster.c:55 xt_cluster_hash net/netfilter/xt_cluster.c:55 [inline]
WARNING: CPU: 1 PID: 4229 at net/netfilter/xt_cluster.c:55 xt_cluster_mt+0x6c1/0x840 net/netfilter/xt_cluster.c:127
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 4229 Comm: syzkaller803108 Not tainted 4.16.0-rc3+ #331
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+0x194/0x24d lib/dump_stack.c:53
 panic+0x1e4/0x41c kernel/panic.c:183
 __warn+0x1dc/0x200 kernel/panic.c:547
 report_bug+0x211/0x2d0 lib/bug.c:184
 fixup_bug.part.11+0x37/0x80 arch/x86/kernel/traps.c:178
 fixup_bug arch/x86/kernel/traps.c:247 [inline]
 do_error_trap+0x2d7/0x3e0 arch/x86/kernel/traps.c:296
 do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:315
 invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:986
RIP: 0010:xt_cluster_hash net/netfilter/xt_cluster.c:55 [inline]
RIP: 0010:xt_cluster_mt+0x6c1/0x840 net/netfilter/xt_cluster.c:127
RSP: 0018:ffff8801c15272d0 EFLAGS: 00010293
RAX: ffff8801b08ca300 RBX: 0000000000000000 RCX: ffffffff84a25581
RDX: 0000000000000000 RSI: ffff8801c1527478 RDI: ffff8801b12e4d2a
RBP: ffff8801c15272e8 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8801af98e698
R13: ffff8801b12e4cc0 R14: dffffc0000000000 R15: ffff8801c1527478
 ipt_do_table+0xa91/0x19b0 net/ipv4/netfilter/ip_tables.c:296
 iptable_filter_hook+0x65/0x80 net/ipv4/netfilter/iptable_filter.c:41
 nf_hook_entry_hookfn include/linux/netfilter.h:120 [inline]
 nf_hook_slow+0xba/0x1a0 net/netfilter/core.c:483
 nf_hook include/linux/netfilter.h:243 [inline]
 NF_HOOK include/linux/netfilter.h:286 [inline]
 raw_send_hdrinc.isra.17+0xf39/0x1880 net/ipv4/raw.c:432
 raw_sendmsg+0x14cd/0x26b0 net/ipv4/raw.c:669
 inet_sendmsg+0x11f/0x5e0 net/ipv4/af_inet.c:764
 sock_sendmsg_nosec net/socket.c:630 [inline]
 sock_sendmsg+0xca/0x110 net/socket.c:640
 SYSC_sendto+0x361/0x5c0 net/socket.c:1747
 SyS_sendto+0x40/0x50 net/socket.c:1715
 do_syscall_64+0x281/0x940 arch/x86/entry/common.c:287
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x441b49
RSP: 002b:00007ffdbb8895c8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000441b49
RDX: 0000000000000030 RSI: 0000000020ff7000 RDI: 0000000000000003
RBP: 00000000006cc018 R08: 000000002066354c R09: 0000000000000010
R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000403470
R13: 0000000000403500 R14: 0000000000000000 R15: 0000000000000000
Dumping ftrace buffer:
   (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/02/27 18:06 upstream 6f70eb2b00eb 05b5a32c .config console log report syz C ci-upstream-kasan-gce
2018/02/27 15:55 net-next-old 3808b51911fe 05b5a32c .config console log report syz C ci-upstream-net-kasan-gce
2018/02/27 18:54 upstream 6f70eb2b00eb 05b5a32c .config console log report ci-upstream-kasan-gce
2018/02/27 15:33 net-next-old 3808b51911fe 05b5a32c .config console log report ci-upstream-net-kasan-gce
* Struck through repros no longer work on HEAD.