Received: by 10.213.65.68 with SMTP id h4csp1586308imn; Wed, 4 Apr 2018 23:36:06 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/rsgmyByaAxwqCd8PGMZrIDfV1/cYttuQx2unpiOQEcrk5jtGwR65XjsAXEYNInoEgm8y+ X-Received: by 10.99.109.203 with SMTP id i194mr14278896pgc.314.1522910166531; Wed, 04 Apr 2018 23:36:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522910166; cv=none; d=google.com; s=arc-20160816; b=VsX3C9sYRvTN8o/JYdR65z2cFo4U5WdPfHgvW09y1Bnze2BUUIhlPYh99ClPSvEDDM B9QHFaj18POdnRPr835y58+v5IxYYL5wS6aI0g8iWKS2YXTiN62jaqyO+D+Lk41wvVZC EqyO9fcz2KW5fLen8UB+kEarjwULkEVxAfpQNXRcMv63+sUBIvhlnXyXDnTbX2rMwUAV us+A5TMCHqVD0c9p6rhGtDG5LBDWfgUwVu/tZGNI1BZrP1UJscpjWkliVy66KXvioi+G JxScSWjSbIZ8FxHBsUE857HlLLatrjvrbt31Q+Wa2BcJOAF8RHFKVru4Ry1pN0Uhfip1 JtdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=GZb+3oREB1UucztaWDZZW30bV1ikdJ8li9cMjvaLGJY=; b=Vs1zL5mrETBMOcBvnSwa4egeuHqkISOB1Gkam6R7LMRRHgKbw50LadZpKmwKC42rkP 5nkaIQa9bMcf7QfXpO2LOYb1cu8OlMX/6tzqbWZpkNlqdIHocZEw7bEsFGDi3LJJPb7s L+ta6f1d9WBzDD19NtpcNHoAmbpAQ5OfO9i7456lzC3BS+95WRUKPcJX5NcWV9sTxoWk cTbV9XqR5jibdoz0phevY/BM4aIlPba7kwwMf1L+mXiddlXgfTPK7w7B2GmJtSts7chi G8rEBIlgSGEgRuDyxSVsPqCVyf8+Sbzzm+WzS0g2gSFpsBbcxO0YU38J1YPx++tlwHAe oR+g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y26si3476069pgv.504.2018.04.04.23.35.52; Wed, 04 Apr 2018 23:36: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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751362AbeDEGeq (ORCPT + 99 others); Thu, 5 Apr 2018 02:34:46 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:47118 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750943AbeDEGep (ORCPT ); Thu, 5 Apr 2018 02:34:45 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id D23FCC7A; Thu, 5 Apr 2018 06:34:44 +0000 (UTC) Date: Thu, 5 Apr 2018 08:34:44 +0200 From: Greg KH To: syzbot Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: WARNING: kobject bug in sysfs_warn_dup Message-ID: <20180405063444.GA5877@kroah.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 04, 2018 at 07:02:01PM -0700, syzbot wrote: > Hello, > > syzbot hit the following crash on upstream commit > 3e968c9f1401088abc9a19ae6ff571644d37a355 (Wed Apr 4 21:19:24 2018 +0000) > Merge tag 'ext4_for_linus' of > git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4 > syzbot dashboard link: > https://syzkaller.appspot.com/bug?extid=ff87a28e665c163aa7f5 > > C reproducer: https://syzkaller.appspot.com/x/repro.c?id=5104666266304512 > syzkaller reproducer: > https://syzkaller.appspot.com/x/repro.syz?id=5683447737614336 > Raw console output: > https://syzkaller.appspot.com/x/log.txt?id=5104818200772608 > Kernel config: > https://syzkaller.appspot.com/x/.config?id=9118669095563550941 > compiler: gcc (GCC) 7.1.1 20170620 > > IMPORTANT: if you fix the bug, please add the following tag to the commit: > Reported-by: syzbot+ff87a28e665c163aa7f5@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. > > R10: 0000000000000000 R11: 0000000000000286 R12: 0000000000000003 > R13: 0000000000000004 R14: 0000000000000000 R15: 0000000000000000 > ------------[ cut here ]------------ > kobject_add_internal failed for nodev( with -EEXIST, don't try to register > things with the same name in the same directory. > sysfs: cannot create duplicate filename '/fs/gfs2/nodev(' > WARNING: CPU: 1 PID: 4473 at lib/kobject.c:238 > kobject_add_internal+0x8d4/0xbc0 lib/kobject.c:235 > CPU: 0 PID: 4474 Comm: syzkaller533472 Not tainted 4.16.0+ #15 > Kernel panic - not syncing: panic_on_warn 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+0x1a7/0x27d lib/dump_stack.c:53 > sysfs_warn_dup+0x83/0xa0 fs/sysfs/dir.c:30 > sysfs_create_dir_ns+0x178/0x1d0 fs/sysfs/dir.c:58 > create_dir lib/kobject.c:69 [inline] > kobject_add_internal+0x335/0xbc0 lib/kobject.c:227 > kobject_add_varg lib/kobject.c:364 [inline] > kobject_init_and_add+0xf9/0x150 lib/kobject.c:436 > gfs2_sys_fs_add+0x1ff/0x580 fs/gfs2/sys.c:652 > fill_super+0x86f/0x1d70 fs/gfs2/ops_fstype.c:1118 > gfs2_mount+0x587/0x6e0 fs/gfs2/ops_fstype.c:1321 gfs2 bug, not a sysfs bug, we are correctly warning about an incorrect usage of the api. Now if we should turn this into a non-WARN message, that's a different thing, I'll gladly take a patch for that. thanks, greg k-h