INFO: task syz.2.70:6378 blocked for more than 143 seconds.
Not tainted 6.13.0-rc7-syzkaller-00019-gc45323b7560e #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.2.70 state:D stack:17920 pid:6378 tgid:6351 ppid:5817 flags:0x00000004
Call Trace:
context_switch kernel/sched/core.c:5369 [inline]
__schedule+0x17fb/0x4be0 kernel/sched/core.c:6756
__schedule_loop kernel/sched/core.c:6833 [inline]
schedule+0x14b/0x320 kernel/sched/core.c:6848
schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6905
rwsem_down_write_slowpath+0xeee/0x13b0 kernel/locking/rwsem.c:1176
__down_write_common kernel/locking/rwsem.c:1304 [inline]
__down_write kernel/locking/rwsem.c:1313 [inline]
down_write+0x1d7/0x220 kernel/locking/rwsem.c:1578
inode_lock include/linux/fs.h:818 [inline]
bch2_direct_write+0x243/0x31a0 fs/bcachefs/fs-io-direct.c:599
bch2_write_iter+0x194/0x2c10 fs/bcachefs/fs-io-buffered.c:1036
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xaeb/0xd30 fs/read_write.c:679
ksys_write+0x18f/0x2b0 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7eff32b85d29
RSP: 002b:00007eff309d5038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007eff32d76080 RCX: 00007eff32b85d29
RDX: 0000000000000009 RSI: 0000000020000000 RDI: 0000000000000005
RBP: 00007eff32c01b08 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007eff32d76080 R15: 00007ffe9f535318
INFO: task syz.2.70:6379 blocked for more than 144 seconds.
Not tainted 6.13.0-rc7-syzkaller-00019-gc45323b7560e #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.2.70 state:D stack:23968 pid:6379 tgid:6351 ppid:5817 flags:0x00000004
Call Trace:
context_switch kernel/sched/core.c:5369 [inline]
__schedule+0x17fb/0x4be0 kernel/sched/core.c:6756
__schedule_loop kernel/sched/core.c:6833 [inline]
schedule+0x14b/0x320 kernel/sched/core.c:6848
schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6905
rwsem_down_write_slowpath+0xeee/0x13b0 kernel/locking/rwsem.c:1176
__down_write_common kernel/locking/rwsem.c:1304 [inline]
__down_write kernel/locking/rwsem.c:1313 [inline]
down_write+0x1d7/0x220 kernel/locking/rwsem.c:1578
inode_lock include/linux/fs.h:818 [inline]
bch2_direct_write+0x243/0x31a0 fs/bcachefs/fs-io-direct.c:599
bch2_write_iter+0x194/0x2c10 fs/bcachefs/fs-io-buffered.c:1036
iter_file_splice_write+0xbfa/0x1510 fs/splice.c:743
do_splice_from fs/splice.c:941 [inline]
direct_splice_actor+0x11b/0x220 fs/splice.c:1164
splice_direct_to_actor+0x586/0xc80 fs/splice.c:1108
do_splice_direct_actor fs/splice.c:1207 [inline]
do_splice_direct+0x289/0x3e0 fs/splice.c:1233
do_sendfile+0x564/0x8a0 fs/read_write.c:1363
__do_sys_sendfile64 fs/read_write.c:1424 [inline]
__se_sys_sendfile64+0x17c/0x1e0 fs/read_write.c:1410
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7eff32b85d29
RSP: 002b:00007eff309b4038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007eff32d76160 RCX: 00007eff32b85d29
RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000005
RBP: 00007eff32c01b08 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000800000009 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007eff32d76160 R15: 00007ffe9f535318
Showing all locks held in the system:
1 lock held by khungtaskd/30:
#0: ffffffff8e937ae0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline]
#0: ffffffff8e937ae0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
#0: ffffffff8e937ae0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6744
2 locks held by getty/5575:
#0: ffff8880310cf0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
#1: ffffc90002fde2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x6a6/0x1e00 drivers/tty/n_tty.c:2211
5 locks held by syz.2.70/6352:
#0: ffff88807f286420 (sb_writers#22){.+.+}-{0:0}, at: do_ftruncate+0x28b/0x580 fs/open.c:178
#1: ffff88807cf888c8 (&sb->s_type->i_mutex_key#27){++++}-{4:4}, at: inode_lock include/linux/fs.h:818 [inline]
#1: ffff88807cf888c8 (&sb->s_type->i_mutex_key#27){++++}-{4:4}, at: do_truncate fs/open.c:63 [inline]
#1: ffff88807cf888c8 (&sb->s_type->i_mutex_key#27){++++}-{4:4}, at: do_ftruncate+0x44e/0x580 fs/open.c:181
#2: ffff888059300a38 (&c->snapshot_create_lock){.+.+}-{4:4}, at: bch2_truncate+0x166/0x2d0 fs/bcachefs/io_misc.c:292
#3: ffff888059304398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:158 [inline]
#3: ffff888059304398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:249 [inline]
#3: ffff888059304398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7e1/0xd30 fs/bcachefs/btree_iter.c:3228
#4: ffff8880593266d0 (&c->gc_lock){++++}-{4:4}, at: bch2_btree_update_start+0x682/0x14e0 fs/bcachefs/btree_update_interior.c:1197
3 locks held by syz.2.70/6378:
#0: ffff888032f869b8 (&f->f_pos_lock){+.+.}-{4:4}, at: fdget_pos+0x254/0x320 fs/file.c:1192
#1: ffff88807f286420 (sb_writers#22){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2964 [inline]
#1: ffff88807f286420 (sb_writers#22){.+.+}-{0:0}, at: vfs_write+0x225/0xd30 fs/read_write.c:675
#2: ffff88807cf888c8 (&sb->s_type->i_mutex_key#27){++++}-{4:4}, at: inode_lock include/linux/fs.h:818 [inline]
#2: ffff88807cf888c8 (&sb->s_type->i_mutex_key#27){++++}-{4:4}, at: bch2_direct_write+0x243/0x31a0 fs/bcachefs/fs-io-direct.c:599
2 locks held by syz.2.70/6379:
#0: ffff88807f286420 (sb_writers#22){.+.+}-{0:0}, at: direct_splice_actor+0x49/0x220 fs/splice.c:1163
#1: ffff88807cf888c8 (&sb->s_type->i_mutex_key#27){++++}-{4:4}, at: inode_lock include/linux/fs.h:818 [inline]
#1: ffff88807cf888c8 (&sb->s_type->i_mutex_key#27){++++}-{4:4}, at: bch2_direct_write+0x243/0x31a0 fs/bcachefs/fs-io-direct.c:599
2 locks held by kworker/u8:8/6397:
1 lock held by syz.8.383/8629:
4 locks held by dhcpcd-run-hook/8671:
=============================================
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.13.0-rc7-syzkaller-00019-gc45323b7560e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120
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:162 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:234 [inline]
watchdog+0xff6/0x1040 kernel/hung_task.c:397
kthread+0x2f0/0x390 kernel/kthread.c:389
ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 8671 Comm: dhcpcd-run-hook Not tainted 6.13.0-rc7-syzkaller-00019-gc45323b7560e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:get_lock_parent_ip include/linux/ftrace.h:999 [inline]
RIP: 0010:preempt_latency_start kernel/sched/core.c:5829 [inline]
RIP: 0010:preempt_count_add+0x93/0x190 kernel/sched/core.c:5854
Code: 52 96 7e 0f b6 c0 3d f5 00 00 00 73 5e 65 8b 05 6b 52 96 7e 25 ff ff ff 7f 39 d8 75 44 4c 8b 74 24 18 4c 89 f7 e8 7d 81 0e 00 <85> c0 74 0a 45 31 f6 31 ff e8 6f 81 0e 00 65 48 8b 1c 25 80 d4 03
RSP: 0018:ffffc90004a3ed30 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 0000000000000001 RCX: ffffffff8bc40100
RDX: dffffc0000000000 RSI: ffffffff8473a410 RDI: ffffffff814ba970
RBP: ffffc90004a3ee58 R08: 0000000000000008 R09: ffffc90004a3ef10
R10: ffffc90004a3ee70 R11: ffffffff818b3aa0 R12: dffffc0000000000
R13: ffffc90004a3ee20 R14: ffffffff814ba970 R15: dffffc0000000000
FS: 00007f2b2ccd8380(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffca7e53ea8 CR3: 000000004b8fe000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
unwind_next_frame+0xb0/0x22d0 arch/x86/kernel/unwind_orc.c:479
arch_stack_walk+0x11c/0x150 arch/x86/kernel/stacktrace.c:25
stack_trace_save+0x118/0x1d0 kernel/stacktrace.c:122
kasan_save_stack mm/kasan/common.c:47 [inline]
kasan_save_track+0x3f/0x80 mm/kasan/common.c:68
poison_kmalloc_redzone mm/kasan/common.c:377 [inline]
__kasan_kmalloc+0x98/0xb0 mm/kasan/common.c:394
kasan_kmalloc include/linux/kasan.h:260 [inline]
__do_kmalloc_node mm/slub.c:4298 [inline]
__kmalloc_node_track_caller_noprof+0x28b/0x4c0 mm/slub.c:4317
kmalloc_reserve+0x111/0x2a0 net/core/skbuff.c:609
__alloc_skb+0x1f3/0x440 net/core/skbuff.c:678
alloc_skb include/linux/skbuff.h:1323 [inline]
nlmsg_new include/net/netlink.h:1018 [inline]
audit_buffer_alloc kernel/audit.c:1795 [inline]
audit_log_start+0x186/0xa30 kernel/audit.c:1913
common_lsm_audit+0xdd/0x1ce0 security/lsm_audit.c:449
smack_log+0x421/0x540 security/smack/smack_access.c:383
smk_tskacc+0x300/0x370 security/smack/smack_access.c:253
smack_inode_permission+0x2dc/0x380 security/smack/smack_lsm.c:1234
security_inode_permission+0x101/0x320 security/security.c:2319
may_lookup fs/namei.c:1819 [inline]
link_path_walk+0x204/0xea0 fs/namei.c:2425
path_lookupat+0xa9/0x450 fs/namei.c:2633
filename_lookup+0x2a3/0x670 fs/namei.c:2663
vfs_statx+0x103/0x490 fs/stat.c:344
vfs_fstatat+0xe5/0x130 fs/stat.c:366
__do_sys_newfstatat fs/stat.c:530 [inline]
__se_sys_newfstatat fs/stat.c:524 [inline]
__x64_sys_newfstatat+0x11d/0x1a0 fs/stat.c:524
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f2b2ce2c5f4
Code: 64 c7 00 09 00 00 00 83 c8 ff c3 48 89 f2 b9 00 01 00 00 48 89 fe bf 9c ff ff ff e9 00 00 00 00 41 89 ca b8 06 01 00 00 0f 05 <45> 31 c0 3d 00 f0 ff ff 76 10 48 8b 15 03 a8 0d 00 f7 d8 41 83 c8
RSP: 002b:00007ffca7e54808 EFLAGS: 00000246 ORIG_RAX: 0000000000000106
RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f2b2ce2c5f4
RDX: 00007ffca7e54818 RSI: 000055890c599110 RDI: 00000000ffffff9c
RBP: 000055890c589130 R08: 0000000000000028 R09: 3c00000000001001
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f2b2cfb02ba
R13: 0000000000000000 R14: 00007ffca7e54b08 R15: 0000000000000000