------------[ cut here ]------------ WARNING: CPU: 0 PID: 7 at mm/maccess.c:226 copy_from_user_nofault+0x15c/0x1c0 Modules linked in: CPU: 0 PID: 7 Comm: kworker/0:0 Not tainted 5.15.173-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 Workqueue: events nsim_dev_trap_report_work 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 cb c6 d5 ff 48 c7 c0 f2 ff ff ff 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 b4 c6 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: 0000:ffffc900000078c8 EFLAGS: 00010246 RAX: ffffffff81aaacec RBX: 0000000000000000 RCX: ffff888017293b80 RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000000 RBP: dffffc0000000000 R08: ffffffff81aaabfd R09: ffffed1002e52771 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: ffffc90000007948 FS: 0000000000000000(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b30a19ff8 CR3: 00000000639ea000 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_compat kernel/trace/bpf_trace.c:281 [inline] bpf_probe_read_compat+0xe4/0x180 kernel/trace/bpf_trace.c:277 bpf_prog_03eebc38237b138e+0x34/0xc58 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:1878 [inline] bpf_trace_run2+0x19e/0x340 kernel/trace/bpf_trace.c:1915 __bpf_trace_kfree+0x6e/0x90 include/trace/events/kmem.h:118 trace_kfree include/trace/events/kmem.h:118 [inline] kfree+0x22f/0x270 mm/slub.c:4549 skb_free_head net/core/skbuff.c:655 [inline] skb_release_data+0x73a/0x8a0 net/core/skbuff.c:677 skb_release_all net/core/skbuff.c:742 [inline] __kfree_skb net/core/skbuff.c:756 [inline] consume_skb+0xa3/0x140 net/core/skbuff.c:914 mac80211_hwsim_beacon_tx+0x48f/0x8a0 drivers/net/wireless/mac80211_hwsim.c:1842 __iterate_interfaces+0x21e/0x4b0 net/mac80211/util.c:793 ieee80211_iterate_active_interfaces_atomic+0xaf/0x140 net/mac80211/util.c:829 mac80211_hwsim_beacon+0xa7/0x180 drivers/net/wireless/mac80211_hwsim.c:1865 __run_hrtimer kernel/time/hrtimer.c:1688 [inline] __hrtimer_run_queues+0x598/0xcf0 kernel/time/hrtimer.c:1752 hrtimer_run_softirq+0x196/0x2c0 kernel/time/hrtimer.c:1769 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 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline] sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1108 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676 RIP: 0010:crng_make_state+0x530/0x690 drivers/char/random.c:393 Code: 42 bf 05 e9 38 fd ff ff e8 1d b0 01 fd e8 58 ab b5 05 4d 85 e4 0f 84 ff fe ff ff e8 0a b0 01 fd fb 48 c7 44 24 40 0e 36 e0 45 <43> c7 44 3d 00 00 00 00 00 4b c7 44 3d 0c 00 00 00 00 66 43 c7 44 RSP: 0000:ffffc90000cc78c0 EFLAGS: 00000293 RAX: ffffffff847ec396 RBX: 0000000000000000 RCX: ffff888017293b80 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90000cc7a10 R08: ffffffff847ec279 R09: fffffbfff20ec840 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000200 R13: dffffc0000000000 R14: 0000000000000046 R15: 1ffff92000198f20 _get_random_bytes+0xd3/0x2b0 drivers/char/random.c:405 nsim_dev_trap_skb_build drivers/net/netdevsim/dev.c:691 [inline] nsim_dev_trap_report drivers/net/netdevsim/dev.c:721 [inline] nsim_dev_trap_report_work+0x64e/0xab0 drivers/net/netdevsim/dev.c:762 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 ---------------- Code disassembly (best guess), 3 bytes skipped: 0: e9 38 fd ff ff jmp 0xfffffd3d 5: e8 1d b0 01 fd call 0xfd01b027 a: e8 58 ab b5 05 call 0x5b5ab67 f: 4d 85 e4 test %r12,%r12 12: 0f 84 ff fe ff ff je 0xffffff17 18: e8 0a b0 01 fd call 0xfd01b027 1d: fb sti 1e: 48 c7 44 24 40 0e 36 movq $0x45e0360e,0x40(%rsp) 25: e0 45 * 27: 43 c7 44 3d 00 00 00 movl $0x0,0x0(%r13,%r15,1) <-- trapping instruction 2e: 00 00 30: 4b c7 44 3d 0c 00 00 movq $0x0,0xc(%r13,%r15,1) 37: 00 00 39: 66 data16 3a: 43 rex.XB 3b: c7 .byte 0xc7 3c: 44 rex.R