Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp10219765rwl; Wed, 11 Jan 2023 16:37:19 -0800 (PST) X-Google-Smtp-Source: AMrXdXuLFlJD5t8ju6eXWS3FRn1Qfz05MpjJTBS+5iTBTf3z3gYvfBqnqLlpsuEUnNoMJr3ouU0k X-Received: by 2002:a17:906:9f28:b0:7c1:5b5e:4d85 with SMTP id fy40-20020a1709069f2800b007c15b5e4d85mr60915121ejc.51.1673483839507; Wed, 11 Jan 2023 16:37:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673483839; cv=none; d=google.com; s=arc-20160816; b=jz7iP1UGuS1uUkGNwqeWW15feGQhnKcjhf/QsDbGVJbft+S+rpGaf1oB6FxGiRU3f7 Q44GlqVuC899e+bYEDq8tam/J65okeA/4kqLduvojkYTuy1V568DWnPurpEpE7lpOdZ3 TnD+9vLdr4j6Ojd3voDvP5IcY08iubIhokVbzCit93rH830ywabJhWRAgXOakVaVtMGZ iPoxOXf8jz09/PNzU+oSf/v6TTX4NdRXQQfnbGGAxgdHOWBkEVq1imrFAw9mM1BFXcuw NH/R/XVZPw1y3jzo6LxrNfiXqYcuu1qtm43+Gy5WlRIy+iBkiQAGK8ZI7ezBeL15V1Ku JCvA== 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=t5NkdbXtpWrwA9eNy6LrcID1wKrLywawHioj2RaTwSA=; b=hBay8InmRPEz3YjfN1Xb86rr6VnzdaDIfIHduPV94xYPV7ArvD+BGtM98e0tPAru7f zDmYntTzkx9ywmU8AyvnQkTJR2u3JolBYPTbISlg7sq+QF2B5VbkxwL7tyfTnINZUsow wlyAns9txVcBgmNLUJgDdJKZAR+a2pGKBqZEeUNP1J8+E4/kQkozfQBR3BlB1QuphToG hVAri4NJJL4ia3gqb4J3e1rX7z1CCt8LtWunlIKDqX2FYBp/SSRh3PcbUEStw5FHb347 JCL5Hu/C65gZr3YoXcSiz4g+NTGnKaqpBQ20aFs77njuaA5wfQ1A/+aijJfi/sBL5Yke 9niQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-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 xe6-20020a170907318600b0084cbde35b2fsi16840833ejb.465.2023.01.11.16.36.50; Wed, 11 Jan 2023 16:37:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-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-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-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 S234237AbjALAgl (ORCPT + 99 others); Wed, 11 Jan 2023 19:36:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232509AbjALAgj (ORCPT ); Wed, 11 Jan 2023 19:36:39 -0500 Received: from mail-il1-f200.google.com (mail-il1-f200.google.com [209.85.166.200]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C74E3AC for ; Wed, 11 Jan 2023 16:36:38 -0800 (PST) Received: by mail-il1-f200.google.com with SMTP id l14-20020a056e02066e00b0030bff7a1841so12362841ilt.23 for ; Wed, 11 Jan 2023 16:36:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=t5NkdbXtpWrwA9eNy6LrcID1wKrLywawHioj2RaTwSA=; b=o+qQUT+zVoCq8vcYWJehXgoE/9qUw1xexcHHat+3BRvEHewefoWS2dBxXwfiG9gDvA 84MxJwm1UKedAynIQUspv40jjIff3d83B+0y6FaO9htq10fnVu7Tmycf5pjprZ7HT4bX P58XfebKWJN4/aZH/7DA3Nvxo3Bs/VFD2IlbYOqQVbxwKr+NRQnVDWYvv7eDvl7uPNj/ fn/LARWYKLqVdWQ78xJVMyYe2sIVTwXQSeuvSA8UwGWGFNmUOcEzriwLHygeZFqiVvX3 roy7Vc8UjWa6h1lBdTRY2BBNk56hYyIvM/KXMnkgUVPM5CnNI1a9Xwkj7mv+EkCcuzOd GTvQ== X-Gm-Message-State: AFqh2krWjcrzhyVTFjzaw6m7nu54LldY6dkSYkQNpjkLBn2y0Nc6XhUZ q8q2agYEUjGAIXtgDqO3IgGmBDQ3ZQZIo6mGEtx702oM4NoX MIME-Version: 1.0 X-Received: by 2002:a02:22cb:0:b0:38a:5321:ea6 with SMTP id o194-20020a0222cb000000b0038a53210ea6mr7269478jao.165.1673483797803; Wed, 11 Jan 2023 16:36:37 -0800 (PST) Date: Wed, 11 Jan 2023 16:36:37 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000004e3e8f05f2064f2d@google.com> Subject: [syzbot] [ext4?] WARNING: locking bug in ext4_xattr_inode_update_ref From: syzbot To: adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com, tytso@mit.edu Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.6 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 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-ext4@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: ae87308093bc Merge branch 'for-next/fixes' into for-kernelci git tree: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci console output: https://syzkaller.appspot.com/x/log.txt?x=152f9dfc480000 kernel config: https://syzkaller.appspot.com/x/.config?x=6cb176fd0bc15059 dashboard link: https://syzkaller.appspot.com/bug?extid=d4b971e744b1f5439336 compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2 userspace arch: arm64 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15a38fec480000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=106ffae2480000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/a1c9355518bc/disk-ae873080.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/2db3dca5f602/vmlinux-ae873080.xz kernel image: https://storage.googleapis.com/syzbot-assets/1477d6145e3c/Image-ae873080.gz.xz mounted in repro: https://storage.googleapis.com/syzbot-assets/401f01482f1f/mount_0.gz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+d4b971e744b1f5439336@syzkaller.appspotmail.com ------------[ cut here ]------------ Looking for class "&ea_inode->i_rwsem" with key ext4_fs_type, but found a different class "&sb->s_type->i_mutex_key" with the same key WARNING: CPU: 0 PID: 4452 at kernel/locking/lockdep.c:940 look_up_lock_class+0x158/0x160 Modules linked in: CPU: 0 PID: 4452 Comm: syz-executor318 Not tainted 6.2.0-rc2-syzkaller-16046-gae87308093bc #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 pstate: 604000c5 (nZCv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : look_up_lock_class+0x158/0x160 lr : look_up_lock_class+0x154/0x160 kernel/locking/lockdep.c:937 sp : ffff80000ff434e0 x29: ffff80000ff434e0 x28: 0000000000000000 x27: 0000000000000000 x26: ffff0000cafac6f0 x25: ffff800008877514 x24: 0000000000000000 x23: ffff80000f058000 x22: 0000000000000001 x21: ffff80000d6a1e68 x20: 0000000000000000 x19: ffff80000ddabc98 x18: 0000000000000000 x17: 0000000000000000 x16: 0000000000000001 x15: 0000000000000000 x14: 000000000000000d x13: 205d323534345420 x12: 5b5d303330383736 x11: ff808000081cbbc8 x10: 0000000000000000 x9 : b4969308ab43b000 x8 : b4969308ab43b000 x7 : 205b5d3033303837 x6 : ffff80000c121738 x5 : 0000000000000000 x4 : 0000000000000001 x3 : 0000000000000000 x2 : 0000000000000000 x1 : 0000000100000000 x0 : ffff80000ddabc98 Call trace: look_up_lock_class+0x158/0x160 register_lock_class+0x4c/0x2f8 kernel/locking/lockdep.c:1289 __lock_acquire+0xa8/0x3084 kernel/locking/lockdep.c:4934 lock_acquire+0x100/0x1f8 kernel/locking/lockdep.c:5668 down_write+0x5c/0x88 kernel/locking/rwsem.c:1562 inode_lock include/linux/fs.h:756 [inline] ext4_xattr_inode_update_ref+0x4c/0x2cc fs/ext4/xattr.c:998 ext4_xattr_inode_dec_ref fs/ext4/xattr.c:1049 [inline] ext4_xattr_block_set+0x4b4/0x1404 fs/ext4/xattr.c:2150 ext4_xattr_set_handle+0x724/0x9a0 fs/ext4/xattr.c:2390 ext4_xattr_set+0x104/0x1d4 fs/ext4/xattr.c:2492 ext4_xattr_trusted_set+0x4c/0x64 fs/ext4/xattr_trusted.c:38 __vfs_setxattr+0x290/0x29c fs/xattr.c:202 __vfs_setxattr_noperm+0xcc/0x320 fs/xattr.c:236 __vfs_setxattr_locked+0x16c/0x194 fs/xattr.c:297 vfs_setxattr+0xf4/0x1f4 fs/xattr.c:323 do_setxattr fs/xattr.c:608 [inline] setxattr fs/xattr.c:631 [inline] path_setxattr+0x32c/0x424 fs/xattr.c:650 __do_sys_setxattr fs/xattr.c:666 [inline] __se_sys_setxattr fs/xattr.c:662 [inline] __arm64_sys_setxattr+0x2c/0x40 fs/xattr.c:662 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall arch/arm64/kernel/syscall.c:52 [inline] el0_svc_common+0x138/0x220 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x48/0x140 arch/arm64/kernel/syscall.c:197 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:584 irq event stamp: 5901 hardirqs last enabled at (5901): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline] hardirqs last enabled at (5901): [] _raw_spin_unlock_irqrestore+0x48/0x8c kernel/locking/spinlock.c:194 hardirqs last disabled at (5900): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] hardirqs last disabled at (5900): [] _raw_spin_lock_irqsave+0xa4/0xb4 kernel/locking/spinlock.c:162 softirqs last enabled at (5822): [] _stext+0x2e4/0x37c softirqs last disabled at (5811): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:80 ---[ end trace 0000000000000000 ]--- ====================================================== --- 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