INFO: task syz-executor.3:24780 blocked for more than 143 seconds.
Not tainted 6.4.0-rc2-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.3 state:D stack:29304 pid:24780 ppid:5037 flags:0x00004006
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
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:0x7f939f48c169
RSP: 002b:00007f93a01cd168 EFLAGS: 00000246 ORIG_RAX: 000000000000013c
RAX: ffffffffffffffda RBX: 00007f939f5ac120 RCX: 00007f939f48c169
RDX: 0000000000000004 RSI: 00000000200002c0 RDI: 0000000000000004
RBP: 00007f939f4e7ca1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000020000180 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd790f7f0f R14: 00007f93a01cd300 R15: 0000000000022000
INFO: task syz-executor.3:24781 blocked for more than 143 seconds.
Not tainted 6.4.0-rc2-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.3 state:D stack:28536 pid:24781 ppid:5037 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
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:0x7f939f48c169
RSP: 002b:00007f93a01ac168 EFLAGS: 00000246 ORIG_RAX: 0000000000000052
RAX: ffffffffffffffda RBX: 00007f939f5ac1f0 RCX: 00007f939f48c169
RDX: 0000000000000000 RSI: 00000000200000c0 RDI: 0000000020000200
RBP: 00007f939f4e7ca1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd790f7f0f R14: 00007f93a01ac300 R15: 0000000000022000
Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/13:
#0: ffffffff8c798430 (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/14:
#0: ffffffff8c798130 (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: ffffffff8c799040 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x340 kernel/locking/lockdep.c:6545
2 locks held by getty/4760:
#0: ffff888028707098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x26/0x80 drivers/tty/tty_ldisc.c:243
#1: ffffc900015d02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xef4/0x13e0 drivers/tty/n_tty.c:2176
2 locks held by syz-fuzzer/4999:
#0: ffff88807704f4e8 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe7/0x100 fs/file.c:1047
#1: ffff888035f56800 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: iterate_dir+0xd1/0x6f0 fs/readdir.c:55
4 locks held by syz-executor.3/24780:
#0: ffff88814bbea460 (sb_writers#4){.+.+}-{0:0}, at: do_renameat2+0x386/0xd40 fs/namei.c:4936
#1: ffff88814bbea748 (&type->s_vfs_rename_key#2){+.+.}-{3:3}, at: lock_rename fs/namei.c:3046 [inline]
#1: ffff88814bbea748 (&type->s_vfs_rename_key#2){+.+.}-{3:3}, at: do_renameat2+0x686/0xd40 fs/namei.c:4941
#2: ffff888038197200 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:810 [inline]
#2: ffff888038197200 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: lock_two_directories fs/namei.c:3031 [inline]
#2: ffff888038197200 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: lock_two_directories+0x167/0x1e0 fs/namei.c:3013
#3: ffff88803f1a4a00 (&type->i_mutex_dir_key#3/5){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:810 [inline]
#3: ffff88803f1a4a00 (&type->i_mutex_dir_key#3/5){+.+.}-{3:3}, at: lock_two_directories fs/namei.c:3032 [inline]
#3: ffff88803f1a4a00 (&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.3/24781:
#0: ffff88814bbea460 (sb_writers#4){.+.+}-{0:0}, at: do_renameat2+0x386/0xd40 fs/namei.c:4936
#1: ffff888035f56800 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:810 [inline]
#1: ffff888035f56800 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: lock_rename fs/namei.c:3042 [inline]
#1: ffff888035f56800 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: lock_rename fs/namei.c:3039 [inline]
#1: ffff888035f56800 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: do_renameat2+0xae5/0xd40 fs/namei.c:4941
#2: ffff88803f1a4a00 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: inode_lock include/linux/fs.h:775 [inline]
#2: ffff88803f1a4a00 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: vfs_rename+0x4f9/0x17a0 fs/namei.c:4821
#3: ffff888038197200 (&type->i_mutex_dir_key#3/4){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:810 [inline]
#3: ffff888038197200 (&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: 27 Comm: khungtaskd Not tainted 6.4.0-rc2-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: 5662 Comm: kworker/u4:18 Not tainted 6.4.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
Workqueue: bat_events batadv_nc_worker
RIP: 0010:hlock_class kernel/locking/lockdep.c:223 [inline]
RIP: 0010:check_wait_context kernel/locking/lockdep.c:4771 [inline]
RIP: 0010:__lock_acquire+0x6d9/0x5df0 kernel/locking/lockdep.c:5024
Code: 45 3b a5 c0 0a 00 00 0f 8d 99 00 00 00 49 63 c4 48 8d 04 80 49 8d 1c c6 48 8d 7b 20 48 89 fa 48 c1 ea 03 42 0f b6 14 3a 84 d2 <74> 09 80 fa 03 0f 8e 79 2c 00 00 0f b7 53 20 66 81 e2 ff 1f 0f b7
RSP: 0018:ffffc9000b3e79b0 EFLAGS: 00000046
RAX: 0000000000000005 RBX: ffff8880764ea8b0 RCX: ffffffff81658239
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff8880764ea8d0
RBP: 0000000000000004 R08: 0000000000000000 R09: ffffffff91528ddf
R10: fffffbfff22a51bb R11: 0000000000000000 R12: 0000000000000001
R13: ffff8880764e9dc0 R14: ffff8880764ea888 R15: dffffc0000000000
FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c01923b000 CR3: 0000000027510000 CR4: 0000000000350ef0
Call Trace:
lock_acquire kernel/locking/lockdep.c:5691 [inline]
lock_acquire+0x1b1/0x520 kernel/locking/lockdep.c:5656
__raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline]
_raw_spin_lock_bh+0x33/0x40 kernel/locking/spinlock.c:178
spin_lock_bh include/linux/spinlock.h:355 [inline]
batadv_nc_purge_paths+0xdf/0x3c0 net/batman-adv/network-coding.c:442
batadv_nc_worker+0x8fa/0xfe0 net/batman-adv/network-coding.c:720
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