Received: by 10.192.165.156 with SMTP id m28csp862141imm; Wed, 11 Apr 2018 08:22:37 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+M4uKluYZGu+K9jsp2bC8j/93N4DZDflJ8Xa8E+ZjVlx2yiiml9uzD3nNmk+xSuLXpf8p+ X-Received: by 10.99.116.81 with SMTP id e17mr3845962pgn.437.1523460157562; Wed, 11 Apr 2018 08:22:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523460157; cv=none; d=google.com; s=arc-20160816; b=uKqGlWeQ7Hfp9C1E3W1/tgp1JzU57AsujQZWFKZ+c+F4AY8V0JR2RZgVkubIM3NCln gvSiuGwD6FXl3c9DOBrMGecbjEgfKNgcfLPzp9/oNlJPjC0PYOWClVSmxkTg28dPPCvz KoSnM+OeM+alF+EHCFYMvd8Pokt+25hxm4QIpDCshUV/mcvE6pTzXjuu21/r7o23LJTN ySLFRk0+5N8vN56SJV7ILJeXDcoce8NXv0FXm+QgYlcYv4XZkaCAQAWa5Wm4BrBOY8qu TwY+enq2cpscQDcgXpJgXKGE1rWbZXIY6vLoF0urSK9mBxMDkrwuWNu9Nv/9R0XVhSV7 lm6A== 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=2+LJQE7X3DU0/LoY1mRWPRCPMrsaj3G0IqZUg2O0zTE=; b=n+ZC5IMI2U/hrutqZEomOZDg1DmaeIpkWv79IsbBUmGZ0N5Hh+J8w97tyq0Uf53uyL hmWkHICmbj50aXqJDNfHSMBwCecwteMcCEZTp5RHRSM2nqjlmwWW3/s9qjrLT8zZjuH6 D32G72F+rDVZNhxZ3np8TjEoLw/WUluOD1WB8BHkwJMN4nZwm0VFcv2raEFpM1/ZGp4r vofIBy+njviuFh/rG+/fhQfuTolUWrNAgzrjvjlaFoU6soyPMZDUg3D+hTRmCC8aHGbv H5w4W6Q0PRhfB4ncFaYClSfkG8lcwPUZzYUhs3tYYQFHz4MAKYFXbdQFKZV32kPhmolj Ihbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=NhRlXfWN; 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 f1-v6si1175731pld.168.2018.04.11.08.22.00; Wed, 11 Apr 2018 08:22:37 -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=NhRlXfWN; 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 S1753961AbeDKPSs (ORCPT + 99 others); Wed, 11 Apr 2018 11:18:48 -0400 Received: from mail-pf0-f173.google.com ([209.85.192.173]:38465 "EHLO mail-pf0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753660AbeDKPSp (ORCPT ); Wed, 11 Apr 2018 11:18:45 -0400 Received: by mail-pf0-f173.google.com with SMTP id y69so1094659pfb.5 for ; Wed, 11 Apr 2018 08:18:44 -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=2+LJQE7X3DU0/LoY1mRWPRCPMrsaj3G0IqZUg2O0zTE=; b=NhRlXfWNJaCkKUl3hMYqiCwAf1dMFfszOk1h0tZ/xXTaA16y/N16x28aqrluSl2u0+ aA+yt3uvxNGzSmxrGNYSyu6P7kYsjnEB74H4z80Y6xNPpAo5vrsItZw+h5y6lMNbkGzk pDd68gZXSxnTdGshFVQI/9skBko7VKlklwA8cj5/YS8aZnlq+Ju8S83swdD/OF1MGf9w UtyZ/DcrsMGowwee1zmeex6kcWOSk60fZWB9h+Jj9kTviBtgu5o8614y/rypY7dbq8g8 lsnGk0Fris/rtDfWwLCFg2oJh42X3gDNDinOZ3mtx7+sOq7v8+iEHPiCOT7lHIdVbRPl g7Gw== 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=2+LJQE7X3DU0/LoY1mRWPRCPMrsaj3G0IqZUg2O0zTE=; b=I99JDhBE3hROI8SkvMTCeEMMu4uYAVpAcqk/UNQE2b7IPFs0v2//wZHEdHtD87RE7q WbQAw3c1zcGDuEQcmU4wlgTJcOmDomGOFLkUY6vCrGX0EG4iQEPMkNs89lVluCYTsvH3 SbSYbpFLnbHVGI97T8l/TGJcfHXDbH7Z0nGnmU5bnTGexnIVPt3h5S+4wvV+sh4GJAlk BA3v98fvLxJXWRmsNMs4xuePSIPTbYB5WGAkYTb6nqLriMudm/ghuPpEH6UrpYu9v2st joGGwYIEsJ61EBvIIXh6Chqbg+kAkCcteB+ytwMwgL31Ospiywy+0hhk7XNRL0t8rt8j PJRQ== X-Gm-Message-State: ALQs6tCV2VMGACqQb+GCF4QNsDH5a8rVfRVxcdE0MbMrOgsz8TRa/be6 uqXSdNVy6652QiBlZYwQxcb6JVVoMaSsgYb1M1r/Cw== X-Received: by 10.167.134.25 with SMTP id p25mr4354133pfn.93.1523459924172; Wed, 11 Apr 2018 08:18:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.182.136 with HTTP; Wed, 11 Apr 2018 08:18:23 -0700 (PDT) In-Reply-To: <001a113de2d878ade40569941a21@google.com> References: <001a113de2d878ade40569941a21@google.com> From: Dmitry Vyukov Date: Wed, 11 Apr 2018 17:18:23 +0200 Message-ID: Subject: Re: WARNING: kobject bug in br_add_if To: syzbot Cc: bridge@lists.linux-foundation.org, David Miller , LKML , netdev , stephen hemminger , syzkaller-bugs , Greg Kroah-Hartman 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 Wed, Apr 11, 2018 at 5:15 PM, syzbot wrote: > Hello, > > syzbot hit the following crash on upstream commit > 10b84daddbec72c6b440216a69de9a9605127f7a (Sat Mar 31 17:59:00 2018 +0000) > Merge branch 'perf-urgent-for-linus' of > git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip > syzbot dashboard link: > https://syzkaller.appspot.com/bug?extid=de73361ee4971b6e6f75 > > So far this crash happened 4 times on net-next, upstream. > Unfortunately, I don't have any reproducer for this crash yet. > Raw console output: > https://syzkaller.appspot.com/x/log.txt?id=5007286875455488 > Kernel config: > https://syzkaller.appspot.com/x/.config?id=-2760467897697295172 > compiler: gcc (GCC) 7.1.1 20170620 > > IMPORTANT: if you fix the bug, please add the following tag to the commit: > Reported-by: syzbot+de73361ee4971b6e6f75@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. +Greg The plan is to remove this WARNING from kobject_add, if there are no objections. > ------------[ cut here ]------------ > binder: 23650:23651 unknown command 1078223622 > kobject_add_internal failed for brport (error: -12 parent: bond0) > binder: 23650:23651 ioctl c0306201 2000dfd0 returned -22 > WARNING: CPU: 1 PID: 23647 at lib/kobject.c:242 > kobject_add_internal+0x3f6/0xbc0 lib/kobject.c:240 > Kernel panic - not syncing: panic_on_warn set ... > > CPU: 1 PID: 23647 Comm: syz-executor7 Not tainted 4.16.0-rc7+ #374 > binder: BINDER_SET_CONTEXT_MGR already set > 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+0x1f4/0x2b0 lib/bug.c:186 > fixup_bug.part.10+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:kobject_add_internal+0x3f6/0xbc0 lib/kobject.c:240 > RSP: 0018:ffff8801d089f560 EFLAGS: 00010286 > RAX: dffffc0000000008 RBX: ffff8801adbee178 RCX: ffffffff815b193e > RDX: 0000000000040000 RSI: ffffc900022aa000 RDI: 1ffff1003a113e31 > RBP: ffff8801d089f658 R08: 1ffff1003a113df3 R09: 0000000000000000 > R10: 0000000000000000 R11: 0000000000000000 R12: 1ffff1003a113eb2 > R13: 00000000fffffff4 R14: ffff8801abd88828 R15: ffff8801d75a1e00 > kobject_add_varg lib/kobject.c:364 [inline] > kobject_init_and_add+0xf9/0x150 lib/kobject.c:436 > br_add_if+0x79a/0x1a70 net/bridge/br_if.c:533 > add_del_if+0xf4/0x140 net/bridge/br_ioctl.c:101 > br_dev_ioctl+0xa2/0xc0 net/bridge/br_ioctl.c:396 > dev_ifsioc+0x333/0x9b0 net/core/dev_ioctl.c:334 > dev_ioctl+0x176/0xbe0 net/core/dev_ioctl.c:500 > sock_do_ioctl+0x1ba/0x390 net/socket.c:981 > sock_ioctl+0x367/0x670 net/socket.c:1081 > vfs_ioctl fs/ioctl.c:46 [inline] > do_vfs_ioctl+0x1b1/0x1520 fs/ioctl.c:686 > SYSC_ioctl fs/ioctl.c:701 [inline] > SyS_ioctl+0x8f/0xc0 fs/ioctl.c:692 > do_syscall_64+0x281/0x940 arch/x86/entry/common.c:287 > entry_SYSCALL_64_after_hwframe+0x42/0xb7 > RIP: 0033:0x454e79 > RSP: 002b:00007eff7dab7c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 > RAX: ffffffffffffffda RBX: 00007eff7dab86d4 RCX: 0000000000454e79 > RDX: 0000000020000000 RSI: 00000000000089a2 RDI: 0000000000000014 > RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000 > R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000015 > R13: 0000000000000369 R14: 00000000006f7278 R15: 0000000000000006 > 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 > 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/001a113de2d878ade40569941a21%40google.com. > For more options, visit https://groups.google.com/d/optout.