INFO: task syz-executor.1:2213 blocked for more than 143 seconds. Not tainted 6.4.0-rc2-syzkaller-00290-gd635f6cc934b #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:26416 pid:2213 ppid:24793 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5343 [inline] __schedule+0xc9a/0x5880 kernel/sched/core.c:6669 schedule+0xde/0x1a0 kernel/sched/core.c:6745 __wait_on_freeing_inode+0xf2/0x140 fs/inode.c:2196 find_inode_fast+0x14e/0x220 fs/inode.c:950 iget_locked+0xa8/0x700 fs/inode.c:1273 __ext4_iget+0x3b2/0x4430 fs/ext4/inode.c:4677 ext4_xattr_inode_cache_find fs/ext4/xattr.c:1558 [inline] ext4_xattr_inode_lookup_create fs/ext4/xattr.c:1594 [inline] ext4_xattr_set_entry+0x1e3e/0x39e0 fs/ext4/xattr.c:1736 ext4_xattr_block_set+0xcb7/0x3030 fs/ext4/xattr.c:2042 ext4_xattr_set_handle+0xd8a/0x1510 fs/ext4/xattr.c:2457 ext4_xattr_set+0x144/0x360 fs/ext4/xattr.c:2559 __vfs_setxattr+0x173/0x1e0 fs/xattr.c:201 __vfs_setxattr_noperm+0x129/0x5f0 fs/xattr.c:235 __vfs_setxattr_locked+0x1d3/0x260 fs/xattr.c:296 vfs_setxattr+0x143/0x340 fs/xattr.c:322 do_setxattr+0x147/0x190 fs/xattr.c:630 setxattr+0x146/0x160 fs/xattr.c:653 path_setxattr+0x197/0x1c0 fs/xattr.c:672 __do_sys_setxattr fs/xattr.c:688 [inline] __se_sys_setxattr fs/xattr.c:684 [inline] __x64_sys_setxattr+0xc4/0x160 fs/xattr.c:684 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f340448c169 RSP: 002b:00007f340520f168 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc RAX: ffffffffffffffda RBX: 00007f34045ac050 RCX: 00007f340448c169 RDX: 00000000200005c0 RSI: 0000000020000180 RDI: 00000000200000c0 RBP: 00007f34044e7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000002000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc67c29cdf R14: 00007f340520f300 R15: 0000000000022000 INFO: task syz-executor.1:2215 blocked for more than 143 seconds. Not tainted 6.4.0-rc2-syzkaller-00290-gd635f6cc934b #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:26752 pid:2215 ppid:24793 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5343 [inline] __schedule+0xc9a/0x5880 kernel/sched/core.c:6669 schedule+0xde/0x1a0 kernel/sched/core.c:6745 mb_cache_entry_wait_unused+0x16f/0x1f0 fs/mbcache.c:148 ext4_evict_ea_inode+0x195/0x2f0 fs/ext4/xattr.c:496 ext4_evict_inode+0xa0b/0x1a30 fs/ext4/inode.c:180 evict+0x2ed/0x6b0 fs/inode.c:665 iput_final fs/inode.c:1747 [inline] iput.part.0+0x50a/0x740 fs/inode.c:1773 iput+0x5c/0x80 fs/inode.c:1763 ext4_xattr_set_entry+0x4ff/0x39e0 fs/ext4/xattr.c:1873 ext4_xattr_block_set+0x618/0x3030 fs/ext4/xattr.c:1973 ext4_xattr_set_handle+0xd8a/0x1510 fs/ext4/xattr.c:2457 ext4_xattr_set+0x144/0x360 fs/ext4/xattr.c:2559 __vfs_setxattr+0x173/0x1e0 fs/xattr.c:201 __vfs_setxattr_noperm+0x129/0x5f0 fs/xattr.c:235 __vfs_setxattr_locked+0x1d3/0x260 fs/xattr.c:296 vfs_setxattr+0x143/0x340 fs/xattr.c:322 do_setxattr+0x147/0x190 fs/xattr.c:630 setxattr+0x146/0x160 fs/xattr.c:653 path_setxattr+0x197/0x1c0 fs/xattr.c:672 __do_sys_lsetxattr fs/xattr.c:695 [inline] __se_sys_lsetxattr fs/xattr.c:691 [inline] __x64_sys_lsetxattr+0xc1/0x160 fs/xattr.c:691 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f340448c169 RSP: 002b:00007f34051ee168 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd RAX: ffffffffffffffda RBX: 00007f34045ac120 RCX: 00007f340448c169 RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000020000080 RBP: 00007f34044e7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc67c29cdf R14: 00007f34051ee300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8c795470 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:518 1 lock held by rcu_tasks_trace/13: #0: ffffffff8c795170 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:518 1 lock held by khungtaskd/27: #0: ffffffff8c796080 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x340 kernel/locking/lockdep.c:6545 2 locks held by getty/4742: #0: ffff88814bd18098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x26/0x80 drivers/tty/tty_ldisc.c:243 #1: ffffc900020282f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xef4/0x13e0 drivers/tty/n_tty.c:2176 2 locks held by kworker/u4:50/13669: #0: ffff8880b993c618 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2f/0x120 kernel/sched/core.c:558 #1: ffffc90002ddfdb0 ((work_completion)(&(&bat_priv->nc.work)->work)){+.+.}-{0:0}, at: process_one_work+0x8b7/0x15e0 kernel/workqueue.c:2380 3 locks held by kworker/u4:11/25229: #0: ffff8880136a1138 ((wq_completion)writeback){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff8880136a1138 ((wq_completion)writeback){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff8880136a1138 ((wq_completion)writeback){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1324 [inline] #0: ffff8880136a1138 ((wq_completion)writeback){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:643 [inline] #0: ffff8880136a1138 ((wq_completion)writeback){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:670 [inline] #0: ffff8880136a1138 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x883/0x15e0 kernel/workqueue.c:2376 #1: ffffc90003997db0 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x8b7/0x15e0 kernel/workqueue.c:2380 #2: ffff8880172760e0 (&type->s_umount_key#34){.+.+}-{3:3}, at: trylock_super+0x21/0x110 fs/super.c:414 3 locks held by syz-executor.1/2213: #0: ffff888035c14460 (sb_writers#5){.+.+}-{0:0}, at: path_setxattr+0xb2/0x1c0 fs/xattr.c:670 #1: ffff8880303a4500 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: inode_lock include/linux/fs.h:775 [inline] #1: ffff8880303a4500 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: vfs_setxattr+0x120/0x340 fs/xattr.c:321 #2: ffff8880303a41c8 (&ei->xattr_sem){++++}-{3:3}, at: ext4_write_lock_xattr fs/ext4/xattr.h:155 [inline] #2: ffff8880303a41c8 (&ei->xattr_sem){++++}-{3:3}, at: ext4_xattr_set_handle+0x160/0x1510 fs/ext4/xattr.c:2372 3 locks held by syz-executor.1/2215: #0: ffff888035c14460 (sb_writers#5){.+.+}-{0:0}, at: path_setxattr+0xb2/0x1c0 fs/xattr.c:670 #1: ffff88803655d880 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: inode_lock include/linux/fs.h:775 [inline] #1: ffff88803655d880 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: vfs_setxattr+0x120/0x340 fs/xattr.c:321 #2: ffff88803655d548 (&ei->xattr_sem){++++}-{3:3}, at: ext4_write_lock_xattr fs/ext4/xattr.h:155 [inline] #2: ffff88803655d548 (&ei->xattr_sem){++++}-{3:3}, at: ext4_xattr_set_handle+0x160/0x1510 fs/ext4/xattr.c:2372 1 lock held by udevd/2255: #0: ffff888140f584c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_put+0xba/0x780 block/bdev.c:845 1 lock held by syz-executor.1/2317: #0: ffff888140f584c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev.part.0+0x95/0xb80 block/bdev.c:747 1 lock held by syz-executor.2/2546: #0: ffff888140f584c8 (&disk->open_mutex){+.+.}-{3:3}, at: sync_bdevs+0xed/0x340 block/bdev.c:986 2 locks held by syz-executor.2/2624: #0: ffff888035c140e0 (&type->s_umount_key#50){++++}-{3:3}, at: iterate_supers+0xdf/0x2a0 fs/super.c:743 #1: ffff888140f687d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:364 [inline] #1: ffff888140f687d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x190/0xa60 fs/fs-writeback.c:2728 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 27 Comm: khungtaskd Not tainted 6.4.0-rc2-syzkaller-00290-gd635f6cc934b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106 nmi_cpu_backtrace+0x29c/0x350 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x2a4/0x300 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline] watchdog+0xe16/0x1090 kernel/hung_task.c:379 kthread+0x344/0x440 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 13669 Comm: kworker/u4:50 Not tainted 6.4.0-rc2-syzkaller-00290-gd635f6cc934b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023 Workqueue: bat_events batadv_nc_worker RIP: 0010:instrument_atomic_read include/linux/instrumented.h:68 [inline] RIP: 0010:_test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] RIP: 0010:__lock_acquire+0xf02/0x5df0 kernel/locking/lockdep.c:5044 Code: 5a 4c 8a e8 70 78 e6 ff 0f 0b 31 c0 e9 7b f7 ff ff 48 63 5c 24 10 be 08 00 00 00 48 89 d8 48 c1 e8 06 48 8d 3c c5 00 cd 51 91 a9 92 70 00 48 0f a3 1d 71 22 ed 0f 0f 82 f9 f9 ff ff e8 56 31 RSP: 0018:ffffc90002ddfa30 EFLAGS: 00000046 RAX: 0000000000000000 RBX: 000000000000001f RCX: 1ffffffff22a3d16 RDX: 0000000000000004 RSI: 0000000000000008 RDI: ffffffff9151cd00 RBP: 0000000000000004 R08: 0000000000000000 R09: ffffffff9151cd07 R10: 0000000000000001 R11: 0000000000000000 R12: ffff888030554b98 R13: ffff888030554080 R14: 0000000000000000 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055555599d848 CR3: 000000000c571000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire kernel/locking/lockdep.c:5691 [inline] lock_acquire+0x1b1/0x520 kernel/locking/lockdep.c:5656 rcu_lock_acquire include/linux/rcupdate.h:327 [inline] rcu_read_lock include/linux/rcupdate.h:773 [inline] batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:408 [inline] batadv_nc_worker+0x131/0xfe0 net/batman-adv/network-coding.c:719 process_one_work+0x99a/0x15e0 kernel/workqueue.c:2405 worker_thread+0x67d/0x10c0 kernel/workqueue.c:2552 kthread+0x344/0x440 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308