INFO: task syz-executor.3:760 blocked for more than 143 seconds.
Not tainted 6.8.0-rc1-syzkaller-00286-g168174d78157 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.3 state:D stack:23024 pid:760 tgid:757 ppid:5107 flags:0x00004006
Call Trace:
context_switch kernel/sched/core.c:5400 [inline]
__schedule+0x177f/0x4960 kernel/sched/core.c:6727
__schedule_loop kernel/sched/core.c:6802 [inline]
schedule+0x149/0x260 kernel/sched/core.c:6817
wait_extent_bit fs/btrfs/extent-io-tree.c:822 [inline]
lock_extent+0x69d/0x850 fs/btrfs/extent-io-tree.c:1868
btrfs_page_mkwrite+0x743/0x10c0 fs/btrfs/inode.c:8180
do_page_mkwrite+0x197/0x470 mm/memory.c:2966
wp_page_shared mm/memory.c:3353 [inline]
do_wp_page+0x20e3/0x4c80 mm/memory.c:3493
handle_pte_fault mm/memory.c:5160 [inline]
__handle_mm_fault+0x26a3/0x72b0 mm/memory.c:5285
handle_mm_fault+0x27e/0x770 mm/memory.c:5450
do_user_addr_fault arch/x86/mm/fault.c:1415 [inline]
handle_page_fault arch/x86/mm/fault.c:1507 [inline]
exc_page_fault+0x2ad/0x870 arch/x86/mm/fault.c:1563
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:ffffc90012be7310 EFLAGS: 00050206
RAX: 0000000000000000 RBX: 0000000020000058 RCX: 0000000000000038
RDX: 0000000000000000 RSI: ffffc90012be73c0 RDI: 0000000020000020
RBP: ffffc90012be7478 R08: ffffc90012be73f7 R09: 1ffff9200257ce7e
R10: dffffc0000000000 R11: fffff5200257ce7f R12: 0000000000000038
R13: ffffc90012be73c0 R14: 0000000020000020 R15: ffffc90012be73c0
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_fiemap_extent+0x258/0x410 fs/btrfs/extent_io.c:2521
fiemap_process_hole+0xa29/0xaf0 fs/btrfs/extent_io.c:2779
extent_fiemap+0xeae/0x1fe0
btrfs_fiemap+0x178/0x1e0 fs/btrfs/inode.c:7848
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+0xf5/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7f4c2f47cda9
RSP: 002b:00007f4c301fc0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f4c2f5abf80 RCX: 00007f4c2f47cda9
RDX: 0000000020000000 RSI: 00000000c020660b RDI: 0000000000000004
RBP: 00007f4c2f4c947a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f4c2f5abf80 R15: 00007ffc78d733e8
Showing all locks held in the system:
2 locks held by kworker/u4:1/12:
#0: ffff8880b993c918 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:559
#1: ffff8880b9928988 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x441/0x770 kernel/sched/psi.c:988
1 lock held by khungtaskd/29:
#0: ffffffff8d92ef20 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:298 [inline]
#0: ffffffff8d92ef20 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:750 [inline]
#0: ffffffff8d92ef20 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6614
2 locks held by getty/4809:
#0: ffff88802e4b10a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
#1: ffffc90002efe2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b4/0x1e10 drivers/tty/n_tty.c:2201
3 locks held by syz-executor.1/5085:
4 locks held by syz-executor.3/760:
#0: ffff888068b6e720 (&sb->s_type->i_mutex_key#23){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:812 [inline]
#0: ffff888068b6e720 (&sb->s_type->i_mutex_key#23){++++}-{3:3}, at: btrfs_inode_lock+0x60/0xd0 fs/btrfs/inode.c:379
#1: ffff88806a6460a0 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:165 [inline]
#1: ffff88806a6460a0 (&mm->mmap_lock){++++}-{3:3}, at: get_mmap_lock_carefully mm/memory.c:5477 [inline]
#1: ffff88806a6460a0 (&mm->mmap_lock){++++}-{3:3}, at: lock_mm_and_find_vma+0x32/0x2d0 mm/memory.c:5537
#2: ffff88803434c518 (sb_pagefaults){.+.+}-{0:0}, at: do_page_mkwrite+0x197/0x470 mm/memory.c:2966
#3: ffff888068b6e5a8 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_page_mkwrite+0x603/0x10c0 fs/btrfs/inode.c:8169
=============================================
NMI backtrace for cpu 0
CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.8.0-rc1-syzkaller-00286-g168174d78157 #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: 5085 Comm: syz-executor.1 Not tainted 6.8.0-rc1-syzkaller-00286-g168174d78157 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
RIP: 0010:tomoyo_realpath_from_path+0x106/0x5e0 security/tomoyo/realpath.c:257
Code: 8d 66 ff 48 89 eb 4a 8d 2c 20 48 89 e8 48 c1 e8 03 0f b6 04 18 84 c0 0f 85 c1 03 00 00 c6 45 00 00 48 8b 44 24 48 80 3c 18 00 <48> 89 dd 48 8b 5c 24 50 74 08 48 89 df e8 28 ff 9e fd 4d 89 fd 48
RSP: 0018:ffffc900043af9d0 EFLAGS: 00000246
RAX: 1ffff11007a25aca RBX: dffffc0000000000 RCX: 0000000000002000
RDX: 0000000000001000 RSI: ffffffff8bbe91c0 RDI: ffffffff8bbe9180
RBP: ffff888033234fff R08: 0000000000000c40 R09: 00000000ffffffff
R10: dffffc0000000000 R11: fffffbfff21bf284 R12: 0000000000000fff
R13: 0000000000000000 R14: 0000000000001000 R15: ffff888033234000
FS: 0000555556d98480(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005634780bbb60 CR3: 000000004453a000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
tomoyo_get_realpath security/tomoyo/file.c:151 [inline]
tomoyo_path_perm+0x2b7/0x730 security/tomoyo/file.c:822
tomoyo_path_unlink+0xd0/0x110 security/tomoyo/tomoyo.c:162
security_path_unlink+0xdb/0x130 security/security.c:1851
do_unlinkat+0x3e6/0x830 fs/namei.c:4395
__do_sys_unlink fs/namei.c:4446 [inline]
__se_sys_unlink fs/namei.c:4444 [inline]
__x64_sys_unlink+0x49/0x50 fs/namei.c:4444
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf5/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7f9768e7c557
Code: 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 57 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffdb601f1d8 EFLAGS: 00000202 ORIG_RAX: 0000000000000057
RAX: ffffffffffffffda RBX: 000000000000501f RCX: 00007f9768e7c557
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007ffdb601f290
RBP: 00007ffdb601f290 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 00007ffdb6020350
R13: 00007f9768ec83b9 R14: 0000555556d98430 R15: 0000000000000005