blob: 896327b6a06eb7cecc62ebd9ccdf29295445b136 [file] [log] [blame]
// WARNING in packet_set_ring
// https://syzkaller.appspot.com/bug?id=1b1bd1b31a9f21b879865fb897133769e2de8a33
// status:open
// autogenerated by syzkaller (https://github.com/google/syzkaller)
#define _GNU_SOURCE
#include <endian.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <unistd.h>
uint64_t r[1] = {0xffffffffffffffff};
int main(void)
{
syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0);
long res = 0;
res = syscall(__NR_socket, 0x11, 3, 0x300);
if (res != -1)
r[0] = res;
*(uint32_t*)0x20000000 = 2;
syscall(__NR_setsockopt, r[0], 0x107, 0xa, 0x20000000, 4);
*(uint32_t*)0x200000c0 = 0x10000;
*(uint32_t*)0x200000c4 = 1;
*(uint32_t*)0x200000c8 = 0x10000;
*(uint32_t*)0x200000cc = 1;
*(uint32_t*)0x200000d0 = 0;
*(uint32_t*)0x200000d4 = 0;
*(uint32_t*)0x200000d8 = 0;
syscall(__NR_setsockopt, r[0], 0x107, 0xd, 0x200000c0, 0x1c);
return 0;
}