// https://syzkaller.appspot.com/bug?id=2c2730c5bfc930926519b6ca5edd1c5052e84418 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #include #include #include #include #include #include static void sleep_ms(uint64_t ms) { usleep(ms * 1000); } static uint64_t current_time_ms(void) { struct timespec ts; if (clock_gettime(CLOCK_MONOTONIC, &ts)) exit(1); return (uint64_t)ts.tv_sec * 1000 + (uint64_t)ts.tv_nsec / 1000000; } static void thread_start(void* (*fn)(void*), void* arg) { pthread_t th; pthread_attr_t attr; pthread_attr_init(&attr); pthread_attr_setstacksize(&attr, 128 << 10); int i = 0; for (; i < 100; i++) { if (pthread_create(&th, &attr, fn, arg) == 0) { pthread_attr_destroy(&attr); return; } if (errno == EAGAIN) { usleep(50); continue; } break; } exit(1); } typedef struct { int state; } event_t; static void event_init(event_t* ev) { ev->state = 0; } static void event_reset(event_t* ev) { ev->state = 0; } static void event_set(event_t* ev) { if (ev->state) exit(1); __atomic_store_n(&ev->state, 1, __ATOMIC_RELEASE); syscall(SYS_futex, &ev->state, FUTEX_WAKE | FUTEX_PRIVATE_FLAG, 1000000); } static void event_wait(event_t* ev) { while (!__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE)) syscall(SYS_futex, &ev->state, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, 0, 0); } static int event_isset(event_t* ev) { return __atomic_load_n(&ev->state, __ATOMIC_ACQUIRE); } static int event_timedwait(event_t* ev, uint64_t timeout) { uint64_t start = current_time_ms(); uint64_t now = start; for (;;) { uint64_t remain = timeout - (now - start); struct timespec ts; ts.tv_sec = remain / 1000; ts.tv_nsec = (remain % 1000) * 1000 * 1000; syscall(SYS_futex, &ev->state, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, 0, &ts); if (__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE)) return 1; now = current_time_ms(); if (now - start > timeout) return 0; } } static long syz_open_dev(volatile long a0, volatile long a1, volatile long a2) { if (a0 == 0xc || a0 == 0xb) { char buf[128]; sprintf(buf, "/dev/%s/%d:%d", a0 == 0xc ? "char" : "block", (uint8_t)a1, (uint8_t)a2); return open(buf, O_RDWR, 0); } else { char buf[1024]; char* hash; strncpy(buf, (char*)a0, sizeof(buf) - 1); buf[sizeof(buf) - 1] = 0; while ((hash = strchr(buf, '#'))) { *hash = '0' + (char)(a1 % 10); a1 /= 10; } return open(buf, a2, 0); } } struct thread_t { int created, call; event_t ready, done; }; static struct thread_t threads[16]; static void execute_call(int call); static int running; static void* thr(void* arg) { struct thread_t* th = (struct thread_t*)arg; for (;;) { event_wait(&th->ready); event_reset(&th->ready); execute_call(th->call); __atomic_fetch_sub(&running, 1, __ATOMIC_RELAXED); event_set(&th->done); } return 0; } static void loop(void) { int i, call, thread; for (call = 0; call < 10; call++) { for (thread = 0; thread < (int)(sizeof(threads) / sizeof(threads[0])); thread++) { struct thread_t* th = &threads[thread]; if (!th->created) { th->created = 1; event_init(&th->ready); event_init(&th->done); event_set(&th->done); thread_start(thr, th); } if (!event_isset(&th->done)) continue; event_reset(&th->done); th->call = call; __atomic_fetch_add(&running, 1, __ATOMIC_RELAXED); event_set(&th->ready); event_timedwait(&th->done, 50); break; } } for (i = 0; i < 100 && __atomic_load_n(&running, __ATOMIC_RELAXED); i++) sleep_ms(1); } uint64_t r[4] = {0xffffffffffffffff, 0x0, 0xffffffffffffffff, 0xffffffffffffffff}; void execute_call(int call) { intptr_t res = 0; switch (call) { case 0: memcpy((void*)0x20000200, "./file0\000", 8); res = syscall(__NR_open, /*file=*/0x20000200ul, /*flags=O_LARGEFILE|O_CREAT|0x4000000*/ 0x4008040ul, /*mode=*/0ul); if (res != -1) r[0] = res; break; case 1: res = syscall(__NR_gettid); if (res != -1) r[1] = res; break; case 2: *(uint32_t*)0x20000080 = 2; *(uint32_t*)0x20000084 = r[1]; syscall(__NR_fcntl, /*fd=*/r[0], /*cmd=*/0xful, /*arg=*/0x20000080ul); break; case 3: syscall(__NR_fcntl, /*fd=*/r[0], /*cmd=*/0x400ul, /*typ=F_WRLCK*/ 1ul); break; case 4: memcpy((void*)0x20000140, "./file0\000", 8); syscall(__NR_open, /*file=*/0x20000140ul, /*flags=*/0ul, /*mode=*/0ul); break; case 5: memcpy((void*)0x20000800, "/dev/input/event#\000", 18); res = -1; res = syz_open_dev(/*dev=*/0x20000800, /*id=*/0, /*flags=*/0); if (res != -1) r[2] = res; break; case 6: *(uint32_t*)0x20000100 = 1; *(uint32_t*)0x20000104 = 0xfffffdbd; *(uint64_t*)0x20000108 = 0; syscall(__NR_ioctl, /*fd=*/r[2], /*cmd=*/0x5452, /*arg=*/0x20000100ul); break; case 7: *(uint32_t*)0x20001100 = 0; *(uint32_t*)0x20001104 = 0; *(uint32_t*)0x20001108 = 0; *(uint32_t*)0x2000110c = 0; *(uint32_t*)0x20001110 = 0x2000000; *(uint32_t*)0x20001114 = 0; *(uint32_t*)0x20001118 = 0; *(uint32_t*)0x2000111c = 0; *(uint32_t*)0x20001120 = 0; *(uint32_t*)0x20001124 = 0; *(uint32_t*)0x20001128 = 0; *(uint32_t*)0x2000112c = 0; *(uint32_t*)0x20001130 = 0; *(uint32_t*)0x20001134 = 0; *(uint32_t*)0x20001138 = 0; *(uint32_t*)0x2000113c = 0; *(uint32_t*)0x20001140 = 0; *(uint32_t*)0x20001144 = 0; *(uint32_t*)0x20001148 = 0; *(uint32_t*)0x2000114c = 0; *(uint32_t*)0x20001150 = 0; *(uint32_t*)0x20001154 = 0; *(uint32_t*)0x20001158 = 0; *(uint32_t*)0x2000115c = 0; *(uint32_t*)0x20001160 = 0x8000; *(uint32_t*)0x20001164 = 0; *(uint32_t*)0x20001168 = 0; *(uint32_t*)0x2000116c = 0; *(uint32_t*)0x20001170 = 0; *(uint32_t*)0x20001174 = 0; *(uint32_t*)0x20001178 = 0; *(uint32_t*)0x2000117c = 0; *(uint32_t*)0x20001180 = 0; *(uint32_t*)0x20001184 = 0; *(uint32_t*)0x20001188 = 0; *(uint32_t*)0x2000118c = 0; *(uint32_t*)0x20001190 = 0; *(uint32_t*)0x20001194 = 0; *(uint32_t*)0x20001198 = 0xfffffffd; *(uint32_t*)0x2000119c = 0x100000; *(uint32_t*)0x200011a0 = 0; *(uint32_t*)0x200011a4 = 0; *(uint32_t*)0x200011a8 = 0; *(uint32_t*)0x200011ac = 0; *(uint32_t*)0x200011b0 = 0; *(uint32_t*)0x200011b4 = 0; *(uint32_t*)0x200011b8 = 0; *(uint32_t*)0x200011bc = 0; *(uint32_t*)0x200011c0 = 0; *(uint32_t*)0x200011c4 = 0; *(uint32_t*)0x200011c8 = 0; *(uint32_t*)0x200011cc = 0; *(uint32_t*)0x200011d0 = 0; *(uint32_t*)0x200011d4 = 0; *(uint32_t*)0x200011d8 = 0; *(uint32_t*)0x200011dc = 0; *(uint32_t*)0x200011e0 = 0; *(uint32_t*)0x200011e4 = 0; *(uint32_t*)0x200011e8 = 0; *(uint32_t*)0x200011ec = 0; *(uint32_t*)0x200011f0 = 0xfffffffe; *(uint32_t*)0x200011f4 = 0; *(uint32_t*)0x200011f8 = 0; *(uint32_t*)0x200011fc = 0; *(uint32_t*)0x20001200 = 0; *(uint32_t*)0x20001204 = 0; *(uint32_t*)0x20001208 = 0; *(uint32_t*)0x2000120c = 0; *(uint32_t*)0x20001210 = 0; *(uint32_t*)0x20001214 = 0; *(uint32_t*)0x20001218 = 0; *(uint32_t*)0x2000121c = 0; *(uint32_t*)0x20001220 = 0; *(uint32_t*)0x20001224 = 0; *(uint32_t*)0x20001228 = 0; *(uint32_t*)0x2000122c = 0; *(uint32_t*)0x20001230 = 0; *(uint32_t*)0x20001234 = 0; *(uint32_t*)0x20001238 = 0; *(uint32_t*)0x2000123c = 0; *(uint32_t*)0x20001240 = 0; *(uint32_t*)0x20001244 = 0; *(uint32_t*)0x20001248 = 0; *(uint32_t*)0x2000124c = 0; *(uint32_t*)0x20001250 = 0; *(uint32_t*)0x20001254 = 0; *(uint32_t*)0x20001258 = 0; *(uint32_t*)0x2000125c = 0; *(uint32_t*)0x20001260 = 0; *(uint32_t*)0x20001264 = 0; *(uint32_t*)0x20001268 = 0; *(uint32_t*)0x2000126c = 0; *(uint32_t*)0x20001270 = 0; *(uint32_t*)0x20001274 = 0; *(uint32_t*)0x20001278 = 0; *(uint32_t*)0x2000127c = 0; *(uint32_t*)0x20001280 = 0; *(uint32_t*)0x20001284 = 0; *(uint32_t*)0x20001288 = 0; *(uint32_t*)0x2000128c = 0; *(uint32_t*)0x20001290 = 0; *(uint32_t*)0x20001294 = 0; *(uint32_t*)0x20001298 = 0; *(uint32_t*)0x2000129c = 0; *(uint32_t*)0x200012a0 = 0; *(uint32_t*)0x200012a4 = 0; *(uint32_t*)0x200012a8 = 0; *(uint32_t*)0x200012ac = 0; *(uint32_t*)0x200012b0 = 0; *(uint32_t*)0x200012b4 = 0; *(uint32_t*)0x200012b8 = 0; *(uint32_t*)0x200012bc = 0; *(uint32_t*)0x200012c0 = 0; *(uint32_t*)0x200012c4 = 0; *(uint32_t*)0x200012c8 = 0; *(uint32_t*)0x200012cc = 0; *(uint32_t*)0x200012d0 = 0; *(uint32_t*)0x200012d4 = 0; *(uint32_t*)0x200012d8 = 0; *(uint32_t*)0x200012dc = 0; *(uint32_t*)0x200012e0 = 0; *(uint32_t*)0x200012e4 = 0; *(uint32_t*)0x200012e8 = 0; *(uint32_t*)0x200012ec = 0; *(uint32_t*)0x200012f0 = 0; *(uint32_t*)0x200012f4 = 0; *(uint32_t*)0x200012f8 = 0; *(uint32_t*)0x200012fc = 0; *(uint32_t*)0x20001300 = 0; *(uint32_t*)0x20001304 = 0; *(uint32_t*)0x20001308 = 0; *(uint32_t*)0x2000130c = 0; *(uint32_t*)0x20001310 = 0; *(uint32_t*)0x20001314 = 0; *(uint32_t*)0x20001318 = 0; *(uint32_t*)0x2000131c = 0; *(uint32_t*)0x20001320 = 0; *(uint32_t*)0x20001324 = 0; *(uint32_t*)0x20001328 = 0; *(uint32_t*)0x2000132c = 0; *(uint32_t*)0x20001330 = 0; *(uint32_t*)0x20001334 = 0; *(uint32_t*)0x20001338 = 0; *(uint32_t*)0x2000133c = 0; *(uint32_t*)0x20001340 = 0; *(uint32_t*)0x20001344 = 0; *(uint32_t*)0x20001348 = 0; *(uint32_t*)0x2000134c = 0; *(uint32_t*)0x20001350 = 0; *(uint32_t*)0x20001354 = 0; *(uint32_t*)0x20001358 = 0; *(uint32_t*)0x2000135c = 0; *(uint32_t*)0x20001360 = 0; *(uint32_t*)0x20001364 = 0; *(uint32_t*)0x20001368 = 0; *(uint32_t*)0x2000136c = 0; *(uint32_t*)0x20001370 = 0; *(uint32_t*)0x20001374 = 0; *(uint32_t*)0x20001378 = 0; *(uint32_t*)0x2000137c = 0; *(uint32_t*)0x20001380 = 0; *(uint32_t*)0x20001384 = 0; *(uint32_t*)0x20001388 = 0; *(uint32_t*)0x2000138c = 0; *(uint32_t*)0x20001390 = 0; *(uint32_t*)0x20001394 = 0; *(uint32_t*)0x20001398 = 0; *(uint32_t*)0x2000139c = 0; *(uint32_t*)0x200013a0 = 0; *(uint32_t*)0x200013a4 = 0; *(uint32_t*)0x200013a8 = 0; *(uint32_t*)0x200013ac = 0; *(uint32_t*)0x200013b0 = 0; *(uint32_t*)0x200013b4 = 0; *(uint32_t*)0x200013b8 = 0; *(uint32_t*)0x200013bc = 0; *(uint32_t*)0x200013c0 = 0; *(uint32_t*)0x200013c4 = 0; *(uint32_t*)0x200013c8 = 0; *(uint32_t*)0x200013cc = 0; *(uint32_t*)0x200013d0 = 0; *(uint32_t*)0x200013d4 = 0; *(uint32_t*)0x200013d8 = 0; *(uint32_t*)0x200013dc = 0; *(uint32_t*)0x200013e0 = 0; *(uint32_t*)0x200013e4 = 0; *(uint32_t*)0x200013e8 = 0; *(uint32_t*)0x200013ec = 0; *(uint32_t*)0x200013f0 = 0; *(uint32_t*)0x200013f4 = 0; *(uint32_t*)0x200013f8 = 0; *(uint32_t*)0x200013fc = 0; *(uint32_t*)0x20001400 = 0; *(uint32_t*)0x20001404 = 0; *(uint32_t*)0x20001408 = 0; *(uint32_t*)0x2000140c = 0; *(uint32_t*)0x20001410 = 0; *(uint32_t*)0x20001414 = 0; *(uint32_t*)0x20001418 = 0; *(uint32_t*)0x2000141c = 0; *(uint32_t*)0x20001420 = 0; *(uint32_t*)0x20001424 = 0; *(uint32_t*)0x20001428 = 0; *(uint32_t*)0x2000142c = 0; *(uint32_t*)0x20001430 = 0; *(uint32_t*)0x20001434 = 0; *(uint32_t*)0x20001438 = 0; *(uint32_t*)0x2000143c = 0; *(uint32_t*)0x20001440 = 0; *(uint32_t*)0x20001444 = 0; *(uint32_t*)0x20001448 = 0; *(uint32_t*)0x2000144c = 0; *(uint32_t*)0x20001450 = 0; *(uint32_t*)0x20001454 = 0; *(uint32_t*)0x20001458 = 0; *(uint32_t*)0x2000145c = 0; *(uint32_t*)0x20001460 = 0; *(uint32_t*)0x20001464 = 0; *(uint32_t*)0x20001468 = 0; *(uint32_t*)0x2000146c = 0; *(uint32_t*)0x20001470 = 0; *(uint32_t*)0x20001474 = 0; *(uint32_t*)0x20001478 = 0; *(uint32_t*)0x2000147c = 0; *(uint32_t*)0x20001480 = 0; *(uint32_t*)0x20001484 = 0; *(uint32_t*)0x20001488 = 0xffff; *(uint32_t*)0x2000148c = 0; *(uint32_t*)0x20001490 = 0; *(uint32_t*)0x20001494 = 0; *(uint32_t*)0x20001498 = 0; *(uint32_t*)0x2000149c = 0; *(uint32_t*)0x200014a0 = 0; *(uint32_t*)0x200014a4 = 0; *(uint32_t*)0x200014a8 = 0; *(uint32_t*)0x200014ac = 0; *(uint32_t*)0x200014b0 = 0; *(uint32_t*)0x200014b4 = 0; *(uint32_t*)0x200014b8 = 0; *(uint32_t*)0x200014bc = 0; *(uint32_t*)0x200014c0 = 0; *(uint32_t*)0x200014c4 = 0; *(uint32_t*)0x200014c8 = 0; *(uint32_t*)0x200014cc = 0; *(uint32_t*)0x200014d0 = 0; *(uint32_t*)0x200014d4 = 0; *(uint32_t*)0x200014d8 = 0; *(uint32_t*)0x200014dc = 0; *(uint32_t*)0x200014e0 = 0; *(uint32_t*)0x200014e4 = 0; *(uint32_t*)0x200014e8 = 0; *(uint32_t*)0x200014ec = 0; *(uint32_t*)0x200014f0 = 0; *(uint32_t*)0x200014f4 = 0; *(uint32_t*)0x200014f8 = 0; *(uint32_t*)0x200014fc = 0; *(uint32_t*)0x20001500 = 0; *(uint32_t*)0x20001504 = 0; *(uint32_t*)0x20001508 = 0; *(uint32_t*)0x2000150c = 0; *(uint32_t*)0x20001510 = 0; *(uint32_t*)0x20001514 = 0; *(uint32_t*)0x20001518 = 0; *(uint32_t*)0x2000151c = 0; *(uint32_t*)0x20001520 = 0; *(uint32_t*)0x20001524 = 0; *(uint32_t*)0x20001528 = 0; *(uint32_t*)0x2000152c = 0; *(uint32_t*)0x20001530 = 0; *(uint32_t*)0x20001534 = 0; *(uint32_t*)0x20001538 = 0; *(uint32_t*)0x2000153c = 0; *(uint32_t*)0x20001540 = 0; *(uint32_t*)0x20001544 = 0; *(uint32_t*)0x20001548 = 0; *(uint32_t*)0x2000154c = 0; *(uint32_t*)0x20001550 = 0; *(uint32_t*)0x20001554 = 0; *(uint32_t*)0x20001558 = 0; *(uint32_t*)0x2000155c = 0; *(uint32_t*)0x20001560 = 0; *(uint32_t*)0x20001564 = 0; *(uint32_t*)0x20001568 = 0; *(uint32_t*)0x2000156c = 0; *(uint32_t*)0x20001570 = 0; *(uint32_t*)0x20001574 = 0; *(uint32_t*)0x20001578 = 0; *(uint32_t*)0x2000157c = 0; *(uint32_t*)0x20001580 = 0; *(uint32_t*)0x20001584 = 0; *(uint32_t*)0x20001588 = 0; *(uint32_t*)0x2000158c = 0; *(uint32_t*)0x20001590 = 0; *(uint32_t*)0x20001594 = 0; *(uint32_t*)0x20001598 = 0; *(uint32_t*)0x2000159c = 0; *(uint32_t*)0x200015a0 = 0; *(uint32_t*)0x200015a4 = 0; *(uint32_t*)0x200015a8 = 0; *(uint32_t*)0x200015ac = 0; *(uint32_t*)0x200015b0 = 0; *(uint32_t*)0x200015b4 = 0; *(uint32_t*)0x200015b8 = 0; *(uint32_t*)0x200015bc = 0; *(uint32_t*)0x200015c0 = 0; *(uint32_t*)0x200015c4 = 0; *(uint32_t*)0x200015c8 = 0; *(uint32_t*)0x200015cc = 0; *(uint32_t*)0x200015d0 = 0; *(uint32_t*)0x200015d4 = 0; *(uint32_t*)0x200015d8 = 0; *(uint32_t*)0x200015dc = 0; *(uint32_t*)0x200015e0 = 0; *(uint32_t*)0x200015e4 = 0; *(uint32_t*)0x200015e8 = 0; *(uint32_t*)0x200015ec = 0; *(uint32_t*)0x200015f0 = 0; *(uint32_t*)0x200015f4 = 0; *(uint32_t*)0x200015f8 = 0; *(uint32_t*)0x200015fc = 0; *(uint32_t*)0x20001600 = 0; *(uint32_t*)0x20001604 = 0; *(uint32_t*)0x20001608 = 0; *(uint32_t*)0x2000160c = 0; *(uint32_t*)0x20001610 = 0; *(uint32_t*)0x20001614 = 0; *(uint32_t*)0x20001618 = 0; *(uint32_t*)0x2000161c = 0; *(uint32_t*)0x20001620 = 0; *(uint32_t*)0x20001624 = 0; *(uint32_t*)0x20001628 = 0; *(uint32_t*)0x2000162c = 0; *(uint32_t*)0x20001630 = 0; *(uint32_t*)0x20001634 = 0; *(uint32_t*)0x20001638 = 0; *(uint32_t*)0x2000163c = 0; *(uint32_t*)0x20001640 = 0; *(uint32_t*)0x20001644 = 0; *(uint32_t*)0x20001648 = 0; *(uint32_t*)0x2000164c = 0; *(uint32_t*)0x20001650 = 0; *(uint32_t*)0x20001654 = 0; *(uint32_t*)0x20001658 = 0; *(uint32_t*)0x2000165c = 0; *(uint32_t*)0x20001660 = 0; *(uint32_t*)0x20001664 = 0; *(uint32_t*)0x20001668 = 0; *(uint32_t*)0x2000166c = 0; *(uint32_t*)0x20001670 = 0; *(uint32_t*)0x20001674 = 0; *(uint32_t*)0x20001678 = 0; *(uint32_t*)0x2000167c = 0; *(uint32_t*)0x20001680 = 0; *(uint32_t*)0x20001684 = 0; *(uint32_t*)0x20001688 = 0; *(uint32_t*)0x2000168c = 0; *(uint32_t*)0x20001690 = 0; *(uint32_t*)0x20001694 = 0; *(uint32_t*)0x20001698 = 0; *(uint32_t*)0x2000169c = 0; *(uint32_t*)0x200016a0 = 0; *(uint32_t*)0x200016a4 = 0; *(uint32_t*)0x200016a8 = 0; *(uint32_t*)0x200016ac = 0; *(uint32_t*)0x200016b0 = 0; *(uint32_t*)0x200016b4 = 0; *(uint32_t*)0x200016b8 = 0; *(uint32_t*)0x200016bc = 0; *(uint32_t*)0x200016c0 = 0; *(uint32_t*)0x200016c4 = 0; *(uint32_t*)0x200016c8 = 0; *(uint32_t*)0x200016cc = 0; *(uint32_t*)0x200016d0 = 0; *(uint32_t*)0x200016d4 = 0; *(uint32_t*)0x200016d8 = 0; *(uint32_t*)0x200016dc = 0; *(uint32_t*)0x200016e0 = 0; *(uint32_t*)0x200016e4 = 0; *(uint32_t*)0x200016e8 = 0; *(uint32_t*)0x200016ec = 0; *(uint32_t*)0x200016f0 = 0; *(uint32_t*)0x200016f4 = 0; *(uint32_t*)0x200016f8 = 0; *(uint32_t*)0x200016fc = 0; *(uint32_t*)0x20001700 = 0; *(uint32_t*)0x20001704 = 0; *(uint32_t*)0x20001708 = 0; *(uint32_t*)0x2000170c = 0; *(uint32_t*)0x20001710 = 0; *(uint32_t*)0x20001714 = 0; *(uint32_t*)0x20001718 = 0; *(uint32_t*)0x2000171c = 0; *(uint32_t*)0x20001720 = 0; *(uint32_t*)0x20001724 = 0; *(uint32_t*)0x20001728 = 0; *(uint32_t*)0x2000172c = 0; *(uint32_t*)0x20001730 = 0; *(uint32_t*)0x20001734 = 0; *(uint32_t*)0x20001738 = 0; *(uint32_t*)0x2000173c = 0; *(uint32_t*)0x20001740 = 0; *(uint32_t*)0x20001744 = 0; *(uint32_t*)0x20001748 = 0; *(uint32_t*)0x2000174c = 0; *(uint32_t*)0x20001750 = 0; *(uint32_t*)0x20001754 = 0; *(uint32_t*)0x20001758 = 0; *(uint32_t*)0x2000175c = 0; *(uint32_t*)0x20001760 = 0; *(uint32_t*)0x20001764 = 0; *(uint32_t*)0x20001768 = 0; *(uint32_t*)0x2000176c = 0; *(uint32_t*)0x20001770 = 0; *(uint32_t*)0x20001774 = 0; *(uint32_t*)0x20001778 = 0; *(uint32_t*)0x2000177c = 0; *(uint32_t*)0x20001780 = 0; *(uint32_t*)0x20001784 = 0; *(uint32_t*)0x20001788 = 0; *(uint32_t*)0x2000178c = 0; *(uint32_t*)0x20001790 = 0; *(uint32_t*)0x20001794 = 0; *(uint32_t*)0x20001798 = 0; *(uint32_t*)0x2000179c = 0; *(uint32_t*)0x200017a0 = 0x4000; *(uint32_t*)0x200017a4 = 0; *(uint32_t*)0x200017a8 = 0; *(uint32_t*)0x200017ac = 0; *(uint32_t*)0x200017b0 = 0; *(uint32_t*)0x200017b4 = 0; *(uint32_t*)0x200017b8 = 0; *(uint32_t*)0x200017bc = 0; *(uint32_t*)0x200017c0 = 0; *(uint32_t*)0x200017c4 = 0; *(uint32_t*)0x200017c8 = 0; *(uint32_t*)0x200017cc = 0; *(uint32_t*)0x200017d0 = 0; *(uint32_t*)0x200017d4 = 0; *(uint32_t*)0x200017d8 = 0; *(uint32_t*)0x200017dc = 0; *(uint32_t*)0x200017e0 = 0; *(uint32_t*)0x200017e4 = 0; *(uint32_t*)0x200017e8 = 0; *(uint32_t*)0x200017ec = 0; *(uint32_t*)0x200017f0 = 0; *(uint32_t*)0x200017f4 = 0; *(uint32_t*)0x200017f8 = 0; *(uint32_t*)0x200017fc = 0; *(uint32_t*)0x20001800 = 0; *(uint32_t*)0x20001804 = 0; *(uint32_t*)0x20001808 = 0; *(uint32_t*)0x2000180c = 0; *(uint32_t*)0x20001810 = 0; *(uint32_t*)0x20001814 = 0; *(uint32_t*)0x20001818 = 0; *(uint32_t*)0x2000181c = 0; *(uint32_t*)0x20001820 = 0x10000; *(uint32_t*)0x20001824 = 0; *(uint32_t*)0x20001828 = 0; *(uint32_t*)0x2000182c = 0; *(uint32_t*)0x20001830 = 0; *(uint32_t*)0x20001834 = 0; *(uint32_t*)0x20001838 = 0; *(uint32_t*)0x2000183c = 0; *(uint32_t*)0x20001840 = 0; *(uint32_t*)0x20001844 = 0; *(uint32_t*)0x20001848 = 0; *(uint32_t*)0x2000184c = 0; *(uint32_t*)0x20001850 = 0; *(uint32_t*)0x20001854 = 0; *(uint32_t*)0x20001858 = 0; *(uint32_t*)0x2000185c = 0; *(uint32_t*)0x20001860 = 0; *(uint32_t*)0x20001864 = 0; *(uint32_t*)0x20001868 = 0; *(uint32_t*)0x2000186c = 0; *(uint32_t*)0x20001870 = 0; *(uint32_t*)0x20001874 = 0; *(uint32_t*)0x20001878 = 0; *(uint32_t*)0x2000187c = 0; *(uint32_t*)0x20001880 = 0; *(uint32_t*)0x20001884 = 0; *(uint32_t*)0x20001888 = 0; *(uint32_t*)0x2000188c = 0; *(uint32_t*)0x20001890 = 0; *(uint32_t*)0x20001894 = 0; *(uint32_t*)0x20001898 = 0; *(uint32_t*)0x2000189c = 0; *(uint32_t*)0x200018a0 = 0; *(uint32_t*)0x200018a4 = 0; *(uint32_t*)0x200018a8 = 0; *(uint32_t*)0x200018ac = 0; *(uint32_t*)0x200018b0 = 0; *(uint32_t*)0x200018b4 = 0; *(uint32_t*)0x200018b8 = 0; *(uint32_t*)0x200018bc = 0; *(uint32_t*)0x200018c0 = 0; *(uint32_t*)0x200018c4 = 0; *(uint32_t*)0x200018c8 = 0; *(uint32_t*)0x200018cc = 0; *(uint32_t*)0x200018d0 = 0; *(uint32_t*)0x200018d4 = 0; *(uint32_t*)0x200018d8 = 0; *(uint32_t*)0x200018dc = 0; *(uint32_t*)0x200018e0 = 0; *(uint32_t*)0x200018e4 = 0; *(uint32_t*)0x200018e8 = 0; *(uint32_t*)0x200018ec = 0; *(uint32_t*)0x200018f0 = 0; *(uint32_t*)0x200018f4 = 0; *(uint32_t*)0x200018f8 = 0; *(uint32_t*)0x200018fc = 0; *(uint32_t*)0x20001900 = 0; *(uint32_t*)0x20001904 = 0; *(uint32_t*)0x20001908 = 0; *(uint32_t*)0x2000190c = 0; *(uint32_t*)0x20001910 = 0; *(uint32_t*)0x20001914 = 0; *(uint32_t*)0x20001918 = 0; *(uint32_t*)0x2000191c = 0; *(uint32_t*)0x20001920 = 0; *(uint32_t*)0x20001924 = 0; *(uint32_t*)0x20001928 = 0; *(uint32_t*)0x2000192c = 0; *(uint32_t*)0x20001930 = 0; *(uint32_t*)0x20001934 = 0; *(uint32_t*)0x20001938 = 0; *(uint32_t*)0x2000193c = 0; *(uint32_t*)0x20001940 = 0; *(uint32_t*)0x20001944 = 0; *(uint32_t*)0x20001948 = 0; *(uint32_t*)0x2000194c = 0; *(uint32_t*)0x20001950 = 0; *(uint32_t*)0x20001954 = 0; *(uint32_t*)0x20001958 = 0; *(uint32_t*)0x2000195c = 0; *(uint32_t*)0x20001960 = 0; *(uint32_t*)0x20001964 = 0; *(uint32_t*)0x20001968 = 0; *(uint32_t*)0x2000196c = 0; *(uint32_t*)0x20001970 = 0; *(uint32_t*)0x20001974 = 0; *(uint32_t*)0x20001978 = 0; *(uint32_t*)0x2000197c = 0; *(uint32_t*)0x20001980 = 0; *(uint32_t*)0x20001984 = 0; *(uint32_t*)0x20001988 = 0; *(uint32_t*)0x2000198c = 0; *(uint32_t*)0x20001990 = 0; *(uint32_t*)0x20001994 = 0; *(uint32_t*)0x20001998 = 0; *(uint32_t*)0x2000199c = 0; *(uint32_t*)0x200019a0 = 0; *(uint32_t*)0x200019a4 = 0; *(uint32_t*)0x200019a8 = 0; *(uint32_t*)0x200019ac = 0; *(uint32_t*)0x200019b0 = 0; *(uint32_t*)0x200019b4 = 0; *(uint32_t*)0x200019b8 = 0; *(uint32_t*)0x200019bc = 0; *(uint32_t*)0x200019c0 = 0; *(uint32_t*)0x200019c4 = 0; *(uint32_t*)0x200019c8 = 0; *(uint32_t*)0x200019cc = 0; *(uint32_t*)0x200019d0 = 0; *(uint32_t*)0x200019d4 = 0; *(uint32_t*)0x200019d8 = 0; *(uint32_t*)0x200019dc = 0; *(uint32_t*)0x200019e0 = 0; *(uint32_t*)0x200019e4 = 0; *(uint32_t*)0x200019e8 = 0; *(uint32_t*)0x200019ec = 0; *(uint32_t*)0x200019f0 = 0; *(uint32_t*)0x200019f4 = 0; *(uint32_t*)0x200019f8 = 0; *(uint32_t*)0x200019fc = 0; *(uint32_t*)0x20001a00 = 0; *(uint32_t*)0x20001a04 = 0; *(uint32_t*)0x20001a08 = 0; *(uint32_t*)0x20001a0c = 0; *(uint32_t*)0x20001a10 = 0; *(uint32_t*)0x20001a14 = 0; *(uint32_t*)0x20001a18 = 0; *(uint32_t*)0x20001a1c = 0; *(uint32_t*)0x20001a20 = 0; *(uint32_t*)0x20001a24 = 0; *(uint32_t*)0x20001a28 = 0; *(uint32_t*)0x20001a2c = 0; *(uint32_t*)0x20001a30 = 0; *(uint32_t*)0x20001a34 = 0; *(uint32_t*)0x20001a38 = 0; *(uint32_t*)0x20001a3c = 0; *(uint32_t*)0x20001a40 = 0; *(uint32_t*)0x20001a44 = 0; *(uint32_t*)0x20001a48 = 0; *(uint32_t*)0x20001a4c = 0; *(uint32_t*)0x20001a50 = 0; *(uint32_t*)0x20001a54 = 0; *(uint32_t*)0x20001a58 = 0; *(uint32_t*)0x20001a5c = 0; *(uint32_t*)0x20001a60 = 0; *(uint32_t*)0x20001a64 = 0; *(uint32_t*)0x20001a68 = 0; *(uint32_t*)0x20001a6c = 0; *(uint32_t*)0x20001a70 = 0; *(uint32_t*)0x20001a74 = 0; *(uint32_t*)0x20001a78 = 0; *(uint32_t*)0x20001a7c = 0; *(uint32_t*)0x20001a80 = 0; *(uint32_t*)0x20001a84 = 0; *(uint32_t*)0x20001a88 = 0; *(uint32_t*)0x20001a8c = 0; *(uint32_t*)0x20001a90 = 0; *(uint32_t*)0x20001a94 = 0; *(uint32_t*)0x20001a98 = 0; *(uint32_t*)0x20001a9c = 0; *(uint32_t*)0x20001aa0 = 0; *(uint32_t*)0x20001aa4 = 0; *(uint32_t*)0x20001aa8 = 0; *(uint32_t*)0x20001aac = 0; *(uint32_t*)0x20001ab0 = 0; *(uint32_t*)0x20001ab4 = 0; *(uint32_t*)0x20001ab8 = 0; *(uint32_t*)0x20001abc = 0; *(uint32_t*)0x20001ac0 = 0; *(uint32_t*)0x20001ac4 = 0; *(uint32_t*)0x20001ac8 = 0; *(uint32_t*)0x20001acc = 0; *(uint32_t*)0x20001ad0 = 0; *(uint32_t*)0x20001ad4 = 0; *(uint32_t*)0x20001ad8 = 0; *(uint32_t*)0x20001adc = 0; *(uint32_t*)0x20001ae0 = 0; *(uint32_t*)0x20001ae4 = 0; *(uint32_t*)0x20001ae8 = 0; *(uint32_t*)0x20001aec = 0; *(uint32_t*)0x20001af0 = 0; *(uint32_t*)0x20001af4 = 0; *(uint32_t*)0x20001af8 = 0; *(uint32_t*)0x20001afc = 0; *(uint32_t*)0x20001b00 = 0; *(uint32_t*)0x20001b04 = 0; *(uint32_t*)0x20001b08 = 0; *(uint32_t*)0x20001b0c = 0; *(uint32_t*)0x20001b10 = 0; *(uint32_t*)0x20001b14 = 0; *(uint32_t*)0x20001b18 = 0; *(uint32_t*)0x20001b1c = 0; *(uint32_t*)0x20001b20 = 0; *(uint32_t*)0x20001b24 = 0; *(uint32_t*)0x20001b28 = 0; *(uint32_t*)0x20001b2c = 0; *(uint32_t*)0x20001b30 = 0; *(uint32_t*)0x20001b34 = 0; *(uint32_t*)0x20001b38 = 0; *(uint32_t*)0x20001b3c = 0; *(uint32_t*)0x20001b40 = 0; *(uint32_t*)0x20001b44 = 0; *(uint32_t*)0x20001b48 = 0; *(uint32_t*)0x20001b4c = 0; *(uint32_t*)0x20001b50 = 0; *(uint32_t*)0x20001b54 = 0; *(uint32_t*)0x20001b58 = 0; *(uint32_t*)0x20001b5c = 0; *(uint32_t*)0x20001b60 = 0; *(uint32_t*)0x20001b64 = 0; *(uint32_t*)0x20001b68 = 0; *(uint32_t*)0x20001b6c = 0; *(uint32_t*)0x20001b70 = 0; *(uint32_t*)0x20001b74 = 0; *(uint32_t*)0x20001b78 = 0; *(uint32_t*)0x20001b7c = 0; *(uint32_t*)0x20001b80 = 0; *(uint32_t*)0x20001b84 = 0; *(uint32_t*)0x20001b88 = 0; *(uint32_t*)0x20001b8c = 0; *(uint32_t*)0x20001b90 = 0; *(uint32_t*)0x20001b94 = 0x43f7; *(uint32_t*)0x20001b98 = 0; *(uint32_t*)0x20001b9c = 0; *(uint32_t*)0x20001ba0 = 0; *(uint32_t*)0x20001ba4 = 0; *(uint32_t*)0x20001ba8 = 0; *(uint32_t*)0x20001bac = 0; *(uint32_t*)0x20001bb0 = 0; *(uint32_t*)0x20001bb4 = 0; *(uint32_t*)0x20001bb8 = 0; *(uint32_t*)0x20001bbc = 0; *(uint32_t*)0x20001bc0 = 0; *(uint32_t*)0x20001bc4 = 0; *(uint32_t*)0x20001bc8 = 0; *(uint32_t*)0x20001bcc = 0; *(uint32_t*)0x20001bd0 = 0; *(uint32_t*)0x20001bd4 = 0; *(uint32_t*)0x20001bd8 = 0; *(uint32_t*)0x20001bdc = 0; *(uint32_t*)0x20001be0 = 0; *(uint32_t*)0x20001be4 = 0; *(uint32_t*)0x20001be8 = 0; *(uint32_t*)0x20001bec = 0; *(uint32_t*)0x20001bf0 = 0; *(uint32_t*)0x20001bf4 = 0; *(uint32_t*)0x20001bf8 = 0; *(uint32_t*)0x20001bfc = 0; *(uint32_t*)0x20001c00 = 0; *(uint32_t*)0x20001c04 = 0; *(uint32_t*)0x20001c08 = 0; *(uint32_t*)0x20001c0c = 0; *(uint32_t*)0x20001c10 = 0; *(uint32_t*)0x20001c14 = 0; *(uint32_t*)0x20001c18 = 0; *(uint32_t*)0x20001c1c = 0; *(uint32_t*)0x20001c20 = 0; *(uint32_t*)0x20001c24 = 0; *(uint32_t*)0x20001c28 = 0; *(uint32_t*)0x20001c2c = 0; *(uint32_t*)0x20001c30 = 0; *(uint32_t*)0x20001c34 = 0; *(uint32_t*)0x20001c38 = 0; *(uint32_t*)0x20001c3c = 0; *(uint32_t*)0x20001c40 = 0; *(uint32_t*)0x20001c44 = 0; *(uint32_t*)0x20001c48 = 0; *(uint32_t*)0x20001c4c = 0; *(uint32_t*)0x20001c50 = 0; *(uint32_t*)0x20001c54 = 0; *(uint32_t*)0x20001c58 = 0; *(uint32_t*)0x20001c5c = 0; *(uint32_t*)0x20001c60 = 0; *(uint32_t*)0x20001c64 = 0; *(uint32_t*)0x20001c68 = 0; *(uint32_t*)0x20001c6c = 0; *(uint32_t*)0x20001c70 = 0; *(uint32_t*)0x20001c74 = 0; *(uint32_t*)0x20001c78 = 0; *(uint32_t*)0x20001c7c = 0; *(uint32_t*)0x20001c80 = 0; *(uint32_t*)0x20001c84 = 0; *(uint32_t*)0x20001c88 = 0; *(uint32_t*)0x20001c8c = 0; *(uint32_t*)0x20001c90 = 0; *(uint32_t*)0x20001c94 = 0; *(uint32_t*)0x20001c98 = 0; *(uint32_t*)0x20001c9c = 0; *(uint32_t*)0x20001ca0 = 0; *(uint32_t*)0x20001ca4 = 0; *(uint32_t*)0x20001ca8 = 0; *(uint32_t*)0x20001cac = 0; *(uint32_t*)0x20001cb0 = 0; *(uint32_t*)0x20001cb4 = 0; *(uint32_t*)0x20001cb8 = 0; *(uint32_t*)0x20001cbc = 0; *(uint32_t*)0x20001cc0 = 0; *(uint32_t*)0x20001cc4 = 0; *(uint32_t*)0x20001cc8 = 0; *(uint32_t*)0x20001ccc = 0; *(uint32_t*)0x20001cd0 = 0; *(uint32_t*)0x20001cd4 = 0; *(uint32_t*)0x20001cd8 = 0; *(uint32_t*)0x20001cdc = 0; *(uint32_t*)0x20001ce0 = 0; *(uint32_t*)0x20001ce4 = 0; *(uint32_t*)0x20001ce8 = 0; *(uint32_t*)0x20001cec = 0; *(uint32_t*)0x20001cf0 = 0; *(uint32_t*)0x20001cf4 = 0; *(uint32_t*)0x20001cf8 = 0; *(uint32_t*)0x20001cfc = 0; *(uint32_t*)0x20001d00 = 0; *(uint32_t*)0x20001d04 = 0; *(uint32_t*)0x20001d08 = 0; *(uint32_t*)0x20001d0c = 0; *(uint32_t*)0x20001d10 = 0; *(uint32_t*)0x20001d14 = 0; *(uint32_t*)0x20001d18 = 0; *(uint32_t*)0x20001d1c = 0; *(uint32_t*)0x20001d20 = 0; *(uint32_t*)0x20001d24 = 0; *(uint32_t*)0x20001d28 = 0; *(uint32_t*)0x20001d2c = 0; *(uint32_t*)0x20001d30 = 0; *(uint32_t*)0x20001d34 = 0; *(uint32_t*)0x20001d38 = 0; *(uint32_t*)0x20001d3c = 0; *(uint32_t*)0x20001d40 = 0; *(uint32_t*)0x20001d44 = 0; *(uint32_t*)0x20001d48 = 0; *(uint32_t*)0x20001d4c = 0; *(uint32_t*)0x20001d50 = 0; *(uint32_t*)0x20001d54 = 0; *(uint32_t*)0x20001d58 = 0; *(uint32_t*)0x20001d5c = 0; *(uint32_t*)0x20001d60 = 0; *(uint32_t*)0x20001d64 = 0; *(uint32_t*)0x20001d68 = 0; *(uint32_t*)0x20001d6c = 0; *(uint32_t*)0x20001d70 = 0; *(uint32_t*)0x20001d74 = 0; *(uint32_t*)0x20001d78 = 0; *(uint32_t*)0x20001d7c = 0; *(uint32_t*)0x20001d80 = 0; *(uint32_t*)0x20001d84 = 0; *(uint32_t*)0x20001d88 = 0; *(uint32_t*)0x20001d8c = 0; *(uint32_t*)0x20001d90 = 0; *(uint32_t*)0x20001d94 = 0; *(uint32_t*)0x20001d98 = 0; *(uint32_t*)0x20001d9c = 0; *(uint32_t*)0x20001da0 = 0; *(uint32_t*)0x20001da4 = 0; *(uint32_t*)0x20001da8 = 0; *(uint32_t*)0x20001dac = 0; *(uint32_t*)0x20001db0 = 0; *(uint32_t*)0x20001db4 = 0; *(uint32_t*)0x20001db8 = 0; *(uint32_t*)0x20001dbc = 0; *(uint32_t*)0x20001dc0 = 0; *(uint32_t*)0x20001dc4 = 0; *(uint32_t*)0x20001dc8 = 0; *(uint32_t*)0x20001dcc = 0; *(uint32_t*)0x20001dd0 = 0; *(uint32_t*)0x20001dd4 = 0; *(uint32_t*)0x20001dd8 = 0; *(uint32_t*)0x20001ddc = 0; *(uint32_t*)0x20001de0 = 0; *(uint32_t*)0x20001de4 = 0; *(uint32_t*)0x20001de8 = 0; *(uint32_t*)0x20001dec = 0; *(uint32_t*)0x20001df0 = 0; *(uint32_t*)0x20001df4 = 0; *(uint32_t*)0x20001df8 = 0; *(uint32_t*)0x20001dfc = 0; *(uint32_t*)0x20001e00 = 0; *(uint32_t*)0x20001e04 = 0; *(uint32_t*)0x20001e08 = 0; *(uint32_t*)0x20001e0c = 0; *(uint32_t*)0x20001e10 = 0; *(uint32_t*)0x20001e14 = 0; *(uint32_t*)0x20001e18 = 0; *(uint32_t*)0x20001e1c = 0; *(uint32_t*)0x20001e20 = 0; *(uint32_t*)0x20001e24 = 0; *(uint32_t*)0x20001e28 = 0; *(uint32_t*)0x20001e2c = 0; *(uint32_t*)0x20001e30 = 0; *(uint32_t*)0x20001e34 = 0; *(uint32_t*)0x20001e38 = 0; *(uint32_t*)0x20001e3c = 0; *(uint32_t*)0x20001e40 = 0; *(uint32_t*)0x20001e44 = 0; *(uint32_t*)0x20001e48 = 0; *(uint32_t*)0x20001e4c = 0; *(uint32_t*)0x20001e50 = 0; *(uint32_t*)0x20001e54 = 0; *(uint32_t*)0x20001e58 = 0; *(uint32_t*)0x20001e5c = 0; *(uint32_t*)0x20001e60 = 0; *(uint32_t*)0x20001e64 = 0; *(uint32_t*)0x20001e68 = 0; *(uint32_t*)0x20001e6c = 0; *(uint32_t*)0x20001e70 = 0; *(uint32_t*)0x20001e74 = 0; *(uint32_t*)0x20001e78 = 0; *(uint32_t*)0x20001e7c = 0; *(uint32_t*)0x20001e80 = 0; *(uint32_t*)0x20001e84 = 0; *(uint32_t*)0x20001e88 = 0; *(uint32_t*)0x20001e8c = 0; *(uint32_t*)0x20001e90 = 0; *(uint32_t*)0x20001e94 = 0; *(uint32_t*)0x20001e98 = 0; *(uint32_t*)0x20001e9c = 0; *(uint32_t*)0x20001ea0 = 0; *(uint32_t*)0x20001ea4 = 0; *(uint32_t*)0x20001ea8 = 0; *(uint32_t*)0x20001eac = 0; *(uint32_t*)0x20001eb0 = 0; *(uint32_t*)0x20001eb4 = 0; *(uint32_t*)0x20001eb8 = 0; *(uint32_t*)0x20001ebc = 0; *(uint32_t*)0x20001ec0 = 0; *(uint32_t*)0x20001ec4 = 0; *(uint32_t*)0x20001ec8 = 0; *(uint32_t*)0x20001ecc = 0; *(uint32_t*)0x20001ed0 = 0; *(uint32_t*)0x20001ed4 = 0; *(uint32_t*)0x20001ed8 = 0; *(uint32_t*)0x20001edc = 0; *(uint32_t*)0x20001ee0 = 0; *(uint32_t*)0x20001ee4 = 0; *(uint32_t*)0x20001ee8 = 0; *(uint32_t*)0x20001eec = 0; *(uint32_t*)0x20001ef0 = 0; *(uint32_t*)0x20001ef4 = 0; *(uint32_t*)0x20001ef8 = 0; *(uint32_t*)0x20001efc = 0; *(uint32_t*)0x20001f00 = 0; *(uint32_t*)0x20001f04 = 0; *(uint32_t*)0x20001f08 = 0; *(uint32_t*)0x20001f0c = 0; *(uint32_t*)0x20001f10 = 0; *(uint32_t*)0x20001f14 = 0; *(uint32_t*)0x20001f18 = 0; *(uint32_t*)0x20001f1c = 0; *(uint32_t*)0x20001f20 = 0; *(uint32_t*)0x20001f24 = 0; *(uint32_t*)0x20001f28 = 0; *(uint32_t*)0x20001f2c = 0; *(uint32_t*)0x20001f30 = 0; *(uint32_t*)0x20001f34 = 0; *(uint32_t*)0x20001f38 = 0; *(uint32_t*)0x20001f3c = 0; *(uint32_t*)0x20001f40 = 0; *(uint32_t*)0x20001f44 = 0; *(uint32_t*)0x20001f48 = 0; *(uint32_t*)0x20001f4c = 0; *(uint32_t*)0x20001f50 = 0; *(uint32_t*)0x20001f54 = 0; *(uint32_t*)0x20001f58 = 0; *(uint32_t*)0x20001f5c = 0; *(uint32_t*)0x20001f60 = 0; *(uint32_t*)0x20001f64 = 0; *(uint32_t*)0x20001f68 = 0; *(uint32_t*)0x20001f6c = 0; *(uint32_t*)0x20001f70 = 0; *(uint32_t*)0x20001f74 = 0; *(uint32_t*)0x20001f78 = 0; *(uint32_t*)0x20001f7c = 0; *(uint32_t*)0x20001f80 = 0; *(uint32_t*)0x20001f84 = 0; *(uint32_t*)0x20001f88 = 0; *(uint32_t*)0x20001f8c = 0; *(uint32_t*)0x20001f90 = 0; *(uint32_t*)0x20001f94 = 0; *(uint32_t*)0x20001f98 = 0; *(uint32_t*)0x20001f9c = 0; *(uint32_t*)0x20001fa0 = 0; *(uint32_t*)0x20001fa4 = 0; *(uint32_t*)0x20001fa8 = 0; *(uint32_t*)0x20001fac = 0; *(uint32_t*)0x20001fb0 = 0; *(uint32_t*)0x20001fb4 = 0; *(uint32_t*)0x20001fb8 = 0; *(uint32_t*)0x20001fbc = 0; *(uint32_t*)0x20001fc0 = 0; *(uint32_t*)0x20001fc4 = 0; *(uint32_t*)0x20001fc8 = 0; *(uint32_t*)0x20001fcc = 0; *(uint32_t*)0x20001fd0 = 0; *(uint32_t*)0x20001fd4 = 0; *(uint32_t*)0x20001fd8 = 0; *(uint32_t*)0x20001fdc = 0; *(uint32_t*)0x20001fe0 = 0; *(uint32_t*)0x20001fe4 = 0; *(uint32_t*)0x20001fe8 = 0; *(uint32_t*)0x20001fec = 0; *(uint32_t*)0x20001ff0 = 0; *(uint32_t*)0x20001ff4 = 0; *(uint32_t*)0x20001ff8 = 0; *(uint32_t*)0x20001ffc = 0; *(uint32_t*)0x20002000 = 0; *(uint32_t*)0x20002004 = 0; *(uint32_t*)0x20002008 = 0; *(uint32_t*)0x2000200c = 0; *(uint32_t*)0x20002010 = 0; *(uint32_t*)0x20002014 = 0; *(uint32_t*)0x20002018 = 0; *(uint32_t*)0x2000201c = 0; *(uint32_t*)0x20002020 = 0; *(uint32_t*)0x20002024 = 0; *(uint32_t*)0x20002028 = 0; *(uint32_t*)0x2000202c = 0; *(uint32_t*)0x20002030 = 0; *(uint32_t*)0x20002034 = 0; *(uint32_t*)0x20002038 = 0; *(uint32_t*)0x2000203c = 0; *(uint32_t*)0x20002040 = 0; *(uint32_t*)0x20002044 = 0; *(uint32_t*)0x20002048 = 0; *(uint32_t*)0x2000204c = 0; *(uint32_t*)0x20002050 = 0; *(uint32_t*)0x20002054 = 0; *(uint32_t*)0x20002058 = 0; *(uint32_t*)0x2000205c = 0; *(uint32_t*)0x20002060 = 0; *(uint32_t*)0x20002064 = 0; *(uint32_t*)0x20002068 = 0; *(uint32_t*)0x2000206c = 0; *(uint32_t*)0x20002070 = 0; *(uint32_t*)0x20002074 = 0; *(uint32_t*)0x20002078 = 0; *(uint32_t*)0x2000207c = 0; *(uint32_t*)0x20002080 = 0; *(uint32_t*)0x20002084 = 0; *(uint32_t*)0x20002088 = 0; *(uint32_t*)0x2000208c = 0; *(uint32_t*)0x20002090 = 0; *(uint32_t*)0x20002094 = 0; *(uint32_t*)0x20002098 = 0; *(uint32_t*)0x2000209c = 0; *(uint32_t*)0x200020a0 = 0; *(uint32_t*)0x200020a4 = 0; *(uint32_t*)0x200020a8 = 0; *(uint32_t*)0x200020ac = 0; *(uint32_t*)0x200020b0 = 0x2360; *(uint32_t*)0x200020b4 = 0; *(uint32_t*)0x200020b8 = 0; *(uint32_t*)0x200020bc = 0; *(uint32_t*)0x200020c0 = 0; *(uint32_t*)0x200020c4 = 0; *(uint32_t*)0x200020c8 = 0; *(uint32_t*)0x200020cc = 0; *(uint32_t*)0x200020d0 = 0; *(uint32_t*)0x200020d4 = 0; *(uint32_t*)0x200020d8 = 0; *(uint32_t*)0x200020dc = 0; *(uint32_t*)0x200020e0 = 0; *(uint32_t*)0x200020e4 = 0; *(uint32_t*)0x200020e8 = 0; *(uint32_t*)0x200020ec = 0; *(uint32_t*)0x200020f0 = 0; *(uint32_t*)0x200020f4 = 0; *(uint32_t*)0x200020f8 = 0; *(uint32_t*)0x200020fc = 0; *(uint32_t*)0x20002100 = 0; *(uint32_t*)0x20002104 = 0; *(uint32_t*)0x20002108 = 0; *(uint32_t*)0x2000210c = 0; *(uint32_t*)0x20002110 = 0; *(uint32_t*)0x20002114 = 0; *(uint32_t*)0x20002118 = 0; syscall(__NR_ioctl, /*fd=*/-1, /*cmd=*/0x501c4814, /*arg=*/0x20001100ul); break; case 8: memcpy((void*)0x20000100, "/dev/input/event#\000", 18); res = -1; res = syz_open_dev( /*dev=*/0x20000100, /*id=*/0, /*flags=O_TRUNC|O_NONBLOCK|O_NOFOLLOW|O_NOCTTY|O_NOATIME|FASYNC|0x800001*/ 0x862b01); if (res != -1) r[3] = res; break; case 9: memset((void*)0x20000040, 226, 1); syscall(__NR_write, /*fd=*/r[3], /*buf=*/0x20000040ul, /*count=*/0x2250ul); break; } } int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x20000000ul, /*len=*/0x1000000ul, /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/ 7ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x21000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); loop(); return 0; }