INFO: task syz-executor.5:17288 blocked for more than 143 seconds. Not tainted 6.6.0-rc6-syzkaller-00285-g9c5d00cb7b6b #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.5 state:D stack:25000 pid:17288 ppid:5081 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5382 [inline] __schedule+0x196c/0x4af0 kernel/sched/core.c:6695 schedule+0xc3/0x180 kernel/sched/core.c:6771 io_schedule+0x8c/0x100 kernel/sched/core.c:9026 folio_wait_bit_common+0x881/0x12a0 mm/filemap.c:1301 btrfs_page_mkwrite+0x4a4/0xd10 fs/btrfs/inode.c:8133 do_page_mkwrite+0x197/0x470 mm/memory.c:2931 wp_page_shared mm/memory.c:3291 [inline] do_wp_page+0xf87/0x4190 mm/memory.c:3376 handle_pte_fault mm/memory.c:4994 [inline] __handle_mm_fault mm/memory.c:5119 [inline] handle_mm_fault+0x1b45/0x62b0 mm/memory.c:5284 do_user_addr_fault arch/x86/mm/fault.c:1413 [inline] handle_page_fault arch/x86/mm/fault.c:1505 [inline] exc_page_fault+0x2ac/0x860 arch/x86/mm/fault.c:1561 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 RIP: 0033:0x7fa32c85db7c RSP: 002b:00007ffe2f4ce338 EFLAGS: 00010202 RAX: 0000000020000000 RBX: 00007ffe2f4ce448 RCX: 00007fa32c400000 RDX: 0000000000000012 RSI: 00007fa32c405f78 RDI: 0000000020000000 RBP: 0000000000000032 R08: 00007fa32c800000 R09: 00007fa32c99c05c R10: 00007ffe2f4ce470 R11: 0000000000000246 R12: 00007fa32c405f58 R13: fffffffffffffffe R14: 00007fa32c400000 R15: 00007fa32c405f60 INFO: task syz-executor.5:17334 blocked for more than 144 seconds. Not tainted 6.6.0-rc6-syzkaller-00285-g9c5d00cb7b6b #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.5 state:D stack:24120 pid:17334 ppid:5081 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5382 [inline] __schedule+0x196c/0x4af0 kernel/sched/core.c:6695 schedule+0xc3/0x180 kernel/sched/core.c:6771 wait_on_state fs/btrfs/extent-io-tree.c:719 [inline] wait_extent_bit+0x50c/0x670 fs/btrfs/extent-io-tree.c:763 lock_extent+0x1c0/0x270 fs/btrfs/extent-io-tree.c:1755 btrfs_page_mkwrite+0x5bd/0xd10 fs/btrfs/inode.c:8143 do_page_mkwrite+0x197/0x470 mm/memory.c:2931 wp_page_shared mm/memory.c:3291 [inline] do_wp_page+0xf87/0x4190 mm/memory.c:3376 handle_pte_fault mm/memory.c:4994 [inline] __handle_mm_fault mm/memory.c:5119 [inline] handle_mm_fault+0x1b45/0x62b0 mm/memory.c:5284 do_user_addr_fault arch/x86/mm/fault.c:1413 [inline] handle_page_fault arch/x86/mm/fault.c:1505 [inline] exc_page_fault+0x2ac/0x860 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:ffffc900034bf550 EFLAGS: 00050206 RAX: 0000000000000000 RBX: 0000000020000298 RCX: 0000000000000038 RDX: 0000000000000000 RSI: ffffc900034bf600 RDI: 0000000020000260 RBP: ffffc900034bf6b0 R08: ffffc900034bf637 R09: 1ffff92000697ec6 R10: dffffc0000000000 R11: fffff52000697ec7 R12: 0000000000000038 R13: ffffc900034bf600 R14: 0000000020000260 R15: ffffc900034bf600 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:2506 [inline] extent_fiemap+0x1b9c/0x1fe0 fs/btrfs/extent_io.c:3033 btrfs_fiemap+0x178/0x1e0 fs/btrfs/inode.c:7815 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:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fa32c87cae9 RSP: 002b:00007fa32d6620c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fa32c99c050 RCX: 00007fa32c87cae9 RDX: 0000000020000240 RSI: 00000000c020660b RDI: 0000000000000005 RBP: 00007fa32c8c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fa32c99c050 R15: 00007ffe2f4ce258 Showing all locks held in the system: 1 lock held by khungtaskd/29: #0: ffffffff8d32c460 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:303 [inline] #0: ffffffff8d32c460 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:749 [inline] #0: ffffffff8d32c460 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6613 3 locks held by kworker/0:2/55: #0: ffff888012872938 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline] #0: ffff888012872938 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1400 kernel/workqueue.c:2703 #1: ffffc9000130fd20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline] #1: ffffc9000130fd20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1400 kernel/workqueue.c:2703 #2: ffff8880b983c318 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:558 2 locks held by getty/4791: #0: ffff88802a3f80a0 (&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+0x6b1/0x1dc0 drivers/tty/n_tty.c:2206 2 locks held by syz-fuzzer/5165: 4 locks held by syz-executor.3/5062: 1 lock held by syz-executor.2/5067: #0: ffff8880b993c318 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:558 3 locks held by kworker/u4:1/13329: #0: ffff888018a51d38 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline] #0: ffff888018a51d38 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1400 kernel/workqueue.c:2703 #1: ffffc90015befd20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline] #1: ffffc90015befd20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1400 kernel/workqueue.c:2703 #2: ffff8880577a40e0 (&type->s_umount_key#62){++++}-{3:3}, at: super_trylock_shared+0x22/0xf0 fs/super.c:607 3 locks held by syz-executor.5/17288: #0: ffff88807d8fd720 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:165 [inline] #0: ffff88807d8fd720 (&mm->mmap_lock){++++}-{3:3}, at: get_mmap_lock_carefully mm/memory.c:5311 [inline] #0: ffff88807d8fd720 (&mm->mmap_lock){++++}-{3:3}, at: lock_mm_and_find_vma+0x32/0x2d0 mm/memory.c:5371 #1: ffff8880577a4508 (sb_pagefaults#3){.+.+}-{0:0}, at: do_page_mkwrite+0x197/0x470 mm/memory.c:2931 #2: ffff888037176138 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_page_mkwrite+0x49c/0xd10 fs/btrfs/inode.c:8132 4 locks held by syz-executor.5/17334: #0: ffff8880371762b0 (&sb->s_type->i_mutex_key#23){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:812 [inline] #0: ffff8880371762b0 (&sb->s_type->i_mutex_key#23){++++}-{3:3}, at: btrfs_inode_lock+0x60/0xd0 fs/btrfs/inode.c:369 #1: ffff88807d8fd720 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:165 [inline] #1: ffff88807d8fd720 (&mm->mmap_lock){++++}-{3:3}, at: get_mmap_lock_carefully mm/memory.c:5311 [inline] #1: ffff88807d8fd720 (&mm->mmap_lock){++++}-{3:3}, at: lock_mm_and_find_vma+0x32/0x2d0 mm/memory.c:5371 #2: ffff8880577a4508 (sb_pagefaults#3){.+.+}-{0:0}, at: do_page_mkwrite+0x197/0x470 mm/memory.c:2931 #3: ffff888037176138 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_page_mkwrite+0x49c/0xd10 fs/btrfs/inode.c:8132 2 locks held by udevd/17357: #0: ffff8880b993c318 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:558 #1: ffff8880b9928808 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x441/0x770 kernel/sched/psi.c:999 1 lock held by syz-executor.3/19193: 1 lock held by syz-executor.4/19196: 3 locks held by syz-executor.0/19198: 2 locks held by syz-executor.1/19211: 1 lock held by udevadm/19207: 1 lock held by syz-executor.2/19213: ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 29 Comm: khungtaskd Not tainted 6.6.0-rc6-syzkaller-00285-g9c5d00cb7b6b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/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+0xfa9/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:304 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 5062 Comm: syz-executor.3 Not tainted 6.6.0-rc6-syzkaller-00285-g9c5d00cb7b6b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 RIP: 0010:arch_stack_walk+0x11f/0x1a0 arch/x86/kernel/stacktrace.c:26 Code: 4c 89 fa e8 93 2d 09 00 8b 9d 70 ff ff ff 31 ff 89 de e8 e4 70 59 00 85 db 74 46 4c 8d bd 70 ff ff ff 4c 89 ff e8 71 fc 08 00 <48> 89 c3 31 ff 48 89 c6 e8 54 71 59 00 48 85 db 74 2c 4c 89 f7 48 RSP: 0018:ffffc90004327360 EFLAGS: 00000246 RAX: ffffffff8acc959d RBX: ffffffff8accf674 RCX: ffff888016b89dc0 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc900043273f0 R08: ffffffff813d9ce8 R09: ffffffff813db790 R10: 0000000000000003 R11: ffff888016b89dc0 R12: ffff888016b89dc0 R13: ffffffff817bbba0 R14: ffffc90004327440 R15: ffffc90004327360 FS: 0000555555c53480(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020001000 CR3: 000000002dc61000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: stack_trace_save+0x117/0x1c0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4f/0x70 mm/kasan/common.c:52 kasan_save_free_info+0x28/0x40 mm/kasan/generic.c:522 ____kasan_slab_free+0xd6/0x120 mm/kasan/common.c:236 kasan_slab_free include/linux/kasan.h:164 [inline] slab_free_hook mm/slub.c:1800 [inline] slab_free_freelist_hook mm/slub.c:1826 [inline] slab_free mm/slub.c:3809 [inline] kmem_cache_free+0x292/0x500 mm/slub.c:3831 free_buffer_head+0x55/0x240 fs/buffer.c:3039 try_to_free_buffers+0x311/0x5f0 fs/buffer.c:2980 block_invalidate_folio+0x67b/0x9d0 fs/buffer.c:1632 folio_invalidate mm/truncate.c:158 [inline] truncate_cleanup_folio+0x1e0/0x5c0 mm/truncate.c:178 truncate_inode_pages_range+0x2bc/0x11a0 mm/truncate.c:367 kill_bdev block/bdev.c:76 [inline] blkdev_flush_mapping+0x15a/0x2b0 block/bdev.c:630 blkdev_put_whole block/bdev.c:661 [inline] blkdev_put+0x4a9/0x770 block/bdev.c:898 deactivate_locked_super+0xa4/0x110 fs/super.c:481 cleanup_mnt+0x426/0x4c0 fs/namespace.c:1254 task_work_run+0x24a/0x300 kernel/task_work.c:180 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xde/0x100 kernel/entry/common.c:171 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x64/0x280 kernel/entry/common.c:296 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fe32c07de17 Code: b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 b0 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007ffe8d921628 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007fe32c07de17 RDX: 0000000000000000 RSI: 000000000000000a RDI: 00007ffe8d9216e0 RBP: 00007ffe8d9216e0 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffe8d9227a0 R13: 00007fe32c0c73b9 R14: 00000000000e3b16 R15: 0000000000000006