// https://syzkaller.appspot.com/bug?id=29047010c8fc6106059964efd51ff4f88f3b46ba // 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 #include #include #include #include #include #include #include #include #include #include #ifndef __NR_memfd_create #define __NR_memfd_create 319 #endif static unsigned long long procid; 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 bool write_file(const char* file, const char* what, ...) { char buf[1024]; va_list args; va_start(args, what); vsnprintf(buf, sizeof(buf), what, args); va_end(args); buf[sizeof(buf) - 1] = 0; int len = strlen(buf); int fd = open(file, O_WRONLY | O_CLOEXEC); if (fd == -1) return false; if (write(fd, buf, len) != len) { int err = errno; close(fd); errno = err; return false; } close(fd); return true; } //% This code is derived from puff.{c,h}, found in the zlib development. The //% original files come with the following copyright notice: //% Copyright (C) 2002-2013 Mark Adler, all rights reserved //% version 2.3, 21 Jan 2013 //% This software is provided 'as-is', without any express or implied //% warranty. In no event will the author be held liable for any damages //% arising from the use of this software. //% Permission is granted to anyone to use this software for any purpose, //% including commercial applications, and to alter it and redistribute it //% freely, subject to the following restrictions: //% 1. The origin of this software must not be misrepresented; you must not //% claim that you wrote the original software. If you use this software //% in a product, an acknowledgment in the product documentation would be //% appreciated but is not required. //% 2. Altered source versions must be plainly marked as such, and must not be //% misrepresented as being the original software. //% 3. This notice may not be removed or altered from any source distribution. //% Mark Adler madler@alumni.caltech.edu //% BEGIN CODE DERIVED FROM puff.{c,h} #define MAXBITS 15 #define MAXLCODES 286 #define MAXDCODES 30 #define MAXCODES (MAXLCODES + MAXDCODES) #define FIXLCODES 288 struct puff_state { unsigned char* out; unsigned long outlen; unsigned long outcnt; const unsigned char* in; unsigned long inlen; unsigned long incnt; int bitbuf; int bitcnt; jmp_buf env; }; static int puff_bits(struct puff_state* s, int need) { long val = s->bitbuf; while (s->bitcnt < need) { if (s->incnt == s->inlen) longjmp(s->env, 1); val |= (long)(s->in[s->incnt++]) << s->bitcnt; s->bitcnt += 8; } s->bitbuf = (int)(val >> need); s->bitcnt -= need; return (int)(val & ((1L << need) - 1)); } static int puff_stored(struct puff_state* s) { s->bitbuf = 0; s->bitcnt = 0; if (s->incnt + 4 > s->inlen) return 2; unsigned len = s->in[s->incnt++]; len |= s->in[s->incnt++] << 8; if (s->in[s->incnt++] != (~len & 0xff) || s->in[s->incnt++] != ((~len >> 8) & 0xff)) return -2; if (s->incnt + len > s->inlen) return 2; if (s->outcnt + len > s->outlen) return 1; for (; len--; s->outcnt++, s->incnt++) { if (s->in[s->incnt]) s->out[s->outcnt] = s->in[s->incnt]; } return 0; } struct puff_huffman { short* count; short* symbol; }; static int puff_decode(struct puff_state* s, const struct puff_huffman* h) { int first = 0; int index = 0; int bitbuf = s->bitbuf; int left = s->bitcnt; int code = first = index = 0; int len = 1; short* next = h->count + 1; while (1) { while (left--) { code |= bitbuf & 1; bitbuf >>= 1; int count = *next++; if (code - count < first) { s->bitbuf = bitbuf; s->bitcnt = (s->bitcnt - len) & 7; return h->symbol[index + (code - first)]; } index += count; first += count; first <<= 1; code <<= 1; len++; } left = (MAXBITS + 1) - len; if (left == 0) break; if (s->incnt == s->inlen) longjmp(s->env, 1); bitbuf = s->in[s->incnt++]; if (left > 8) left = 8; } return -10; } static int puff_construct(struct puff_huffman* h, const short* length, int n) { int len; for (len = 0; len <= MAXBITS; len++) h->count[len] = 0; int symbol; for (symbol = 0; symbol < n; symbol++) (h->count[length[symbol]])++; if (h->count[0] == n) return 0; int left = 1; for (len = 1; len <= MAXBITS; len++) { left <<= 1; left -= h->count[len]; if (left < 0) return left; } short offs[MAXBITS + 1]; offs[1] = 0; for (len = 1; len < MAXBITS; len++) offs[len + 1] = offs[len] + h->count[len]; for (symbol = 0; symbol < n; symbol++) if (length[symbol] != 0) h->symbol[offs[length[symbol]]++] = symbol; return left; } static int puff_codes(struct puff_state* s, const struct puff_huffman* lencode, const struct puff_huffman* distcode) { static const short lens[29] = {3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258}; static const short lext[29] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0}; static const short dists[30] = { 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577}; static const short dext[30] = {0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13}; int symbol; do { symbol = puff_decode(s, lencode); if (symbol < 0) return symbol; if (symbol < 256) { if (s->outcnt == s->outlen) return 1; if (symbol) s->out[s->outcnt] = symbol; s->outcnt++; } else if (symbol > 256) { symbol -= 257; if (symbol >= 29) return -10; int len = lens[symbol] + puff_bits(s, lext[symbol]); symbol = puff_decode(s, distcode); if (symbol < 0) return symbol; unsigned dist = dists[symbol] + puff_bits(s, dext[symbol]); if (dist > s->outcnt) return -11; if (s->outcnt + len > s->outlen) return 1; while (len--) { if (dist <= s->outcnt && s->out[s->outcnt - dist]) s->out[s->outcnt] = s->out[s->outcnt - dist]; s->outcnt++; } } } while (symbol != 256); return 0; } static int puff_fixed(struct puff_state* s) { static int virgin = 1; static short lencnt[MAXBITS + 1], lensym[FIXLCODES]; static short distcnt[MAXBITS + 1], distsym[MAXDCODES]; static struct puff_huffman lencode, distcode; if (virgin) { lencode.count = lencnt; lencode.symbol = lensym; distcode.count = distcnt; distcode.symbol = distsym; short lengths[FIXLCODES]; int symbol; for (symbol = 0; symbol < 144; symbol++) lengths[symbol] = 8; for (; symbol < 256; symbol++) lengths[symbol] = 9; for (; symbol < 280; symbol++) lengths[symbol] = 7; for (; symbol < FIXLCODES; symbol++) lengths[symbol] = 8; puff_construct(&lencode, lengths, FIXLCODES); for (symbol = 0; symbol < MAXDCODES; symbol++) lengths[symbol] = 5; puff_construct(&distcode, lengths, MAXDCODES); virgin = 0; } return puff_codes(s, &lencode, &distcode); } static int puff_dynamic(struct puff_state* s) { static const short order[19] = {16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15}; int nlen = puff_bits(s, 5) + 257; int ndist = puff_bits(s, 5) + 1; int ncode = puff_bits(s, 4) + 4; if (nlen > MAXLCODES || ndist > MAXDCODES) return -3; short lengths[MAXCODES]; int index; for (index = 0; index < ncode; index++) lengths[order[index]] = puff_bits(s, 3); for (; index < 19; index++) lengths[order[index]] = 0; short lencnt[MAXBITS + 1], lensym[MAXLCODES]; struct puff_huffman lencode = {lencnt, lensym}; int err = puff_construct(&lencode, lengths, 19); if (err != 0) return -4; index = 0; while (index < nlen + ndist) { int symbol; int len; symbol = puff_decode(s, &lencode); if (symbol < 0) return symbol; if (symbol < 16) lengths[index++] = symbol; else { len = 0; if (symbol == 16) { if (index == 0) return -5; len = lengths[index - 1]; symbol = 3 + puff_bits(s, 2); } else if (symbol == 17) symbol = 3 + puff_bits(s, 3); else symbol = 11 + puff_bits(s, 7); if (index + symbol > nlen + ndist) return -6; while (symbol--) lengths[index++] = len; } } if (lengths[256] == 0) return -9; err = puff_construct(&lencode, lengths, nlen); if (err && (err < 0 || nlen != lencode.count[0] + lencode.count[1])) return -7; short distcnt[MAXBITS + 1], distsym[MAXDCODES]; struct puff_huffman distcode = {distcnt, distsym}; err = puff_construct(&distcode, lengths + nlen, ndist); if (err && (err < 0 || ndist != distcode.count[0] + distcode.count[1])) return -8; return puff_codes(s, &lencode, &distcode); } static int puff(unsigned char* dest, unsigned long* destlen, const unsigned char* source, unsigned long sourcelen) { struct puff_state s = { .out = dest, .outlen = *destlen, .outcnt = 0, .in = source, .inlen = sourcelen, .incnt = 0, .bitbuf = 0, .bitcnt = 0, }; int err; if (setjmp(s.env) != 0) err = 2; else { int last; do { last = puff_bits(&s, 1); int type = puff_bits(&s, 2); err = type == 0 ? puff_stored(&s) : (type == 1 ? puff_fixed(&s) : (type == 2 ? puff_dynamic(&s) : -1)); if (err != 0) break; } while (!last); } *destlen = s.outcnt; return err; } //% END CODE DERIVED FROM puff.{c,h} #define ZLIB_HEADER_WIDTH 2 static int puff_zlib_to_file(const unsigned char* source, unsigned long sourcelen, int dest_fd) { if (sourcelen < ZLIB_HEADER_WIDTH) return 0; source += ZLIB_HEADER_WIDTH; sourcelen -= ZLIB_HEADER_WIDTH; const unsigned long max_destlen = 132 << 20; void* ret = mmap(0, max_destlen, PROT_WRITE | PROT_READ, MAP_PRIVATE | MAP_ANON, -1, 0); if (ret == MAP_FAILED) return -1; unsigned char* dest = (unsigned char*)ret; unsigned long destlen = max_destlen; int err = puff(dest, &destlen, source, sourcelen); if (err) { munmap(dest, max_destlen); errno = -err; return -1; } if (write(dest_fd, dest, destlen) != (ssize_t)destlen) { munmap(dest, max_destlen); return -1; } return munmap(dest, max_destlen); } static int setup_loop_device(unsigned char* data, unsigned long size, const char* loopname, int* loopfd_p) { int err = 0, loopfd = -1; int memfd = syscall(__NR_memfd_create, "syzkaller", 0); if (memfd == -1) { err = errno; goto error; } if (puff_zlib_to_file(data, size, memfd)) { err = errno; goto error_close_memfd; } loopfd = open(loopname, O_RDWR); if (loopfd == -1) { err = errno; goto error_close_memfd; } if (ioctl(loopfd, LOOP_SET_FD, memfd)) { if (errno != EBUSY) { err = errno; goto error_close_loop; } ioctl(loopfd, LOOP_CLR_FD, 0); usleep(1000); if (ioctl(loopfd, LOOP_SET_FD, memfd)) { err = errno; goto error_close_loop; } } close(memfd); *loopfd_p = loopfd; return 0; error_close_loop: close(loopfd); error_close_memfd: close(memfd); error: errno = err; return -1; } static void reset_loop_device(const char* loopname) { int loopfd = open(loopname, O_RDWR); if (loopfd == -1) { return; } if (ioctl(loopfd, LOOP_CLR_FD, 0)) { } close(loopfd); } static long syz_mount_image(volatile long fsarg, volatile long dir, volatile long flags, volatile long optsarg, volatile long change_dir, volatile unsigned long size, volatile long image) { unsigned char* data = (unsigned char*)image; int res = -1, err = 0, need_loop_device = !!size; char* mount_opts = (char*)optsarg; char* target = (char*)dir; char* fs = (char*)fsarg; char* source = NULL; char loopname[64]; if (need_loop_device) { int loopfd; memset(loopname, 0, sizeof(loopname)); snprintf(loopname, sizeof(loopname), "/dev/loop%llu", procid); if (setup_loop_device(data, size, loopname, &loopfd) == -1) return -1; close(loopfd); source = loopname; } mkdir(target, 0777); char opts[256]; memset(opts, 0, sizeof(opts)); if (strlen(mount_opts) > (sizeof(opts) - 32)) { } strncpy(opts, mount_opts, sizeof(opts) - 32); if (strcmp(fs, "iso9660") == 0) { flags |= MS_RDONLY; } else if (strncmp(fs, "ext", 3) == 0) { bool has_remount_ro = false; char* remount_ro_start = strstr(opts, "errors=remount-ro"); if (remount_ro_start != NULL) { char after = *(remount_ro_start + strlen("errors=remount-ro")); char before = remount_ro_start == opts ? '\0' : *(remount_ro_start - 1); has_remount_ro = ((before == '\0' || before == ',') && (after == '\0' || after == ',')); } if (strstr(opts, "errors=panic") || !has_remount_ro) strcat(opts, ",errors=continue"); } else if (strcmp(fs, "xfs") == 0) { strcat(opts, ",nouuid"); } else if (strncmp(fs, "gfs2", 4) == 0 && (strstr(opts, "errors=panic") || strstr(opts, "debug"))) { strcat(opts, ",errors=withdraw"); } res = mount(source, target, fs, flags, opts); if (res == -1) { err = errno; goto error_clear_loop; } res = open(target, O_RDONLY | O_DIRECTORY); if (res == -1) { err = errno; goto error_clear_loop; } if (change_dir) { res = chdir(target); if (res == -1) { err = errno; } } error_clear_loop: if (need_loop_device) reset_loop_device(loopname); errno = err; return res; } static void kill_and_wait(int pid, int* status) { kill(-pid, SIGKILL); kill(pid, SIGKILL); for (int i = 0; i < 100; i++) { if (waitpid(-1, status, WNOHANG | __WALL) == pid) return; usleep(1000); } DIR* dir = opendir("/sys/fs/fuse/connections"); if (dir) { for (;;) { struct dirent* ent = readdir(dir); if (!ent) break; if (strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0) continue; char abort[300]; snprintf(abort, sizeof(abort), "/sys/fs/fuse/connections/%s/abort", ent->d_name); int fd = open(abort, O_WRONLY); if (fd == -1) { continue; } if (write(fd, abort, 1) < 0) { } close(fd); } closedir(dir); } else { } while (waitpid(-1, status, __WALL) != pid) { } } static void reset_loop() { char buf[64]; snprintf(buf, sizeof(buf), "/dev/loop%llu", procid); int loopfd = open(buf, O_RDWR); if (loopfd != -1) { ioctl(loopfd, LOOP_CLR_FD, 0); close(loopfd); } } static void setup_test() { prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); setpgrp(); write_file("/proc/self/oom_score_adj", "1000"); } static void execute_one(void); #define WAIT_FLAGS __WALL static void loop(void) { int iter = 0; for (;; iter++) { reset_loop(); int pid = fork(); if (pid < 0) exit(1); if (pid == 0) { setup_test(); execute_one(); exit(0); } int status = 0; uint64_t start = current_time_ms(); for (;;) { sleep_ms(10); if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid) break; if (current_time_ms() - start < 5000) continue; kill_and_wait(pid, &status); break; } } } uint64_t r[1] = {0xffffffffffffffff}; void execute_one(void) { intptr_t res = 0; if (write(1, "executing program\n", sizeof("executing program\n") - 1)) { } // syz_mount_image$udf arguments: [ // fs: ptr[in, buffer] { // buffer: {75 64 66 00} (length 0x4) // } // dir: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 31 00} (length 0x8) // } // flags: mount_flags = 0x14009 (8 bytes) // opts: ptr[inout, array[ANYUNION]] { // array[ANYUNION] { // union ANYUNION { // ANYBLOB: buffer: {2c 75 6e 64 65 6c 65 74 65 2c 6e 6f 76 72 73 2c // 61 64 69 6e 69 63 62 2c 76 6f 6c 75 6d 65 3d 30 30 30 30 30 30 30 // 30 30 00 00 30 30 30 30 30 30 30 30 32 2c 75 69 64 3d 66 6f 72 67 // 65 74 2c 67 69 64 3d 66 6f 72 67 65 74 2c 6e 6f 73 74 72 69 63 74 // 2c 6e 6f 76 72 73 2c 00 85 f9 57 33 01 9d 78 4c a3 86 da 1f d4 1f // fa bd 4b 47 ac ca 2b 8d 48 8b e7 02 15 7d d8 71 1c 31 73 2d} // (length 0x7c) // } // union ANYUNION { // ANYBLOB: buffer: {b0 8d 81 75} (length 0x4) // } // union ANYUNION { // ANYRESDEC: ANYRES64 (resource) // } // union ANYUNION { // ANYRESHEX: ANYRES64 (resource) // } // } // } // chdir: int8 = 0xff (1 bytes) // size: len = 0xc3d (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0xc3d) // } // ] // returns fd_dir memcpy((void*)0x200000000080, "udf\000", 4); memcpy((void*)0x200000000040, "./file1\000", 8); memcpy( (void*)0x2000000001c0, "\x2c\x75\x6e\x64\x65\x6c\x65\x74\x65\x2c\x6e\x6f\x76\x72\x73\x2c\x61\x64" "\x69\x6e\x69\x63\x62\x2c\x76\x6f\x6c\x75\x6d\x65\x3d\x30\x30\x30\x30\x30" "\x30\x30\x30\x30\x00\x00\x30\x30\x30\x30\x30\x30\x30\x30\x32\x2c\x75\x69" "\x64\x3d\x66\x6f\x72\x67\x65\x74\x2c\x67\x69\x64\x3d\x66\x6f\x72\x67\x65" "\x74\x2c\x6e\x6f\x73\x74\x72\x69\x63\x74\x2c\x6e\x6f\x76\x72\x73\x2c\x00" "\x85\xf9\x57\x33\x01\x9d\x78\x4c\xa3\x86\xda\x1f\xd4\x1f\xfa\xbd\x4b\x47" "\xac\xca\x2b\x8d\x48\x8b\xe7\x02\x15\x7d\xd8\x71\x1c\x31\x73\x2d", 124); memcpy((void*)0x20000000023c, "\xb0\x8d\x81\x75", 4); sprintf((char*)0x200000000240, "%020llu", (long long)-1); sprintf((char*)0x200000000254, "0x%016llx", (long long)-1); memcpy( (void*)0x200000000f40, "\x78\x9c\xec\xdd\x4d\x6c\x5c\xd7\x7d\x37\xe0\xff\xb9\x1a\x8a\x43\xf9\x7d" "\x2b\x26\x76\x14\x27\x8d\x8b\x49\x5b\xa4\xb2\x62\xb9\xfa\x8a\xa9\x58\x85" "\x3b\xaa\x69\xb6\x01\x64\x59\x08\xc5\xec\x02\x70\x44\x52\xea\xc0\x14\x49" "\x90\x54\x23\x1b\x69\xc1\x74\xd3\x45\x17\x01\x8a\xa2\x8b\xac\x08\xb4\x46" "\x81\x14\x0d\x8c\xa6\x08\xba\x64\x5a\x17\x48\x36\x5e\x14\x59\x75\x45\xb4" "\xb0\x11\x14\x5d\xb0\x45\x80\xac\x02\x16\xf7\xce\x19\x71\x48\x91\x96\x22" "\x8a\x12\x69\x3d\x8f\x4d\xfd\x66\xee\x9c\x73\xe7\x9c\x7b\x46\xf7\x52\x04" "\xcf\x3d\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x44\xfc" "\xde\x6b\x17\x4f\x9d\x4e\x8f\xbb\x15\x00\xc0\xa3\x74\x79\xf4\xab\xa7\xce" "\xb8\xfe\x03\xc0\x13\xe5\xaa\x7f\xff\x03\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\xc0\x7e\x97\xa2\x88\xa7\x23\xc5\xdc\xe5\xb5\x34\x5e\x3d\xef\xa8" "\x5f\x6a\xf7\xdd\xba\x3d\x36\x3c\xb2\x7d\xb5\x81\x54\xd5\x3c\x54\x95\x2f" "\xbf\xea\xa7\xcf\x9c\x3d\xf7\xa5\x97\x86\xce\x77\xf3\x52\x7b\xe6\x23\xea" "\x3f\x6c\x9f\x8d\x37\x46\xaf\x5e\x6c\xbc\x3a\x7b\x73\x6e\x7e\x6a\x61\x61" "\x6a\xb2\x31\x36\xd3\x9e\x98\x9d\x9c\xba\xef\x3d\xec\xb6\xfe\x56\x27\xaa" "\x03\xd0\xb8\xf9\xe6\xad\xc9\xeb\xd7\x17\x1a\x67\x5e\x3c\xbb\xe9\xe5\xdb" "\x83\x1f\xf6\x3f\x75\x6c\xf0\xc2\xd0\xf3\x27\x9f\xeb\x96\x1d\x1b\x1e\x19" "\x19\xdd\x28\x52\xef\x2d\x5f\x7b\xe0\x86\x74\xec\x34\xc3\xe3\x70\x14\x71" "\x32\x52\xbc\xf0\xbd\x9f\xa6\x56\x44\x14\xb1\xfb\x63\x51\x7f\xb4\x63\xbf" "\xd5\x40\xd5\x89\x13\x55\x27\xc6\x86\x47\xaa\x8e\x4c\xb7\x5b\x33\x8b\xe5" "\x8b\x57\xba\x07\xa2\x88\x68\xf4\x54\x6a\x76\x8f\xd1\xf6\x63\x11\xb5\xbe" "\x47\xda\x87\x9d\x35\x23\x96\xca\xe6\x97\x0d\x3e\x51\x76\x6f\x74\xae\x35" "\xdf\xba\x36\x3d\xd5\xb8\xd2\x9a\x5f\x6c\x2f\xb6\x67\x67\xae\xa4\x4e\x6b" "\xcb\xfe\x34\xa2\x88\xf3\x29\x62\x39\x22\x56\xfb\xef\xde\x5d\x5f\x14\x51" "\x8b\x14\xdf\x39\xba\x96\xae\x45\xc4\xa1\xee\x71\xf8\x62\x35\x31\x78\xe7" "\x76\x14\x7b\xd8\xc7\xfb\x50\xb6\xb3\xd1\x17\xb1\x5c\x1c\x80\x31\xdb\xc7" "\xfa\xa3\x88\xd7\x23\xc5\xcf\xde\x3b\x1e\x13\xf9\x3c\x53\x9d\x6b\xbe\x10" "\xf1\x7a\x99\x3f\x88\x78\xa7\xcc\x57\x22\x52\xf9\xc1\x38\x17\xf1\xc1\x36" "\x9f\x23\x0e\xa6\x5a\x14\xf1\xe7\xe5\xf8\x5f\x58\x4b\x93\xd5\xf9\xa0\x7b" "\x5e\xb9\xf4\xb5\xc6\x57\x66\xae\xcf\xf6\x94\xed\x9e\x57\x7e\xc9\xeb\xc3" "\x5d\x67\x8a\xc7\x74\x7d\x18\xd8\x92\x8f\xc6\x3e\x3f\x37\xd5\xa3\x88\x56" "\x75\xc6\x5f\x4b\x0f\xfe\xcd\x0e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x0f\xdb\x40\x14\xf1\x99\x48\xf1\xda\xbf\xfd\x51\x35\xaf\x38" "\xaa\x79\xe9\x47\x2f\x0c\xfd\xfe\xe0\xff\xef\x9d\x33\xfe\xec\x3d\xf6\x53" "\x96\x7d\x31\x22\x96\x8a\xfb\x9b\x93\x7b\x38\x4f\x0c\xbc\x92\xae\xa4\xf4" "\x98\xe7\x12\x3f\xc9\xea\x51\xc4\x1f\xe7\xf9\x7f\xdf\x7a\xdc\x8d\x01\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x78\xa2\x15\xf1\x93" "\x48\xf1\xf2\xfb\xc7\xd3\x72\xf4\xae\x29\xde\x9e\xb9\xd1\xb8\xda\xba\x36" "\xdd\x59\x15\xb6\xbb\xf6\x6f\x77\xcd\xf4\xf5\xf5\xf5\xf5\x46\xea\x64\x33" "\xe7\x78\xce\xa5\x9c\xcb\x39\x57\x72\xae\xe6\x8c\x22\xd7\xcf\xd9\xcc\x39" "\x9e\x73\x29\xe7\x72\xce\x95\x9c\xab\x39\xe3\x50\xae\x9f\xb3\x99\x73\x3c" "\xe7\x52\xce\xe5\x9c\x2b\x39\x57\x73\x46\x2d\xd7\xcf\xd9\xcc\x39\x5e\xe6" "\xc0\x46\x07\x97\xf3\xf6\x95\x9c\xab\x39\x63\x9f\xac\xdd\x0b\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\xf0\x71\x52\x44\x11\xbf\x88\x14\xdf\xfe\xc6" "\x5a\x8a\x14\x11\xcd\x88\xf1\xe8\xe4\x4a\xff\xe3\x6e\x1d\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x50\xea\x4f" "\x45\x7c\x3f\x52\x34\xfe\xa0\x79\x67\x5b\x2d\x22\x52\xf5\x7f\xc7\xf1\xf2" "\x8f\x73\xd1\x3c\x5c\xe6\x27\xa3\x39\x54\xe6\x2b\xd1\xbc\x98\xb3\x55\x65" "\xad\xf9\xad\xc7\xd0\x7e\x76\xa7\x2f\x15\xf1\xe3\x48\xd1\x5f\x7f\xf7\xce" "\x80\xe7\xf1\xef\xeb\x3c\xbb\xf3\x31\x88\x77\xbe\xb9\xf1\xec\xb3\xb5\x4e" "\x1e\xea\xbe\x38\xf8\x61\xff\x53\xc7\x8e\x5e\x18\x1a\xf9\xb5\x67\x77\x7a" "\x9c\xb6\x6b\xc0\x89\x4b\xed\x99\x5b\xb7\x1b\x63\xc3\x23\x23\xa3\x3d\x9b" "\x6b\xf9\xdd\x3f\xd9\xb3\x6d\x30\xbf\x6f\xf1\x70\xba\x4e\x44\x2c\xbc\xf5" "\xf6\x9b\xad\xe9\xe9\xa9\xf9\x07\x7f\x50\x7e\x04\x76\x51\xfd\x00\x3d\x48" "\xb5\x83\xd4\xd3\xfc\x37\x34\xf6\x4b\x7b\x0e\xe0\x83\xa8\xed\x8b\x66\x3c" "\x9e\xbe\xf3\x04\x28\xaf\xff\x1f\x44\x8a\xdf\x7e\xff\xdf\xbb\x17\xfc\xce" "\xf5\xbf\x1e\xff\xaf\xf3\xec\xce\x15\x3e\x7e\xfe\x27\x1b\xd7\xff\x97\xb7" "\xee\xe8\x3e\xaf\xff\xb5\xad\xf5\xf2\xf5\xbf\xbc\xa6\x6f\x77\xfd\x7f\xba" "\x67\xdb\xcb\xf9\xbb\x91\xbe\x5a\x44\x7d\xf1\xe6\x5c\xdf\xb1\x88\xfa\xc2" "\x5b\x6f\x9f\x6c\xdf\x6c\xdd\x98\xba\x31\x35\x73\xee\xd4\xa9\x2f\x0f\x0d" "\x7d\xf9\xec\xa9\xbe\xc3\x11\xf5\xeb\xed\xe9\xa9\x9e\x47\x0f\xe5\x70\x01" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x3c\x3a\xa9\x88\xdf\x8d" "\x14\xad\x1f\xaf\xa5\x46\x44\xdc\xae\xe6\x6b\x0d\x5e\x18\x7a\xfe\xe4\x73" "\x87\xe2\x50\x35\xdf\x6a\xd3\xbc\xed\x37\x46\xaf\x5e\x6c\xbc\x3a\x7b\x73" "\x6e\x7e\x6a\x61\x61\x6a\xb2\x31\x36\xd3\x9e\x98\x9d\x9c\xba\xdf\xb7\xab" "\x57\xd3\xbd\xc6\x86\x47\xf6\xa4\x33\xf7\x34\xb0\xc7\xed\x1f\xa8\xbf\x3a" "\x3b\xf7\xd6\x7c\xfb\xc6\x1f\x2e\x6e\xfb\xfa\x91\xfa\xc5\x6b\x0b\x8b\xf3" "\xad\x89\xed\x5f\x8e\x81\x28\x22\x9a\xbd\x5b\x4e\x54\x0d\x1e\x1b\x1e\xa9" "\x1a\x3d\xdd\x6e\xcd\x54\x55\xaf\x6c\x3b\x99\xfe\x97\xd7\x97\x8a\xf8\x8f" "\x48\x31\x71\xae\x91\x3e\x9f\xb7\xe5\xf9\xff\x5b\x67\xf8\x6f\x9a\xff\xbf" "\xb4\x75\x47\x7b\x34\xff\xff\x13\x3d\xdb\xca\xf7\x4c\xa9\x88\x9f\x47\x8a" "\xdf\xfa\x8b\x67\xe3\xf3\x55\x3b\x8f\xc4\x5d\xc7\x2c\x97\xfb\x9b\x48\x71" "\xe2\xfc\xe7\x72\xb9\x38\x5c\x96\xeb\xb6\xa1\x73\x5f\x81\xce\xcc\xc0\xb2" "\xec\xff\x44\x8a\x7f\xf8\xc5\xe6\xb2\xdd\xf9\x90\x4f\x6f\x94\x3d\x7d\xdf" "\x07\xf6\x80\x28\xc7\xff\x68\xa4\xf8\xfe\x9f\x7d\x37\x7e\x3d\x6f\xdb\x7c" "\xff\x87\xed\xc7\xff\xc8\xd6\x1d\xed\xd1\xf8\x3f\xd3\xb3\xed\xc8\xa6\xfb" "\x15\xec\xba\xeb\xe4\xf1\x3f\x19\x29\x5e\x79\xfa\xdd\xf8\x8d\xbc\xed\xa3" "\xee\xff\xd1\xbd\xf7\xc6\xf1\x5c\xf8\xce\xfd\x39\xf6\x68\xfc\x3f\xd5\xb3" "\x6d\x30\xbf\xef\x6f\x3e\x9c\xae\x03\x00\x00\x00\x00\x00\x00\x00\x00\x1c" "\x68\x7d\xa9\x88\xbf\x8d\x14\x3f\x1c\xa9\xa5\x97\xf2\xb6\xfb\xf9\xfd\xbf" "\xc9\xad\x3b\xda\xa3\xdf\xff\xfa\x74\xcf\xb6\xc9\x87\xb3\x5e\xd1\x3d\x1f" "\xec\xfa\xa0\x02\x00\x00\x00\xc0\x3e\xd1\x97\x8a\xf8\x49\xa4\xb8\xb1\xf8" "\xee\x9d\x39\xd4\x9b\xe7\x7f\xf7\xcc\xff\xfc\x9d\x8d\xf9\x9f\xc3\x69\xcb" "\xab\xd5\xcf\xf9\x7e\xa5\xba\x6f\xc0\xc3\xfc\xf9\x5f\xaf\xc1\xfc\xbe\xe3" "\xbb\xef\x36\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\xec\x2b\x29\x15\xf1\x52\x5e\x4f\x7d\xbc\x9a\xcf\x3f\xb9\xe3\x7a\xea\x2b" "\x91\xe2\xb5\xff\x7a\x21\x97\x4b\xc7\xca\x72\xdd\x75\xe0\x07\xab\x3f\xeb" "\x97\x67\x67\x4e\x5e\x9c\x9e\x9e\x9d\x68\x2d\xb6\xae\x4d\x4f\x35\x46\xe7" "\x5a\x13\x53\x65\xdd\x67\x22\xc5\xda\x5f\x7f\x2e\xd7\x2d\xaa\xf5\xd5\xbb" "\xeb\xcd\x77\xd6\x78\xdf\x58\x8b\x7d\x3e\x52\x8c\xfc\x5d\xb7\x6c\x67\x2d" "\xf6\xee\xda\xe4\xcf\x6c\x94\x3d\x5d\x96\xfd\x44\xa4\xf8\xcf\xbf\xdf\x5c" "\xb6\xbb\x8e\xf5\xa7\x36\xca\x9e\x29\xcb\xfe\x55\xa4\xf8\xfa\x3f\x6d\x5f" "\xf6\xd8\x46\xd9\xb3\x65\xd9\xef\x46\x8a\x1f\x7d\xbd\xd1\x2d\x7b\xa4\x2c" "\xdb\xbd\x3f\xea\xa7\x37\xca\xbe\x38\x31\x5b\xec\xc1\xa8\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf0\xa4\xe9\x4b\x45\xfc\x69" "\xa4\xf8\xef\x9b\xcb\x77\xe6\xf2\xe7\xf5\xff\xfb\x7a\x9e\x56\xde\xf9\x66" "\xcf\x7a\xff\x5b\xdc\xae\xd6\xf9\x1f\xac\xd6\xff\xdf\xe9\xf1\x83\xac\xff" "\x5f\xdd\x57\x60\x69\xa7\x77\x05\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x80\x8f\xa7\x14\x45\xbc\x1d\x29\xe6\x2e\xaf\xa5" "\x95\xfe\xf2\x79\x47\xfd\x52\x7b\xe6\xd6\xed\xb1\xe1\x91\xed\xab\x0d\xa4" "\xaa\xe6\xa1\xaa\x7c\xf9\x55\x3f\x7d\xe6\xec\xb9\x2f\xbd\x34\x74\xbe\x9b" "\x1f\x5d\xff\x61\xfb\x4c\xbc\x31\x7a\xf5\x62\xe3\xd5\xd9\x9b\x73\xf3\x53" "\x0b\x0b\x53\x93\x8d\xb1\x99\xf6\xc4\xec\xe4\xd4\x7d\xef\x61\xb7\xf5\xb7" "\x3a\x51\x1d\x80\xc6\xcd\x37\x6f\x4d\x5e\xbf\xbe\xd0\x38\xf3\xe2\xd9\x4d" "\x2f\xdf\x1e\xfc\xb0\xff\xa9\x63\x83\x17\x86\x9e\x3f\xf9\x5c\xb7\xec\xd8" "\xf0\xc8\xc8\x68\x4f\x99\x5a\xdf\x03\xbf\xfb\x5d\xd2\x0e\xdb\x0f\x47\x11" "\x7f\x19\x29\x5e\xf8\xde\x4f\xd3\x0f\xfb\x23\x8a\xd8\xfd\xb1\xb8\xc7\x67" "\x67\xaf\x0d\x54\x9d\x38\x51\x75\x62\x6c\x78\xa4\xea\xc8\x74\xbb\x35\xb3" "\x58\xbe\x78\xa5\x7b\x20\x8a\x88\x46\x4f\xa5\x66\xf7\x18\x3d\x82\xb1\xd8" "\x95\x66\xc4\x52\xd9\xfc\xb2\xc1\x27\xca\xee\x8d\xce\xb5\xe6\x5b\xd7\xa6" "\xa7\x1a\x57\x5a\xf3\x8b\xed\xc5\xf6\xec\xcc\x95\xd4\x69\x6d\xd9\x9f\x46" "\x14\x71\x3e\x45\x2c\x47\xc4\x6a\xff\xdd\xbb\xeb\x8b\x22\xde\x8c\x14\xdf" "\x39\xba\x96\xfe\xb9\x3f\xe2\x50\xf7\x38\x7c\xf1\xf2\xe8\x57\x4f\x9d\xd9" "\xb9\x1d\xc5\x1e\xf6\x31\xa2\x7e\xaf\x02\x65\x3b\x1b\x7d\x11\xcb\xc5\x01" "\x18\xb3\x7d\xac\x3f\x8a\xf8\xc7\x48\xf1\xb3\xf7\x8e\xc7\xbf\xf4\x47\xd4" "\xa2\xf3\x15\x5f\x88\x78\xbd\xcc\x1f\x44\xbc\x13\x9d\xf1\x4e\xe5\x07\xe3" "\x5c\xc4\x07\xdb\x7c\x8e\x38\x98\x6a\x51\xc4\xff\x96\xe3\x7f\x61\x2d\xbd" "\xd7\x5f\x9e\x0f\xba\xe7\x95\x4b\x5f\x6b\x7c\x65\xe6\xfa\x6c\x4f\xd9\xee" "\x79\xe5\xc0\x5f\x1f\x1e\xa5\x7d\x7e\x6e\xaa\x47\x11\x3f\xaa\xce\xf8\x6b" "\xe9\x5f\xfd\xbd\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xd8" "\x47\x8a\xf8\xd5\x48\xf1\xf2\xfb\xc7\x53\x35\x3f\xf8\xce\x9c\xe2\xf6\xcc" "\x8d\xc6\xd5\xd6\xb5\xe9\xce\xb4\xbe\xee\xdc\xbf\xee\x9c\xe9\xf5\xf5\xf5" "\xf5\x46\xea\x64\x33\xe7\x78\xce\xa5\x9c\xcb\x39\x57\x72\xae\xe6\x8c\x22" "\xd7\xcf\xd9\x2c\xb3\xbe\xbe\x3e\x9e\x9f\x2f\xe5\x5c\xce\xb9\x92\x73\x35" "\x67\x1c\xca\xf5\x73\x36\x73\x8e\xe7\x5c\xca\xb9\x9c\x73\x25\xe7\x6a\xce" "\xa8\xe5\xfa\x55\x97\xd6\xd7\x9b\xf9\xf9\x78\xce\xa5\x9c\xcb\x39\x57\x72" "\xae\xe6\x8c\x7d\x32\x77\x0f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\xf8\x78\x29\xaa\xff\x52\x7c\xfb\x1b\x6b\x69\xbd\xbf\xb3\xbe" "\xf4\x78\x74\x72\xc5\x7a\xa0\x1f\x7b\xff\x17\x00\x00\xff\xff\xad\x2e\xee" "\xd2", 3133); syz_mount_image(/*fs=*/0x200000000080, /*dir=*/0x200000000040, /*flags=MS_POSIXACL|MS_REC|MS_RDONLY|MS_NOEXEC*/ 0x14009, /*opts=*/0x2000000001c0, /*chdir=*/-1, /*size=*/0xc3d, /*img=*/0x200000000f40); // mount arguments: [ // src: nil // dst: ptr[in, buffer] { // buffer: {2e 00} (length 0x2) // } // type: nil // flags: mount_flags = 0x2012024 (8 bytes) // data: nil // ] memcpy((void*)0x200000000000, ".\000", 2); syscall( __NR_mount, /*src=*/0ul, /*dst=*/0x200000000000ul, /*type=*/0ul, /*flags=MS_LAZYTIME|MS_POSIXACL|MS_REMOUNT|MS_NODEV|MS_MOVE*/ 0x2012024ul, /*data=*/0ul); // setrlimit arguments: [ // res: rlimit_type = 0x1 (8 bytes) // rlim: ptr[in, rlimit] { // rlimit { // soft: intptr = 0xffffffffffffffff (8 bytes) // hard: intptr = 0xffffffffffffffff (8 bytes) // } // } // ] *(uint64_t*)0x200000000100 = -1; *(uint64_t*)0x200000000108 = -1; syscall(__NR_setrlimit, /*res=RLIMIT_FSIZE*/ 1ul, /*rlim=*/0x200000000100ul); // open arguments: [ // file: ptr[in, buffer] { // buffer: {2e 2f 62 75 73 00} (length 0x6) // } // flags: open_flags = 0xca942 (8 bytes) // mode: open_mode = 0x0 (8 bytes) // ] // returns fd memcpy((void*)0x2000000000c0, "./bus\000", 6); res = syscall( __NR_open, /*file=*/0x2000000000c0ul, /*flags=O_NONBLOCK|O_NOCTTY|O_NOATIME|O_LARGEFILE|O_CREAT|0x82002*/ 0xca942ul, /*mode=*/0ul); if (res != -1) r[0] = res; // ftruncate arguments: [ // fd: fd (resource) // len: intptr = 0x8002007ffb (8 bytes) // ] syscall(__NR_ftruncate, /*fd=*/r[0], /*len=*/0x8002007ffbul); } int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffffffff000ul, /*len=*/0x1000, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x200000000000ul, /*len=*/0x1000000, /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/ 7ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x200001000000ul, /*len=*/0x1000, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); const char* reason; (void)reason; loop(); return 0; }