Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1801124pxp; Mon, 21 Mar 2022 05:31:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVXhbZr0AN14VGUDfdroVUd1RSKNKkYTcaS/0szbKDZ3aGEwV30OgeCihnFSOofhaP4Hal X-Received: by 2002:a50:9b4f:0:b0:419:49af:429c with SMTP id a15-20020a509b4f000000b0041949af429cmr2494170edj.276.1647865891538; Mon, 21 Mar 2022 05:31:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647865891; cv=none; d=google.com; s=arc-20160816; b=MR3kobN/QqXuM2LgtjTp5E55YIo3zg++5N/gkHozzcpg8Y/F6v4CC9UyQYSjNvODdI W4D83NxYYF8m429/6lWU9Zb7TK/0fZn62ooZ8690BOsGL0j+ltB01qJTlr+0lEcSsuLn kL4iyVxn5Ma/gxmiHXljsvA8MpX/6QX+a1mBx7RPy88/UlRPfSLAhg3jHXL9sH5BA4Ia 16Tfp2MlS/Ig5dRUP6nrVpDf1fC+3nuMCMmzYgojhlxr06ZRqr1PfMcYtN+lcrawJfGh PLs2bFEoFTjzMh/u0bTn6KOLozvSXdf/hqIP+JeHX+x3PkEqSUXsrKSK7DFdtqcHEcfs 5iKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:date:mime-version; bh=A0PKiBGd+xqMYlJRDbW4r7jmAFaIon/xTP2ACrQ8MXA=; b=GC28a1tJ4gX9NTbCTHlnGwOl2oWXGzdeWcPKvDjZxDtUcHKd0Nbd79CtlfHbM1N8FY xhB+UfqW+GWes+oBUdweok9mRyAwZs5XcaIuU4wLcntsdJW1qlMFvVCF5ploBZXNdApZ BZ47i4Y5+aaiU1Nyn36Jgi4FpVi4b69Wvb/c6R6/HE4U0B7kuni+Xmp/NHB5cfTeA22A Nc8o9E3QLBdvoiTuFUt83f5MqAszJ/cSXJKrFh52mFROyN1hnBn0Phr+CvE/SPHvL0Ja SIBYFEmu2TZllSNqMcZ2ywbbx9R+zJT3oNuRGARMATtHOzI1nvocrQd3UxQY5VALqHIJ ERYA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 24-20020a170906011800b006df76385dc6si7294181eje.614.2022.03.21.05.31.05; Mon, 21 Mar 2022 05:31:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239281AbiCRQko (ORCPT + 99 others); Fri, 18 Mar 2022 12:40:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232125AbiCRQkl (ORCPT ); Fri, 18 Mar 2022 12:40:41 -0400 Received: from mail-io1-f70.google.com (mail-io1-f70.google.com [209.85.166.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00248D1CE8 for ; Fri, 18 Mar 2022 09:39:21 -0700 (PDT) Received: by mail-io1-f70.google.com with SMTP id h14-20020a05660208ce00b00645c339411bso5414295ioz.8 for ; Fri, 18 Mar 2022 09:39:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=A0PKiBGd+xqMYlJRDbW4r7jmAFaIon/xTP2ACrQ8MXA=; b=z0IUIyNJ6pRbF2DClQt2Lrs9qkvbEQrtDCdxFIZU5IMh0glAsrqtrykFG2fFac+2ZL vwSEQzjYT2+vqvBJTKk882nOTlTRpTINn2v3LaqTMU1zOqOJR7F20PcXHdNmEgw5pc5A u+RuBAWo/cxaCBRmHtP51CKECT8dpEVaoQ2FEiHw+A8HaQf/2cRrcCp6brvx/uhRIRD8 W6UTxUOR/7tHOLrdxCsvS4/MBjdQOQsD/+PZAW8gmyduDrRlBIBZfg5jcdrdeDljj5Ql IWB85cUGls39h0Hr5Ptou1Rois/2S4+fkvA7kusexPI3VTO/jMiFUi/pb79fnupMR0HL uP/w== X-Gm-Message-State: AOAM533wrct6vQ+t//itpCZH6KqqhWXGBcuErNOapsGwlHNbDBS/Zt42 kP3XN9DgaEOt3NQ+QvcYpO28jiuqyFMg16HeHBF+E3nHbFdz MIME-Version: 1.0 X-Received: by 2002:a05:6e02:12ec:b0:2c7:e74b:14ba with SMTP id l12-20020a056e0212ec00b002c7e74b14bamr3635593iln.215.1647621560965; Fri, 18 Mar 2022 09:39:20 -0700 (PDT) Date: Fri, 18 Mar 2022 09:39:20 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000dda2f905da80c934@google.com> Subject: [syzbot] WARNING: kobject bug in erofs_unregister_sysfs From: syzbot To: chao@kernel.org, linux-erofs@lists.ozlabs.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com, xiang@kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: 91265a6da44d Add linux-next specific files for 20220303 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=11007413700000 kernel config: https://syzkaller.appspot.com/x/.config?x=617f79440a35673a dashboard link: https://syzkaller.appspot.com/bug?extid=f05ba4652c0471416eaf compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=137f17d9700000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=114ebabd700000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+f05ba4652c0471416eaf@syzkaller.appspotmail.com RBP: 00007fff8eeb06e0 R08: 00007fff8eeb0720 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000286 R12: 00000000200000b0 R13: 0000000000000004 R14: 0000000000000005 R15: 0000000000000002 ------------[ cut here ]------------ kobject: '(null)' (ffff888077324190): is not initialized, yet kobject_put() is being called. WARNING: CPU: 0 PID: 3610 at lib/kobject.c:750 kobject_put+0x22b/0x540 lib/kobject.c:750 Modules linked in: CPU: 0 PID: 3610 Comm: syz-executor471 Not tainted 5.17.0-rc6-next-20220303-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:kobject_put+0x22b/0x540 lib/kobject.c:750 Code: e8 6a 83 67 fd 48 89 e8 48 c1 e8 03 42 80 3c 20 00 0f 85 94 02 00 00 48 8b 75 00 48 89 ea 48 c7 c7 c0 0d 2a 8a e8 c1 5b 07 05 <0f> 0b e9 32 fe ff ff e8 39 83 67 fd 4d 89 f9 48 89 e9 4c 89 f2 49 RSP: 0018:ffffc90003b9fc48 EFLAGS: 00010286 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff88801c67ba80 RSI: ffffffff81602878 RDI: fffff52000773f7b RBP: ffff888077324190 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff815fd23e R11: 0000000000000000 R12: dffffc0000000000 R13: ffff8880773241cc R14: ffff888073799cf8 R15: ffff8880207dc068 FS: 0000555556165300(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff8eeb1000 CR3: 000000001ac3f000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: erofs_unregister_sysfs+0x46/0x60 fs/erofs/sysfs.c:225 erofs_put_super+0x37/0xb0 fs/erofs/super.c:771 generic_shutdown_super+0x14c/0x400 fs/super.c:462 kill_block_super+0x97/0xf0 fs/super.c:1394 erofs_kill_sb+0x60/0x190 fs/erofs/super.c:752 deactivate_locked_super+0x94/0x160 fs/super.c:332 get_tree_bdev+0x573/0x760 fs/super.c:1294 vfs_get_tree+0x89/0x2f0 fs/super.c:1497 do_new_mount fs/namespace.c:3025 [inline] path_mount+0x1320/0x1fa0 fs/namespace.c:3355 do_mount fs/namespace.c:3368 [inline] __do_sys_mount fs/namespace.c:3576 [inline] __se_sys_mount fs/namespace.c:3553 [inline] __x64_sys_mount+0x27f/0x300 fs/namespace.c:3553 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7fa80fa1344a Code: 48 c7 c2 c0 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 a8 00 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fff8eeb06c8 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fff8eeb0720 RCX: 00007fa80fa1344a RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007fff8eeb06e0 RBP: 00007fff8eeb06e0 R08: 00007fff8eeb0720 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000286 R12: 00000000200000b0 R13: 0000000000000004 R14: 0000000000000005 R15: 0000000000000002 --- This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. syzbot can test patches for this issue, for details see: https://goo.gl/tpsmEJ#testing-patches