b19062a56726.c 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #include "../config-host.h"
  2. /* SPDX-License-Identifier: MIT */
  3. // autogenerated by syzkaller (https://github.com/google/syzkaller)
  4. #include <endian.h>
  5. #include <stdint.h>
  6. #include <stdio.h>
  7. #include <stdlib.h>
  8. #include <string.h>
  9. #include <sys/types.h>
  10. #include <sys/mman.h>
  11. #include <unistd.h>
  12. #include "liburing.h"
  13. #include "helpers.h"
  14. #include "../src/syscall.h"
  15. int main(int argc, char *argv[])
  16. {
  17. if (argc > 1)
  18. return T_EXIT_SKIP;
  19. mmap((void *) 0x20000000, 0x1000000, 3, MAP_ANON|MAP_PRIVATE, -1, 0);
  20. *(uint32_t*)0x20000200 = 0;
  21. *(uint32_t*)0x20000204 = 0;
  22. *(uint32_t*)0x20000208 = 5;
  23. *(uint32_t*)0x2000020c = 0x400;
  24. *(uint32_t*)0x20000210 = 0;
  25. *(uint32_t*)0x20000214 = 0;
  26. *(uint32_t*)0x20000218 = 0;
  27. *(uint32_t*)0x2000021c = 0;
  28. *(uint32_t*)0x20000220 = 0;
  29. *(uint32_t*)0x20000224 = 0;
  30. *(uint32_t*)0x20000228 = 0;
  31. *(uint32_t*)0x2000022c = 0;
  32. *(uint32_t*)0x20000230 = 0;
  33. *(uint32_t*)0x20000234 = 0;
  34. *(uint32_t*)0x20000238 = 0;
  35. *(uint32_t*)0x2000023c = 0;
  36. *(uint32_t*)0x20000240 = 0;
  37. *(uint32_t*)0x20000244 = 0;
  38. *(uint64_t*)0x20000248 = 0;
  39. *(uint32_t*)0x20000250 = 0;
  40. *(uint32_t*)0x20000254 = 0;
  41. *(uint32_t*)0x20000258 = 0;
  42. *(uint32_t*)0x2000025c = 0;
  43. *(uint32_t*)0x20000260 = 0;
  44. *(uint32_t*)0x20000264 = 0;
  45. *(uint32_t*)0x20000268 = 0;
  46. *(uint32_t*)0x2000026c = 0;
  47. *(uint64_t*)0x20000270 = 0;
  48. __sys_io_uring_setup(0xc9f, (struct io_uring_params *) 0x20000200);
  49. return T_EXIT_PASS;
  50. }