INFO: task syz-executor.2:17371 blocked for more than 143 seconds.
Not tainted 6.2.0-rc1-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.2 state:D stack:20840 pid:17371 ppid:5101 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:5244 [inline]
__schedule+0x995/0xe20 kernel/sched/core.c:6555
schedule+0xcb/0x190 kernel/sched/core.c:6631
io_schedule+0x83/0x100 kernel/sched/core.c:8811
folio_wait_bit_common+0x83a/0x12a0 mm/filemap.c:1297
__folio_lock mm/filemap.c:1660 [inline]
folio_lock include/linux/pagemap.h:938 [inline]
__filemap_get_folio+0x566/0x1250 mm/filemap.c:1932
truncate_inode_pages_range+0x594/0x1690 mm/truncate.c:377
truncate_inode_pages mm/truncate.c:448 [inline]
truncate_pagecache mm/truncate.c:743 [inline]
truncate_setsize+0xcb/0xf0 mm/truncate.c:768
ntfs_truncate fs/ntfs3/file.c:395 [inline]
ntfs3_setattr+0x5a5/0xca0 fs/ntfs3/file.c:696
notify_change+0xe50/0x1100 fs/attr.c:482
do_truncate+0x200/0x2f0 fs/open.c:65
handle_truncate fs/namei.c:3216 [inline]
do_open fs/namei.c:3561 [inline]
path_openat+0x272b/0x2dd0 fs/namei.c:3714
do_filp_open+0x264/0x4f0 fs/namei.c:3741
do_sys_openat2+0x124/0x4e0 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+0x221/0x270 fs/open.c:1330
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f1bf508c0a9
RSP: 002b:00007f1bf5d5e168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 00007f1bf51ac050 RCX: 00007f1bf508c0a9
RDX: 0000000000000000 RSI: 000000000014da42 RDI: 00000000200000c0
RBP: 00007f1bf50e7ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffc7f0023ff R14: 00007f1bf5d5e300 R15: 0000000000022000
INFO: task syz-executor.2:17372 blocked for more than 143 seconds.
Not tainted 6.2.0-rc1-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.2 state:D stack:21912 pid:17372 ppid:5101 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:5244 [inline]
__schedule+0x995/0xe20 kernel/sched/core.c:6555
schedule+0xcb/0x190 kernel/sched/core.c:6631
schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6690
__mutex_lock_common+0xe4f/0x26e0 kernel/locking/mutex.c:679
__mutex_lock kernel/locking/mutex.c:747 [inline]
mutex_lock_nested+0x17/0x20 kernel/locking/mutex.c:799
ni_lock fs/ntfs3/ntfs_fs.h:1122 [inline]
attr_data_get_block+0x315/0x2d70 fs/ntfs3/attrib.c:919
ntfs_get_block_vbo+0x31f/0xc40 fs/ntfs3/inode.c:573
do_mpage_readpage+0x970/0x1c50 fs/mpage.c:208
mpage_readahead+0x210/0x380 fs/mpage.c:361
read_pages+0x169/0x9c0 mm/readahead.c:161
page_cache_ra_unbounded+0x703/0x820 mm/readahead.c:270
do_sync_mmap_readahead+0x4b2/0x9a0
filemap_fault+0x38d/0x1060 mm/filemap.c:3154
__do_fault+0x136/0x4f0 mm/memory.c:4163
do_read_fault mm/memory.c:4514 [inline]
do_fault mm/memory.c:4643 [inline]
handle_pte_fault mm/memory.c:4931 [inline]
__handle_mm_fault mm/memory.c:5073 [inline]
handle_mm_fault+0x2066/0x26b0 mm/memory.c:5219
do_user_addr_fault+0x69b/0xcb0 arch/x86/mm/fault.c:1428
handle_page_fault arch/x86/mm/fault.c:1519 [inline]
exc_page_fault+0x7a/0x110 arch/x86/mm/fault.c:1575
asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:570
RIP: 0010:do_strncpy_from_user lib/strncpy_from_user.c:41 [inline]
RIP: 0010:strncpy_from_user+0x150/0x330 lib/strncpy_from_user.c:139
Code: 89 34 24 0f 01 cb 0f ae e8 bf 07 00 00 00 4c 89 ee e8 04 22 0c fd 49 83 fd 07 0f 86 81 00 00 00 45 31 ff 0f 1f 80 00 00 00 00 <4f> 8b 34 3c 48 b8 ff fe fe fe fe fe fe fe 49 8d 1c 06 4c 89 f5 48
RSP: 0018:ffffc9000504fca0 EFLAGS: 00050246
RAX: ffffffff847fbdf9 RBX: 0000000000000fe0 RCX: 0000000000000000
RDX: ffff88802befba80 RSI: 0000000000000fe0 RDI: 0000000000000007
RBP: 0000000000000000 R08: ffffffff847fbe2c R09: fffff940001013c1
R10: fffff940001013c1 R11: 1ffffd40001013c0 R12: 0000000020002000
R13: 0000000000000fe0 R14: ffff888020279120 R15: 0000000000000000
getname_flags+0xf5/0x4e0 fs/namei.c:150
do_sys_openat2+0xba/0x4e0 fs/open.c:1304
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+0x221/0x270 fs/open.c:1330
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f1bf508c0a9
RSP: 002b:00007f1bf5d3d168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 00007f1bf51ac120 RCX: 00007f1bf508c0a9
RDX: 0000000000000000 RSI: 0000000000143042 RDI: 0000000020002000
RBP: 00007f1bf50e7ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffc7f0023ff R14: 00007f1bf5d3d300 R15: 0000000000022000
Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/12:
#0: ffffffff8d326e90 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507
1 lock held by rcu_tasks_trace/13:
#0: ffffffff8d327690 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507
1 lock held by khungtaskd/28:
#0: ffffffff8d326cc0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
1 lock held by syslogd/4415:
#0: ffff8880b983a1d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x25/0x110 kernel/sched/core.c:537
2 locks held by getty/4746:
#0: ffff88814a48f098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244
#1: ffffc900015a02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x53b/0x1650 drivers/tty/n_tty.c:2177
3 locks held by syz-executor.2/17371:
#0: ffff888033746460 (sb_writers#16){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:508
#1: ffff888072e46ae0 (&sb->s_type->i_mutex_key#24){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline]
#1: ffff888072e46ae0 (&sb->s_type->i_mutex_key#24){+.+.}-{3:3}, at: do_truncate+0x1ec/0x2f0 fs/open.c:63
#2: ffff888072e46840 (&ni->ni_lock/4){+.+.}-{3:3}, at: ni_lock fs/ntfs3/ntfs_fs.h:1122 [inline]
#2: ffff888072e46840 (&ni->ni_lock/4){+.+.}-{3:3}, at: ntfs_truncate fs/ntfs3/file.c:393 [inline]
#2: ffff888072e46840 (&ni->ni_lock/4){+.+.}-{3:3}, at: ntfs3_setattr+0x596/0xca0 fs/ntfs3/file.c:696
2 locks held by syz-executor.2/17372:
#0: ffff888072e46c80 (mapping.invalidate_lock#5){++++}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:811 [inline]
#0: ffff888072e46c80 (mapping.invalidate_lock#5){++++}-{3:3}, at: page_cache_ra_unbounded+0xe9/0x820 mm/readahead.c:226
#1: ffff888072e46840 (&ni->ni_lock/4){+.+.}-{3:3}, at: ni_lock fs/ntfs3/ntfs_fs.h:1122 [inline]
#1: ffff888072e46840 (&ni->ni_lock/4){+.+.}-{3:3}, at: attr_data_get_block+0x315/0x2d70 fs/ntfs3/attrib.c:919
2 locks held by kworker/0:10/18342:
#0: ffff888012872538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x7f2/0xdb0
#1: ffffc90017e3fd00 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x831/0xdb0 kernel/workqueue.c:2264
4 locks held by kworker/0:11/18343:
#0: ffff888012870d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x7f2/0xdb0
#1: ffffc90017e4fd00 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work+0x831/0xdb0 kernel/workqueue.c:2264
#2: ffffffff8e4b5748 (rtnl_mutex){+.+.}-{3:3}, at: linkwatch_event+0xa/0x50 net/core/link_watch.c:277
#3: ffffffff8d32c338 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:292 [inline]
#3: ffffffff8d32c338 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x384/0x860 kernel/rcu/tree_exp.h:946
1 lock held by syz-executor.1/18524:
#0: ffff88802b87f740 (&iint->mutex){+.+.}-{3:3}, at: ima_check_last_writer security/integrity/ima/ima_main.c:164 [inline]
#0: ffff88802b87f740 (&iint->mutex){+.+.}-{3:3}, at: ima_file_free+0x109/0x3a0 security/integrity/ima/ima_main.c:198
2 locks held by syz-executor.1/18525:
#0: ffff888076bd0460 (sb_writers#16){.+.+}-{0:0}, at: do_sendfile+0x5d6/0xf80 fs/read_write.c:1254
#1: ffff888072ff8b00 (&sb->s_type->i_mutex_key#24){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline]
#1: ffff888072ff8b00 (&sb->s_type->i_mutex_key#24){+.+.}-{3:3}, at: ntfs_file_write_iter+0x25a/0x6c0 fs/ntfs3/file.c:1051
3 locks held by syz-executor.1/18530:
#0: ffff888076bd0460 (sb_writers#16){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:508
#1: ffff888072ff8b00 (&sb->s_type->i_mutex_key#24){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline]
#1: ffff888072ff8b00 (&sb->s_type->i_mutex_key#24){+.+.}-{3:3}, at: do_truncate+0x1ec/0x2f0 fs/open.c:63
#2: ffff888072ff8860 (&ni->ni_lock/4){+.+.}-{3:3}, at: ni_lock fs/ntfs3/ntfs_fs.h:1122 [inline]
#2: ffff888072ff8860 (&ni->ni_lock/4){+.+.}-{3:3}, at: ntfs_truncate fs/ntfs3/file.c:393 [inline]
#2: ffff888072ff8860 (&ni->ni_lock/4){+.+.}-{3:3}, at: ntfs3_setattr+0x596/0xca0 fs/ntfs3/file.c:696
3 locks held by syz-executor.1/18532:
#0: ffff88802b87f740 (&iint->mutex){+.+.}-{3:3}, at: process_measurement+0x795/0x1bc0 security/integrity/ima/ima_main.c:260
#1: ffff888072ff8ca0 (mapping.invalidate_lock#5){++++}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:811 [inline]
#1: ffff888072ff8ca0 (mapping.invalidate_lock#5){++++}-{3:3}, at: page_cache_ra_unbounded+0xe9/0x820 mm/readahead.c:226
#2: ffff888072ff8860 (&ni->ni_lock/4){+.+.}-{3:3}, at: ni_lock fs/ntfs3/ntfs_fs.h:1122 [inline]
#2: ffff888072ff8860 (&ni->ni_lock/4){+.+.}-{3:3}, at: attr_data_get_block+0x315/0x2d70 fs/ntfs3/attrib.c:919
2 locks held by syz-executor.1/18534:
#0: ffff888076bd0460 (sb_writers#16){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:508
#1: ffff888072ff8b00 (&sb->s_type->i_mutex_key#24){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline]
#1: ffff888072ff8b00 (&sb->s_type->i_mutex_key#24){+.+.}-{3:3}, at: process_measurement+0x411/0x1bc0 security/integrity/ima/ima_main.c:241
2 locks held by syz-executor.1/18536:
#0: ffff888076bd0460 (sb_writers#16){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:508
#1: ffff888072ff8b00 (&sb->s_type->i_mutex_key#24){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline]
#1: ffff888072ff8b00 (&sb->s_type->i_mutex_key#24){+.+.}-{3:3}, at: process_measurement+0x411/0x1bc0 security/integrity/ima/ima_main.c:241
7 locks held by syz-executor.1/18645:
#0: ffff888029388460 (sb_writers#8){.+.+}-{0:0}, at: vfs_write+0x287/0xc50 fs/read_write.c:580
#1: ffff88802fdf4088 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x1f3/0x500 fs/kernfs/file.c:325
#2: ffff888020b01cb8 (kn->active#51){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x217/0x500 fs/kernfs/file.c:326
#3: ffffffff8de1f3a8 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: del_device_store+0xe2/0x450 drivers/net/netdevsim/bus.c:209
#4: ffff888030e370e8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:831 [inline]
#4: ffff888030e370e8 (&dev->mutex){....}-{3:3}, at: __device_driver_lock drivers/base/dd.c:1073 [inline]
#4: ffff888030e370e8 (&dev->mutex){....}-{3:3}, at: device_release_driver_internal+0xb5/0x8a0 drivers/base/dd.c:1276
#5: ffff88807a1e7338 (&devlink->lock_key){+.+.}-{3:3}, at: nsim_drv_remove+0x54/0x160 drivers/net/netdevsim/dev.c:1672
#6: ffffffff8e4b5748 (rtnl_mutex){+.+.}-{3:3}, at: nsim_destroy+0x3a/0x140 drivers/net/netdevsim/netdev.c:373
=============================================
NMI backtrace for cpu 1
CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.2.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1b1/0x290 lib/dump_stack.c:106
nmi_cpu_backtrace+0x46f/0x4f0 lib/nmi_backtrace.c:111
nmi_trigger_cpumask_backtrace+0x1ba/0x420 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+0xcd5/0xd20 kernel/hung_task.c:377
kthread+0x266/0x300 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: 13912 Comm: kworker/u4:2 Not tainted 6.2.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Workqueue: bat_events batadv_nc_worker
RIP: 0010:__lock_release kernel/locking/lockdep.c:5352 [inline]
RIP: 0010:lock_release+0x203/0x820 kernel/locking/lockdep.c:5688
Code: f3 a2 45 09 89 5c 24 4c 89 da 85 c0 0f 84 df 01 00 00 4d 85 ed 0f 84 26 03 00 00 49 8d 5d 24 48 89 d8 48 c1 e8 03 42 8a 04 20 <84> c0 0f 85 d2 04 00 00 83 3b 00 0f 85 ea 03 00 00 4d 8d 75 20 4c
RSP: 0018:ffffc900037efaa0 EFLAGS: 00000803
RAX: 1ffff11005431400 RBX: ffff88802a18a7ec RCX: 00000000037efb03
RDX: 0000000000000002 RSI: ffffffff8d326cc0 RDI: ffff88802a18a7c8
RBP: ffffc900037efbc8 R08: dffffc0000000000 R09: fffffbfff1d2ccee
R10: fffffbfff1d2ccee R11: 1ffffffff1d2cced R12: dffffc0000000000
R13: ffff88802a18a7c8 R14: 0000000000000002 R15: 000000000000000a
FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f3291ad8a98 CR3: 000000002aac0000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
rcu_read_unlock include/linux/rcupdate.h:797 [inline]
batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:412 [inline]
batadv_nc_worker+0x251/0x5b0 net/batman-adv/network-coding.c:719
process_one_work+0x877/0xdb0 kernel/workqueue.c:2289
worker_thread+0xb14/0x1330 kernel/workqueue.c:2436
kthread+0x266/0x300 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308