------------[ cut here ]------------ ====================================================== WARNING: possible circular locking dependency detected 5.15.165-syzkaller #0 Not tainted ------------------------------------------------------ syz.3.1380/8855 is trying to acquire lock: ffffffff8c7fc438 ((console_sem).lock){-.-.}-{2:2}, at: down_trylock+0x1c/0xa0 kernel/locking/semaphore.c:138 but task is already holding lock: ffff8880b9a29158 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x120/0x260 kernel/time/timer.c:946 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #3 (&base->lock){-.-.}-{2:2}: lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd1/0x120 kernel/locking/spinlock.c:162 lock_timer_base+0x120/0x260 kernel/time/timer.c:946 __mod_timer+0x1d6/0xeb0 kernel/time/timer.c:1019 queue_delayed_work_on+0x156/0x250 kernel/workqueue.c:1715 psi_enqueue kernel/sched/stats.h:104 [inline] enqueue_task+0x2fe/0x3a0 kernel/sched/core.c:1970 activate_task kernel/sched/core.c:2002 [inline] wake_up_new_task+0x515/0xb60 kernel/sched/core.c:4519 kernel_clone+0x44e/0x960 kernel/fork.c:2628 kernel_thread+0x168/0x1e0 kernel/fork.c:2656 rest_init+0x21/0x330 init/main.c:706 start_kernel+0x48c/0x540 init/main.c:1140 secondary_startup_64_no_verify+0xb1/0xbb -> #2 (&rq->__lock){-.-.}-{2:2}: lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623 _raw_spin_lock_nested+0x2d/0x40 kernel/locking/spinlock.c:368 raw_spin_rq_lock_nested+0x26/0x140 kernel/sched/core.c:475 raw_spin_rq_lock kernel/sched/sched.h:1326 [inline] rq_lock kernel/sched/sched.h:1621 [inline] task_fork_fair+0x5d/0x350 kernel/sched/fair.c:11484 sched_cgroup_fork+0x2d3/0x330 kernel/sched/core.c:4463 copy_process+0x224a/0x3ef0 kernel/fork.c:2320 kernel_clone+0x210/0x960 kernel/fork.c:2604 kernel_thread+0x168/0x1e0 kernel/fork.c:2656 rest_init+0x21/0x330 init/main.c:706 start_kernel+0x48c/0x540 init/main.c:1140 secondary_startup_64_no_verify+0xb1/0xbb -> #1 (&p->pi_lock){-.-.}-{2:2}: lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd1/0x120 kernel/locking/spinlock.c:162 try_to_wake_up+0xae/0x1300 kernel/sched/core.c:4027 up+0x6e/0x90 kernel/locking/semaphore.c:190 __up_console_sem+0x11a/0x1e0 kernel/printk/printk.c:256 console_unlock+0x1145/0x12b0 kernel/printk/printk.c:2760 vprintk_emit+0xbf/0x150 kernel/printk/printk.c:2274 dev_vprintk_emit+0x2aa/0x330 drivers/base/core.c:4621 dev_printk_emit+0xd9/0x120 drivers/base/core.c:4632 __netdev_printk+0x335/0x410 net/core/dev.c:11464 netdev_info+0x11e/0x170 net/core/dev.c:11519 nsim_udp_tunnel_set_port+0x2a7/0x450 drivers/net/netdevsim/udp_tunnels.c:34 udp_tunnel_nic_device_sync_by_port net/ipv4/udp_tunnel_nic.c:246 [inline] __udp_tunnel_nic_device_sync+0xa7e/0x13c0 net/ipv4/udp_tunnel_nic.c:289 udp_tunnel_nic_device_sync net/ipv4/udp_tunnel_nic.c:312 [inline] __udp_tunnel_nic_add_port+0xc75/0xf30 net/ipv4/udp_tunnel_nic.c:531 udp_tunnel_nic_add_port include/net/udp_tunnel.h:336 [inline] udp_tunnel_notify_add_rx_port+0x2dc/0x480 net/ipv4/udp_tunnel_core.c:130 geneve_socket_create drivers/net/geneve.c:602 [inline] geneve_sock_add+0x621/0xbb0 drivers/net/geneve.c:677 geneve_open+0xdf/0x150 drivers/net/geneve.c:719 __dev_open+0x36f/0x500 net/core/dev.c:1506 __dev_change_flags+0x1db/0x6e0 net/core/dev.c:8813 dev_change_flags+0x87/0x190 net/core/dev.c:8884 do_setlink+0xc21/0x3d80 net/core/rtnetlink.c:2747 __rtnl_newlink net/core/rtnetlink.c:3418 [inline] rtnl_newlink+0x17d6/0x2070 net/core/rtnetlink.c:3540 rtnetlink_rcv_msg+0x993/0xee0 net/core/rtnetlink.c:5618 netlink_rcv_skb+0x1cf/0x410 net/netlink/af_netlink.c:2504 netlink_unicast_kernel net/netlink/af_netlink.c:1326 [inline] netlink_unicast+0x7b6/0x980 net/netlink/af_netlink.c:1352 netlink_sendmsg+0xa30/0xd60 net/netlink/af_netlink.c:1920 sock_sendmsg_nosec net/socket.c:704 [inline] __sock_sendmsg net/socket.c:716 [inline] __sys_sendto+0x564/0x720 net/socket.c:2058 __do_sys_sendto net/socket.c:2070 [inline] __se_sys_sendto net/socket.c:2066 [inline] __x64_sys_sendto+0xda/0xf0 net/socket.c:2066 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 -> #0 ((console_sem).lock){-.-.}-{2:2}: check_prev_add kernel/locking/lockdep.c:3053 [inline] check_prevs_add kernel/locking/lockdep.c:3172 [inline] validate_chain+0x1649/0x5930 kernel/locking/lockdep.c:3788 __lock_acquire+0x1295/0x1ff0 kernel/locking/lockdep.c:5012 lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd1/0x120 kernel/locking/spinlock.c:162 down_trylock+0x1c/0xa0 kernel/locking/semaphore.c:138 __down_trylock_console_sem+0x105/0x250 kernel/printk/printk.c:239 console_trylock kernel/printk/printk.c:2575 [inline] console_trylock_spinning+0x8a/0x3f0 kernel/printk/printk.c:1867 vprintk_emit+0xa6/0x150 kernel/printk/printk.c:2273 _printk+0xd1/0x120 kernel/printk/printk.c:2299 report_bug+0x1e5/0x2e0 lib/bug.c:195 handle_bug+0x3d/0x70 arch/x86/kernel/traps.c:239 exc_invalid_op+0x16/0x40 arch/x86/kernel/traps.c:259 asm_exc_invalid_op+0x16/0x20 arch/x86/include/asm/idtentry.h:566 copy_from_user_nofault+0x15c/0x1c0 bpf_probe_read_user_common kernel/trace/bpf_trace.c:157 [inline] ____bpf_probe_read_user kernel/trace/bpf_trace.c:166 [inline] bpf_probe_read_user+0x26/0x70 kernel/trace/bpf_trace.c:163 bpf_prog_02073d59a3c0f06f+0x3d/0x3c8 bpf_dispatcher_nop_func include/linux/bpf.h:790 [inline] __bpf_prog_run include/linux/filter.h:628 [inline] bpf_prog_run include/linux/filter.h:635 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:1880 [inline] bpf_trace_run3+0x1d1/0x380 kernel/trace/bpf_trace.c:1918 __traceiter_timer_start+0x79/0xd0 include/trace/events/timer.h:52 trace_timer_start include/trace/events/timer.h:52 [inline] enqueue_timer+0x3ae/0x540 kernel/time/timer.c:586 internal_add_timer kernel/time/timer.c:611 [inline] __mod_timer+0xa60/0xeb0 kernel/time/timer.c:1062 call_timer_fn+0x16d/0x560 kernel/time/timer.c:1451 expire_timers kernel/time/timer.c:1496 [inline] __run_timers+0x67c/0x890 kernel/time/timer.c:1767 handle_softirqs+0x3a7/0x930 kernel/softirq.c:558 __do_softirq kernel/softirq.c:592 [inline] invoke_softirq kernel/softirq.c:432 [inline] __irq_exit_rcu+0x157/0x240 kernel/softirq.c:641 irq_exit_rcu+0x5/0x20 kernel/softirq.c:653 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1096 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638 outw arch/x86/include/asm/io.h:335 [inline] iowrite16+0x34/0x80 lib/iomap.c:195 vp_notify+0x53/0x70 drivers/virtio/virtio_pci_common.c:45 virtqueue_notify drivers/virtio/virtio_ring.c:1965 [inline] virtqueue_kick+0x394/0x5b0 drivers/virtio/virtio_ring.c:1988 request_entropy drivers/char/hw_random/virtio-rng.c:63 [inline] copy_data+0x233/0x360 drivers/char/hw_random/virtio-rng.c:74 virtio_read+0x14d/0x200 drivers/char/hw_random/virtio-rng.c:114 rng_get_data drivers/char/hw_random/core.c:196 [inline] rng_dev_read+0x23b/0x6a0 drivers/char/hw_random/core.c:234 do_iter_read+0x4c6/0x760 fs/read_write.c:792 vfs_readv fs/read_write.c:910 [inline] do_preadv+0x211/0x350 fs/read_write.c:1002 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 other info that might help us debug this: Chain exists of: (console_sem).lock --> &rq->__lock --> &base->lock Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&base->lock); lock(&rq->__lock); lock(&base->lock); lock((console_sem).lock); *** DEADLOCK *** 4 locks held by syz.3.1380/8855: #0: ffffffff8d006628 (reading_mutex){+.+.}-{3:3}, at: rng_dev_read+0x16a/0x6a0 drivers/char/hw_random/core.c:229 #1: ffffc90000007c00 ((&tcp_orphan_timer)){+.-.}-{0:0}, at: lockdep_copy_map include/linux/lockdep.h:45 [inline] #1: ffffc90000007c00 ((&tcp_orphan_timer)){+.-.}-{0:0}, at: call_timer_fn+0xbe/0x560 kernel/time/timer.c:1441 #2: ffff8880b9a29158 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x120/0x260 kernel/time/timer.c:946 #3: ffffffff8c91fbe0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:311 stack backtrace: CPU: 0 PID: 8855 Comm: syz.3.1380 Not tainted 5.15.165-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106 check_noncircular+0x2f8/0x3b0 kernel/locking/lockdep.c:2133 check_prev_add kernel/locking/lockdep.c:3053 [inline] check_prevs_add kernel/locking/lockdep.c:3172 [inline] validate_chain+0x1649/0x5930 kernel/locking/lockdep.c:3788 __lock_acquire+0x1295/0x1ff0 kernel/locking/lockdep.c:5012 lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd1/0x120 kernel/locking/spinlock.c:162 down_trylock+0x1c/0xa0 kernel/locking/semaphore.c:138 __down_trylock_console_sem+0x105/0x250 kernel/printk/printk.c:239 console_trylock kernel/printk/printk.c:2575 [inline] console_trylock_spinning+0x8a/0x3f0 kernel/printk/printk.c:1867 vprintk_emit+0xa6/0x150 kernel/printk/printk.c:2273 _printk+0xd1/0x120 kernel/printk/printk.c:2299 report_bug+0x1e5/0x2e0 lib/bug.c:195 handle_bug+0x3d/0x70 arch/x86/kernel/traps.c:239 exc_invalid_op+0x16/0x40 arch/x86/kernel/traps.c:259 asm_exc_invalid_op+0x16/0x20 arch/x86/include/asm/idtentry.h:566 RIP: 0010:copy_from_user_nofault+0x15c/0x1c0 mm/maccess.c:226 Code: db 48 c7 c0 f2 ff ff ff 48 0f 44 c5 eb 0c e8 2b c8 d5 ff 48 c7 c0 f2 ff ff ff 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 14 c8 d5 ff <0f> 0b e9 1e ff ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c ef fe ff RSP: 0018:ffffc90000007880 EFLAGS: 00010046 RAX: ffffffff81aa998c RBX: 0000000000000000 RCX: ffff88801c233b80 RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000000 RBP: dffffc0000000000 R08: ffffffff81aa989d R09: fffffbfff1f8e219 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000 R13: 0000000000000008 R14: 0000000000000000 R15: ffffc900000078e8 bpf_probe_read_user_common kernel/trace/bpf_trace.c:157 [inline] ____bpf_probe_read_user kernel/trace/bpf_trace.c:166 [inline] bpf_probe_read_user+0x26/0x70 kernel/trace/bpf_trace.c:163 bpf_prog_02073d59a3c0f06f+0x3d/0x3c8 bpf_dispatcher_nop_func include/linux/bpf.h:790 [inline] __bpf_prog_run include/linux/filter.h:628 [inline] bpf_prog_run include/linux/filter.h:635 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:1880 [inline] bpf_trace_run3+0x1d1/0x380 kernel/trace/bpf_trace.c:1918 __traceiter_timer_start+0x79/0xd0 include/trace/events/timer.h:52 trace_timer_start include/trace/events/timer.h:52 [inline] enqueue_timer+0x3ae/0x540 kernel/time/timer.c:586 internal_add_timer kernel/time/timer.c:611 [inline] __mod_timer+0xa60/0xeb0 kernel/time/timer.c:1062 call_timer_fn+0x16d/0x560 kernel/time/timer.c:1451 expire_timers kernel/time/timer.c:1496 [inline] __run_timers+0x67c/0x890 kernel/time/timer.c:1767 handle_softirqs+0x3a7/0x930 kernel/softirq.c:558 __do_softirq kernel/softirq.c:592 [inline] invoke_softirq kernel/softirq.c:432 [inline] __irq_exit_rcu+0x157/0x240 kernel/softirq.c:641 irq_exit_rcu+0x5/0x20 kernel/softirq.c:653 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1096 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638 RIP: 0010:outw arch/x86/include/asm/io.h:335 [inline] RIP: 0010:iowrite16+0x34/0x80 lib/iomap.c:195 Code: 73 fd 48 81 fb 00 00 04 00 72 0a e8 86 6a 73 fd 66 89 2b eb 56 48 81 fb 01 00 01 00 72 0e e8 73 6a 73 fd 0f b7 d3 89 e8 66 ef 3f 8b 2d c4 04 e5 08 31 ff 89 ee e8 bb 6d 73 fd 85 ed 74 27 e8 RSP: 0018:ffffc90002ee79a8 EFLAGS: 00000283 RAX: 0000000000000000 RBX: 000000000001c0b0 RCX: 0000000000040000 RDX: 000000000000c0b0 RSI: 000000000000cf1b RDI: 000000000000cf1c RBP: 0000000000000000 R08: ffffffff84694cdc R09: ffff88801b300540 R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: 00000000000051c5 R14: dffffc0000000000 R15: ffff88801b88f800 vp_notify+0x53/0x70 drivers/virtio/virtio_pci_common.c:45 virtqueue_notify drivers/virtio/virtio_ring.c:1965 [inline] virtqueue_kick+0x394/0x5b0 drivers/virtio/virtio_ring.c:1988 request_entropy drivers/char/hw_random/virtio-rng.c:63 [inline] copy_data+0x233/0x360 drivers/char/hw_random/virtio-rng.c:74 virtio_read+0x14d/0x200 drivers/char/hw_random/virtio-rng.c:114 rng_get_data drivers/char/hw_random/core.c:196 [inline] rng_dev_read+0x23b/0x6a0 drivers/char/hw_random/core.c:234 do_iter_read+0x4c6/0x760 fs/read_write.c:792 vfs_readv fs/read_write.c:910 [inline] do_preadv+0x211/0x350 fs/read_write.c:1002 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f9ac152eef9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f9abf9ab038 EFLAGS: 00000246 ORIG_RAX: 0000000000000127 RAX: ffffffffffffffda RBX: 00007f9ac16caf80 RCX: 00007f9ac152eef9 RDX: 0000000000000001 RSI: 0000000020000240 RDI: 0000000000000004 RBP: 00007f9ac159c93e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f9ac16caf80 R15: 00007ffd69e762c8 WARNING: CPU: 0 PID: 8855 at mm/maccess.c:226 copy_from_user_nofault+0x15c/0x1c0 Modules linked in: CPU: 0 PID: 8855 Comm: syz.3.1380 Not tainted 5.15.165-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 RIP: 0010:copy_from_user_nofault+0x15c/0x1c0 mm/maccess.c:226 Code: db 48 c7 c0 f2 ff ff ff 48 0f 44 c5 eb 0c e8 2b c8 d5 ff 48 c7 c0 f2 ff ff ff 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 14 c8 d5 ff <0f> 0b e9 1e ff ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c ef fe ff RSP: 0018:ffffc90000007880 EFLAGS: 00010046 RAX: ffffffff81aa998c RBX: 0000000000000000 RCX: ffff88801c233b80 RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000000 RBP: dffffc0000000000 R08: ffffffff81aa989d R09: fffffbfff1f8e219 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000 R13: 0000000000000008 R14: 0000000000000000 R15: ffffc900000078e8 FS: 00007f9abf9ab6c0(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f79bdf455e8 CR3: 0000000069318000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bpf_probe_read_user_common kernel/trace/bpf_trace.c:157 [inline] ____bpf_probe_read_user kernel/trace/bpf_trace.c:166 [inline] bpf_probe_read_user+0x26/0x70 kernel/trace/bpf_trace.c:163 bpf_prog_02073d59a3c0f06f+0x3d/0x3c8 bpf_dispatcher_nop_func include/linux/bpf.h:790 [inline] __bpf_prog_run include/linux/filter.h:628 [inline] bpf_prog_run include/linux/filter.h:635 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:1880 [inline] bpf_trace_run3+0x1d1/0x380 kernel/trace/bpf_trace.c:1918 __traceiter_timer_start+0x79/0xd0 include/trace/events/timer.h:52 trace_timer_start include/trace/events/timer.h:52 [inline] enqueue_timer+0x3ae/0x540 kernel/time/timer.c:586 internal_add_timer kernel/time/timer.c:611 [inline] __mod_timer+0xa60/0xeb0 kernel/time/timer.c:1062 call_timer_fn+0x16d/0x560 kernel/time/timer.c:1451 expire_timers kernel/time/timer.c:1496 [inline] __run_timers+0x67c/0x890 kernel/time/timer.c:1767 handle_softirqs+0x3a7/0x930 kernel/softirq.c:558 __do_softirq kernel/softirq.c:592 [inline] invoke_softirq kernel/softirq.c:432 [inline] __irq_exit_rcu+0x157/0x240 kernel/softirq.c:641 irq_exit_rcu+0x5/0x20 kernel/softirq.c:653 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1096 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638 RIP: 0010:outw arch/x86/include/asm/io.h:335 [inline] RIP: 0010:iowrite16+0x34/0x80 lib/iomap.c:195 Code: 73 fd 48 81 fb 00 00 04 00 72 0a e8 86 6a 73 fd 66 89 2b eb 56 48 81 fb 01 00 01 00 72 0e e8 73 6a 73 fd 0f b7 d3 89 e8 66 ef 3f 8b 2d c4 04 e5 08 31 ff 89 ee e8 bb 6d 73 fd 85 ed 74 27 e8 RSP: 0018:ffffc90002ee79a8 EFLAGS: 00000283 RAX: 0000000000000000 RBX: 000000000001c0b0 RCX: 0000000000040000 RDX: 000000000000c0b0 RSI: 000000000000cf1b RDI: 000000000000cf1c RBP: 0000000000000000 R08: ffffffff84694cdc R09: ffff88801b300540 R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: 00000000000051c5 R14: dffffc0000000000 R15: ffff88801b88f800 vp_notify+0x53/0x70 drivers/virtio/virtio_pci_common.c:45 virtqueue_notify drivers/virtio/virtio_ring.c:1965 [inline] virtqueue_kick+0x394/0x5b0 drivers/virtio/virtio_ring.c:1988 request_entropy drivers/char/hw_random/virtio-rng.c:63 [inline] copy_data+0x233/0x360 drivers/char/hw_random/virtio-rng.c:74 virtio_read+0x14d/0x200 drivers/char/hw_random/virtio-rng.c:114 rng_get_data drivers/char/hw_random/core.c:196 [inline] rng_dev_read+0x23b/0x6a0 drivers/char/hw_random/core.c:234 do_iter_read+0x4c6/0x760 fs/read_write.c:792 vfs_readv fs/read_write.c:910 [inline] do_preadv+0x211/0x350 fs/read_write.c:1002 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f9ac152eef9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f9abf9ab038 EFLAGS: 00000246 ORIG_RAX: 0000000000000127 RAX: ffffffffffffffda RBX: 00007f9ac16caf80 RCX: 00007f9ac152eef9 RDX: 0000000000000001 RSI: 0000000020000240 RDI: 0000000000000004 RBP: 00007f9ac159c93e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f9ac16caf80 R15: 00007ffd69e762c8 ---------------- Code disassembly (best guess): 0: 73 fd jae 0xffffffff 2: 48 81 fb 00 00 04 00 cmp $0x40000,%rbx 9: 72 0a jb 0x15 b: e8 86 6a 73 fd call 0xfd736a96 10: 66 89 2b mov %bp,(%rbx) 13: eb 56 jmp 0x6b 15: 48 81 fb 01 00 01 00 cmp $0x10001,%rbx 1c: 72 0e jb 0x2c 1e: e8 73 6a 73 fd call 0xfd736a96 23: 0f b7 d3 movzwl %bx,%edx 26: 89 e8 mov %ebp,%eax 28: 66 ef out %ax,(%dx) * 2a: eb 3f jmp 0x6b <-- trapping instruction 2c: 8b 2d c4 04 e5 08 mov 0x8e504c4(%rip),%ebp # 0x8e504f6 32: 31 ff xor %edi,%edi 34: 89 ee mov %ebp,%esi 36: e8 bb 6d 73 fd call 0xfd736df6 3b: 85 ed test %ebp,%ebp 3d: 74 27 je 0x66 3f: e8 .byte 0xe8