syzbot


WARNING in ext4_enable_quotas

Status: upstream: reported on 2022/11/05 16:07
Reported-by: syzbot+77524f55898ea618bfad@syzkaller.appspotmail.com
First crash: 21d, last: 5d06h

Sample crash report:
------------[ cut here ]------------
DEBUG_LOCKS_WARN_ON(!key)
WARNING: CPU: 0 PID: 9574 at kernel/locking/lockdep.c:4833 lockdep_init_map_type+0x284/0x2fc kernel/locking/lockdep.c:4833
Modules linked in:
CPU: 0 PID: 9574 Comm: syz-executor.4 Not tainted 6.1.0-rc5-syzkaller-32269-g9500fc6e9e60 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/30/2022
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : lockdep_init_map_type+0x284/0x2fc kernel/locking/lockdep.c:4833
lr : lockdep_init_map_type+0x284/0x2fc kernel/locking/lockdep.c:4833
sp : ffff800015de3a00
x29: ffff800015de3a10 x28: ffff80000cc2256d x27: ffff800015de3a44
x26: ffff0000fc86ffd8 x25: ffff0000fc870000 x24: 0000000000000001
x23: ffff800015de3a50 x22: ffff80000eefa000 x21: 0000000000000000
x20: 0000000000000002 x19: ffff0000fc86ffd8 x18: 0000000000000277
x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000000
x14: 0000000000000000 x13: 0000000000000012 x12: 0000000000040000
x11: 00000000000226a3 x10: ffff80001a94b000 x9 : 95edc509018d3100
x8 : 95edc509018d3100 x7 : 4e5241575f534b43 x6 : ffff80000c0b2b74
x5 : 0000000000000000 x4 : 0000000000000001 x3 : 0000000000000000
x2 : 0000000000000000 x1 : 0000000100000000 x0 : 0000000000000019
Call trace:
 lockdep_init_map_type+0x284/0x2fc kernel/locking/lockdep.c:4833
 lockdep_set_quota_inode fs/ext4/super.c:6803 [inline]
 ext4_quota_enable fs/ext4/super.c:6913 [inline]
 ext4_enable_quotas+0x1ac/0x378 fs/ext4/super.c:6940
 __ext4_fill_super+0x297c/0x2c2c fs/ext4/super.c:5500
 ext4_fill_super+0x100/0x2d8 fs/ext4/super.c:5643
 get_tree_bdev+0x1e8/0x2a0 fs/super.c:1324
 ext4_get_tree+0x28/0x38 fs/ext4/super.c:5673
 vfs_get_tree+0x40/0x140 fs/super.c:1531
 do_new_mount+0x1dc/0x4e4 fs/namespace.c:3040
 path_mount+0x358/0x890 fs/namespace.c:3370
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount fs/namespace.c:3568 [inline]
 __arm64_sys_mount+0x2c4/0x3c4 fs/namespace.c:3568
 __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/0x164 arch/arm64/kernel/syscall.c:206
 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: 4473
hardirqs last  enabled at (4473): [<ffff80000c0b7c04>] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline]
hardirqs last  enabled at (4473): [<ffff80000c0b7c04>] _raw_spin_unlock_irqrestore+0x48/0x8c kernel/locking/spinlock.c:194
hardirqs last disabled at (4472): [<ffff80000c0b7a40>] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline]
hardirqs last disabled at (4472): [<ffff80000c0b7a40>] _raw_spin_lock_irqsave+0xa4/0xb4 kernel/locking/spinlock.c:162
softirqs last  enabled at (3726): [<ffff8000080102e4>] _stext+0x2e4/0x37c
softirqs last disabled at (3697): [<ffff800008017c88>] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:79
---[ end trace 0000000000000000 ]---
EXT4-fs warning (device loop4): ext4_enable_quotas:6947: Failed to enable quota tracking (type=0, err=-13). Please run e2fsck to fix.
EXT4-fs (loop4): mount failed

Crashes (5):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-gce-arm64 2022/11/21 18:57 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 9500fc6e9e60 1c576c23 .config log report info WARNING in ext4_enable_quotas
ci-upstream-gce-arm64 2022/11/14 02:16 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 1621b6eaebf7 3ead01ad .config log report info WARNING in ext4_enable_quotas
ci-upstream-gce-arm64 2022/11/13 04:15 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 1621b6eaebf7 3ead01ad .config log report info WARNING in ext4_enable_quotas
ci-upstream-gce-arm64 2022/11/07 22:05 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci f0c4d9fc9cc9 a779b11a .config log report info WARNING in ext4_enable_quotas
ci-upstream-gce-arm64 2022/11/05 06:50 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 6d752409 .config log report info WARNING in ext4_enable_quotas
* Struck through repros no longer work on HEAD.