INFO: task syz.1.595:5999 blocked for more than 144 seconds.
Not tainted 5.15.165-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.1.595 state:D stack:24928 pid: 5999 ppid: 3943 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:5027 [inline]
__schedule+0x12c4/0x45b0 kernel/sched/core.c:6373
schedule+0x11b/0x1f0 kernel/sched/core.c:6456
io_schedule+0x88/0x100 kernel/sched/core.c:8481
bit_wait_io+0xe/0xc0 kernel/sched/wait_bit.c:209
__wait_on_bit_lock+0xbf/0x1a0 kernel/sched/wait_bit.c:90
out_of_line_wait_on_bit_lock+0x1d0/0x250 kernel/sched/wait_bit.c:117
lock_buffer include/linux/buffer_head.h:402 [inline]
ext4_quota_write+0x37a/0x580 fs/ext4/super.c:6581
qtree_write_dquot+0x23f/0x530 fs/quota/quota_tree.c:422
v2_write_dquot+0x11c/0x190 fs/quota/quota_v2.c:358
dquot_commit+0x3c0/0x510 fs/quota/dquot.c:514
ext4_write_dquot+0x1fd/0x360 fs/ext4/super.c:6172
mark_dquot_dirty fs/quota/dquot.c:372 [inline]
mark_all_dquot_dirty+0xf7/0x400 fs/quota/dquot.c:412
__dquot_free_space+0x932/0xe40 fs/quota/dquot.c:1941
dquot_free_space_nodirty include/linux/quotaops.h:376 [inline]
ext4_xattr_inode_free_quota+0x125/0x190 fs/ext4/xattr.c:899
ext4_xattr_set_entry+0xfd2/0x4040 fs/ext4/xattr.c:1705
ext4_xattr_block_set+0x69a/0x36a0 fs/ext4/xattr.c:1926
ext4_xattr_set_handle+0xfc7/0x1560 fs/ext4/xattr.c:2386
ext4_xattr_set+0x231/0x3d0 fs/ext4/xattr.c:2513
__vfs_removexattr+0x3ce/0x410 fs/xattr.c:470
__vfs_removexattr_locked+0x1fe/0x410 fs/xattr.c:505
vfs_removexattr+0xff/0x2a0 fs/xattr.c:527
removexattr fs/xattr.c:857 [inline]
path_removexattr+0x22a/0x320 fs/xattr.c:871
__do_sys_removexattr fs/xattr.c:885 [inline]
__se_sys_removexattr fs/xattr.c:882 [inline]
__x64_sys_removexattr+0x5c/0x70 fs/xattr.c:882
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7fe97b8dfef9
RSP: 002b:00007fe979d3b038 EFLAGS: 00000246 ORIG_RAX: 00000000000000c5
RAX: ffffffffffffffda RBX: 00007fe97ba7c058 RCX: 00007fe97b8dfef9
RDX: 0000000000000000 RSI: 00000000200002c0 RDI: 0000000020000140
RBP: 00007fe97b94d93e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 00007fe97ba7c058 R15: 00007ffc8cc41ed8
Showing all locks held in the system:
3 locks held by kworker/0:0/7:
#0: ffff888011c70938 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283
#1: ffffc90000cc7d20 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285
#2: ffff888078f78240 (&data->fib_lock){+.+.}-{3:3}, at: nsim_fib_event_work+0x2cd/0x4120 drivers/net/netdevsim/fib.c:1478
1 lock held by khungtaskd/27:
#0: ffffffff8c91fbe0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
2 locks held by kworker/u4:1/144:
#0: ffff888011c79138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283
#1: ffffc9000158fd20 ((quota_release_work).work){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285
2 locks held by getty/3327:
#0: ffff8880250a4098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:252
#1: ffffc90002bab2e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6af/0x1db0 drivers/tty/n_tty.c:2158
2 locks held by kworker/u4:11/4144:
#0: ffff8880b9a3a318 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0xa8/0x140 kernel/sched/core.c:483
#1: ffffc90002f17d20 ((work_completion)(&(&bat_priv->nc.work)->work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285
2 locks held by kworker/0:9/5535:
6 locks held by syz.1.595/5999:
#0: ffff888077916460 (sb_writers#5){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:377
#1: ffff8880616383f0 (&type->i_mutex_dir_key#4){++++}-{3:3}, at: inode_lock include/linux/fs.h:789 [inline]
#1: ffff8880616383f0 (&type->i_mutex_dir_key#4){++++}-{3:3}, at: vfs_removexattr+0xe8/0x2a0 fs/xattr.c:526
#2: ffff8880616380c8 (&ei->xattr_sem){++++}-{3:3}, at: ext4_write_lock_xattr fs/ext4/xattr.h:155 [inline]
#2: ffff8880616380c8 (&ei->xattr_sem){++++}-{3:3}, at: ext4_xattr_set_handle+0x270/0x1560 fs/ext4/xattr.c:2327
#3: ffffffff8ca43958 (dquot_srcu){....}-{0:0}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:311
#4: ffff88807495a428 (&dquot->dq_lock){+.+.}-{3:3}, at: dquot_commit+0x57/0x510 fs/quota/dquot.c:507
#5: ffff888077916208 (&s->s_dquot.dqio_sem){++++}-{3:3}, at: v2_write_dquot+0x8c/0x190 fs/quota/quota_v2.c:356
1 lock held by syz-executor/6041:
#0: ffff88807db040e0 (&type->s_umount_key#32){++++}-{3:3}, at: deactivate_super+0xa9/0xe0 fs/super.c:365
1 lock held by syz-executor/6044:
#0: ffff888074cbc0e0 (&type->s_umount_key#32){++++}-{3:3}, at: deactivate_super+0xa9/0xe0 fs/super.c:365
5 locks held by kworker/0:12/6548:
#0: ffff888016d16d38 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283
#1: ffffc9000136fd20 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285
#2: ffff88801e7bf220 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:760 [inline]
#2: ffff88801e7bf220 (&dev->mutex){....}-{3:3}, at: hub_event+0x208/0x54c0 drivers/usb/core/hub.c:5769
#3: ffff888024837220 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:760 [inline]
#3: ffff888024837220 (&dev->mutex){....}-{3:3}, at: __device_attach+0x8a/0x570 drivers/base/dd.c:954
#4: ffff88805d7901a8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:760 [inline]
#4: ffff88805d7901a8 (&dev->mutex){....}-{3:3}, at: __device_attach+0x8a/0x570 drivers/base/dd.c:954
6 locks held by syz.0.769/6843:
#0: ffff888057374460 (sb_writers#5){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:377
#1: ffff888074a7dda8 (&type->i_mutex_dir_key#4){++++}-{3:3}, at: inode_lock include/linux/fs.h:789 [inline]
#1: ffff888074a7dda8 (&type->i_mutex_dir_key#4){++++}-{3:3}, at: vfs_removexattr+0xe8/0x2a0 fs/xattr.c:526
#2: ffff888074a7da80 (&ei->xattr_sem){++++}-{3:3}, at: ext4_write_lock_xattr fs/ext4/xattr.h:155 [inline]
#2: ffff888074a7da80 (&ei->xattr_sem){++++}-{3:3}, at: ext4_xattr_set_handle+0x270/0x1560 fs/ext4/xattr.c:2327
#3: ffffffff8ca43958 (dquot_srcu){....}-{0:0}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:311
#4: ffff8880639d6b28 (&dquot->dq_lock){+.+.}-{3:3}, at: dquot_commit+0x57/0x510 fs/quota/dquot.c:507
#5: ffff888057374208 (&s->s_dquot.dqio_sem){++++}-{3:3}, at: v2_write_dquot+0x8c/0x190 fs/quota/quota_v2.c:356
6 locks held by syz.4.828/7078:
#0: ffff888065af4460 (sb_writers#5){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:377
#1: ffff8880639aabd0 (&type->i_mutex_dir_key#4){++++}-{3:3}, at: inode_lock include/linux/fs.h:789 [inline]
#1: ffff8880639aabd0 (&type->i_mutex_dir_key#4){++++}-{3:3}, at: vfs_removexattr+0xe8/0x2a0 fs/xattr.c:526
#2: ffff8880639aa8a8 (&ei->xattr_sem){++++}-{3:3}, at: ext4_write_lock_xattr fs/ext4/xattr.h:155 [inline]
#2: ffff8880639aa8a8 (&ei->xattr_sem){++++}-{3:3}, at: ext4_xattr_set_handle+0x270/0x1560 fs/ext4/xattr.c:2327
#3: ffffffff8ca43958 (dquot_srcu){....}-{0:0}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:311
#4: ffff88807495a5e8 (&dquot->dq_lock){+.+.}-{3:3}, at: dquot_commit+0x57/0x510 fs/quota/dquot.c:507
#5: ffff888065af4208 (&s->s_dquot.dqio_sem){++++}-{3:3}, at: v2_write_dquot+0x8c/0x190 fs/quota/quota_v2.c:356
3 locks held by syz-executor/7160:
#0: ffffffff8da30dc8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:72 [inline]
#0: ffffffff8da30dc8 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x94c/0xee0 net/core/rtnetlink.c:5615
#1: ffff8880678c93e8 (&wg->device_update_lock){+.+.}-{3:3}, at: wg_open+0x224/0x410 drivers/net/wireguard/device.c:49
#2: ffffffff8c9241a8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:290 [inline]
#2: ffffffff8c9241a8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x280/0x740 kernel/rcu/tree_exp.h:845
=============================================
NMI backtrace for cpu 1
CPU: 1 PID: 27 Comm: khungtaskd Not tainted 5.15.165-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106
nmi_cpu_backtrace+0x46a/0x4a0 lib/nmi_backtrace.c:111
nmi_trigger_cpumask_backtrace+0x181/0x2a0 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:210 [inline]
watchdog+0xe72/0xeb0 kernel/hung_task.c:295
kthread+0x3f6/0x4f0 kernel/kthread.c:334
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 3009 Comm: syslogd Not tainted 5.15.165-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
RIP: 0010:tomoyo_get_realpath security/tomoyo/file.c:153 [inline]
RIP: 0010:tomoyo_check_open_permission+0x260/0x490 security/tomoyo/file.c:771
Code: fc ff df 43 80 7c 3d 00 00 4c 8d 74 24 60 74 08 4c 89 f7 e8 e2 cf 03 fe 48 89 5c 24 60 48 85 db 74 69 48 8b 44 24 20 0f b6 18 <4c> 89 f7 e8 b8 36 01 00 48 8d bc 24 80 00 00 00 48 89 f8 48 c1 e8
RSP: 0018:ffffc90002c77600 EFLAGS: 00000282
RAX: ffffffff8ad29981 RBX: 0000000000000002 RCX: ffff88807e559dc0
RDX: 0000000000000000 RSI: ffffffff8a8b2a20 RDI: ffffffff8ad8f7c0
RBP: ffffc90002c77830 R08: ffffffff8186e260 R09: fffffbfff1bd2a56
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88801a6f0010
R13: 1ffff9200058eecc R14: ffffc90002c77660 R15: dffffc0000000000
FS: 00007fa4aca60380(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7725421ab8 CR3: 000000002388a000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
security_file_open+0x5f/0xa0 security/security.c:1668
do_dentry_open+0x315/0xfb0 fs/open.c:813
do_open fs/namei.c:3608 [inline]
path_openat+0x2705/0x2f20 fs/namei.c:3742
do_filp_open+0x21c/0x460 fs/namei.c:3769
do_sys_openat2+0x13b/0x4f0 fs/open.c:1253
do_sys_open fs/open.c:1269 [inline]
__do_sys_openat fs/open.c:1285 [inline]
__se_sys_openat fs/open.c:1280 [inline]
__x64_sys_openat+0x243/0x290 fs/open.c:1280
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7fa4acbb49a4
Code: 24 20 48 8d 44 24 30 48 89 44 24 28 64 8b 04 25 18 00 00 00 85 c0 75 2c 44 89 e2 48 89 ee bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 76 60 48 8b 15 55 a4 0d 00 f7 d8 64 89 02 48 83
RSP: 002b:00007ffc8c19bc40 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00005569c776f910 RCX: 00007fa4acbb49a4
RDX: 0000000000000d41 RSI: 00007fa4acd53443 RDI: 00000000ffffff9c
RBP: 00007fa4acd53443 R08: 0000000000000001 R09: 0000000000000000
R10: 00000000000001b6 R11: 0000000000000246 R12: 0000000000000d41
R13: 0000000066d03280 R14: 0000000000000004 R15: 00005569c776fa60