INFO: task syz-executor.5:21725 blocked for more than 143 seconds. Not tainted 6.2.0-rc4-syzkaller-00067-g7287904c8771 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.5 state:D stack:25040 pid:21725 ppid:5101 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5293 [inline] __schedule+0xb8a/0x5450 kernel/sched/core.c:6606 schedule+0xde/0x1b0 kernel/sched/core.c:6682 rwsem_down_write_slowpath+0x600/0x12e0 kernel/locking/rwsem.c:1190 __down_write_common kernel/locking/rwsem.c:1305 [inline] __down_write_common kernel/locking/rwsem.c:1302 [inline] __down_write kernel/locking/rwsem.c:1314 [inline] down_write+0x1e8/0x220 kernel/locking/rwsem.c:1563 inode_lock include/linux/fs.h:756 [inline] open_last_lookups fs/namei.c:3478 [inline] path_openat+0x90f/0x2a50 fs/namei.c:3711 do_filp_open+0x1ba/0x410 fs/namei.c:3741 do_sys_openat2+0x16d/0x4c0 fs/open.c:1310 do_sys_open fs/open.c:1326 [inline] __do_sys_open fs/open.c:1334 [inline] __se_sys_open fs/open.c:1330 [inline] __x64_sys_open+0x11d/0x1c0 fs/open.c:1330 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:0x7f12b028c0c9 RSP: 002b:00007f12b1020168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007f12b03abf80 RCX: 00007f12b028c0c9 RDX: 0000000000000000 RSI: 00000000001a9042 RDI: 0000000020000000 RBP: 00007f12b02e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc37ed912f R14: 00007f12b1020300 R15: 0000000000022000 INFO: task syz-executor.5:21743 blocked for more than 143 seconds. Not tainted 6.2.0-rc4-syzkaller-00067-g7287904c8771 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.5 state:D stack:26000 pid:21743 ppid:5101 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5293 [inline] __schedule+0xb8a/0x5450 kernel/sched/core.c:6606 schedule+0xde/0x1b0 kernel/sched/core.c:6682 io_schedule+0xbe/0x130 kernel/sched/core.c:8862 bit_wait_io+0x16/0xe0 kernel/sched/wait_bit.c:209 __wait_on_bit_lock+0x11f/0x1a0 kernel/sched/wait_bit.c:90 out_of_line_wait_on_bit_lock+0xd9/0x110 kernel/sched/wait_bit.c:117 wait_on_bit_lock_io include/linux/wait_bit.h:208 [inline] __lock_buffer fs/buffer.c:69 [inline] lock_buffer include/linux/buffer_head.h:397 [inline] __sync_dirty_buffer+0x30e/0x380 fs/buffer.c:2732 __ext4_handle_dirty_metadata+0x2b7/0x6f0 fs/ext4/ext4_jbd2.c:387 ext4_handle_dirty_dirblock+0x371/0x470 fs/ext4/namei.c:438 ext4_finish_convert_inline_dir fs/ext4/inline.c:1181 [inline] ext4_convert_inline_data_nolock+0xac1/0xf10 fs/ext4/inline.c:1258 ext4_try_add_inline_entry+0x473/0x8d0 fs/ext4/inline.c:1331 ext4_add_entry+0x80d/0xe30 fs/ext4/namei.c:2385 ext4_add_nondir+0x90/0x290 fs/ext4/namei.c:2772 ext4_create+0x380/0x4e0 fs/ext4/namei.c:2817 lookup_open.isra.0+0xee7/0x1270 fs/namei.c:3413 open_last_lookups fs/namei.c:3481 [inline] path_openat+0x975/0x2a50 fs/namei.c:3711 do_filp_open+0x1ba/0x410 fs/namei.c:3741 do_sys_openat2+0x16d/0x4c0 fs/open.c:1310 do_sys_open fs/open.c:1326 [inline] __do_sys_openat fs/open.c:1342 [inline] __se_sys_openat fs/open.c:1337 [inline] __x64_sys_openat+0x143/0x1f0 fs/open.c:1337 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:0x7f12b028c0c9 RSP: 002b:00007f12b0fff168 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f12b03ac050 RCX: 00007f12b028c0c9 RDX: 000000000000275a RSI: 0000000020000040 RDI: ffffffffffffff9c RBP: 00007f12b02e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc37ed912f R14: 00007f12b0fff300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/11: #0: ffffffff8c78dff0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507 1 lock held by rcu_tasks_trace/12: #0: ffffffff8c78dcf0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507 1 lock held by khungtaskd/27: #0: ffffffff8c78eb40 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x57/0x264 kernel/locking/lockdep.c:6494 2 locks held by getty/4743: #0: ffff88802990f098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x26/0x80 drivers/tty/tty_ldisc.c:244 #1: ffffc900020482f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xef4/0x13e0 drivers/tty/n_tty.c:2177 3 locks held by kworker/u4:6/5181: #0: ffff888140f96938 ((wq_completion)writeback){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888140f96938 ((wq_completion)writeback){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff888140f96938 ((wq_completion)writeback){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline] #0: ffff888140f96938 ((wq_completion)writeback){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:636 [inline] #0: ffff888140f96938 ((wq_completion)writeback){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:663 [inline] #0: ffff888140f96938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x86d/0x1710 kernel/workqueue.c:2260 #1: ffffc9000421fda8 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x8a1/0x1710 kernel/workqueue.c:2264 #2: ffff8880127220e0 (&type->s_umount_key#34){.+.+}-{3:3}, at: trylock_super+0x21/0x110 fs/super.c:415 3 locks held by kworker/u4:14/8464: 2 locks held by kworker/1:10/14130: #0: ffff888012479538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888012479538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff888012479538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline] #0: ffff888012479538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:636 [inline] #0: ffff888012479538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:663 [inline] #0: ffff888012479538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x86d/0x1710 kernel/workqueue.c:2260 #1: ffffc90004bb7da8 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x8a1/0x1710 kernel/workqueue.c:2264 3 locks held by kworker/1:16/14136: #0: ffff888012469d38 ((wq_completion)events){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888012469d38 ((wq_completion)events){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff888012469d38 ((wq_completion)events){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline] #0: ffff888012469d38 ((wq_completion)events){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:636 [inline] #0: ffff888012469d38 ((wq_completion)events){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:663 [inline] #0: ffff888012469d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x86d/0x1710 kernel/workqueue.c:2260 #1: ffffc900058afda8 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_one_work+0x8a1/0x1710 kernel/workqueue.c:2264 #2: ffff8880938dd240 (&data->fib_lock){+.+.}-{3:3}, at: nsim_fib_event_work+0x1d5/0x24a0 drivers/net/netdevsim/fib.c:1489 3 locks held by kworker/1:18/14138: #0: ffff888012469d38 ((wq_completion)events){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888012469d38 ((wq_completion)events){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff888012469d38 ((wq_completion)events){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline] #0: ffff888012469d38 ((wq_completion)events){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:636 [inline] #0: ffff888012469d38 ((wq_completion)events){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:663 [inline] #0: ffff888012469d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x86d/0x1710 kernel/workqueue.c:2260 #1: ffffc900058cfda8 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_one_work+0x8a1/0x1710 kernel/workqueue.c:2264 #2: ffff88803f8d3240 (&data->fib_lock){+.+.}-{3:3}, at: nsim_fib_event_work+0x1d5/0x24a0 drivers/net/netdevsim/fib.c:1489 3 locks held by kworker/1:19/14139: #0: ffff88814a1a6d38 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff88814a1a6d38 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff88814a1a6d38 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline] #0: ffff88814a1a6d38 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:636 [inline] #0: ffff88814a1a6d38 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:663 [inline] #0: ffff88814a1a6d38 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x86d/0x1710 kernel/workqueue.c:2260 #1: ffffc900058f7da8 ((work_completion)(&(&ifa->dad_work)->work)){+.+.}-{0:0}, at: process_one_work+0x8a1/0x1710 kernel/workqueue.c:2264 #2: ffffffff8e0b40a8 (rtnl_mutex){+.+.}-{3:3}, at: addrconf_dad_work+0xa7/0x12d0 net/ipv6/addrconf.c:4083 3 locks held by kworker/0:2/16541: #0: ffff88814a1a6d38 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff88814a1a6d38 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff88814a1a6d38 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline] #0: ffff88814a1a6d38 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:636 [inline] #0: ffff88814a1a6d38 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:663 [inline] #0: ffff88814a1a6d38 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x86d/0x1710 kernel/workqueue.c:2260 #1: ffffc9001588fda8 ((work_completion)(&(&ifa->dad_work)->work)){+.+.}-{0:0}, at: process_one_work+0x8a1/0x1710 kernel/workqueue.c:2264 #2: ffffffff8e0b40a8 (rtnl_mutex){+.+.}-{3:3}, at: addrconf_dad_work+0xa7/0x12d0 net/ipv6/addrconf.c:4083 2 locks held by syz-executor.5/21725: #0: ffff888076d38460 (sb_writers#5){.+.+}-{0:0}, at: open_last_lookups fs/namei.c:3470 [inline] #0: ffff888076d38460 (sb_writers#5){.+.+}-{0:0}, at: path_openat+0x2a25/0x2a50 fs/namei.c:3711 #1: ffff88803c63e940 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline] #1: ffff88803c63e940 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: open_last_lookups fs/namei.c:3478 [inline] #1: ffff88803c63e940 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: path_openat+0x90f/0x2a50 fs/namei.c:3711 3 locks held by syz-executor.5/21743: #0: ffff888076d38460 (sb_writers#5){.+.+}-{0:0}, at: open_last_lookups fs/namei.c:3470 [inline] #0: ffff888076d38460 (sb_writers#5){.+.+}-{0:0}, at: path_openat+0x2a25/0x2a50 fs/namei.c:3711 #1: ffff88803c63e940 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline] #1: ffff88803c63e940 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: open_last_lookups fs/namei.c:3478 [inline] #1: ffff88803c63e940 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: path_openat+0x90f/0x2a50 fs/namei.c:3711 #2: ffff88803c63e608 (&ei->xattr_sem){++++}-{3:3}, at: ext4_write_lock_xattr fs/ext4/xattr.h:155 [inline] #2: ffff88803c63e608 (&ei->xattr_sem){++++}-{3:3}, at: ext4_try_add_inline_entry+0x10c/0x8d0 fs/ext4/inline.c:1289 1 lock held by syz-executor.0/22330: #0: ffff88801d4db4c8 (&disk->open_mutex){+.+.}-{3:3}, at: sync_bdevs+0xed/0x340 block/bdev.c:1052 1 lock held by syz-executor.5/22331: #0: ffff88801d4db4c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev.part.0+0x9b/0xb90 block/bdev.c:813 2 locks held by syz-executor.1/22339: #0: ffff888076d380e0 (&type->s_umount_key#50){++++}-{3:3}, at: iterate_supers+0xdf/0x2a0 fs/super.c:722 #1: ffff88801e9f27d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:364 [inline] #1: ffff88801e9f27d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x190/0x9e0 fs/fs-writeback.c:2723 1 lock held by syz-executor.5/22382: #0: ffff88801d4db4c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev.part.0+0x9b/0xb90 block/bdev.c:813 2 locks held by syz-executor.0/22392: #0: ffffffff8e14f650 (cb_lock){++++}-{3:3}, at: genl_rcv+0x19/0x40 net/netlink/genetlink.c:1075 #1: ffffffff8e0b40a8 (rtnl_mutex){+.+.}-{3:3}, at: nl80211_pre_doit+0xb4/0xab0 net/wireless/nl80211.c:16161 4 locks held by kworker/1:1/22409: #0: ffff888012469d38 ((wq_completion)events){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888012469d38 ((wq_completion)events){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff888012469d38 ((wq_completion)events){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline] #0: ffff888012469d38 ((wq_completion)events){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:636 [inline] #0: ffff888012469d38 ((wq_completion)events){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:663 [inline] #0: ffff888012469d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x86d/0x1710 kernel/workqueue.c:2260 #1: ffffc90004887da8 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work+0x8a1/0x1710 kernel/workqueue.c:2264 #2: ffffffff8e0b40a8 (rtnl_mutex){+.+.}-{3:3}, at: linkwatch_event+0xf/0x70 net/core/link_watch.c:277 #3: ffffffff8c7997f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:292 [inline] #3: ffffffff8c7997f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x5df/0x780 kernel/rcu/tree_exp.h:946 2 locks held by syz-executor.1/22430: ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 27 Comm: khungtaskd Not tainted 6.2.0-rc4-syzkaller-00067-g7287904c8771 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd1/0x138 lib/dump_stack.c:106 nmi_cpu_backtrace.cold+0x24/0x18a lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x333/0x3c0 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline] watchdog+0xc75/0xfc0 kernel/hung_task.c:377 kthread+0x2e8/0x3a0 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: 16541 Comm: kworker/0:2 Not tainted 6.2.0-rc4-syzkaller-00067-g7287904c8771 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 Workqueue: events nsim_dev_trap_report_work RIP: 0010:native_save_fl arch/x86/include/asm/irqflags.h:29 [inline] RIP: 0010:arch_local_save_flags arch/x86/include/asm/irqflags.h:70 [inline] RIP: 0010:lockdep_hardirqs_on+0x51/0x100 kernel/locking/lockdep.c:4371 Code: 00 00 f0 00 48 89 fd 75 41 65 8b 05 31 e5 fc 75 85 c0 75 69 65 8b 05 5a e2 fc 75 85 c0 75 5e 8b 35 14 56 ba 07 85 f6 75 21 9c <58> f6 c4 02 75 7a 8b 15 03 56 ba 07 85 d2 75 10 48 8b 83 28 0a 00 RSP: 0018:ffffc9001588fc28 EFLAGS: 00000046 RAX: 0000000000000000 RBX: ffff88803fd98000 RCX: 1ffffffff2270e46 RDX: dffffc0000000000 RSI: 0000000000000000 RDI: ffffffff814c0924 RBP: ffffffff814c0924 R08: 0000000000000001 R09: ffffffff9132fbaf R10: 0000000000000001 R11: 0000000000000000 R12: dffffc0000000000 R13: ffff88802b35fac0 R14: ffff888076a93670 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055555646c708 CR3: 00000000943cb000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __local_bh_enable_ip+0xa4/0x130 kernel/softirq.c:401 spin_unlock_bh include/linux/spinlock.h:395 [inline] nsim_dev_trap_report drivers/net/netdevsim/dev.c:823 [inline] nsim_dev_trap_report_work+0x874/0xc80 drivers/net/netdevsim/dev.c:853 process_one_work+0x9bf/0x1710 kernel/workqueue.c:2289 worker_thread+0x669/0x1090 kernel/workqueue.c:2436 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308