INFO: task syz-executor.4:7422 blocked for more than 143 seconds.
Not tainted 6.8.0-rc1-syzkaller-00385-g4854cf9c61d0 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.4 state:D stack:22736 pid:7422 tgid:7421 ppid:5075 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_lock_and_flush_ordered_range+0xd3/0x220 fs/btrfs/ordered-data.c:1092
contiguous_readpages fs/btrfs/extent_io.c:1186 [inline]
extent_readahead+0x10c1/0x1470 fs/btrfs/extent_io.c:2292
read_pages+0x183/0x830 mm/readahead.c:160
page_cache_ra_unbounded+0x68e/0x7c0 mm/readahead.c:269
do_async_mmap_readahead mm/filemap.c:3181 [inline]
filemap_fault+0x74a/0x1670 mm/filemap.c:3235
__do_fault+0x131/0x450 mm/memory.c:4376
do_read_fault mm/memory.c:4738 [inline]
do_fault mm/memory.c:4868 [inline]
do_pte_missing mm/memory.c:3745 [inline]
handle_pte_fault mm/memory.c:5144 [inline]
__handle_mm_fault+0x49d7/0x72b0 mm/memory.c:5285
handle_mm_fault+0x27e/0x770 mm/memory.c:5450
faultin_page mm/gup.c:958 [inline]
__get_user_pages+0x6bd/0x15f0 mm/gup.c:1241
populate_vma_page_range+0x2aa/0x370 mm/gup.c:1679
__mm_populate+0x279/0x450 mm/gup.c:1788
mm_populate include/linux/mm.h:3391 [inline]
vm_mmap_pgoff+0x304/0x420 mm/util.c:561
ksys_mmap_pgoff+0x4ff/0x6d0 mm/mmap.c:1425
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:0x7fafd627cda9
RSP: 002b:00007fafd6f830c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007fafd63abf80 RCX: 00007fafd627cda9
RDX: 00000000027fffff RSI: 0000000000600000 RDI: 0000000020000000
RBP: 00007fafd62c947a R08: 0000000000000005 R09: 0000000000000000
R10: 0000000004002011 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007fafd63abf80 R15: 00007ffd1f7987c8
INFO: task syz-executor.4:7463 blocked for more than 144 seconds.
Not tainted 6.8.0-rc1-syzkaller-00385-g4854cf9c61d0 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.4 state:D stack:23256 pid:7463 tgid:7421 ppid:5075 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_stos_alternative+0x40/0x80 arch/x86/lib/clear_page_64.S:96
Code: ff c7 48 ff c9 75 f6 c3 48 89 07 48 83 c7 08 83 e9 08 74 f3 83 f9 08 73 ef eb e2 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 <48> 89 07 48 89 47 08 48 89 47 10 48 89 47 18 48 89 47 20 48 89 47
RSP: 0018:ffffc90014e77ad8 EFLAGS: 00050202
RAX: 0000000000000000 RBX: 000000002003b080 RCX: 0000000000000080
RDX: 0000000000001000 RSI: ffffffff8b6ab760 RDI: 000000002003b000
RBP: ffffc90014e77c40 R08: ffffffff8f0244ef R09: 1ffffffff1e0489d
R10: dffffc0000000000 R11: fffffbfff1e0489e R12: 000000002003a080
R13: 000000002003b080 R14: ffffc90014e77d78 R15: 1ffff920029cefaf
__clear_user arch/x86/include/asm/uaccess_64.h:174 [inline]
clear_user arch/x86/include/asm/uaccess_64.h:191 [inline]
zero_to_user_iter lib/iov_iter.c:461 [inline]
iterate_ubuf include/linux/iov_iter.h:29 [inline]
iterate_and_advance2 include/linux/iov_iter.h:245 [inline]
iterate_and_advance include/linux/iov_iter.h:271 [inline]
iov_iter_zero+0x1e3/0x1b60 lib/iov_iter.c:474
read_iter_zero+0x88/0x290 drivers/char/mem.c:478
call_read_iter include/linux/fs.h:2079 [inline]
new_sync_read fs/read_write.c:395 [inline]
vfs_read+0x96b/0xb60 fs/read_write.c:476
ksys_read+0x1a0/0x2c0 fs/read_write.c:619
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:0x7fafd627cda9
RSP: 002b:00007fafd6f620c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007fafd63ac050 RCX: 00007fafd627cda9
RDX: 00000000ffffff1c RSI: 0000000020000080 RDI: 0000000000000007
RBP: 00007fafd62c947a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007fafd63ac050 R15: 00007ffd1f7987c8
INFO: task syz-executor.4:7496 blocked for more than 145 seconds.
Not tainted 6.8.0-rc1-syzkaller-00385-g4854cf9c61d0 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.4 state:D stack:23128 pid:7496 tgid:7421 ppid:5075 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:ffffc900157f7390 EFLAGS: 00050206
RAX: 0000000000000000 RBX: 0000000020000218 RCX: 0000000000000038
RDX: 0000000000000000 RSI: ffffc900157f7440 RDI: 00000000200001e0
RBP: ffffc900157f74f0 R08: ffffc900157f7477 R09: 1ffff92002afee8e
R10: dffffc0000000000 R11: fffff52002afee8f R12: 0000000000000038
R13: ffffc900157f7440 R14: 00000000200001e0 R15: ffffc900157f7440
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 fs/btrfs/extent_io.c:2521 [inline]
fiemap_process_hole+0x5d2/0xaf0 fs/btrfs/extent_io.c:2740
extent_fiemap+0x1859/0x1fe0 fs/btrfs/extent_io.c:3053
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:0x7fafd627cda9
RSP: 002b:00007fafd6f410c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fafd63ac120 RCX: 00007fafd627cda9
RDX: 00000000200001c0 RSI: 00000000c020660b RDI: 0000000000000008
RBP: 00007fafd62c947a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007fafd63ac120 R15: 00007ffd1f7987c8
Showing all locks held in the system:
1 lock held by khungtaskd/29:
#0: ffffffff8d92f120 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:298 [inline]
#0: ffffffff8d92f120 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:750 [inline]
#0: ffffffff8d92f120 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6614
2 locks held by kworker/u4:3/49:
3 locks held by kworker/u4:10/2858:
#0: ffff888016aa5d38 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2608 [inline]
#0: ffff888016aa5d38 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2706
#1: ffffc9000a44fd20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2608 [inline]
#1: ffffc9000a44fd20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2706
#2: ffff88803db1e0e0 (&type->s_umount_key#59){++++}-{3:3}, at: super_trylock_shared+0x22/0xf0 fs/super.c:566
1 lock held by udevd/4503:
2 locks held by getty/4805:
#0: ffff8880137ef0a0 (&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/5082:
2 locks held by kworker/1:5/5129:
#0: ffff88801308a938 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2608 [inline]
#0: ffff88801308a938 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2706
#1: ffffc9000473fd20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2608 [inline]
#1: ffffc9000473fd20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2706
1 lock held by syz-executor.4/7422:
#0: ffff88803a2ddfd8 (mapping.invalidate_lock#5){.+.+}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:857 [inline]
#0: ffff88803a2ddfd8 (mapping.invalidate_lock#5){.+.+}-{3:3}, at: page_cache_ra_unbounded+0xf1/0x7c0 mm/readahead.c:225
3 locks held by syz-executor.4/7463:
#0: ffff888071103aa0 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_lock_killable+0x1d/0x70 include/linux/mmap_lock.h:155
#1: ffff88803db1e518 (sb_pagefaults#2){.+.+}-{0:0}, at: do_page_mkwrite+0x197/0x470 mm/memory.c:2966
#2: ffff88803a2ddcc0 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_page_mkwrite+0x603/0x10c0 fs/btrfs/inode.c:8169
4 locks held by syz-executor.4/7496:
#0: ffff88803a2dde38 (&sb->s_type->i_mutex_key#23){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:812 [inline]
#0: ffff88803a2dde38 (&sb->s_type->i_mutex_key#23){++++}-{3:3}, at: btrfs_inode_lock+0x60/0xd0 fs/btrfs/inode.c:379
#1: ffff888071103aa0 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_lock_killable+0x1d/0x70 include/linux/mmap_lock.h:155
#2: ffff88803db1e518 (sb_pagefaults#2){.+.+}-{0:0}, at: do_page_mkwrite+0x197/0x470 mm/memory.c:2966
#3: ffff88803a2ddcc0 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_page_mkwrite+0x603/0x10c0 fs/btrfs/inode.c:8169
3 locks held by syz-executor.4/11915:
2 locks held by syz-executor.1/11932:
=============================================
NMI backtrace for cpu 1
CPU: 1 PID: 29 Comm: khungtaskd Not tainted 6.8.0-rc1-syzkaller-00385-g4854cf9c61d0 #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 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 5128 Comm: kworker/0:5 Not tainted 6.8.0-rc1-syzkaller-00385-g4854cf9c61d0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
Workqueue: events nsim_dev_trap_report_work
RIP: 0010:instrument_atomic_read include/linux/instrumented.h:68 [inline]
RIP: 0010:_test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline]
RIP: 0010:__lock_acquire+0xc52/0x1fd0 kernel/locking/lockdep.c:5107
Code: 04 38 84 c0 0f 85 a6 0c 00 00 83 3d 27 96 f1 10 00 75 39 48 63 9c 24 88 00 00 00 48 89 d8 48 c1 e8 06 48 8d 3c c5 e0 b3 df 90 08 00 00 00 e8 e4 45 7e 00 48 bf 00 00 00 00 00 fc ff df 48 0f
RSP: 0018:ffffc9000472f5d0 EFLAGS: 00000047
RAX: 0000000000000000 RBX: 000000000000002b RCX: ffffffff925f3303
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff90dfb3e0
RBP: ffff88801d2c8b88 R08: ffffffff90dfb3e7 R09: 1ffffffff21bf67c
R10: dffffc0000000000 R11: fffffbfff21bf67d R12: 0000000000000001
R13: ffff88801d2c8000 R14: 1ffff11003a59175 R15: ffff88801d2c8ba8
FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005555566e8938 CR3: 0000000030bc0000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
lock_acquire+0x1e3/0x530 kernel/locking/lockdep.c:5754
local_lock_acquire include/linux/local_lock_internal.h:29 [inline]
put_cpu_partial+0x91/0x250 mm/slub.c:2969
get_partial_node+0xb5/0x2a0 mm/slub.c:2624
get_partial mm/slub.c:2717 [inline]
___slab_alloc+0xa6d/0x13d0 mm/slub.c:3520
__slab_alloc mm/slub.c:3625 [inline]
__slab_alloc_node mm/slub.c:3678 [inline]
slab_alloc_node mm/slub.c:3850 [inline]
__do_kmalloc_node mm/slub.c:3980 [inline]
__kmalloc_node_track_caller+0x2cd/0x4e0 mm/slub.c:4001
kmalloc_reserve+0xf3/0x260 net/core/skbuff.c:582
__alloc_skb+0x1b1/0x420 net/core/skbuff.c:651
alloc_skb include/linux/skbuff.h:1296 [inline]
nsim_dev_trap_skb_build drivers/net/netdevsim/dev.c:748 [inline]
nsim_dev_trap_report drivers/net/netdevsim/dev.c:805 [inline]
nsim_dev_trap_report_work+0x254/0xa90 drivers/net/netdevsim/dev.c:850
process_one_work kernel/workqueue.c:2633 [inline]
process_scheduled_works+0x90f/0x1420 kernel/workqueue.c:2706
worker_thread+0xa5f/0x1000 kernel/workqueue.c:2787
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