Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp842446imm; Fri, 11 May 2018 07:14:07 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr90AzHNEXee/+I/5cH/9CzCA0njfOiZ4iI3cwrqAKs2jbO7j447Xcdoyt1I1n9cGxncX1R X-Received: by 2002:aa7:8305:: with SMTP id t5-v6mr5712009pfm.198.1526048047012; Fri, 11 May 2018 07:14:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526048046; cv=none; d=google.com; s=arc-20160816; b=JjYf5YibT7bPBLY1HbmpUPjr5lwFpd+eQUpKxTMg7yFtIKMFa6d9POokRxtnaAN0ht EOKJNaZLxlUqjpWow0ZDdK3jMCb62e2A3VWXfyKAprcOWVZzKXaPxiwxES+AUt4Ju6fI s3dc3XLnpamsA8Fjzqypxvyidkwfrs6Pmj7tE6DUC5+GAsefsRmp/xWc7YcDBkw68x9l vxQUHCYrdJYBEsZlVfWY79M9weypVTMr10T5FtzOig1dNgYIWXBNc++Lrv5IOyOgfDTe Gdue6HXsOMD3g9HIzPeYxsUqbo+RCwEep+bsGK5ekS8gk/91y6T3O41I7XiYEZFGVtKk Glog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=wS7wShf2KThMzV9rylXMie19+qIAUyS3pXuX7SCVLc0=; b=mDZBp78HkBkPkni8A/cZ32YyBEhYsR3zL4LtRDJVZjsuVgJYo4E3kSbPhH0bkBVvO8 dsKE30IVm9h14Nxf02Z0ill3V3KLszfr/KwceTOu7LR7ebfFUxQqKY38r5KiHpF7oEYQ 3RnrXiuQtkIqkPi9xAZhloxuuMahTZUF9VhZ3KCrz4uMhq6kSezI6XD/BixR8vkUO+MN Y01ntPboxJOK4w8UxKuXWVWVZAsotriERkiwCWpOBbhrBbtruKv/MJpMCRK0TGetcmk2 UfkCO3sLPVrqheHbIrVIlADi4ZruyroQzqZS/MPa0hj4HUK1fASKThxkpI2nEnuWJeVW hDZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=pQYcz/BK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g3-v6si2592161pgc.251.2018.05.11.07.13.51; Fri, 11 May 2018 07:14:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=pQYcz/BK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751204AbeEKONe (ORCPT + 99 others); Fri, 11 May 2018 10:13:34 -0400 Received: from mail-pl0-f45.google.com ([209.85.160.45]:45854 "EHLO mail-pl0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752219AbeEKONb (ORCPT ); Fri, 11 May 2018 10:13:31 -0400 Received: by mail-pl0-f45.google.com with SMTP id bi12-v6so3369302plb.12 for ; Fri, 11 May 2018 07:13:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=wS7wShf2KThMzV9rylXMie19+qIAUyS3pXuX7SCVLc0=; b=pQYcz/BKXFjGvusfzADedgsGRAg+XH3HycFh6h/+NPsqwgF1vtCn4PnbtQblAZnYXi S3LR/O1fAfamZQXuI8wphZ0zw/GvSM6ZCWNdTPEKF3EVQ+3DBIgXTPYqDW6MzzS1V3A+ z83hXdqqNiqFG2MWBx56wzyYnXsBcIBt1ymW9zJNRcMbzL5NdTShS8vSGVQOhCOxrv4X j33qiJE5thQAMLAHG0dLKpDioALoIuc92cKdeWEQKOxd5CGbaeLuYWpQRAO8JVP/e+CY 4vjvHVB3rhmMRnTfl9YpQDzl6adjejypa/9I3J84LstaFRtBSr0xe3X/Iujn2LcE3dbP HAGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=wS7wShf2KThMzV9rylXMie19+qIAUyS3pXuX7SCVLc0=; b=el1OgZuy/11DoafA6J0OayT3V67Onf2kxCgwOguOx0Yuz3AZRKB2kkukYqb3CTx7WW Ilz95VT718pJcmXarlYuscy9eMPxGULNsCuVY4uqBPqDD1xmipS8QVR0FReCao45HdKt ZD+59PsP5KArr5Gc8OS3ncLkB4aLEsKwfE6sGISJbaqr0dI4sQ4vwXYiDUBYJhpOHxfs 5ShdwgAwRZWPWYrFqRGBHALYTQHTw4KIWw8h8VSEdeP02EsueWsiBMiob/z/5vjTqFlp fHSCzp/jE4o91WOx2LIMVj5e4ov+1OGIIFDdGla7ZQrGqIAwkgB09fxAqJzuElv89fqZ 5GGA== X-Gm-Message-State: ALKqPwcMhiQOfcpWfu3GVm+V7JZESHRTUFm0ahO+f33Axid3nJ7BmReF j14cS16J2wxmLhdIZkorXq43f+0A2qVshTmj/QU7Rg== X-Received: by 2002:a17:902:1566:: with SMTP id b35-v6mr5748247plh.107.1526048010922; Fri, 11 May 2018 07:13:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.236.149.24 with HTTP; Fri, 11 May 2018 07:13:10 -0700 (PDT) In-Reply-To: <001a113dea0ef7d2620566c15bac@google.com> References: <001a113dea0ef7d2620566c15bac@google.com> From: Dmitry Vyukov Date: Fri, 11 May 2018 16:13:10 +0200 Message-ID: Subject: Re: WARNING in compat_copy_entries (2) To: syzbot Cc: bridge@lists.linux-foundation.org, coreteam@netfilter.org, David Miller , Florian Westphal , Jozsef Kadlecsik , LKML , netdev , netfilter-devel@vger.kernel.org, Pablo Neira Ayuso , stephen hemminger , syzkaller-bugs Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 6, 2018 at 5:59 PM, syzbot wrote: > Hello, > > syzbot hit the following crash on upstream commit > ce380619fab99036f5e745c7a865b21c59f005f6 (Tue Mar 6 04:31:14 2018 +0000) > Merge tag 'please-pull-ia64_misc' of > git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux > > So far this crash happened 11 times on upstream. > syzkaller reproducer is attached. > Raw console output is attached. > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached. > user-space arch: i386 This was bisected to, well: commit 9dea5dc921b5f4045a18c63eb92e84dc274d17eb Author: Andy Lutomirski Date: Tue Jul 14 15:24:24 2015 -0700 x86/entry/syscalls: Wire up 32-bit direct socket calls https://gist.githubusercontent.com/dvyukov/acbdace00cbb2fd31fb599a009d471e6/raw/bfe6bd8f2423df7b3493c7df2e466b37a8968688/gistfile1.txt Which is kinda makes sense, but shows another limitation of automatic bisection. > IMPORTANT: if you fix the bug, please add the following tag to the commit: > Reported-by: syzbot+659574e7bcc7f7eb4df7@syzkaller.appspotmail.com > It will help syzbot understand when the bug is fixed. See footer for > details. > If you forward the report, please keep this part and the footer. > > audit: type=1400 audit(1520347101.934:8): avc: denied { map } for > pid=4183 comm="syz-execprog" path="/root/syzkaller-shm886349459" dev="sda1" > ino=16482 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 > tcontext=unconfined_u:object_r:file_t:s0 tclass=file permissive=1 > IPVS: ftp: loaded support on port[0] = 21 > WARNING: CPU: 1 PID: 4192 at net/bridge/netfilter/ebtables.c:2063 > ebt_size_mwt net/bridge/netfilter/ebtables.c:2063 [inline] > WARNING: CPU: 1 PID: 4192 at net/bridge/netfilter/ebtables.c:2063 > size_entry_mwt net/bridge/netfilter/ebtables.c:2140 [inline] > WARNING: CPU: 1 PID: 4192 at net/bridge/netfilter/ebtables.c:2063 > compat_copy_entries+0xd92/0x1150 net/bridge/netfilter/ebtables.c:2179 > Kernel panic - not syncing: panic_on_warn set ... > > CPU: 1 PID: 4192 Comm: syz-executor0 Not tainted 4.16.0-rc4+ #253 > 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:ebt_size_mwt net/bridge/netfilter/ebtables.c:2063 [inline] > RIP: 0010:size_entry_mwt net/bridge/netfilter/ebtables.c:2140 [inline] > RIP: 0010:compat_copy_entries+0xd92/0x1150 > net/bridge/netfilter/ebtables.c:2179 > RSP: 0018:ffff8801bb5077e8 EFLAGS: 00010293 > RAX: ffff8801bc82a580 RBX: 0000000000000000 RCX: ffffffff851ad5c2 > RDX: 0000000000000000 RSI: ffffc90001853180 RDI: 0000000000000000 > RBP: ffff8801bb507968 R08: 0000000000000004 R09: 0000000000000000 > R10: ffffffff88613380 R11: 0000000000000001 R12: 0000000000000007 > R13: dffffc0000000000 R14: ffff8801bb5079c8 R15: 000000000000000c > compat_do_replace+0x398/0x7d0 net/bridge/netfilter/ebtables.c:2268 > compat_do_ebt_set_ctl+0x22a/0x2d0 net/bridge/netfilter/ebtables.c:2350 > compat_nf_sockopt net/netfilter/nf_sockopt.c:144 [inline] > compat_nf_setsockopt+0x88/0x130 net/netfilter/nf_sockopt.c:156 > compat_ip_setsockopt+0x8b/0xd0 net/ipv4/ip_sockglue.c:1285 > inet_csk_compat_setsockopt+0x95/0x120 net/ipv4/inet_connection_sock.c:1041 > compat_dccp_setsockopt+0x40/0x70 net/dccp/proto.c:589 > compat_sock_common_setsockopt+0xb2/0x140 net/core/sock.c:2986 > C_SYSC_setsockopt net/compat.c:403 [inline] > compat_SyS_setsockopt+0x17c/0x410 net/compat.c:386 > do_syscall_32_irqs_on arch/x86/entry/common.c:330 [inline] > do_fast_syscall_32+0x3ec/0xf9f arch/x86/entry/common.c:392 > entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 > RIP: 0023:0xf7f35c99 > RSP: 002b:00000000ff9c02cc EFLAGS: 00000282 ORIG_RAX: 000000000000016e > RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000000000 > RDX: 0000000000000080 RSI: 0000000020000240 RDI: 0000000000000240 > RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 > R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 > R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 > Dumping ftrace buffer: > (ftrace buffer empty) > Kernel Offset: disabled > Rebooting in 86400 seconds.. > > > --- > This bug is generated by a dumb bot. It may contain errors. > See https://goo.gl/tpsmEJ for details. > Direct all questions to syzkaller@googlegroups.com. > > syzbot will keep track of this bug report. > If you forgot to add the Reported-by tag, once the fix for this bug is > merged > into any tree, please reply to this email with: > #syz fix: exact-commit-title > If you want to test a patch for this bug, please reply with: > #syz test: git://repo/address.git branch > and provide the patch inline or as an attachment. > To mark this as a duplicate of another syzbot report, please reply with: > #syz dup: exact-subject-of-another-report > If it's a one-off invalid bug report, please reply with: > #syz invalid > Note: if the crash happens again, it will cause creation of a new bug > report. > Note: all commands must start from beginning of the line in the email body. > > -- > You received this message because you are subscribed to the Google Groups > "syzkaller-bugs" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to syzkaller-bugs+unsubscribe@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/syzkaller-bugs/001a113dea0ef7d2620566c15bac%40google.com. > For more options, visit https://groups.google.com/d/optout.