INFO: task syz-executor.4:27210 blocked for more than 143 seconds.
Not tainted 6.2.0-syzkaller-13563-gf915322fe014 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.4 state:D stack:25656 pid:27210 ppid:5118 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:5304 [inline]
__schedule+0x17d8/0x4990 kernel/sched/core.c:6622
schedule+0xc3/0x180 kernel/sched/core.c:6698
schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6757
rwsem_down_write_slowpath+0xedd/0x13a0 kernel/locking/rwsem.c:1178
__down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306
lock_rename+0x186/0x1a0
ovl_workdir_ok fs/overlayfs/super.c:981 [inline]
ovl_get_workdir+0x211/0x17c0 fs/overlayfs/super.c:1424
ovl_fill_super+0x1c64/0x2bd0 fs/overlayfs/super.c:2000
mount_nodev+0x56/0xe0 fs/super.c:1417
legacy_get_tree+0xef/0x190 fs/fs_context.c:610
vfs_get_tree+0x8c/0x270 fs/super.c:1501
do_new_mount+0x28f/0xae0 fs/namespace.c:3042
do_mount fs/namespace.c:3385 [inline]
__do_sys_mount fs/namespace.c:3594 [inline]
__se_sys_mount+0x2d9/0x3c0 fs/namespace.c:3571
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f980448c0f9
RSP: 002b:00007f98052d7168 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f98045abf80 RCX: 00007f980448c0f9
RDX: 0000000020000080 RSI: 0000000020000040 RDI: 0000000000000000
RBP: 00007f98044e7ae9 R08: 0000000020000180 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffea4f2c63f R14: 00007f98052d7300 R15: 0000000000022000
INFO: task syz-executor.4:27217 blocked for more than 143 seconds.
Not tainted 6.2.0-syzkaller-13563-gf915322fe014 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.4 state:D stack:24864 pid:27217 ppid:5118 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:5304 [inline]
__schedule+0x17d8/0x4990 kernel/sched/core.c:6622
schedule+0xc3/0x180 kernel/sched/core.c:6698
schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6757
rwsem_down_write_slowpath+0xedd/0x13a0 kernel/locking/rwsem.c:1178
__down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306
inode_lock_nested include/linux/fs.h:793 [inline]
ext4_rename fs/ext4/namei.c:3879 [inline]
ext4_rename2+0x2633/0x4410 fs/ext4/namei.c:4193
vfs_rename+0xb1b/0xfa0 fs/namei.c:4772
do_renameat2+0xb9b/0x13c0 fs/namei.c:4923
__do_sys_rename fs/namei.c:4969 [inline]
__se_sys_rename fs/namei.c:4967 [inline]
__x64_sys_rename+0x86/0x90 fs/namei.c:4967
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f980448c0f9
RSP: 002b:00007f98052b6168 EFLAGS: 00000246 ORIG_RAX: 0000000000000052
RAX: ffffffffffffffda RBX: 00007f98045ac050 RCX: 00007f980448c0f9
RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000020000000
RBP: 00007f98044e7ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffea4f2c63f R14: 00007f98052b6300 R15: 0000000000022000
Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/12:
#0: ffffffff8d1279f0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:510
1 lock held by rcu_tasks_trace/13:
#0: ffffffff8d1281f0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:510
1 lock held by khungtaskd/28:
#0: ffffffff8d127820 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
2 locks held by getty/4748:
#0: ffff88814a418098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:244
#1: ffffc900015c02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6ab/0x1db0 drivers/tty/n_tty.c:2177
3 locks held by syz-fuzzer/5068:
#0: ffff88807783f768 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x254/0x2f0 fs/file.c:1046
#1: ffff8880776b3628 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: iterate_dir+0x10e/0x570 fs/readdir.c:55
#2: ffff88814aec0460 (sb_writers#4){.+.+}-{0:0}, at: file_accessed include/linux/fs.h:2181 [inline]
#2: ffff88814aec0460 (sb_writers#4){.+.+}-{0:0}, at: iterate_dir+0x488/0x570 fs/readdir.c:70
3 locks held by syz-fuzzer/5105:
#0: ffff88802a069268 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x254/0x2f0 fs/file.c:1046
#1: ffff8880776b4030 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: iterate_dir+0x10e/0x570 fs/readdir.c:55
#2: ffff88814aec0460 (sb_writers#4){.+.+}-{0:0}, at: file_accessed include/linux/fs.h:2181 [inline]
#2: ffff88814aec0460 (sb_writers#4){.+.+}-{0:0}, at: iterate_dir+0x488/0x570 fs/readdir.c:70
2 locks held by syz-executor.0/5111:
#0: ffff8880747c3628 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: iterate_dir+0x10e/0x570 fs/readdir.c:55
#1: ffff88814aec0460 (sb_writers#4){.+.+}-{0:0}, at: file_accessed include/linux/fs.h:2181 [inline]
#1: ffff88814aec0460 (sb_writers#4){.+.+}-{0:0}, at: iterate_dir+0x488/0x570 fs/readdir.c:70
2 locks held by syz-executor.1/5116:
#0: ffff88808e7c4a38 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: iterate_dir+0x10e/0x570 fs/readdir.c:55
#1: ffff88814aec0460 (sb_writers#4){.+.+}-{0:0}, at: file_accessed include/linux/fs.h:2181 [inline]
#1: ffff88814aec0460 (sb_writers#4){.+.+}-{0:0}, at: iterate_dir+0x488/0x570 fs/readdir.c:70
4 locks held by kworker/u4:12/22355:
#0: ffff8880177ec138 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x77f/0x13a0
#1: ffffc90014fcfd20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7c6/0x13a0 kernel/workqueue.c:2365
#2: ffff88814aec00e0 (&type->s_umount_key#30){++++}-{3:3}, at: trylock_super+0x1f/0xf0 fs/super.c:414
#3: ffff88814aec2b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: ext4_writepages+0x1dd/0x290 fs/ext4/inode.c:2963
4 locks held by syz-executor.4/27210:
#0: ffff8880865220e0 (&type->s_umount_key#65/1){+.+.}-{3:3}, at: alloc_super+0x217/0x930 fs/super.c:228
#1: ffff88814aec0748 (&type->s_vfs_rename_key){+.+.}-{3:3}, at: lock_rename+0x58/0x1a0 fs/namei.c:2995
#2: ffff8880747fac20 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: lock_rename+0x13e/0x1a0
#3: ffff8880747fb628 (&type->i_mutex_dir_key#3/5){+.+.}-{3:3}, at: lock_rename+0x186/0x1a0
5 locks held by syz-executor.4/27217:
#0: ffff88814aec0460 (sb_writers#4){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:394
#1: ffff88808942de48 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: lock_rename+0x186/0x1a0
#2: ffff8880747fb628 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline]
#2: ffff8880747fb628 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: vfs_rename+0x617/0xfa0 fs/namei.c:4744
#3: ffff88814aec4990 (jbd2_handle){++++}-{0:0}, at: start_this_handle+0x13cc/0x1640 fs/jbd2/transaction.c:461
#4: ffff8880747fac20 (&type->i_mutex_dir_key#3/4){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:793 [inline]
#4: ffff8880747fac20 (&type->i_mutex_dir_key#3/4){+.+.}-{3:3}, at: ext4_rename fs/ext4/namei.c:3879 [inline]
#4: ffff8880747fac20 (&type->i_mutex_dir_key#3/4){+.+.}-{3:3}, at: ext4_rename2+0x2633/0x4410 fs/ext4/namei.c:4193
3 locks held by syz-executor.5/27220:
#0: ffff888022ab6fe8 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x254/0x2f0 fs/file.c:1046
#1: ffff88814aec0460 (sb_writers#4){.+.+}-{0:0}, at: vfs_write+0x26d/0xbb0 fs/read_write.c:580
#2: ffff88808d790e08 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline]
#2: ffff88808d790e08 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: ext4_buffered_write_iter+0xaf/0x3a0 fs/ext4/file.c:283
2 locks held by syz-executor.2/27222:
#0: ffff88814aec0460 (sb_writers#4){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:394
#1: ffff8880894dd440 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:793 [inline]
#1: ffff8880894dd440 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: filename_create+0x25a/0x530 fs/namei.c:3808
2 locks held by syz-executor.3/27225:
#0: ffff88814aec0460 (sb_writers#4){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:394
#1: ffff8880894dac20 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:793 [inline]
#1: ffff8880894dac20 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: filename_create+0x25a/0x530 fs/namei.c:3808
=============================================
NMI backtrace for cpu 1
CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.2.0-syzkaller-13563-gf915322fe014 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106
nmi_cpu_backtrace+0x4e5/0x560 lib/nmi_backtrace.c:113
nmi_trigger_cpumask_backtrace+0x1b4/0x410 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+0x1024/0x1070 kernel/hung_task.c:379
kthread+0x270/0x300 kernel/kthread.c:376
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: 22397 Comm: kworker/u4:26 Not tainted 6.2.0-syzkaller-13563-gf915322fe014 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
Workqueue: bat_events batadv_nc_worker
RIP: 0010:addr_has_metadata mm/kasan/kasan.h:302 [inline]
RIP: 0010:check_region_inline mm/kasan/generic.c:175 [inline]
RIP: 0010:kasan_check_range+0x28/0x290 mm/kasan/generic.c:187
Code: 00 00 66 0f 1f 00 55 41 57 41 56 53 b0 01 48 85 f6 0f 84 9a 01 00 00 48 89 fd 48 01 f5 0f 82 5a 02 00 00 48 89 fd 48 c1 ed 2f <81> fd ff ff 01 00 0f 82 47 02 00 00 48 89 fb 48 c1 eb 03 49 b8 00
RSP: 0018:ffffc90014d6f930 EFLAGS: 00000807
RAX: 0000000000000001 RBX: 0000000000000021 RCX: ffffffff816c4eaa
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff904f01c0
RBP: 000000000001ffff R08: dffffc0000000000 R09: fffffbfff209e054
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888020a80a30
R13: dffffc0000000000 R14: 0000000000000200 R15: ffff888020a80a88
FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c025a907a0 CR3: 000000001d217000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
instrument_atomic_read include/linux/instrumented.h:72 [inline]
_test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline]
hlock_class kernel/locking/lockdep.c:228 [inline]
mark_lock+0x9a/0x340 kernel/locking/lockdep.c:4613
mark_usage kernel/locking/lockdep.c:4556 [inline]
__lock_acquire+0xc6a/0x1f80 kernel/locking/lockdep.c:5010
lock_acquire+0x23e/0x630 kernel/locking/lockdep.c:5669
rcu_lock_acquire+0x2e/0x40 include/linux/rcupdate.h:327
rcu_read_lock include/linux/rcupdate.h:773 [inline]
batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:408 [inline]
batadv_nc_worker+0xc5/0x5c0 net/batman-adv/network-coding.c:719
process_one_work+0x915/0x13a0 kernel/workqueue.c:2390
worker_thread+0xa63/0x1210 kernel/workqueue.c:2537
kthread+0x270/0x300 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308