INFO: task syz-executor.2:5256 blocked for more than 143 seconds.
Not tainted 6.9.0-syzkaller-01049-g8815da98e06a #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.2 state:D stack:25528 pid:5256 tgid:5214 ppid:5084 flags:0x00000006
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5409 [inline]
__schedule+0x1796/0x4a00 kernel/sched/core.c:6746
__schedule_loop kernel/sched/core.c:6823 [inline]
schedule+0x14b/0x320 kernel/sched/core.c:6838
schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6895
rwsem_down_write_slowpath+0xeeb/0x13b0 kernel/locking/rwsem.c:1178
__down_write_common+0x1af/0x200 kernel/locking/rwsem.c:1306
inode_lock include/linux/fs.h:795 [inline]
bch2_ioc_setflags fs/bcachefs/fs-ioctl.c:96 [inline]
bch2_fs_file_ioctl+0x1a97/0x2790 fs/bcachefs/fs-ioctl.c:491
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:904 [inline]
__se_sys_ioctl+0xfc/0x170 fs/ioctl.c:890
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f371fc7dd69
RSP: 002b:00007f372097f0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f371fdac050 RCX: 00007f371fc7dd69
RDX: 0000000020000640 RSI: 0000000040086602 RDI: 0000000000000006
RBP: 00007f371fcca49e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007f371fdac050 R15: 00007fffa9f6e0b8
</TASK>
Showing all locks held in the system:
2 locks held by kworker/u8:1/12:
#0:
ffff8880b943e658 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:559
#1: ffff8880b9528948 (&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/30:
#0: ffffffff8e334da0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:329 [inline]
#0: ffffffff8e334da0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:781 [inline]
#0: ffffffff8e334da0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6614
2 locks held by kworker/u8:2/35:
5 locks held by kworker/u8:3/51:
2 locks held by kworker/u8:9/2921:
#0: ffff888015089148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3242 [inline]
#0: ffff888015089148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x8e0/0x17c0 kernel/workqueue.c:3348
#1: ffffc9000ac6fd00 ((reaper_work).work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3243 [inline]
#1: ffffc9000ac6fd00 ((reaper_work).work){+.+.}-{0:0}, at: process_scheduled_works+0x91b/0x17c0 kernel/workqueue.c:3348
1 lock held by udevd/4528:
2 locks held by getty/4826:
#0: ffff88802bd760a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
#1: ffffc900031332f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b5/0x1e10 drivers/tty/n_tty.c:2201
3 locks held by syz-executor.2/5215:
#0: ffff88801e6a85c8 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x259/0x320 fs/file.c:1191
#1: ffff88802d92e420 (sb_writers#17){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2855 [inline]
#1: ffff88802d92e420 (sb_writers#17){.+.+}-{0:0}, at: vfs_write+0x233/0xcb0 fs/read_write.c:586
#2: ffff888078db9020 (&sb->s_type->i_mutex_key#25){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:795 [inline]
#2: ffff888078db9020 (&sb->s_type->i_mutex_key#25){+.+.}-{3:3}, at: bch2_direct_write+0x243/0x3050 fs/bcachefs/fs-io-direct.c:598
2 locks held by syz-executor.2/5256:
#0: ffff88802d92e420 (sb_writers#17){.+.+}-{0:0}, at: mnt_want_write_file+0x61/0x200 fs/namespace.c:453
#1: ffff888078db9020 (&sb->s_type->i_mutex_key#25){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:795 [inline]
#1: ffff888078db9020 (&sb->s_type->i_mutex_key#25){+.+.}-{3:3}, at: bch2_ioc_setflags fs/bcachefs/fs-ioctl.c:96 [inline]
#1: ffff888078db9020 (&sb->s_type->i_mutex_key#25){+.+.}-{3:3}, at: bch2_fs_file_ioctl+0x1a97/0x2790 fs/bcachefs/fs-ioctl.c:491
3 locks held by syz-executor.2/5257:
#0: ffff88802f322348 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x259/0x320 fs/file.c:1191
#1: ffff88802d92e420 (sb_writers#17){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2855 [inline]
#1: ffff88802d92e420 (sb_writers#17){.+.+}-{0:0}, at: vfs_write+0x233/0xcb0 fs/read_write.c:586
#2: ffff888078db88b8 (&sb->s_type->i_mutex_key#25){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:795 [inline]
#2: ffff888078db88b8 (&sb->s_type->i_mutex_key#25){+.+.}-{3:3}, at: bch2_direct_write+0x243/0x3050 fs/bcachefs/fs-io-direct.c:598
2 locks held by syz-executor.3/7110:
#0: ffff888068a4d060 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close net/bluetooth/hci_core.c:552 [inline]
#0: ffff888068a4d060 (&hdev->req_lock){+.+.}-{3:3}, at: hci_unregister_dev+0x1d3/0x4e0 net/bluetooth/hci_core.c:2771
#1: ffff888068a4c078 (&hdev->lock){+.+.}-{3:3}, at: hci_dev_close_sync+0x48b/0x1050 net/bluetooth/hci_sync.c:5146
2 locks held by syz-executor.4/7579:
#0: ffff88806b480980 (&c->sb_lock){+.+.}-{3:3}, at: bch2_fs_alloc+0xf8c/0x2330 fs/bcachefs/super.c:836
#1: ffff88806b4848c8 (&c->mark_lock){++++}-{0:0}, at: bch2_sb_replicas_to_cpu_replicas+0x1c3/0x290 fs/bcachefs/replicas.c:733
4 locks held by syz-executor.2/7600:
#0: ffff88802a478420 (sb_writers#4){.+.+}-{0:0}, at: mnt_want_write_file+0x61/0x200 fs/namespace.c:453
#1: ffff888078e42c00 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: inode_lock include/linux/fs.h:795 [inline]
#1: ffff888078e42c00 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: vfs_fileattr_set+0x139/0xd50 fs/ioctl.c:682
#2: ffff88802a47ab98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: ext4_writepages_down_write fs/ext4/ext4.h:1781 [inline]
#2: ffff88802a47ab98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: ext4_ind_migrate+0x253/0x890 fs/ext4/migrate.c:625
#3: ffffffff8e33a178 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:323 [inline]
#3: ffffffff8e33a178 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x451/0x830 kernel/rcu/tree_exp.h:939
1 lock held by syz-executor.2/7603:
#0: ffff888078e42c00 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: inode_lock include/linux/fs.h:795 [inline]
#0: ffff888078e42c00 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: process_measurement+0x450/0x1f60 security/integrity/ima/ima_main.c:248
2 locks held by syz-executor.2/7604:
#0: ffff88802a478420 (sb_writers#4){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:409
#1: ffff888078e42c00 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: inode_lock include/linux/fs.h:795 [inline]
#1: ffff888078e42c00 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: process_measurement+0x450/0x1f60 security/integrity/ima/ima_main.c:248
2 locks held by syz-executor.3/7606:
#0: ffffffff8f594cc8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:79 [inline]
#0: ffffffff8f594cc8 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x842/0x10d0 net/core/rtnetlink.c:6592
#1: ffffffff8e33a178 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:323 [inline]
#1: ffffffff8e33a178 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x451/0x830 kernel/rcu/tree_exp.h:939
4 locks held by syz-executor.0/7610:
=============================================
NMI backtrace for cpu 1
CPU: 1 PID: 30 Comm: khungtaskd Not tainted 6.9.0-syzkaller-01049-g8815da98e06a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
Call Trace:
<TASK>
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114
nmi_cpu_backtrace+0x49c/0x4d0 lib/nmi_backtrace.c:113
nmi_trigger_cpumask_backtrace+0x198/0x320 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:223 [inline]
watchdog+0xfde/0x1020 kernel/hung_task.c:380
kthread+0x2f0/0x390 kernel/kthread.c:388
ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
</TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 2826 Comm: kworker/u8:7 Not tainted 6.9.0-syzkaller-01049-g8815da98e06a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
Workqueue: bat_events batadv_nc_worker
RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:130 [inline]
RIP: 0010:memory_is_poisoned mm/kasan/generic.c:161 [inline]
RIP: 0010:check_region_inline mm/kasan/generic.c:180 [inline]
RIP: 0010:kasan_check_range+0x4c/0x290 mm/kasan/generic.c:189
Code: 00 00 48 89 fd 48 c1 ed 2f 81 fd fe ff 01 00 0f 86 43 02 00 00 48 89 fb 48 c1 eb 03 49 ba 00 00 00 00 00 fc ff df 4e 8d 1c 13 <49> ff c8 4d 89 c1 49 c1 e9 03 49 be 01 00 00 00 00 fc ff df 4f 8d
RSP: 0018:ffffc9000a5df8c0 EFLAGS: 00000806
RAX: 0000000000000001 RBX: 1ffffffff25e02a0 RCX: ffffffff81728edb
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff92f01500
RBP: 000000000001ffff R08: ffffffff92f01508 R09: 0000000000000000
R10: dffffc0000000000 R11: fffffbfff25e02a0 R12: 0000000000000000
R13: 0000000000000021 R14: 000000000000000a R15: ffff88802c9ae548
FS: 0000000000000000(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc1745ffd8 CR3: 000000006bd38000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<NMI>
</NMI>
<TASK>
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:4773 [inline]
__lock_acquire+0x4bb/0x1fd0 kernel/locking/lockdep.c:5087
lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5754
rcu_lock_acquire include/linux/rcupdate.h:329 [inline]
rcu_read_lock include/linux/rcupdate.h:781 [inline]
batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:408 [inline]
batadv_nc_worker+0xec/0x610 net/batman-adv/network-coding.c:719
process_one_work kernel/workqueue.c:3267 [inline]
process_scheduled_works+0xa10/0x17c0 kernel/workqueue.c:3348
worker_thread+0x86d/0xd70 kernel/workqueue.c:3429
kthread+0x2f0/0x390 kernel/kthread.c:388
ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
</TASK>