INFO: task syz-executor.2:9590 blocked for more than 143 seconds. Not tainted 6.9.0-rc7-next-20240508-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:23696 pid:9590 tgid:9585 ppid:5120 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5408 [inline] __schedule+0x17e8/0x4a50 kernel/sched/core.c:6745 __schedule_loop kernel/sched/core.c:6822 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6837 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6894 rwsem_down_write_slowpath+0xeeb/0x13b0 kernel/locking/rwsem.c:1178 __down_write_common+0x1af/0x200 kernel/locking/rwsem.c:1306 inode_lock_nested include/linux/fs.h:826 [inline] do_unlinkat+0x26a/0x830 fs/namei.c:4394 __do_sys_unlink fs/namei.c:4455 [inline] __se_sys_unlink fs/namei.c:4453 [inline] __x64_sys_unlink+0x49/0x60 fs/namei.c:4453 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fb7c947dd69 RSP: 002b:00007fb7ca2a70c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 00007fb7c95ac050 RCX: 00007fb7c947dd69 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000140 RBP: 00007fb7c94ca49e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007fb7c95ac050 R15: 00007ffdf082d3f8 INFO: task syz-executor.2:9591 blocked for more than 144 seconds. Not tainted 6.9.0-rc7-next-20240508-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:23216 pid:9591 tgid:9585 ppid:5120 flags:0x00000006 Call Trace: context_switch kernel/sched/core.c:5408 [inline] __schedule+0x17e8/0x4a50 kernel/sched/core.c:6745 __schedule_loop kernel/sched/core.c:6822 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6837 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6894 rwsem_down_write_slowpath+0xeeb/0x13b0 kernel/locking/rwsem.c:1178 __down_write_common+0x1af/0x200 kernel/locking/rwsem.c:1306 inode_lock_nested include/linux/fs.h:826 [inline] filename_create+0x260/0x540 fs/namei.c:3900 do_mkdirat+0xbd/0x3a0 fs/namei.c:4146 __do_sys_mkdirat fs/namei.c:4169 [inline] __se_sys_mkdirat fs/namei.c:4167 [inline] __x64_sys_mkdirat+0x89/0xa0 fs/namei.c:4167 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fb7c947dd69 RSP: 002b:00007fb7ca2860c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007fb7c95ac120 RCX: 00007fb7c947dd69 RDX: 0000000000000000 RSI: 0000000020000240 RDI: ffffffffffffff9c RBP: 00007fb7c94ca49e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007fb7c95ac120 R15: 00007ffdf082d3f8 INFO: task syz-executor.2:9592 blocked for more than 144 seconds. Not tainted 6.9.0-rc7-next-20240508-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:25616 pid:9592 tgid:9585 ppid:5120 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5408 [inline] __schedule+0x17e8/0x4a50 kernel/sched/core.c:6745 __schedule_loop kernel/sched/core.c:6822 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6837 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6894 rwsem_down_read_slowpath kernel/locking/rwsem.c:1086 [inline] __down_read_common kernel/locking/rwsem.c:1250 [inline] __down_read kernel/locking/rwsem.c:1263 [inline] down_read+0x705/0xa40 kernel/locking/rwsem.c:1528 inode_lock_shared include/linux/fs.h:801 [inline] lookup_slow+0x45/0x70 fs/namei.c:1708 walk_component+0x2e1/0x410 fs/namei.c:2004 lookup_last fs/namei.c:2469 [inline] path_lookupat+0x16f/0x450 fs/namei.c:2493 filename_lookup+0x256/0x610 fs/namei.c:2522 user_path_at_empty+0x42/0x60 fs/namei.c:2929 user_path_at include/linux/namei.h:58 [inline] do_faccessat+0x5e5/0xb80 fs/open.c:490 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fb7c947dd69 RSP: 002b:00007fb7ca2650c8 EFLAGS: 00000246 ORIG_RAX: 000000000000010d RAX: ffffffffffffffda RBX: 00007fb7c95ac1f0 RCX: 00007fb7c947dd69 RDX: 0000000000000005 RSI: 0000000020000000 RDI: 0000000000000010 RBP: 00007fb7c94ca49e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007fb7c95ac1f0 R15: 00007ffdf082d3f8 Showing all locks held in the system: 1 lock held by pool_workqueue_/3: 4 locks held by kworker/0:0/8: #0: ffff888015080948 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3206 [inline] #0: ffff888015080948 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x90a/0x1830 kernel/workqueue.c:3312 #1: ffffc900000d7d00 ((work_completion)(&aux->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3207 [inline] #1: ffffc900000d7d00 ((work_completion)(&aux->work)){+.+.}-{0:0}, at: process_scheduled_works+0x945/0x1830 kernel/workqueue.c:3312 #2: ffffffff8e3a5b48 (pack_mutex){+.+.}-{3:3}, at: bpf_prog_pack_free+0x27/0x410 kernel/bpf/core.c:991 #3: ffffffff8e1e34c8 (text_mutex){+.+.}-{3:3}, at: text_poke_set+0xbf/0x1b0 arch/x86/kernel/alternative.c:2048 6 locks held by kworker/u8:1/12: 1 lock held by khungtaskd/30: #0: ffffffff8e333de0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:329 [inline] #0: ffffffff8e333de0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:781 [inline] #0: ffffffff8e333de0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6614 3 locks held by kworker/u8:4/59: #0: ffff888015089148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3206 [inline] #0: ffff888015089148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x90a/0x1830 kernel/workqueue.c:3312 #1: ffffc900015a7d00 ((work_completion)(&map->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3207 [inline] #1: ffffc900015a7d00 ((work_completion)(&map->work)){+.+.}-{0:0}, at: process_scheduled_works+0x945/0x1830 kernel/workqueue.c:3312 #2: ffffffff8e3391b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:323 [inline] #2: ffffffff8e3391b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x451/0x830 kernel/rcu/tree_exp.h:939 2 locks held by getty/4858: #0: ffff88802eb310a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900031332f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b5/0x1e10 drivers/tty/n_tty.c:2201 1 lock held by syz-executor.2/9586: 2 locks held by syz-executor.2/9590: #0: ffff88805f7a6420 (sb_writers#24){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:409 #1: ffff888062310188 (&type->i_mutex_dir_key#17/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:826 [inline] #1: ffff888062310188 (&type->i_mutex_dir_key#17/1){+.+.}-{3:3}, at: do_unlinkat+0x26a/0x830 fs/namei.c:4394 2 locks held by syz-executor.2/9591: #0: ffff88805f7a6420 (sb_writers#24){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:409 #1: ffff888062310188 (&type->i_mutex_dir_key#17/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:826 [inline] #1: ffff888062310188 (&type->i_mutex_dir_key#17/1){+.+.}-{3:3}, at: filename_create+0x260/0x540 fs/namei.c:3900 1 lock held by syz-executor.2/9592: #0: ffff888062310188 (&type->i_mutex_dir_key#17){.+.+}-{3:3}, at: inode_lock_shared include/linux/fs.h:801 [inline] #0: ffff888062310188 (&type->i_mutex_dir_key#17){.+.+}-{3:3}, at: lookup_slow+0x45/0x70 fs/namei.c:1708 2 locks held by syz-executor.1/12128: #0: ffffffff8f5d9810 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x4c6/0x7b0 net/core/net_namespace.c:504 #1: ffffffff8e339080 (rcu_state.barrier_mutex){+.+.}-{3:3}, at: rcu_barrier+0x4c/0x550 kernel/rcu/tree.c:4448 1 lock held by syz-executor.4/12142: #0: ffffffff8e339080 (rcu_state.barrier_mutex){+.+.}-{3:3}, at: rcu_barrier+0x4c/0x550 kernel/rcu/tree.c:4448 1 lock held by syz-executor.0/12146: #0: ffff88807efcf398 (&mm->mmap_lock){++++}-{3:3}, at: mmap_write_lock_killable include/linux/mmap_lock.h:122 [inline] #0: ffff88807efcf398 (&mm->mmap_lock){++++}-{3:3}, at: vm_mmap_pgoff+0x17c/0x3d0 mm/util.c:571 1 lock held by syz-executor.0/12148: 1 lock held by syz-executor.2/12153: #0: ffffffff8e3802e8 (tracepoints_mutex){+.+.}-{3:3}, at: tracepoint_probe_register_prio_may_exist+0xbb/0x190 kernel/tracepoint.c:478 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 30 Comm: khungtaskd Not tainted 6.9.0-rc7-next-20240508-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 nmi_cpu_backtrace+0x49c/0x4d0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x198/0x320 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:223 [inline] watchdog+0xfde/0x1020 kernel/hung_task.c:379 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 2462 Comm: kworker/u8:6 Not tainted 6.9.0-rc7-next-20240508-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 Workqueue: bat_events batadv_nc_worker RIP: 0010:lock_release+0x71/0x9f0 kernel/locking/lockdep.c:5762 Code: 41 48 c7 44 24 68 89 1c b6 8d 48 c7 44 24 70 f0 8f 72 81 4c 8d 64 24 60 49 c1 ec 03 48 b8 f1 f1 f1 f1 04 f2 00 f2 4b 89 04 3c <48> b8 f2 f2 00 f3 f3 f3 f3 f3 4b 89 44 3c 08 0f 1f 44 00 00 65 8b RSP: 0018:ffffc9000a047a20 EFLAGS: 00000a06 RAX: f200f204f1f1f1f1 RBX: ffffffff8b546b7b RCX: ffff8880299ebc00 RDX: 0000000000000000 RSI: ffffffff8b546b7b RDI: ffffffff8e333de0 RBP: ffffc9000a047b48 R08: ffffffff8b546cae R09: 1ffffffff25f5cb0 R10: dffffc0000000000 R11: fffffbfff25f5cb1 R12: 1ffff92001408f50 R13: ffffffff8b546b7b R14: ffff888063f2ff80 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b31722000 CR3: 000000000e132000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: rcu_lock_release include/linux/rcupdate.h:339 [inline] rcu_read_unlock include/linux/rcupdate.h:812 [inline] batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:412 [inline] batadv_nc_worker+0x28b/0x610 net/batman-adv/network-coding.c:719 process_one_work kernel/workqueue.c:3231 [inline] process_scheduled_works+0xa2c/0x1830 kernel/workqueue.c:3312 worker_thread+0x86d/0xd70 kernel/workqueue.c:3393 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244