blob: 892a298daaf05faa8403ddf8f0a7bdaaafca3516 [file] [log] [blame]
// WARNING: ODEBUG bug in del_timer (2)
// https://syzkaller.appspot.com/bug?id=2fdb62c7e5a877d5abda287cca301a44f6941263
// status:fixed
// autogenerated by syzkaller (http://github.com/google/syzkaller)
#define _GNU_SOURCE
#include <endian.h>
#include <stdint.h>
#include <string.h>
#include <sys/syscall.h>
#include <unistd.h>
uint64_t r[1] = {0xffffffffffffffff};
void loop()
{
long res = 0;
res = syscall(__NR_socket, 0x2b, 1, 0);
if (res != -1)
r[0] = res;
syscall(__NR_listen, r[0], 0);
syscall(__NR_shutdown, r[0], 2);
*(uint16_t*)0x20000000 = 0x303;
*(uint16_t*)0x20000002 = 0x33;
syscall(__NR_setsockopt, r[0], 6, 1, 0x20000000, 4);
}
int main()
{
syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0);
loop();
return 0;
}