// https://syzkaller.appspot.com/bug?id=e634bd820c7bd376c401dd05f3ba79fe401f44ec // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #ifndef __NR_io_setup #define __NR_io_setup 245 #endif #ifndef __NR_io_submit #define __NR_io_submit 248 #endif #ifndef __NR_memfd_create #define __NR_memfd_create 356 #endif #ifndef __NR_mmap #define __NR_mmap 192 #endif #undef __NR_mmap #define __NR_mmap __NR_mmap2 uint64_t r[2] = {0xffffffffffffffff, 0x0}; int main(void) { syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0); long res = 0; memcpy((void*)0x20000180, "\006\000\000\000^\000\254\330\375\314\356q\345\365\313\2001`" "\3448\205\244\365\320\033\\\004\f\370F\\\264\272\215\357\022d\356\245" "?\000kZ\213\031h\327|" "\024i\r\030U9\301\327\020\360G\022\250\272a\262\224|%n\036+" "\237\273\270\254\201\215\223q\324\324z\252Z\017\252\307\227#\345g " "l\3255\025\277\374\365\203\2672\000Y\025\222\261\266a\364\351u\262" "\347\354iy\b\333\307\361\207\311\a\221\004J\310\016\377|" "J\'Nxr\000\274\2535\233\205>" "\231\312z2\253KI\334\344\237\245\320\016wm\347\314K\311\213\213E\211" "\003\000\000\000}@Ry\2469^\334\235\240\004\337 " "\aelO7\361\332\314\242x\302\232\365\030F\240\200M\371,+\311\367/" "nt\233a\024\033\030\335\030X\322o\025\227L\346\265\272\307\362W\n\177" "\024ZIL:" "T\033d\031\215E\234\261\271JK\035o\205\351\242\312\234d\b\310\275iQ_" "L\260\271 " "\367/" "F\374\'M#,\204M\272\251\242yr\'?f\tb\332i\375\214\232oj\204\003i\212|" "\367T;=p\242\230f\307\357u=" "\226\313\021\221\316\316\276v\252\273\312\372\243\336\325\037\327\003" ":12\362\375\rN\204=A\256\2333\201\251~" "\267\200\321\342\366\362\270\311\212\253C\342\354\270," "j\341\273\033\037@", 362); res = syscall(__NR_memfd_create, 0x20000180, 3); if (res != -1) r[0] = res; res = syscall(__NR_io_setup, 0x40, 0x200000c0); if (res != -1) r[1] = *(uint32_t*)0x200000c0; *(uint32_t*)0x200003c0 = 0x20000140; *(uint64_t*)0x20000140 = 0; *(uint32_t*)0x20000148 = 0; *(uint32_t*)0x2000014c = 0; *(uint16_t*)0x20000150 = 5; *(uint16_t*)0x20000152 = 0; *(uint32_t*)0x20000154 = r[0]; *(uint64_t*)0x20000158 = 0; *(uint64_t*)0x20000160 = 0; *(uint64_t*)0x20000168 = 0; *(uint64_t*)0x20000170 = 0; *(uint32_t*)0x20000178 = 0; *(uint32_t*)0x2000017c = -1; syscall(__NR_io_submit, (long)r[1], 0x20000258, 0x200003c0); return 0; }