INFO: task syz-executor.2:22196 blocked for more than 143 seconds. Not tainted 6.4.0-rc2-next-20230515-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:27816 pid:22196 ppid:15310 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5343 [inline] __schedule+0x1d15/0x5790 kernel/sched/core.c:6669 schedule+0xde/0x1a0 kernel/sched/core.c:6745 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6804 rwsem_down_write_slowpath+0x3e2/0x1220 kernel/locking/rwsem.c:1178 __down_write_common kernel/locking/rwsem.c:1306 [inline] __down_write kernel/locking/rwsem.c:1315 [inline] down_write_nested+0x1d6/0x200 kernel/locking/rwsem.c:1690 inode_lock_nested include/linux/fs.h:810 [inline] lock_two_directories fs/namei.c:3032 [inline] lock_two_directories+0x197/0x1e0 fs/namei.c:3013 lock_rename fs/namei.c:3047 [inline] do_renameat2+0x691/0xd40 fs/namei.c:4941 __do_sys_renameat2 fs/namei.c:5035 [inline] __se_sys_renameat2 fs/namei.c:5032 [inline] __x64_sys_renameat2+0xe8/0x120 fs/namei.c:5032 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:0x7fa89548c169 RSP: 002b:00007fa8961f1168 EFLAGS: 00000246 ORIG_RAX: 000000000000013c RAX: ffffffffffffffda RBX: 00007fa8955ac050 RCX: 00007fa89548c169 RDX: 0000000000000004 RSI: 00000000200002c0 RDI: 0000000000000004 RBP: 00007fa8954e7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000020000180 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcf0eef05f R14: 00007fa8961f1300 R15: 0000000000022000 INFO: task syz-executor.2:22203 blocked for more than 143 seconds. Not tainted 6.4.0-rc2-next-20230515-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:27952 pid:22203 ppid:15310 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5343 [inline] __schedule+0x1d15/0x5790 kernel/sched/core.c:6669 schedule+0xde/0x1a0 kernel/sched/core.c:6745 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6804 rwsem_down_write_slowpath+0x3e2/0x1220 kernel/locking/rwsem.c:1178 __down_write_common kernel/locking/rwsem.c:1306 [inline] __down_write kernel/locking/rwsem.c:1315 [inline] down_write_nested+0x1d6/0x200 kernel/locking/rwsem.c:1690 inode_lock_nested include/linux/fs.h:810 [inline] ext4_rename+0x1593/0x2790 fs/ext4/namei.c:3842 ext4_rename2+0x1c7/0x270 fs/ext4/namei.c:4221 vfs_rename+0xef6/0x17a0 fs/namei.c:4849 do_renameat2+0xc04/0xd40 fs/namei.c:5002 __do_sys_rename fs/namei.c:5048 [inline] __se_sys_rename fs/namei.c:5046 [inline] __x64_sys_rename+0x81/0xa0 fs/namei.c:5046 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:0x7fa89548c169 RSP: 002b:00007fa8961d0168 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007fa8955ac120 RCX: 00007fa89548c169 RDX: 0000000000000000 RSI: 00000000200000c0 RDI: 0000000020000200 RBP: 00007fa8954e7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcf0eef05f R14: 00007fa8961d0300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/13: #0: ffffffff8c798530 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:522 1 lock held by rcu_tasks_trace/14: #0: ffffffff8c798230 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:522 1 lock held by khungtaskd/28: #0: ffffffff8c799140 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x51/0x390 kernel/locking/lockdep.c:6559 3 locks held by kworker/u4:2/33: #0: ffff8880b983c5d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2f/0x120 kernel/sched/core.c:558 #1: ffff8880b9828848 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x216/0x950 kernel/sched/psi.c:983 #2: ffffffff8c799140 (rcu_read_lock){....}-{1:2}, at: batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:406 [inline] #2: ffffffff8c799140 (rcu_read_lock){....}-{1:2}, at: batadv_nc_worker+0xf7/0xfe0 net/batman-adv/network-coding.c:719 2 locks held by getty/4761: #0: ffff88802cc32098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x26/0x80 drivers/tty/tty_ldisc.c:243 #1: ffffc900015b02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xef4/0x13e0 drivers/tty/n_tty.c:2176 2 locks held by syz-fuzzer/5293: #0: ffff88807876a368 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe7/0x100 fs/file.c:1047 #1: ffff8880476b2200 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: iterate_dir+0xd1/0x6f0 fs/readdir.c:55 4 locks held by syz-executor.2/22196: #0: ffff88814c4e2460 (sb_writers#4){.+.+}-{0:0}, at: do_renameat2+0x386/0xd40 fs/namei.c:4936 #1: ffff88814c4e2748 (&type->s_vfs_rename_key){+.+.}-{3:3}, at: lock_rename fs/namei.c:3046 [inline] #1: ffff88814c4e2748 (&type->s_vfs_rename_key){+.+.}-{3:3}, at: do_renameat2+0x686/0xd40 fs/namei.c:4941 #2: ffff888047790e00 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:810 [inline] #2: ffff888047790e00 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: lock_two_directories fs/namei.c:3031 [inline] #2: ffff888047790e00 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: lock_two_directories+0x167/0x1e0 fs/namei.c:3013 #3: ffff88804ebb0400 (&type->i_mutex_dir_key#3/5){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:810 [inline] #3: ffff88804ebb0400 (&type->i_mutex_dir_key#3/5){+.+.}-{3:3}, at: lock_two_directories fs/namei.c:3032 [inline] #3: ffff88804ebb0400 (&type->i_mutex_dir_key#3/5){+.+.}-{3:3}, at: lock_two_directories+0x197/0x1e0 fs/namei.c:3013 4 locks held by syz-executor.2/22203: #0: ffff88814c4e2460 (sb_writers#4){.+.+}-{0:0}, at: do_renameat2+0x386/0xd40 fs/namei.c:4936 #1: ffff8880476b2200 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:810 [inline] #1: ffff8880476b2200 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: lock_rename fs/namei.c:3042 [inline] #1: ffff8880476b2200 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: lock_rename fs/namei.c:3039 [inline] #1: ffff8880476b2200 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: do_renameat2+0xae5/0xd40 fs/namei.c:4941 #2: ffff88804ebb0400 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: inode_lock include/linux/fs.h:775 [inline] #2: ffff88804ebb0400 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: vfs_rename+0x4f9/0x17a0 fs/namei.c:4821 #3: ffff888047790e00 (&type->i_mutex_dir_key#3/4){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:810 [inline] #3: ffff888047790e00 (&type->i_mutex_dir_key#3/4){+.+.}-{3:3}, at: ext4_rename+0x1593/0x2790 fs/ext4/namei.c:3842 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.4.0-rc2-next-20230515-syzkaller #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 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 18004 Comm: kworker/u4:16 Not tainted 6.4.0-rc2-next-20230515-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023 Workqueue: phy15 ieee80211_iface_work RIP: 0010:unwind_next_frame+0x3e1/0x1e30 arch/x86/kernel/unwind_orc.c:477 Code: e8 d4 f5 ff ff 48 89 c1 48 85 c9 0f 84 a0 02 00 00 4c 8d 79 05 48 b8 00 00 00 00 00 fc ff df 4c 89 fa 48 c1 ea 03 0f b6 04 02 <4c> 89 fa 83 e2 07 38 d0 7f 08 84 c0 0f 85 0c 14 00 00 0f b6 41 05 RSP: 0018:ffffc900118bf480 EFLAGS: 00000a02 RAX: 0000000000000000 RBX: 0000000000000001 RCX: ffffffff8f0cbc26 RDX: 1ffffffff1e19785 RSI: ffffffff8f0cbc26 RDI: ffffffff8e91193c RBP: ffffc900118bf538 R08: ffffffff8f0cbc26 R09: ffffc900118bf860 R10: ffffc900118bf4f0 R11: 0000000000094001 R12: ffffc900118bf540 R13: ffffc900118bf4f0 R14: ffffc900118bf525 R15: ffffffff8f0cbc2b FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c00241f000 CR3: 000000002c922000 CR4: 00000000003506f0 Call Trace: arch_stack_walk+0x81/0xf0 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x90/0xc0 kernel/stacktrace.c:122 kasan_save_stack+0x22/0x40 mm/kasan/common.c:45 kasan_set_track+0x25/0x30 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:374 [inline] ____kasan_kmalloc mm/kasan/common.c:333 [inline] __kasan_kmalloc+0xa2/0xb0 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:196 [inline] __do_kmalloc_node mm/slab_common.c:966 [inline] __kmalloc+0x5e/0x190 mm/slab_common.c:979 kmalloc include/linux/slab.h:563 [inline] kzalloc include/linux/slab.h:680 [inline] ieee802_11_parse_elems_full+0x106/0x1340 net/mac80211/util.c:1609 ieee802_11_parse_elems_crc net/mac80211/ieee80211_i.h:2305 [inline] ieee802_11_parse_elems net/mac80211/ieee80211_i.h:2312 [inline] ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1605 [inline] ieee80211_ibss_rx_queued_mgmt+0xc20/0x2d50 net/mac80211/ibss.c:1638 ieee80211_iface_process_skb net/mac80211/iface.c:1594 [inline] ieee80211_iface_work+0xa4d/0xd70 net/mac80211/iface.c:1648 process_one_work+0x99a/0x15e0 kernel/workqueue.c:2407 worker_thread+0x67d/0x10c0 kernel/workqueue.c:2554 kthread+0x344/0x440 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308