syzbot


INFO: task hung in ext4_quota_write (2)

Status: upstream: reported on 2024/12/19 10:44
Reported-by: syzbot+ec7cb5db60b4d8e2071b@syzkaller.appspotmail.com
First crash: 2d15h, last: 2d15h
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 INFO: task hung in ext4_quota_write (2) origin:lts-only C error 11 7d03h 232d 0/3 upstream: reported C repro on 2024/05/03 23:59
linux-6.1 INFO: task hung in ext4_quota_write origin:upstream missing-backport C done 9 120d 360d 3/3 fixed on 2024/10/08 03:39
upstream INFO: task hung in ext4_quota_write ext4 C inconclusive 22 250d 355d 25/28 fixed on 2024/06/05 13:52
linux-5.15 INFO: task hung in ext4_quota_write 2 360d 360d 0/3 auto-obsoleted due to no activity on 2024/04/05 13:59

Sample crash report:
INFO: task syz.4.866:6782 blocked for more than 143 seconds.
      Tainted: G        W          6.1.120-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.4.866       state:D stack:0     pid:6782  ppid:4295   flags:0x00000001
Call trace:
 __switch_to+0x308/0x598 arch/arm64/kernel/process.c:553
 context_switch kernel/sched/core.c:5241 [inline]
 __schedule+0xef4/0x1d44 kernel/sched/core.c:6558
 schedule+0xc4/0x170 kernel/sched/core.c:6634
 io_schedule+0x8c/0x188 kernel/sched/core.c:8786
 bit_wait_io+0x1c/0xac kernel/sched/wait_bit.c:209
 __wait_on_bit_lock+0xcc/0x1e8 kernel/sched/wait_bit.c:90
 out_of_line_wait_on_bit_lock+0x194/0x21c kernel/sched/wait_bit.c:117
 wait_on_bit_lock_io include/linux/wait_bit.h:208 [inline]
 __lock_buffer+0x78/0xac fs/buffer.c:69
 lock_buffer include/linux/buffer_head.h:397 [inline]
 ext4_quota_write+0x36c/0x54c fs/ext4/super.c:7179
 qtree_write_dquot+0x1e0/0x4d8 fs/quota/quota_tree.c:462
 v2_write_dquot+0xf4/0x188 fs/quota/quota_v2.c:361
 dquot_commit+0x14c/0x240 fs/quota/dquot.c:514
 ext4_write_dquot+0x1b4/0x314 fs/ext4/super.c:6770
 ext4_mark_dquot_dirty+0xe8/0x140 fs/ext4/super.c:6830
 mark_dquot_dirty fs/quota/dquot.c:372 [inline]
 mark_all_dquot_dirty+0x108/0x424 fs/quota/dquot.c:412
 __dquot_free_space+0x840/0xce4 fs/quota/dquot.c:1942
 dquot_free_space_nodirty include/linux/quotaops.h:379 [inline]
 ext4_xattr_inode_free_quota+0x11c/0x188 fs/ext4/xattr.c:899
 ext4_xattr_set_entry+0xb2c/0x1694 fs/ext4/xattr.c:1677
 ext4_xattr_block_set+0x634/0x2d10 fs/ext4/xattr.c:1910
 ext4_xattr_set_handle+0xae8/0x1294 fs/ext4/xattr.c:2404
 ext4_xattr_set+0x220/0x340 fs/ext4/xattr.c:2506
 ext4_xattr_trusted_set+0x4c/0x64 fs/ext4/xattr_trusted.c:38
 __vfs_setxattr+0x388/0x3a4 fs/xattr.c:182
 __vfs_setxattr_noperm+0x110/0x528 fs/xattr.c:216
 __vfs_setxattr_locked+0x1ec/0x218 fs/xattr.c:277
 vfs_setxattr+0x1a8/0x344 fs/xattr.c:309
 do_setxattr fs/xattr.c:594 [inline]
 setxattr+0x230/0x294 fs/xattr.c:617
 path_setxattr+0x17c/0x258 fs/xattr.c:636
 __do_sys_setxattr fs/xattr.c:652 [inline]
 __se_sys_setxattr fs/xattr.c:648 [inline]
 __arm64_sys_setxattr+0xbc/0xd8 fs/xattr.c:648
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140
 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204
 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585

Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/12:
 #0: ffff800015c55570 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x44/0xd10 kernel/rcu/tasks.h:543
1 lock held by rcu_tasks_trace/13:
 #0: ffff800015c55d90 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x44/0xd10 kernel/rcu/tasks.h:543
1 lock held by khungtaskd/28:
 #0: ffff800015c553a0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0xc/0x44 include/linux/rcupdate.h:349
2 locks held by getty/4056:
 #0: ffff0000d653f098 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3c/0x4c drivers/tty/tty_ldsem.c:340
 #1: ffff80001d8102f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x414/0x1214 drivers/tty/n_tty.c:2198
