INFO: task syz-executor.0:5510 blocked for more than 140 seconds. Not tainted 4.19.211-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.0 D29456 5510 8136 0x00000004 Call Trace: context_switch kernel/sched/core.c:2828 [inline] __schedule+0x887/0x2040 kernel/sched/core.c:3517 schedule+0x8d/0x1b0 kernel/sched/core.c:3561 __rwsem_down_write_failed_common kernel/locking/rwsem-xadd.c:589 [inline] rwsem_down_write_failed+0x3aa/0x760 kernel/locking/rwsem-xadd.c:618 call_rwsem_down_write_failed+0x13/0x20 arch/x86/lib/rwsem.S:117 __down_write arch/x86/include/asm/rwsem.h:142 [inline] down_write+0x4f/0x90 kernel/locking/rwsem.c:72 inode_lock include/linux/fs.h:748 [inline] do_last fs/namei.c:3324 [inline] path_openat+0x1071/0x2df0 fs/namei.c:3537 do_filp_open+0x18c/0x3f0 fs/namei.c:3567 do_sys_open+0x3b3/0x520 fs/open.c:1085 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f5fea0a30d9 Code: Bad RIP value. RSP: 002b:00007f5fe41f4168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007f5fea1c3050 RCX: 00007f5fea0a30d9 RDX: 0000000000000000 RSI: 0000000000042542 RDI: 0000000020002000 RBP: 00007f5fea0feae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc1114041f R14: 00007f5fe41f4300 R15: 0000000000022000 INFO: task syz-executor.0:5512 blocked for more than 140 seconds. Not tainted 4.19.211-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.0 D29744 5512 8136 0x00000004 Call Trace: context_switch kernel/sched/core.c:2828 [inline] __schedule+0x887/0x2040 kernel/sched/core.c:3517 schedule+0x8d/0x1b0 kernel/sched/core.c:3561 __rwsem_down_write_failed_common kernel/locking/rwsem-xadd.c:589 [inline] rwsem_down_write_failed+0x3aa/0x760 kernel/locking/rwsem-xadd.c:618 call_rwsem_down_write_failed+0x13/0x20 arch/x86/lib/rwsem.S:117 __down_write arch/x86/include/asm/rwsem.h:142 [inline] down_write_nested+0x51/0x90 kernel/locking/rwsem.c:194 inode_lock_nested include/linux/fs.h:783 [inline] do_unlinkat+0x27d/0x660 fs/namei.c:4051 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f5fea0a30d9 Code: Bad RIP value. RSP: 002b:00007f5fe41d3168 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 00007f5fea1c3120 RCX: 00007f5fea0a30d9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000100 RBP: 00007f5fea0feae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc1114041f R14: 00007f5fe41d3300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by khungtaskd/1570: #0: 0000000056a337b4 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441 2 locks held by systemd-journal/4685: #0: 00000000fc3475ff (&rq->lock){-.-.}, at: rq_lock kernel/sched/sched.h:1826 [inline] #0: 00000000fc3475ff (&rq->lock){-.-.}, at: __schedule+0x1f9/0x2040 kernel/sched/core.c:3455 #1: 0000000056a337b4 (rcu_read_lock){....}, at: trace_sched_stat_runtime include/trace/events/sched.h:428 [inline] #1: 0000000056a337b4 (rcu_read_lock){....}, at: update_curr+0x2c3/0x870 kernel/sched/fair.c:857 1 lock held by in:imklog/7812: #0: 00000000e3a0a11d (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767 4 locks held by kworker/u4:11/16782: #0: 0000000070ba29e5 ((wq_completion)"writeback"){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124 #1: 00000000c919a1fc ((work_completion)(&(&wb->dwork)->work)){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128 #2: 00000000c1048b64 (&type->s_umount_key#68){++++}, at: trylock_super+0x1d/0x100 fs/super.c:412 #3: 00000000bbb59667 (&sbi->gc_mutex){+.+.}, at: f2fs_balance_fs+0x709/0xd80 fs/f2fs/segment.c:512 3 locks held by syz-executor.0/5348: 2 locks held by syz-executor.0/5510: #0: 000000007e348e0e (sb_writers#18){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline] #0: 000000007e348e0e (sb_writers#18){.+.+}, at: mnt_want_write+0x3a/0xb0 fs/namespace.c:360 #1: 00000000c59ca35e (&type->i_mutex_dir_key#12){+.+.}, at: inode_lock include/linux/fs.h:748 [inline] #1: 00000000c59ca35e (&type->i_mutex_dir_key#12){+.+.}, at: do_last fs/namei.c:3324 [inline] #1: 00000000c59ca35e (&type->i_mutex_dir_key#12){+.+.}, at: path_openat+0x1071/0x2df0 fs/namei.c:3537 2 locks held by syz-executor.0/5512: #0: 000000007e348e0e (sb_writers#18){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline] #0: 000000007e348e0e (sb_writers#18){.+.+}, at: mnt_want_write+0x3a/0xb0 fs/namespace.c:360 #1: 00000000c59ca35e (&type->i_mutex_dir_key#12/1){+.+.}, at: inode_lock_nested include/linux/fs.h:783 [inline] #1: 00000000c59ca35e (&type->i_mutex_dir_key#12/1){+.+.}, at: do_unlinkat+0x27d/0x660 fs/namei.c:4051 2 locks held by syz-executor.0/13634: #0: 0000000062fd8941 (rtnl_mutex){+.+.}, at: tun_detach drivers/net/tun.c:759 [inline] #0: 0000000062fd8941 (rtnl_mutex){+.+.}, at: tun_chr_close+0x3a/0x180 drivers/net/tun.c:3323 #1: 00000000e46b0849 (rcu_preempt_state.exp_mutex){+.+.}, at: exp_funnel_lock kernel/rcu/tree_exp.h:297 [inline] #1: 00000000e46b0849 (rcu_preempt_state.exp_mutex){+.+.}, at: _synchronize_rcu_expedited+0x4dc/0x6f0 kernel/rcu/tree_exp.h:667 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 1570 Comm: khungtaskd Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 nmi_cpu_backtrace.cold+0x63/0xa2 lib/nmi_backtrace.c:101 nmi_trigger_cpumask_backtrace+0x1a6/0x1f0 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:203 [inline] watchdog+0x991/0xe60 kernel/hung_task.c:287 kthread+0x33f/0x460 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 2887 Comm: kworker/u4:4 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Workqueue: bat_events batadv_nc_worker RIP: 0010:__rcu_read_lock+0x22/0x40 kernel/rcu/tree_plugin.h:405 Code: 83 e0 fc c3 0f 1f 40 00 48 b8 00 00 00 00 00 fc ff df 53 65 48 8b 1c 25 c0 df 01 00 48 8d bb 70 03 00 00 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 04 3c 03 7e 09 83 83 70 03 00 00 01 5b c3 e8 RSP: 0018:ffff8880ac3a7ca0 EFLAGS: 00000a02 RAX: dffffc0000000000 RBX: ffff8880ac2f0000 RCX: ffff8880a5280a80 RDX: 1ffff1101585e06e RSI: ffffffff87d8eb15 RDI: ffff8880ac2f0370 RBP: 0000000000000001 R08: 0000000000000000 R09: 00000000000001cf R10: 0000000000000004 R11: 0000000000000000 R12: 0000000000000000 R13: dffffc0000000000 R14: 00000000000001cf R15: ffff8880a44f0400 FS: 0000000000000000(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffd3ddd8ff8 CR3: 0000000094ad5000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: rcu_read_lock include/linux/rcupdate.h:625 [inline] batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:419 [inline] batadv_nc_worker+0x108/0xd50 net/batman-adv/network-coding.c:730 process_one_work+0x864/0x1570 kernel/workqueue.c:2153 worker_thread+0x64c/0x1130 kernel/workqueue.c:2296 kthread+0x33f/0x460 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415