INFO: task syz-executor.0:7462 blocked for more than 143 seconds. Not tainted 6.2.0-rc1-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:22424 pid:7462 ppid:5122 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5244 [inline] __schedule+0x995/0xe20 kernel/sched/core.c:6555 schedule+0xcb/0x190 kernel/sched/core.c:6631 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/0x5f0 fs/namei.c:4169 __do_sys_unlinkat fs/namei.c:4362 [inline] __se_sys_unlinkat fs/namei.c:4356 [inline] __x64_sys_unlinkat+0xdc/0xf0 fs/namei.c:4356 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:0x7fe4eb68c0a9 RSP: 002b:00007fe4ec3e9168 EFLAGS: 00000246 ORIG_RAX: 0000000000000107 RAX: ffffffffffffffda RBX: 00007fe4eb7abf80 RCX: 00007fe4eb68c0a9 RDX: 0000000000000200 RSI: 0000000020000080 RDI: 0000000000000004 RBP: 00007fe4eb6e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcdd73d32f R14: 00007fe4ec3e9300 R15: 0000000000022000 INFO: task syz-executor.0:7469 blocked for more than 143 seconds. Not tainted 6.2.0-rc1-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:21248 pid:7469 ppid:5122 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5244 [inline] __schedule+0x995/0xe20 kernel/sched/core.c:6555 schedule+0xcb/0x190 kernel/sched/core.c:6631 io_schedule+0x83/0x100 kernel/sched/core.c:8811 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:387 ext4_handle_dirty_dirblock+0x363/0x6b0 fs/ext4/namei.c:438 ext4_finish_convert_inline_dir+0x58a/0x700 fs/ext4/inline.c:1181 ext4_convert_inline_data_nolock+0x639/0x820 fs/ext4/inline.c:1258 ext4_try_add_inline_entry+0x683/0x990 fs/ext4/inline.c:1331 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+0x25b/0x530 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:0x7fe4eb68c0a9 RSP: 002b:00007fe4ec3c8168 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007fe4eb7ac050 RCX: 00007fe4eb68c0a9 RDX: 0000000000000000 RSI: 0000000020000300 RDI: 0000000000000004 RBP: 00007fe4eb6e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcdd73d32f R14: 00007fe4ec3c8300 R15: 0000000000022000 INFO: task syz-executor.0:7472 blocked for more than 143 seconds. Not tainted 6.2.0-rc1-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:24512 pid:7472 ppid:5122 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5244 [inline] __schedule+0x995/0xe20 kernel/sched/core.c:6555 schedule+0xcb/0x190 kernel/sched/core.c:6631 rwsem_down_read_slowpath+0x5f9/0x930 kernel/locking/rwsem.c:1095 __down_read_common+0x54/0x2a0 kernel/locking/rwsem.c:1260 inode_lock_shared include/linux/fs.h:766 [inline] open_last_lookups fs/namei.c:3480 [inline] path_openat+0x7aa/0x2dd0 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_openat fs/open.c:1342 [inline] __se_sys_openat fs/open.c:1337 [inline] __x64_sys_openat+0x243/0x290 fs/open.c:1337 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:0x7fe4eb68c0a9 RSP: 002b:00007fe4ec3a7168 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fe4eb7ac120 RCX: 00007fe4eb68c0a9 RDX: 0000000000058803 RSI: 0000000020000100 RDI: 0000000000000004 RBP: 00007fe4eb6e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000044 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcdd73d32f R14: 00007fe4ec3a7300 R15: 0000000000022000 INFO: task syz-executor.0:7473 blocked for more than 144 seconds. Not tainted 6.2.0-rc1-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:24840 pid:7473 ppid:5122 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5244 [inline] __schedule+0x995/0xe20 kernel/sched/core.c:6555 schedule+0xcb/0x190 kernel/sched/core.c:6631 rwsem_down_read_slowpath+0x5f9/0x930 kernel/locking/rwsem.c:1095 __down_read_common+0x54/0x2a0 kernel/locking/rwsem.c:1260 inode_lock_shared include/linux/fs.h:766 [inline] open_last_lookups fs/namei.c:3480 [inline] path_openat+0x7aa/0x2dd0 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:0x7fe4eb68c0a9 RSP: 002b:00007fe4ec386168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007fe4eb7ac1f0 RCX: 00007fe4eb68c0a9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000200 RBP: 00007fe4eb6e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcdd73d32f R14: 00007fe4ec386300 R15: 0000000000022000 INFO: task syz-executor.0:7474 blocked for more than 144 seconds. Not tainted 6.2.0-rc1-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:25480 pid:7474 ppid:5122 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5244 [inline] __schedule+0x995/0xe20 kernel/sched/core.c:6555 schedule+0xcb/0x190 kernel/sched/core.c:6631 rwsem_down_read_slowpath+0x5f9/0x930 kernel/locking/rwsem.c:1095 __down_read_common+0x54/0x2a0 kernel/locking/rwsem.c:1260 inode_lock_shared include/linux/fs.h:766 [inline] lookup_slow+0x45/0x70 fs/namei.c:1701 walk_component+0x2e1/0x410 fs/namei.c:1993 lookup_last fs/namei.c:2450 [inline] path_lookupat+0x17d/0x450 fs/namei.c:2474 filename_lookup+0x274/0x650 fs/namei.c:2503 user_path_at_empty+0x40/0x1a0 fs/namei.c:2876 user_path_at include/linux/namei.h:57 [inline] __do_sys_chdir fs/open.c:514 [inline] __se_sys_chdir+0xb8/0x210 fs/open.c:508 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:0x7fe4eb68c0a9 RSP: 002b:00007fe4ec365168 EFLAGS: 00000246 ORIG_RAX: 0000000000000050 RAX: ffffffffffffffda RBX: 00007fe4eb7ac2c0 RCX: 00007fe4eb68c0a9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000000 RBP: 00007fe4eb6e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcdd73d32f R14: 00007fe4ec365300 R15: 0000000000022000 Showing all locks held in the system: 3 locks held by kworker/u4:0/9: #0: ffff8881451a4938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x7f2/0xdb0 #1: ffffc900000e7d00 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x831/0xdb0 kernel/workqueue.c:2264 #2: ffff88813fe620e0 (&type->s_umount_key#40){.+.+}-{3:3}, at: trylock_super+0x1b/0xf0 fs/super.c:415 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8d326e90 (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: ffffffff8d327690 (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: ffffffff8d326cc0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by getty/4754: #0: ffff88802c7da098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc900015802f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x53b/0x1650 drivers/tty/n_tty.c:2177 2 locks held by kworker/u4:7/7317: 2 locks held by syz-executor.0/7462: #0: ffff888033bf2460 (sb_writers#4){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:508 #1: ffff888035798400 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:791 [inline] #1: ffff888035798400 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: do_rmdir+0x257/0x5f0 fs/namei.c:4169 3 locks held by syz-executor.0/7469: #0: ffff888033bf2460 (sb_writers#4){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:508 #1: ffff888035798400 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:791 [inline] #1: ffff888035798400 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: filename_create+0x22a/0x4f0 fs/namei.c:3807 #2: ffff8880357980c8 (&ei->xattr_sem){++++}-{3:3}, at: ext4_write_lock_xattr fs/ext4/xattr.h:155 [inline] #2: ffff8880357980c8 (&ei->xattr_sem){++++}-{3:3}, at: ext4_try_add_inline_entry+0xe1/0x990 fs/ext4/inline.c:1289 2 locks held by syz-executor.0/7472: #0: ffff888033bf2460 (sb_writers#4){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:508 #1: ffff888035798400 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:766 [inline] #1: ffff888035798400 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: open_last_lookups fs/namei.c:3480 [inline] #1: ffff888035798400 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: path_openat+0x7aa/0x2dd0 fs/namei.c:3711 1 lock held by syz-executor.0/7473: #0: ffff888035798400 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:766 [inline] #0: ffff888035798400 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: open_last_lookups fs/namei.c:3480 [inline] #0: ffff888035798400 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: path_openat+0x7aa/0x2dd0 fs/namei.c:3711 1 lock held by syz-executor.0/7474: #0: ffff888035798400 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:766 [inline] #0: ffff888035798400 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: lookup_slow+0x45/0x70 fs/namei.c:1701 1 lock held by syz-executor.0/9268: #0: ffff88801f0e84c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0xfe/0xa60 block/bdev.c:813 1 lock held by syz-executor.1/9276: #0: ffff88801f0e84c8 (&disk->open_mutex){+.+.}-{3:3}, at: sync_bdevs+0x1b0/0x320 block/bdev.c:1052 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.2.0-rc1-syzkaller #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/0x290 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+0xcd5/0xd20 kernel/hung_task.c:377 kthread+0x266/0x300 kernel/kthread.c:376 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: 33 Comm: kworker/u4:2 Not tainted 6.2.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Workqueue: bat_events batadv_nc_worker RIP: 0010:check_preemption_disabled+0x14/0x110 lib/smp_processor_id.c:13 Code: ff cc cc cc cc cc 48 c7 c7 00 c1 4b 8b 48 c7 c6 40 c1 4b 8b eb 00 41 57 41 56 41 54 53 48 83 ec 10 65 48 8b 04 25 28 00 00 00 <48> 89 44 24 08 65 8b 1d 2c b2 52 75 65 8b 05 21 b2 52 75 a9 ff ff RSP: 0018:ffffc90000aa7a68 EFLAGS: 00000082 RAX: 65c805dab2cff600 RBX: ffffc90000aa7b30 RCX: 0000000000aa7b03 RDX: 0000000000000002 RSI: ffffffff8aedcc40 RDI: ffffffff8b4bc160 RBP: ffffc90000aa7bc8 R08: dffffc0000000000 R09: fffffbfff1d2ccee R10: fffffbfff1d2ccee R11: 1ffffffff1d2cced R12: dffffc0000000000 R13: ffff888017bda7c8 R14: 1ffff92000154f60 R15: 0000000000000246 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c0154f1bc0 CR3: 000000002c29d000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lockdep_recursion_finish kernel/locking/lockdep.c:466 [inline] lock_release+0x54c/0x820 kernel/locking/lockdep.c:5690 rcu_read_unlock include/linux/rcupdate.h:797 [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:308