INFO: task hwrng:751 blocked for more than 143 seconds.
Not tainted 6.6.0-syzkaller-14263-gaea6bf908d73 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:hwrng state:D stack:29440 pid:751 tgid:751 ppid:2 flags:0x00004000
Call Trace:
context_switch kernel/sched/core.c:5376 [inline]
__schedule+0xee2/0x59a0 kernel/sched/core.c:6688
__schedule_loop kernel/sched/core.c:6763 [inline]
schedule+0xe7/0x270 kernel/sched/core.c:6778
schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6835
__mutex_lock_common kernel/locking/mutex.c:679 [inline]
__mutex_lock+0x969/0x1340 kernel/locking/mutex.c:747
hwrng_fillfn+0x145/0x430 drivers/char/hw_random/core.c:504
kthread+0x33c/0x440 kernel/kthread.c:388
ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242
Showing all locks held in the system:
1 lock held by khungtaskd/28:
#0: ffffffff8cfa95e0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:301 [inline]
#0: ffffffff8cfa95e0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:747 [inline]
#0: ffffffff8cfa95e0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x75/0x340 kernel/locking/lockdep.c:6613
1 lock held by hwrng/751:
#0: ffffffff8dba4e88 (reading_mutex){+.+.}-{3:3}, at: hwrng_fillfn+0x145/0x430 drivers/char/hw_random/core.c:504
2 locks held by getty/4819:
#0: ffff88814b5070a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x24/0x80 drivers/tty/tty_ldisc.c:243
#1: ffffc900015c02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xfc6/0x1490 drivers/tty/n_tty.c:2201
4 locks held by syz-executor.5/5945:
2 locks held by kworker/u4:12/10358:
#0: ffff8880b983c758 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested kernel/sched/core.c:566 [inline]
#0: ffff8880b983c758 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x7e/0x130 kernel/sched/core.c:551
#1: ffff8880b9828888 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x2d9/0x900 kernel/sched/psi.c:988
2 locks held by kworker/u4:8/9906:
1 lock held by syz-executor.1/13181:
2 locks held by syz-executor.1/13183:
3 locks held by syz-executor.1/13245:
2 locks held by syz-executor.3/15954:
2 locks held by syz-executor.2/15956:
1 lock held by syz-executor.5/15970:
1 lock held by syz-executor.5/15973:
#0: ffff88808b17d870 (sk_lock-AF_KCM){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1720 [inline]
#0: ffff88808b17d870 (sk_lock-AF_KCM){+.+.}-{0:0}, at: kcm_sendmsg+0x1cd/0x28d0 net/kcm/kcmsock.c:757
3 locks held by syz-executor.0/15979:
3 locks held by modprobe/15981:
=============================================
NMI backtrace for cpu 0
CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.6.0-syzkaller-14263-gaea6bf908d73 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
nmi_cpu_backtrace+0x277/0x380 lib/nmi_backtrace.c:113
nmi_trigger_cpumask_backtrace+0x299/0x300 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+0xf87/0x1210 kernel/hung_task.c:379
kthread+0x33c/0x440 kernel/kthread.c:388
ret_from_fork+0x45/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: 13183 Comm: syz-executor.1 Not tainted 6.6.0-syzkaller-14263-gaea6bf908d73 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023
RIP: 0010:debug_lockdep_rcu_enabled+0x2f/0x30 kernel/rcu/update.c:322
Code: 05 9a e4 98 04 85 c0 74 21 8b 05 94 17 99 04 85 c0 74 17 65 48 8b 04 25 00 bd 03 00 8b 80 bc 0a 00 00 85 c0 0f 94 c0 0f b6 c0 66 0f 1f 00 55 53 65 8b 05 8f c4 82 75 85 c0 40 0f 95 c5 65 8b
RSP: 0018:ffffc900037cea08 EFLAGS: 00000046
RAX: 0000000000000001 RBX: ffffea000270a0c0 RCX: ffffffff81b9d210
RDX: 1ffffd40004e1418 RSI: 0000000000000008 RDI: ffffea000270a0c0
RBP: 00fff00000000101 R08: 0000000000000000 R09: fffff940004e1418
R10: ffffea000270a0c7 R11: 0000000000000000 R12: ffff88803ffa4000
R13: ffff8880b9936e00 R14: 0000000000000001 R15: ffff88801b71fce0
FS: 00007f1accf5a6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f24e97b8440 CR3: 0000000035543000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
rcu_read_unlock include/linux/rcupdate.h:776 [inline]
folio_evictable mm/internal.h:164 [inline]
lru_add_fn+0x4d4/0xd30 mm/swap.c:181
folio_batch_move_lru+0x24f/0x470 mm/swap.c:217
lru_add_drain_cpu+0x54c/0x850 mm/swap.c:652
lru_add_drain+0x10a/0x440 mm/swap.c:752
lru_gen_shrink_lruvec mm/vmscan.c:4811 [inline]
shrink_lruvec+0x2c0/0x2980 mm/vmscan.c:5592
shrink_node_memcgs mm/vmscan.c:5812 [inline]
shrink_node+0x807/0x3790 mm/vmscan.c:5847
shrink_zones mm/vmscan.c:6086 [inline]
do_try_to_free_pages+0x3cf/0x1990 mm/vmscan.c:6148
try_to_free_mem_cgroup_pages+0x36f/0x850 mm/vmscan.c:6463
try_charge_memcg+0x463/0x1400 mm/memcontrol.c:2742
try_charge mm/memcontrol.c:2884 [inline]
charge_memcg mm/memcontrol.c:7209 [inline]
__mem_cgroup_charge+0xa6/0x140 mm/memcontrol.c:7224
mem_cgroup_charge include/linux/memcontrol.h:684 [inline]
__filemap_add_folio+0x88c/0xec0 mm/filemap.c:854
filemap_add_folio+0xb1/0x1e0 mm/filemap.c:937
page_cache_ra_unbounded+0x1d0/0x5e0 mm/readahead.c:250
do_page_cache_ra mm/readahead.c:299 [inline]
page_cache_ra_order+0x72b/0xa80 mm/readahead.c:546
do_sync_mmap_readahead mm/filemap.c:3141 [inline]
filemap_fault+0x16a8/0x3570 mm/filemap.c:3233
__do_fault+0x107/0x5f0 mm/memory.c:4265
do_cow_fault mm/memory.c:4662 [inline]
do_fault mm/memory.c:4764 [inline]
do_pte_missing mm/memory.c:3730 [inline]
handle_pte_fault mm/memory.c:5038 [inline]
__handle_mm_fault+0x3a74/0x3d60 mm/memory.c:5179
handle_mm_fault+0x478/0xa00 mm/memory.c:5344
do_user_addr_fault+0x3d1/0x1000 arch/x86/mm/fault.c:1413
handle_page_fault arch/x86/mm/fault.c:1505 [inline]
exc_page_fault+0x5c/0xd0 arch/x86/mm/fault.c:1561
asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570
RIP: 0010:rep_movs_alternative+0x4a/0x70 arch/x86/lib/copy_user_64.S:71
Code: 75 f1 c3 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 c9 a4 c3 48 89 c8 48 c1 e9 03 83 e0 07 f3 48 a5 89 c1 85 c9 75 b3
RSP: 0018:ffffc900037cfbb0 EFLAGS: 00050246
RAX: 0000000000000001 RBX: 0000000000000040 RCX: 0000000000000040
RDX: ffffed1028ec9c58 RSI: ffff88814764e280 RDI: 000000002001cc80
RBP: 000000002001cc80 R08: 0000000000000000 R09: ffffed1028ec9c57
R10: ffff88814764e2bf R11: cdfa6ecadf25fb8b R12: ffff88814764e280
R13: 000000002001ccc0 R14: 0000000000000000 R15: dffffc0000000000
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 lib/usercopy.c:41 [inline]
_copy_to_user+0xa8/0xb0 lib/usercopy.c:34
copy_to_user include/linux/uaccess.h:191 [inline]
rng_dev_read+0x184/0x570 drivers/char/hw_random/core.c:255
do_loop_readv_writev fs/read_write.c:755 [inline]
do_loop_readv_writev fs/read_write.c:743 [inline]
do_iter_read+0x567/0x830 fs/read_write.c:797
vfs_readv+0x12d/0x1a0 fs/read_write.c:915
do_preadv fs/read_write.c:1007 [inline]
__do_sys_preadv fs/read_write.c:1057 [inline]
__se_sys_preadv fs/read_write.c:1052 [inline]
__x64_sys_preadv+0x228/0x300 fs/read_write.c:1052
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x3f/0x110 arch/x86/entry/common.c:82
entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7f1acc27cae9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 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:00007f1accf5a0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000127
RAX: ffffffffffffffda RBX: 00007f1acc39bf80 RCX: 00007f1acc27cae9
RDX: 0000000000000001 RSI: 0000000020001880 RDI: 0000000000000005
RBP: 00007f1acc2c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f1acc39bf80 R15: 00007fffa909c7a8