1 lock held by syz-executor/4296:
 #0: ffff0000f53ea0e0 (&type->s_umount_key#87){+.+.}-{3:3}, at: deactivate_super+0xe8/0x110 fs/super.c:362
1 lock held by syz-executor/4301:
 #0: ffff0000d9cce0e0 (&type->s_umount_key#30){++++}-{3:3}, at: deactivate_super+0xe8/0x110 fs/super.c:362
3 locks held by syz-executor/4303:
3 locks held by kworker/0:4/4343:
 #0: ffff0000c45b6938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x664/0x1404 kernel/workqueue.c:2265
 #1: ffff800021907c20 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x6a8/0x1404 kernel/workqueue.c:2267
 #2: ffff0000d1247190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:837 [inline]
 #2: ffff0000d1247190 (&dev->mutex){....}-{3:3}, at: hub_event+0x1b0/0x42e4 drivers/usb/core/hub.c:5801
4 locks held by kworker/u4:10/4565:
2 locks held by kworker/u4:14/4782:
 #0: ffff0000c0029138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x664/0x1404 kernel/workqueue.c:2265
 #1: ffff800021e27c20 ((quota_release_work).work){+.+.}-{0:0}, at: process_one_work+0x6a8/0x1404 kernel/workqueue.c:2267
6 locks held by syz.4.866/6782:
 #0: ffff0000d294a460 (sb_writers#3){++++}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:393
 #1: ffff0000f4d09810 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline]
 #1: ffff0000f4d09810 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: vfs_setxattr+0x17c/0x344 fs/xattr.c:308
 #2: ffff0000f4d094d8 (&ei->xattr_sem){++++}-{3:3}, at: ext4_write_lock_xattr fs/ext4/xattr.h:155 [inline]
 #2: ffff0000f4d094d8 (&ei->xattr_sem){++++}-{3:3}, at: ext4_xattr_set_handle+0x1e0/0x1294 fs/ext4/xattr.c:2319
 #3: ffff800015d88bc8 (dquot_srcu){....}-{0:0}, at: rcu_lock_acquire+0x10/0x4c include/linux/rcupdate.h:349
 #4: ffff0000f4ccc5e8 (&dquot->dq_lock){+.+.}-{3:3}, at: dquot_commit+0x54/0x240 fs/quota/dquot.c:507
 #5: ffff0000d294a208 (&s->s_dquot.dqio_sem){++++}-{3:3}, at: v2_write_dquot+0x84/0x188 fs/quota/quota_v2.c:359
1 lock held by syz.3.906/6882:
 #0: ffff0001085580e0 (&type->s_umount_key#30){++++}-{3:3}, at: do_umount_root fs/namespace.c:1609 [inline]
 #0: ffff0001085580e0 (&type->s_umount_key#30){++++}-{3:3}, at: do_umount fs/namespace.c:1693 [inline]
 #0: ffff0001085580e0 (&type->s_umount_key#30){++++}-{3:3}, at: path_umount+0x6e0/0xd64 fs/namespace.c:1802
1 lock held by syz.3.906/6886:
 #0: ffff0001085580e0 (&type->s_umount_key#30){++++}-{3:3}, at: do_umount_root fs/namespace.c:1609 [inline]
 #0: ffff0001085580e0 (&type->s_umount_key#30){++++}-{3:3}, at: do_umount fs/namespace.c:1693 [inline]
 #0: ffff0001085580e0 (&type->s_umount_key#30){++++}-{3:3}, at: path_umount+0x6e0/0xd64 fs/namespace.c:1802
1 lock held by syz.5.1023/7183:
 #0: ffff0000f5d260e0 (&type->s_umount_key#30){++++}-{3:3}, at: deactivate_super+0xe8/0x110 fs/super.c:362
1 lock held by syz-executor/7213:
 #0: ffff0000dc76e0e0 (&type->s_umount_key#30){++++}-{3:3}, at: deactivate_super+0xe8/0x110 fs/super.c:362
1 lock held by syz-executor/7388:
 #0: ffff0000d45420e0 (&type->s_umount_key#30){++++}-{3:3}, at: deactivate_super+0xe8/0x110 fs/super.c:362
1 lock held by syz.8.1168/7603:
 #0: ffff0000d84360e0 (&type->s_umount_key#30){++++}-{3:3}, at: iterate_supers+0xb0/0x1dc fs/super.c:755
1 lock held by syz.3.1520/8955:
1 lock held by dhcpcd/8977:
 #0: ffff0000faa98130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1750 [inline]
 #0: ffff0000faa98130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x4c/0xb58 net/packet/af_packet.c:3263

=============================================


Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/19 10:44 linux-6.1.y 52f863f820fd 1432fc84 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 INFO: task hung in ext4_quota_write
* Struck through repros no longer work on HEAD.