blob: 0b7909aad5621651d4489f5ceff444e0ea1fb11c [file] [log] [blame]
// possible deadlock in rhashtable_lookup_insert_fast
// https://syzkaller.appspot.com/bug?id=b0d76c56c390a6eb048b1b839523fb4fbc3d4ce0
// status:fixed
// 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()
{
syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0);
long res = 0;
res = syscall(__NR_socket, 0x10, 3, 0x10);
if (res != -1)
r[0] = res;
*(uint64_t*)0x20000080 = 0x20000000;
*(uint16_t*)0x20000000 = 0x10;
*(uint16_t*)0x20000002 = 0;
*(uint32_t*)0x20000004 = 0;
*(uint32_t*)0x20000008 = 0;
*(uint32_t*)0x20000088 = 0xc;
*(uint64_t*)0x20000090 = 0x200016c0;
*(uint64_t*)0x200016c0 = 0x20002d00;
*(uint32_t*)0x20002d00 = 0x1c;
*(uint16_t*)0x20002d04 = 0x26;
*(uint16_t*)0x20002d06 = 1;
*(uint32_t*)0x20002d08 = 0;
*(uint32_t*)0x20002d0c = 0;
*(uint8_t*)0x20002d10 = 1;
*(uint8_t*)0x20002d11 = 0;
*(uint16_t*)0x20002d12 = 0;
*(uint16_t*)0x20002d14 = 8;
*(uint16_t*)0x20002d16 = 8;
*(uint32_t*)0x20002d18 = 0;
*(uint64_t*)0x200016c8 = 0x1c;
*(uint64_t*)0x20000098 = 1;
*(uint64_t*)0x200000a0 = 0;
*(uint64_t*)0x200000a8 = 0;
*(uint32_t*)0x200000b0 = 0;
syscall(__NR_sendmsg, r[0], 0x20000080, 0);
return 0;
}