INFO: task syz-executor.4:5317 blocked for more than 143 seconds. Not tainted 6.0.0-rc7-syzkaller-00220-gffb4d94b4314 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:26480 pid: 5317 ppid: 3640 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5182 [inline] __schedule+0x91f/0xdf0 kernel/sched/core.c:6494 schedule+0xcb/0x190 kernel/sched/core.c:6570 rwsem_down_write_slowpath+0xf1c/0x1350 kernel/locking/rwsem.c:1182 __down_write_common kernel/locking/rwsem.c:1297 [inline] __down_write kernel/locking/rwsem.c:1306 [inline] down_write+0x163/0x170 kernel/locking/rwsem.c:1553 inode_lock include/linux/fs.h:756 [inline] open_last_lookups fs/namei.c:3478 [inline] path_openat+0x7b9/0x2df0 fs/namei.c:3688 do_filp_open+0x264/0x4f0 fs/namei.c:3718 do_sys_openat2+0x124/0x4e0 fs/open.c:1313 do_sys_open fs/open.c:1329 [inline] __do_sys_openat fs/open.c:1345 [inline] __se_sys_openat fs/open.c:1340 [inline] __x64_sys_openat+0x243/0x290 fs/open.c:1340 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fd295a8a5a9 RSP: 002b:00007fd296bf9168 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fd295bac050 RCX: 00007fd295a8a5a9 RDX: 000000000000275a RSI: 00000000200001c0 RDI: ffffffffffffff9c RBP: 00007fd295ae5580 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc54305b3f R14: 00007fd296bf9300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/13: #0: ffffffff8cb233f0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507 1 lock held by rcu_tasks_trace/14: #0: ffffffff8cb23bf0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507 1 lock held by khungtaskd/29: #0: ffffffff8cb23220 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 1 lock held by udevd/2974: 2 locks held by getty/3286: #0: ffff88814b002098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc90002d232f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x53b/0x1650 drivers/tty/n_tty.c:2177 6 locks held by syz-executor.4/5306: 2 locks held by syz-executor.4/5317: #0: ffff88807aa94460 (sb_writers#20 ){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:393 #1: ffff888041a046e0 (&type->i_mutex_dir_key#14){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline] #1: ffff888041a046e0 (&type->i_mutex_dir_key#14){+.+.}-{3:3}, at: open_last_lookups fs/namei.c:3478 [inline] #1: ffff888041a046e0 (&type->i_mutex_dir_key#14){+.+.}-{3:3}, at: path_openat+0x7b9/0x2df0 fs/namei.c:3688 2 locks held by syz-executor.5/5419: 2 locks held by syz-executor.5/5425: #0: ffff88801e60a460 (sb_writers#20){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:393 #1: ffff888073a8c6e0 (&type->i_mutex_dir_key#14){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline] #1: ffff888073a8c6e0 (&type->i_mutex_dir_key#14){+.+.}-{3:3}, at: open_last_lookups fs/namei.c:3478 [inline] #1: ffff888073a8c6e0 (&type->i_mutex_dir_key#14){+.+.}-{3:3}, at: path_openat+0x7b9/0x2df0 fs/namei.c:3688 1 lock held by udevd/5528: #0: ffff8881474514c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0xfd/0xa40 block/bdev.c:812 1 lock held by udevd/5530: #0: ffff8881474514c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0xfd/0xa40 block/bdev.c:812 1 lock held by udevd/5536: #0: ffff8881474514c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0xfd/0xa40 block/bdev.c:812 1 lock held by udevd/5665: #0: ffff8881474514c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0xfd/0xa40 block/bdev.c:812 1 lock held by udevd/5692: #0: ffff8881474514c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0xfd/0xa40 block/bdev.c:812 1 lock held by udevd/5838: #0: ffff8881474514c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0xfd/0xa40 block/bdev.c:812 1 lock held by udevd/6025: #0: ffff8881474514c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0xfd/0xa40 block/bdev.c:812 1 lock held by udevd/6086: #0: ffff8881474514c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_put+0x100/0x730 block/bdev.c:910 1 lock held by udevd/6087: #0: ffff8881474514c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0xfd/0xa40 block/bdev.c:812 1 lock held by udevd/6088: #0: ffff8881474514c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0xfd/0xa40 block/bdev.c:812 1 lock held by udevd/6089: #0: ffff8881474514c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0xfd/0xa40 block/bdev.c:812 1 lock held by udevd/6090: #0: ffff8881474514c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0xfd/0xa40 block/bdev.c:812 1 lock held by syz-executor.0/6125: ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.0.0-rc7-syzkaller-00220-gffb4d94b4314 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1b1/0x28e lib/dump_stack.c:106 nmi_cpu_backtrace+0x425/0x450 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x169/0x280 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:212 [inline] watchdog+0xcd5/0xd20 kernel/hung_task.c:369 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 4694 Comm: kworker/u4:8 Not tainted 6.0.0-rc7-syzkaller-00220-gffb4d94b4314 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 Workqueue: bat_events batadv_nc_worker RIP: 0010:lockdep_enabled kernel/locking/lockdep.c:118 [inline] RIP: 0010:lock_acquire+0xdd/0x3c0 kernel/locking/lockdep.c:5642 Code: 42 8a 04 20 84 c0 0f 85 94 02 00 00 83 3d 3e aa a3 0c 00 0f 84 0c 01 00 00 48 89 5c 24 10 44 89 7c 24 04 65 8b 05 13 c7 9a 7e <85> c0 0f 85 4a 01 00 00 65 4c 8b 3c 25 00 6f 02 00 49 81 c7 74 0a RSP: 0018:ffffc9001582fa80 EFLAGS: 00000202 RAX: 0000000000000000 RBX: ffffffff8cb23220 RCX: 0000000080000001 RDX: 0000000000000000 RSI: ffffffff8a8da120 RDI: ffffffff8aec5400 RBP: ffffc9001582fbb8 R08: dffffc0000000000 R09: fffffbfff1c16506 R10: fffffbfff1c16506 R11: 1ffffffff1c16505 R12: dffffc0000000000 R13: 1ffff92002b05f54 R14: 0000000000000000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f80963a8000 CR3: 0000000026953000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: rcu_lock_acquire+0x2a/0x30 include/linux/rcupdate.h:280 rcu_read_lock include/linux/rcupdate.h:706 [inline] batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:408 [inline] batadv_nc_worker+0xc8/0x5b0 net/batman-adv/network-coding.c:719 process_one_work+0x877/0xdb0 kernel/workqueue.c:2289 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306