INFO: task syz-executor.1:19015 blocked for more than 143 seconds. Not tainted 6.7.0-rc7-syzkaller-00003-gfbafc3e621c3 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:22032 pid:19015 tgid:19014 ppid:5087 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5376 [inline] __schedule+0x1961/0x4ab0 kernel/sched/core.c:6688 __schedule_loop kernel/sched/core.c:6763 [inline] schedule+0x149/0x260 kernel/sched/core.c:6778 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6835 rwsem_down_write_slowpath+0xeea/0x13b0 kernel/locking/rwsem.c:1178 __down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306 inode_lock include/linux/fs.h:802 [inline] btrfs_inode_lock+0x4d/0xd0 fs/btrfs/inode.c:378 btrfs_buffered_write+0x230/0x1380 fs/btrfs/file.c:1204 btrfs_do_write_iter+0x2bb/0x1190 fs/btrfs/file.c:1687 do_iter_readv_writev+0x330/0x4a0 do_iter_write+0x1f6/0x8d0 fs/read_write.c:860 iter_file_splice_write+0x86d/0x1010 fs/splice.c:736 do_splice_from fs/splice.c:933 [inline] direct_splice_actor+0xea/0x1c0 fs/splice.c:1142 splice_direct_to_actor+0x376/0x9e0 fs/splice.c:1088 do_splice_direct+0x2ac/0x3f0 fs/splice.c:1194 do_sendfile+0x62c/0x1000 fs/read_write.c:1254 __do_sys_sendfile64 fs/read_write.c:1322 [inline] __se_sys_sendfile64+0x17c/0x1e0 fs/read_write.c:1308 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f3494c7cce9 RSP: 002b:00007f34959eb0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f3494d9bf80 RCX: 00007f3494c7cce9 RDX: 0000000000000000 RSI: 0000000000000008 RDI: 0000000000000007 RBP: 00007f3494cc947a R08: 0000000000000000 R09: 0000000000000000 R10: 0001000000201005 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f3494d9bf80 R15: 00007ffddeab10c8 INFO: task syz-executor.1:19110 blocked for more than 145 seconds. Not tainted 6.7.0-rc7-syzkaller-00003-gfbafc3e621c3 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:23728 pid:19110 tgid:19014 ppid:5087 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5376 [inline] __schedule+0x1961/0x4ab0 kernel/sched/core.c:6688 __schedule_loop kernel/sched/core.c:6763 [inline] schedule+0x149/0x260 kernel/sched/core.c:6778 wait_extent_bit fs/btrfs/extent-io-tree.c:799 [inline] lock_extent+0x69d/0x850 fs/btrfs/extent-io-tree.c:1843 btrfs_page_mkwrite+0x5bd/0xd10 fs/btrfs/inode.c:8158 do_page_mkwrite+0x197/0x470 mm/memory.c:2944 wp_page_shared mm/memory.c:3339 [inline] do_wp_page+0x1d07/0x4d40 mm/memory.c:3479 handle_pte_fault mm/memory.c:5055 [inline] __handle_mm_fault mm/memory.c:5180 [inline] handle_mm_fault+0x1b1c/0x6680 mm/memory.c:5345 do_user_addr_fault arch/x86/mm/fault.c:1413 [inline] handle_page_fault arch/x86/mm/fault.c:1505 [inline] exc_page_fault+0x2ad/0x870 arch/x86/mm/fault.c:1561 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 RIP: 0010:rep_movs_alternative+0x33/0x70 arch/x86/lib/copy_user_64.S:58 Code: 40 83 f9 08 73 21 85 c9 74 0f 8a 06 88 07 48 ff c7 48 ff c6 48 ff c9 75 f1 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 48 8b 06 <48> 89 07 48 83 c6 08 48 83 c7 08 83 e9 08 74 df 83 f9 08 73 e8 eb RSP: 0018:ffffc900037bf550 EFLAGS: 00050206 RAX: 0000000000000000 RBX: 0000000020001618 RCX: 0000000000000038 RDX: 0000000000000000 RSI: ffffc900037bf600 RDI: 00000000200015e0 RBP: ffffc900037bf6b0 R08: ffffc900037bf637 R09: 1ffff920006f7ec6 R10: dffffc0000000000 R11: fffff520006f7ec7 R12: 0000000000000038 R13: ffffc900037bf600 R14: 00000000200015e0 R15: ffffc900037bf600 copy_user_generic arch/x86/include/asm/uaccess_64.h:112 [inline] raw_copy_to_user arch/x86/include/asm/uaccess_64.h:133 [inline] _copy_to_user+0x86/0xa0 lib/usercopy.c:41 copy_to_user include/linux/uaccess.h:191 [inline] fiemap_fill_next_extent+0x235/0x410 fs/ioctl.c:145 emit_last_fiemap_cache fs/btrfs/extent_io.c:2511 [inline] extent_fiemap+0x1b9c/0x1fe0 fs/btrfs/extent_io.c:3038 btrfs_fiemap+0x178/0x1e0 fs/btrfs/inode.c:7830 ioctl_fiemap fs/ioctl.c:220 [inline] do_vfs_ioctl+0x19ea/0x2b40 fs/ioctl.c:811 __do_sys_ioctl fs/ioctl.c:869 [inline] __se_sys_ioctl+0x81/0x170 fs/ioctl.c:857 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f3494c7cce9 RSP: 002b:00007f34959ca0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f3494d9c050 RCX: 00007f3494c7cce9 RDX: 00000000200015c0 RSI: 00000000c020660b RDI: 0000000000000004 RBP: 00007f3494cc947a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f3494d9c050 R15: 00007ffddeab10c8 INFO: task syz-executor.1:19111 blocked for more than 146 seconds. Not tainted 6.7.0-rc7-syzkaller-00003-gfbafc3e621c3 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:20080 pid:19111 tgid:19014 ppid:5087 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5376 [inline] __schedule+0x1961/0x4ab0 kernel/sched/core.c:6688 __schedule_loop kernel/sched/core.c:6763 [inline] schedule+0x149/0x260 kernel/sched/core.c:6778 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6835 rwsem_down_read_slowpath kernel/locking/rwsem.c:1086 [inline] __down_read_common kernel/locking/rwsem.c:1250 [inline] __down_read kernel/locking/rwsem.c:1263 [inline] down_read+0x703/0xa40 kernel/locking/rwsem.c:1528 inode_lock_shared include/linux/fs.h:812 [inline] btrfs_inode_lock+0x60/0xd0 fs/btrfs/inode.c:370 btrfs_direct_write fs/btrfs/file.c:1484 [inline] btrfs_do_write_iter+0x8cc/0x1190 fs/btrfs/file.c:1684 do_iter_readv_writev+0x330/0x4a0 do_iter_write+0x1f6/0x8d0 fs/read_write.c:860 iter_file_splice_write+0x86d/0x1010 fs/splice.c:736 do_splice_from fs/splice.c:933 [inline] direct_splice_actor+0xea/0x1c0 fs/splice.c:1142 splice_direct_to_actor+0x376/0x9e0 fs/splice.c:1088 do_splice_direct+0x2ac/0x3f0 fs/splice.c:1194 do_sendfile+0x62c/0x1000 fs/read_write.c:1254 __do_sys_sendfile64 fs/read_write.c:1322 [inline] __se_sys_sendfile64+0x17c/0x1e0 fs/read_write.c:1308 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f3494c7cce9 RSP: 002b:00007f34959a90c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f3494d9c120 RCX: 00007f3494c7cce9 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 0000000000000008 RBP: 00007f3494cc947a R08: 0000000000000000 R09: 0000000000000000 R10: 0001000000201005 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f3494d9c120 R15: 00007ffddeab10c8 Showing all locks held in the system: 1 lock held by khungtaskd/29: #0: ffffffff8d92dae0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:301 [inline] #0: ffffffff8d92dae0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:747 [inline] #0: ffffffff8d92dae0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6614 2 locks held by kworker/1:2/4472: #0: ffff888012c72938 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2602 [inline] #0: ffff888012c72938 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2700 #1: ffffc9000e6b7d20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2602 [inline] #1: ffffc9000e6b7d20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2700 2 locks held by getty/4811: #0: ffff88814ad170a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc90002f062f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b4/0x1e10 drivers/tty/n_tty.c:2201 5 locks held by syz-executor.5/5100: #0: ffff88814c0f6418 (sb_writers#4){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:404 #1: ffff8880b9828808 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x441/0x770 kernel/sched/psi.c:988 #2: ffff8880b9828808 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_change+0xfd/0x280 kernel/sched/psi.c:912 #3: ffffffff8d92dae0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:301 [inline] #3: ffffffff8d92dae0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:747 [inline] #3: ffffffff8d92dae0 (rcu_read_lock){....}-{1:2}, at: page_ext_get+0x20/0x2a0 mm/page_ext.c:508 #4: ffffffff9079c868 (pvclock_gtod_data){-.-.}-{0:0}, at: notifier_call_chain+0x18c/0x3b0 kernel/notifier.c:93 3 locks held by syz-executor.4/5104: 1 lock held by syz-executor.3/5108: #0: ffffffff8d9334b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:325 [inline] #0: ffffffff8d9334b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x46c/0x890 kernel/rcu/tree_exp.h:996 2 locks held by syz-executor.1/19015: #0: ffff88807c572418 (sb_writers#16){.+.+}-{0:0}, at: do_sendfile+0x607/0x1000 fs/read_write.c:1253 #1: ffff888080a14fc8 (&sb->s_type->i_mutex_key#23){++++}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline] #1: ffff888080a14fc8 (&sb->s_type->i_mutex_key#23){++++}-{3:3}, at: btrfs_inode_lock+0x4d/0xd0 fs/btrfs/inode.c:378 4 locks held by syz-executor.1/19110: #0: ffff888080a14fc8 (&sb->s_type->i_mutex_key#23){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:812 [inline] #0: ffff888080a14fc8 (&sb->s_type->i_mutex_key#23){++++}-{3:3}, at: btrfs_inode_lock+0x60/0xd0 fs/btrfs/inode.c:370 #1: ffff88807d6e0b20 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:165 [inline] #1: ffff88807d6e0b20 (&mm->mmap_lock){++++}-{3:3}, at: get_mmap_lock_carefully mm/memory.c:5372 [inline] #1: ffff88807d6e0b20 (&mm->mmap_lock){++++}-{3:3}, at: lock_mm_and_find_vma+0x32/0x2d0 mm/memory.c:5432 #2: ffff88807c572510 (sb_pagefaults){.+.+}-{0:0}, at: do_page_mkwrite+0x197/0x470 mm/memory.c:2944 #3: ffff888080a14e50 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_page_mkwrite+0x49c/0xd10 fs/btrfs/inode.c:8147 2 locks held by syz-executor.1/19111: #0: ffff88807c572418 (sb_writers#16){.+.+}-{0:0}, at: do_sendfile+0x607/0x1000 fs/read_write.c:1253 #1: ffff888080a14fc8 (&sb->s_type->i_mutex_key#23){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:812 [inline] #1: ffff888080a14fc8 (&sb->s_type->i_mutex_key#23){++++}-{3:3}, at: btrfs_inode_lock+0x60/0xd0 fs/btrfs/inode.c:370 2 locks held by syz-executor.1/22174: #0: ffff88814c0f6418 (sb_writers#4){.+.+}-{0:0}, at: do_sendfile+0x607/0x1000 fs/read_write.c:1253 #1: ffff88807cd99800 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline] #1: ffff88807cd99800 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: ext4_buffered_write_iter+0x97/0x350 fs/ext4/file.c:294 2 locks held by syz-executor.1/22177: #0: ffff88814c0f6418 (sb_writers#4){.+.+}-{0:0}, at: do_sendfile+0x607/0x1000 fs/read_write.c:1253 #1: ffff88807cd99800 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline] #1: ffff88807cd99800 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: ext4_buffered_write_iter+0x97/0x350 fs/ext4/file.c:294 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.7.0-rc7-syzkaller-00003-gfbafc3e621c3 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 nmi_cpu_backtrace+0x498/0x4d0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x198/0x310 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline] watchdog+0xfaf/0xff0 kernel/hung_task.c:379 kthread+0x2d3/0x370 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 5104 Comm: syz-executor.4 Not tainted 6.7.0-rc7-syzkaller-00003-gfbafc3e621c3 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 RIP: 0010:kasan_check_range+0x5/0x290 mm/kasan/generic.c:186 Code: 01 0f 84 47 ff ff ff 48 ff c8 48 39 d8 0f 84 3b ff ff ff 48 89 df 48 c7 c6 4a 89 12 8d e8 83 0a e7 ff 90 0f 0b 66 0f 1f 00 55 <41> 57 41 56 41 54 53 b0 01 48 85 f6 0f 84 a0 01 00 00 4c 8d 04 37 RSP: 0018:ffffc900043bf520 EFLAGS: 00000046 RAX: 0000000000000014 RBX: 000000000000053a RCX: ffffffff816d33bd RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff90dd7400 RBP: 0000000000000003 R08: ffffffff90dd7397 R09: 1ffffffff21bae72 R10: dffffc0000000000 R11: fffffbfff21bae73 R12: 0000000000000002 R13: ffff88802286c6b0 R14: 0000000000000002 R15: ffff88802286c6b0 FS: 00005555572f5480(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f5c526c56be CR3: 00000000369c3000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: instrument_atomic_read include/linux/instrumented.h:68 [inline] _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] hlock_class kernel/locking/lockdep.c:228 [inline] check_wait_context kernel/locking/lockdep.c:4798 [inline] __lock_acquire+0x86d/0x1fd0 kernel/locking/lockdep.c:5087 lock_acquire+0x1e3/0x530 kernel/locking/lockdep.c:5754 rcu_lock_acquire include/linux/rcupdate.h:301 [inline] rcu_read_lock include/linux/rcupdate.h:747 [inline] percpu_ref_get_many include/linux/percpu-refcount.h:202 [inline] percpu_ref_get include/linux/percpu-refcount.h:222 [inline] obj_cgroup_get include/linux/memcontrol.h:805 [inline] memcg_slab_post_alloc_hook mm/slab.h:539 [inline] slab_post_alloc_hook+0x1fb/0x3c0 mm/slab.h:771 slab_alloc_node mm/slub.c:3478 [inline] slab_alloc mm/slub.c:3486 [inline] __kmem_cache_alloc_lru mm/slub.c:3493 [inline] kmem_cache_alloc+0x19e/0x2b0 mm/slub.c:3502 vma_lock_alloc kernel/fork.c:459 [inline] vm_area_dup+0x61/0x280 kernel/fork.c:512 dup_mmap kernel/fork.c:710 [inline] dup_mm kernel/fork.c:1691 [inline] copy_mm+0xcea/0x1f10 kernel/fork.c:1740 copy_process+0x1d6f/0x3fb0 kernel/fork.c:2502 kernel_clone+0x222/0x840 kernel/fork.c:2907 __do_sys_clone kernel/fork.c:3050 [inline] __se_sys_clone kernel/fork.c:3034 [inline] __x64_sys_clone+0x258/0x2a0 kernel/fork.c:3034 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f5c51a79d13 Code: 1f 84 00 00 00 00 00 64 48 8b 04 25 10 00 00 00 45 31 c0 31 d2 31 f6 bf 11 00 20 01 4c 8d 90 d0 02 00 00 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 89 c2 85 c0 75 2c 64 48 8b 04 25 10 00 00 RSP: 002b:00007ffe57010598 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f5c51a79d13 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011 RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 R10: 00005555572f5750 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000000