mirror of
https://github.com/reactos/syzkaller.git
synced 2025-02-20 03:21:26 +00:00
parent
18847f55bb
commit
d9e55b056e
7
sys/linux/test/udp
Normal file
7
sys/linux/test/udp
Normal file
@ -0,0 +1,7 @@
|
||||
# This simply creates 2 UDP sockets and sends a packet between them.
|
||||
|
||||
r0 = socket$inet_udp(AUTO, AUTO, AUTO)
|
||||
bind$inet(r0, &AUTO={AUTO, 0x4e20, @empty}, AUTO)
|
||||
r1 = socket$inet_udp(AUTO, AUTO, AUTO)
|
||||
sendto$inet(r1, &AUTO=""/10, AUTO, 0x0, &AUTO={AUTO, 0x4e20, @empty}, AUTO)
|
||||
recvfrom(r0, &AUTO=""/10, AUTO, 0x0, 0x0, 0x0)
|
8
sys/linux/test/udp2
Normal file
8
sys/linux/test/udp2
Normal file
@ -0,0 +1,8 @@
|
||||
# This creates a UDP socket and tries to inject a packet to the socket.
|
||||
# The injection is currently wrong (or we miss some setup in executor, or something else),
|
||||
# so the recvfrom is disabled for now. But we need to get it working.
|
||||
|
||||
r0 = socket$inet_udp(AUTO, AUTO, AUTO)
|
||||
bind$inet(r0, &AUTO={AUTO, 0x4e20, @empty}, AUTO)
|
||||
syz_emit_ethernet(AUTO, &AUTO={@empty, @empty, @void, {@ipv4={AUTO, @udp={{AUTO, AUTO, 0x0, 0x0, AUTO, 0x64, 0x0, 0x1, AUTO, 0x0, @empty, @empty, {[]}}, {0x4e21, 0x4e20, AUTO, 0x0, [], ""/10}}}}}, 0x0)
|
||||
#recvfrom(r0, &AUTO=""/10, AUTO, 0x0, 0x0, 0x0)
|
Loading…
x
Reference in New Issue
Block a user