diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-02-18 08:45:09 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-02-18 10:31:02 +0100 |
| commit | 105edea6a39c242eef7a02d92d84497966e7c81b (patch) | |
| tree | 1acfab31e2f9679d7dc89145a92b4a1f236b2e84 /sys/linux/test | |
| parent | 39cd0f85a1ac60b88c793bd8f4a981227614da88 (diff) | |
sys/linux: fix udp test
Fix the packet injection in udp test.
Now we know how to do it!
And without IFF_NAPI_FRAGS it actually reaches the socket.
Update #1594
Diffstat (limited to 'sys/linux/test')
| -rw-r--r-- | sys/linux/test/udp2 | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/linux/test/udp2 b/sys/linux/test/udp2 index 066df23f8..a0247700f 100644 --- a/sys/linux/test/udp2 +++ b/sys/linux/test/udp2 @@ -1,8 +1,6 @@ -# 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. +# This creates a UDP socket and injects a packet to the socket. 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) +syz_emit_ethernet(AUTO, &AUTO={@local, @empty, @void, {@ipv4={AUTO, @udp={{AUTO, AUTO, 0x0, 0x0, AUTO, 0x0, 0x0, 0x0, AUTO, 0x0, @empty, @empty, {[]}}, {0x0, 0x4e20, AUTO, 0x0, [], ""/10}}}}}, 0x0) +recvfrom(r0, &AUTO=""/10, AUTO, 0x0, 0x0, 0x0) |
