INFO: task syz-executor.0:14430 blocked for more than 143 seconds. Not tainted 6.1.0-rc8-syzkaller-00148-g0d1409e4ff08 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:20320 pid:14430 ppid:3657 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5209 [inline] __schedule+0x8c9/0xd70 kernel/sched/core.c:6521 schedule+0xcb/0x190 kernel/sched/core.c:6597 rwsem_down_write_slowpath+0xfc1/0x1480 kernel/locking/rwsem.c:1190 __down_write_common kernel/locking/rwsem.c:1305 [inline] __down_write kernel/locking/rwsem.c:1314 [inline] down_write_nested+0x23f/0x280 kernel/locking/rwsem.c:1673 inode_lock_nested include/linux/fs.h:791 [inline] lock_rename+0xa0/0x1a0 fs/namei.c:2998 do_renameat2+0x4a0/0x1370 fs/namei.c:4871 __do_sys_rename fs/namei.c:4976 [inline] __se_sys_rename fs/namei.c:4974 [inline] __x64_sys_rename+0x82/0x90 fs/namei.c:4974 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f86f9a8c0d9 RSP: 002b:00007f86fa713168 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007f86f9babf80 RCX: 00007f86f9a8c0d9 RDX: 0000000000000000 RSI: 00000000200001c0 RDI: 0000000020000380 RBP: 00007f86f9ae7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc844b468f R14: 00007f86fa713300 R15: 0000000000022000 INFO: task syz-executor.0:14453 blocked for more than 143 seconds. Not tainted 6.1.0-rc8-syzkaller-00148-g0d1409e4ff08 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:21280 pid:14453 ppid:3657 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5209 [inline] __schedule+0x8c9/0xd70 kernel/sched/core.c:6521 schedule+0xcb/0x190 kernel/sched/core.c:6597 io_schedule+0x83/0x100 kernel/sched/core.c:8741 bit_wait_io+0xe/0xc0 kernel/sched/wait_bit.c:209 __wait_on_bit_lock+0xbb/0x1a0 kernel/sched/wait_bit.c:90 out_of_line_wait_on_bit_lock+0x1c3/0x240 kernel/sched/wait_bit.c:117 wait_on_bit_lock_io include/linux/wait_bit.h:208 [inline] __lock_buffer fs/buffer.c:69 [inline] lock_buffer include/linux/buffer_head.h:397 [inline] __sync_dirty_buffer+0x107/0x330 fs/buffer.c:2732 __ext4_handle_dirty_metadata+0x29a/0x810 fs/ext4/ext4_jbd2.c:381 ext4_handle_dirty_dirblock+0x363/0x6b0 fs/ext4/namei.c:438 ext4_finish_convert_inline_dir+0x58a/0x700 fs/ext4/inline.c:1182 ext4_convert_inline_data_nolock+0x63c/0x820 fs/ext4/inline.c:1259 ext4_try_add_inline_entry+0x683/0x990 fs/ext4/inline.c:1332 ext4_add_entry+0x5a4/0xeb0 fs/ext4/namei.c:2385 ext4_mkdir+0x557/0xcf0 fs/ext4/namei.c:3007 vfs_mkdir+0x3b3/0x590 fs/namei.c:4036 do_mkdirat+0x279/0x550 fs/namei.c:4061 __do_sys_mkdirat fs/namei.c:4076 [inline] __se_sys_mkdirat fs/namei.c:4074 [inline] __x64_sys_mkdirat+0x85/0x90 fs/namei.c:4074 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f86f9a8c0d9 RSP: 002b:00007f86f023e168 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007f86f9bac050 RCX: 00007f86f9a8c0d9 RDX: 0000000000000000 RSI: 00000000200002c0 RDI: 0000000000000005 RBP: 00007f86f9ae7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc844b468f R14: 00007f86f023e300 R15: 0000000000022000 INFO: task syz-executor.0:14491 blocked for more than 143 seconds. Not tainted 6.1.0-rc8-syzkaller-00148-g0d1409e4ff08 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:25480 pid:14491 ppid:3657 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5209 [inline] __schedule+0x8c9/0xd70 kernel/sched/core.c:6521 schedule+0xcb/0x190 kernel/sched/core.c:6597 rwsem_down_write_slowpath+0xfc1/0x1480 kernel/locking/rwsem.c:1190 __down_write_common kernel/locking/rwsem.c:1305 [inline] __down_write kernel/locking/rwsem.c:1314 [inline] down_write_nested+0x23f/0x280 kernel/locking/rwsem.c:1673 inode_lock_nested include/linux/fs.h:791 [inline] do_rmdir+0x257/0x610 fs/namei.c:4169 __do_sys_rmdir fs/namei.c:4201 [inline] __se_sys_rmdir fs/namei.c:4199 [inline] __x64_sys_rmdir+0x45/0x50 fs/namei.c:4199 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f86f9a8c0d9 RSP: 002b:00007f86f021d168 EFLAGS: 00000246 ORIG_RAX: 0000000000000054 RAX: ffffffffffffffda RBX: 00007f86f9bac120 RCX: 00007f86f9a8c0d9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000180 RBP: 00007f86f9ae7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc844b468f R14: 00007f86f021d300 R15: 0000000000022000 INFO: task syz-executor.0:14496 blocked for more than 144 seconds. Not tainted 6.1.0-rc8-syzkaller-00148-g0d1409e4ff08 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:24728 pid:14496 ppid:3657 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5209 [inline] __schedule+0x8c9/0xd70 kernel/sched/core.c:6521 schedule+0xcb/0x190 kernel/sched/core.c:6597 rwsem_down_write_slowpath+0xfc1/0x1480 kernel/locking/rwsem.c:1190 __down_write_common kernel/locking/rwsem.c:1305 [inline] __down_write kernel/locking/rwsem.c:1314 [inline] down_write+0x231/0x270 kernel/locking/rwsem.c:1563 inode_lock include/linux/fs.h:756 [inline] open_last_lookups fs/namei.c:3478 [inline] path_openat+0x7b9/0x2df0 fs/namei.c:3711 do_filp_open+0x264/0x4f0 fs/namei.c:3741 do_sys_openat2+0x124/0x4e0 fs/open.c:1310 do_sys_open fs/open.c:1326 [inline] __do_sys_open fs/open.c:1334 [inline] __se_sys_open fs/open.c:1330 [inline] __x64_sys_open+0x221/0x270 fs/open.c:1330 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f86f9a8c0d9 RSP: 002b:00007f86efffc168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007f86f9bac1f0 RCX: 00007f86f9a8c0d9 RDX: 0000000000000000 RSI: 000000000014d27e RDI: 0000000020000180 RBP: 00007f86f9ae7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc844b468f R14: 00007f86efffc300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8d127330 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507 1 lock held by rcu_tasks_trace/13: #0: ffffffff8d127b30 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507 1 lock held by khungtaskd/28: #0: ffffffff8d127160 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by kworker/u4:5/1155: 2 locks held by getty/3311: #0: ffff8880290ba098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc900031262f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x53b/0x1650 drivers/tty/n_tty.c:2177 3 locks held by kworker/u4:7/3797: #0: ffff88814590e138 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x7f2/0xdb0 #1: ffffc90004d67d00 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x831/0xdb0 kernel/workqueue.c:2264 #2: ffff88814014a0e0 (&type->s_umount_key#40){.+.+}-{3:3}, at: trylock_super+0x1b/0xf0 fs/super.c:415 3 locks held by syz-executor.0/14430: #0: ffff888077b82460 (sb_writers#4){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:393 #1: ffff888077b82748 (&type->s_vfs_rename_key){+.+.}-{3:3}, at: lock_rename+0x54/0x1a0 fs/namei.c:2994 #2: ffff888035d56850 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:791 [inline] #2: ffff888035d56850 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: lock_rename+0xa0/0x1a0 fs/namei.c:2998 3 locks held by syz-executor.0/14453: #0: ffff888077b82460 (sb_writers#4){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:393 #1: ffff888035d56850 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:791 [inline] #1: ffff888035d56850 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: filename_create+0x22a/0x4f0 fs/namei.c:3807 #2: ffff888035d56518 (&ei->xattr_sem){++++}-{3:3}, at: ext4_write_lock_xattr fs/ext4/xattr.h:155 [inline] #2: ffff888035d56518 (&ei->xattr_sem){++++}-{3:3}, at: ext4_try_add_inline_entry+0xe1/0x990 fs/ext4/inline.c:1290 2 locks held by syz-executor.0/14491: #0: ffff888077b82460 (sb_writers#4){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:393 #1: ffff888035d56850 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:791 [inline] #1: ffff888035d56850 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: do_rmdir+0x257/0x610 fs/namei.c:4169 2 locks held by syz-executor.0/14496: #0: ffff888077b82460 (sb_writers#4){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:393 #1: ffff888035d56850 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline] #1: ffff888035d56850 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: open_last_lookups fs/namei.c:3478 [inline] #1: ffff888035d56850 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: path_openat+0x7b9/0x2df0 fs/namei.c:3711 1 lock held by udevd/14689: #0: ffff88814742a4c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_put+0x100/0x730 block/bdev.c:911 1 lock held by syz-executor.0/14741: #0: ffff88814742a4c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0xfd/0xa40 block/bdev.c:813 1 lock held by syz-executor.3/17534: #0: ffff88814742a4c8 (&disk->open_mutex){+.+.}-{3:3}, at: sync_bdevs+0x1b0/0x320 block/bdev.c:1052 2 locks held by syz-executor.3/17536: #0: ffff888077b820e0 (&type->s_umount_key#31){++++}-{3:3}, at: iterate_supers+0xb0/0x1f0 fs/super.c:722 #1: ffff8881474307d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:362 [inline] #1: ffff8881474307d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x264/0xaa0 fs/fs-writeback.c:2712 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.1.0-rc8-syzkaller-00148-g0d1409e4ff08 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1b1/0x28e lib/dump_stack.c:106 nmi_cpu_backtrace+0x46f/0x4f0 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x1ba/0x420 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline] watchdog+0xcf5/0xd40 kernel/hung_task.c:377 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 2449 Comm: kworker/u4:6 Not tainted 6.1.0-rc8-syzkaller-00148-g0d1409e4ff08 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Workqueue: bat_events batadv_nc_worker RIP: 0010:match_held_lock+0x0/0xb0 kernel/locking/lockdep.c:5113 Code: 56 ff ff ff 31 db 48 c7 c7 40 b1 ed 8a 48 c7 c6 80 b1 ed 8a 31 c0 e8 0f bd bf f6 0f 0b e9 38 ff ff ff e8 c3 fa ff ff 0f 1f 00 <55> 53 bd 01 00 00 00 48 39 77 10 74 67 48 89 fb 81 7f 20 00 00 10 RSP: 0018:ffffc9000a497990 EFLAGS: 00000083 RAX: 0000000000000003 RBX: 0000000000000001 RCX: 0000000080000001 RDX: 0000000000000000 RSI: ffffffff8d1270e0 RDI: ffff8880273fe238 RBP: ffff8880273fe238 R08: dffffc0000000000 R09: fffffbfff1cebeae R10: fffffbfff1cebeae R11: 1ffffffff1cebead R12: 0000000000000246 R13: ffff8880273fd7c0 R14: 00000000ffffffff R15: ffffffff8d1270e0 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa3cb607c30 CR3: 0000000027798000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __lock_is_held kernel/locking/lockdep.c:5409 [inline] lock_is_held_type+0xa1/0x180 kernel/locking/lockdep.c:5711 lock_is_held include/linux/lockdep.h:283 [inline] rcu_read_lock_sched_held+0x87/0x110 kernel/rcu/update.c:125 trace_lock_release+0x95/0x220 include/trace/events/lock.h:69 lock_release+0x81/0x820 kernel/locking/lockdep.c:5679 rcu_read_unlock include/linux/rcupdate.h:771 [inline] batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:412 [inline] batadv_nc_worker+0x251/0x5b0 net/batman-adv/network-coding.c:719 process_one_work+0x877/0xdb0 kernel/workqueue.c:2289 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306