// 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 = 0x2008000 (8 bytes) // opts: ptr[inout, array[ANYUNION]] { // array[ANYUNION] { // union ANYUNION { // ANYBLOB: buffer: {69 6f 63 68 61 72 73 65 74 3d 63 70 31 32 35 30 // 2c 6e 6f 61 64 69 6e 69 63 62 2c 6e 6f 61 64 69 6e 69 63 62 2c 73 // 68 6f 72 74 61 64 2c 75 69 64 3d 66 6f 72 67 65 74 2c 67 69 64 3d // 66 6f 72 67 65 74 2c 67 69 64 3d 69 67 6e 6f 72 65 2c 6e 6f 61 64 // 69 6e 69 63 62 2c 76 6f 6c 75 6d 65 3d 30 30 30 30 30 30 30 30 30 // 30 30 30 30 30 30 30 30 30 30 32 2c 00 50 8d 5c 6f d1 4a 14 05 18 // c2 f8 94 9e c5 02 a2 9e c1 c3 79 5f d4 7c 03 a3 a7 2c 97 98 4a 35 // 02 b5 1d 8b fa 33 ab 60 90 f2 e4 dc 00 fe 8e d0 b4 1f 90 5b 98 97 // 3a 0c a9 e4 c5 ee a9 e8 f3 94 f5 f1 2b 6f 8f 8f 86 dd a2 c5 d5 dd // 18 d0 07 5d a5 90 34 af 30 63 72 c1 b6 cf 04 e0 23 75 a1 f7 ce 9a // 91 0a 4f c4 7c 7e 3a 34 fd} (length 0xdf) // } // } // } // chdir: int8 = 0x2 (1 bytes) // size: len = 0xc40 (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0xc40) // } // ] // returns fd_dir memcpy((void*)0x200000000f00, "udf\000", 4); memcpy((void*)0x200000000080, "./file1\000", 8); memcpy( (void*)0x2000000002c0, "\x69\x6f\x63\x68\x61\x72\x73\x65\x74\x3d\x63\x70\x31\x32\x35\x30\x2c\x6e" "\x6f\x61\x64\x69\x6e\x69\x63\x62\x2c\x6e\x6f\x61\x64\x69\x6e\x69\x63\x62" "\x2c\x73\x68\x6f\x72\x74\x61\x64\x2c\x75\x69\x64\x3d\x66\x6f\x72\x67\x65" "\x74\x2c\x67\x69\x64\x3d\x66\x6f\x72\x67\x65\x74\x2c\x67\x69\x64\x3d\x69" "\x67\x6e\x6f\x72\x65\x2c\x6e\x6f\x61\x64\x69\x6e\x69\x63\x62\x2c\x76\x6f" "\x6c\x75\x6d\x65\x3d\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30" "\x30\x30\x30\x30\x30\x30\x32\x2c\x00\x50\x8d\x5c\x6f\xd1\x4a\x14\x05\x18" "\xc2\xf8\x94\x9e\xc5\x02\xa2\x9e\xc1\xc3\x79\x5f\xd4\x7c\x03\xa3\xa7\x2c" "\x97\x98\x4a\x35\x02\xb5\x1d\x8b\xfa\x33\xab\x60\x90\xf2\xe4\xdc\x00\xfe" "\x8e\xd0\xb4\x1f\x90\x5b\x98\x97\x3a\x0c\xa9\xe4\xc5\xee\xa9\xe8\xf3\x94" "\xf5\xf1\x2b\x6f\x8f\x8f\x86\xdd\xa2\xc5\xd5\xdd\x18\xd0\x07\x5d\xa5\x90" "\x34\xaf\x30\x63\x72\xc1\xb6\xcf\x04\xe0\x23\x75\xa1\xf7\xce\x9a\x91\x0a" "\x4f\xc4\x7c\x7e\x3a\x34\xfd", 223); memcpy( (void*)0x200000002740, "\x78\x9c\xec\xdd\x4f\x6c\x1c\xd7\x7d\x07\xf0\xdf\x1b\xed\x8a\x2b\xbb\xad" "\x98\xd8\x51\x9c\x34\x2e\x36\x6d\x91\xca\x8a\xe5\xea\x5f\x4c\xc5\x2a\xec" "\x55\x4d\xb3\x0d\x20\xcb\x42\x28\xe6\x16\x80\x2b\x91\x52\x17\xa6\x48\x82" "\xa4\x1a\xd9\x48\x0b\xa6\x97\x1e\x7a\x08\x50\x14\x3d\xe4\x44\xa0\x35\x0a" "\xa4\x68\x60\x34\x45\xd0\x23\xd3\xba\x40\x72\xf1\xa1\xc8\xa9\x27\xa2\x85" "\x8d\xa0\xe8\x81\x2d\x02\xe4\x14\xb0\x98\xd9\xb7\xe2\x8a\x22\x2d\x46\x14" "\x29\xca\xfa\x7c\x6c\xea\xbb\x3b\xf3\xde\xec\x7b\xf3\xd6\x33\xb2\xa0\x37" "\x2f\x00\x00\x00\x00\x00\x00\x00\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\x88\xdf\x7f" "\xed\xfc\x89\x93\xe9\x61\xb7\x02\x00\xd8\x4b\x17\x47\xbf\x7a\xe2\x94\xfb" "\x3f\x00\x3c\x56\x2e\xfb\xff\x7f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\xd8\xef\x52\x14\xf1\x54\xa4\x98\xbd\xb8\x9a\xc6\xab\xf7\x5d\x8d\x0b" "\x9d\xfa\xcd\x5b\x63\xc3\x23\x9b\x57\x3b\x94\xaa\x9a\x07\xaa\xf2\xe5\x4f" "\xe3\xe4\xa9\xd3\x67\xbe\xf4\xe2\xd0\xd9\x5e\x5e\xe8\x4c\x7f\x44\xfd\x07" "\xed\xb3\xf1\xc6\xe8\xe5\xf3\xcd\x57\x67\x6e\xcc\xce\x4d\xce\xcf\x4f\x4e" "\x34\xc7\xa6\x3b\x57\x67\x26\x26\xb7\x7d\x84\x9d\xd6\xdf\xe8\x58\x75\x02" "\x9a\x37\xde\xbc\x39\x71\xed\xda\x7c\xf3\xd4\x0b\xa7\xef\xd8\x7d\x6b\xf0" "\xc3\x81\x27\x8f\x0c\x9e\x1b\x7a\xee\xf8\xb3\xbd\xb2\x63\xc3\x23\x23\xa3" "\xeb\x45\x1a\xfd\xe5\x6b\xf7\xdd\x90\xae\xad\x66\x78\x1c\x8c\x22\x8e\x47" "\x8a\xe7\xbf\xf7\xd3\xd4\x8e\x88\x22\x76\x7e\x2e\x1a\x7b\x3b\xf6\x1b\x1d" "\xaa\x3a\x71\xac\xea\xc4\xd8\xf0\x48\xd5\x91\xa9\x4e\x7b\x7a\xa1\xdc\x79" "\xa9\x77\x22\x8a\x88\x66\x5f\xa5\x56\xef\x1c\x6d\x3e\x16\x51\xab\xef\x69" "\x1f\xb6\xd6\x8a\x58\x2c\x9b\x5f\x36\xf8\x58\xd9\xbd\xd1\xd9\xf6\x5c\xfb" "\xca\xd4\x64\xf3\x52\x7b\x6e\xa1\xb3\xd0\x99\x99\xbe\x94\xba\xad\x2d\xfb" "\xd3\x8c\x22\xce\xa6\x88\xa5\x88\x58\x19\xb8\xfb\x70\xf5\x28\xa2\x16\x29" "\xbe\x73\x78\x35\x5d\x89\x88\x03\xbd\xf3\xf0\xc5\x6a\x62\xf0\xd6\xed\x28" "\x76\xb1\x8f\xdb\x50\xb6\xb3\x59\x8f\x58\x2a\x1e\x81\x31\xdb\xc7\x06\xa2" "\x88\xd7\x23\xc5\xcf\xde\x3b\x1a\x57\xf3\x75\xa6\xba\xd6\x7c\x21\xe2\xf5" "\x32\x7f\x10\xf1\x4e\x99\x2f\x47\xa4\xf2\x8b\x71\x26\xe2\x83\x4d\xbe\x47" "\x3c\x9a\x6a\x51\xc4\x5f\x94\xe3\x7f\x6e\x35\x4d\x54\xd7\x83\xde\x75\xe5" "\xc2\xd7\x9a\x5f\x99\xbe\x36\xd3\x57\xb6\x77\x5d\xf9\x25\xef\x0f\x77\x5d" "\x29\x1e\xd2\xfd\xe1\xd0\x86\xdc\x1b\xfb\xfc\xda\xd4\x88\x22\xda\xd5\x15" "\x7f\x35\xdd\xff\x6f\x76\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x78\xd0\x0e\x45\x11\x9f\x89\x14\xaf\xfd\xfb\x1f\x57\xf3\x8a\xa3\x9a" "\x97\x7e\xf8\xdc\xd0\x1f\x0c\xfe\x6a\xff\x9c\xf1\x67\xee\x71\x9c\xb2\xec" "\x0b\x11\xb1\x58\x6c\x6f\x4e\xee\xc1\x3c\x31\xf0\x52\xba\x94\xd2\x43\x9e" "\x4b\xfc\x38\x6b\x44\x11\x7f\x92\xe7\xff\x7d\xeb\x61\x37\x06\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xe0\xb1\x56\xc4\x4f\x22\xc5" "\x4b\xef\x1f\x4d\x4b\xd1\xbf\xa6\x78\x67\xfa\x7a\xf3\x72\xfb\xca\x54\x77" "\x55\xd8\xde\xda\xbf\xbd\x35\xd3\xd7\xd6\xd6\xd6\x9a\xa9\x9b\xad\x9c\xe3" "\x39\x17\x73\x2e\xe5\x5c\xce\xb9\x92\x33\x8a\x5c\x3f\x67\x2b\xe7\x78\xce" "\xc5\x9c\x4b\x39\x97\x73\xae\xe4\x8c\x03\xb9\x7e\xce\x56\xce\xf1\x9c\x8b" "\x39\x97\x72\x2e\xe7\x5c\xc9\x19\xb5\x9c\x5d\x8b\xad\xfc\x7e\x3c\xe7\x62" "\xce\xa5\x9c\xcb\x39\x57\x7a\xf5\xf6\xc9\xda\xbd\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x1f\x27\x45\x14\xf1\x8b\x48\xf1\xed\x6f\xac\xa6\x48" "\x11\xd1\x8a\x18\x8f\x6e\x2e\x0f\x3c\xec\xd6\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\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xa5\x81\x54\xc4\xf7" "\x23\x45\xf3\x0f\x5b\xb7\xb7\xd5\x22\x22\x55\xff\x76\x1d\x2d\x7f\x39\x13" "\xad\x83\x65\x7e\x32\x5a\x43\x65\xbe\x1c\xad\xf3\x39\xdb\x55\xd6\x5a\xdf" "\x7a\x08\xed\x67\x67\xea\xa9\x88\x1f\x47\x8a\x81\xc6\xbb\xb7\x07\x3c\x8f" "\x7f\xbd\xfb\xee\xf6\xd7\x20\xde\xf9\xe6\xfa\xbb\xcf\xd6\xba\x79\xa0\xb7" "\x73\xf0\xc3\x81\x27\x8f\x1c\x3e\x37\x34\xf2\x1b\xcf\x6c\xf5\x3a\x6d\xd6" "\x80\x63\x17\x3a\xd3\x37\x6f\x35\xc7\x86\x47\x46\x46\xfb\x36\xd7\xf2\xa7" "\x7f\xb2\x6f\xdb\x60\xfe\xdc\xe2\xc1\x74\x9d\x88\x98\x7f\xeb\xed\x37\xdb" "\x53\x53\x93\x73\xf7\xff\xa2\xfc\x0a\xec\xa0\xfa\x23\xf4\x22\xd5\xee\xee" "\xe9\x2b\x8f\x49\xdf\x1f\xcb\x17\x51\xdb\x17\xcd\xb8\xfd\xa2\xb1\x97\x7d" "\xe7\x31\x50\xde\xff\x3f\x88\x14\xbf\xfb\xfe\x7f\xf4\x6e\xf8\xdd\xfb\x7f" "\x23\x7e\xa5\xfb\xee\xf6\x1d\x3e\x7e\xfe\xa7\xeb\xf7\xff\x97\x36\x1e\x68" "\x9b\xf7\xff\xda\xc6\x7a\xf9\xfe\x5f\xde\xd3\x37\xbb\xff\x3f\xd5\xb7\xed" "\xa5\xfc\xbb\x91\x7a\x2d\xa2\xb1\x70\x63\xb6\x7e\x24\xa2\x31\xff\xd6\xdb" "\xc7\x3b\x37\xda\xd7\x27\xaf\x4f\x4e\x9f\x39\x71\xe2\xcb\x43\x43\x5f\x3e" "\x7d\xa2\x7e\x30\xa2\x71\xad\x33\x35\xd9\xf7\xea\x81\x9c\x2e\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\xbd\x93\x8a\x78\x25\x52\xb4\x7f" "\xbc\x9a\x9a\x11\x71\xab\x9a\xaf\x35\x78\x6e\xe8\xb9\xe3\xcf\x1e\x88\x03" "\xd5\x7c\xab\x3b\xe6\x6d\xbf\x31\x7a\xf9\x7c\xf3\xd5\x99\x1b\xb3\x73\x93" "\xf3\xf3\x93\x13\xcd\xb1\xe9\xce\xd5\x99\x89\xc9\xed\x7e\x5c\xa3\x9a\xee" "\x35\x36\x3c\xb2\x2b\x9d\xb9\xa7\x43\xbb\xdc\xfe\x43\x8d\x57\x67\x66\xdf" "\x9a\xeb\x5c\xff\xa3\x85\x4d\xf7\x3f\xd1\x38\x7f\x65\x7e\x61\xae\x7d\x75" "\xf3\xdd\x71\x28\x8a\x88\x56\xff\x96\x63\x55\x83\xc7\x86\x47\xaa\x46\x4f" "\x75\xda\xd3\x55\xd5\x4b\x9b\x4e\xa6\xff\xe5\xd5\x53\x11\xff\x19\x29\xae" "\x9e\x69\xa6\xcf\xe7\x6d\x79\xfe\xff\xc6\x19\xfe\x77\xcc\xff\x5f\xdc\x78" "\xa0\x5d\x9a\xff\xff\x89\xbe\x6d\xe5\x67\xa6\x54\xc4\xcf\x23\xc5\xef\xfc" "\xe5\x33\xf1\xf9\xaa\x9d\x4f\xc4\x5d\xe7\x2c\x97\xfb\xdb\x48\x71\xec\xec" "\xe7\x72\xb9\x38\x58\x96\xeb\xb5\xa1\xfb\x5c\x81\xee\xcc\xc0\xb2\xec\xff" "\x46\x8a\x7f\xfc\xc5\x9d\x65\x7b\xf3\x21\x9f\x5a\x2f\x7b\x72\xdb\x27\xf6" "\x11\x51\x8e\xff\xe1\x48\xf1\xfd\x3f\xff\x6e\xfc\x66\xde\x76\xe7\xf3\x1f" "\x36\x1f\xff\x27\x36\x1e\x68\x97\xc6\xff\xe9\xbe\x6d\x4f\xdc\xf1\xbc\x82" "\x1d\x77\x9d\x3c\xfe\xc7\x23\xc5\xcb\x4f\xbd\x1b\xbf\x95\xb7\x7d\xd4\xf3" "\x3f\x7a\xcf\xde\x38\x9a\x0b\xdf\x7e\x3e\xc7\x3d\xc6\xbf\xbe\xf1\x3e\xd2" "\x73\x8f\xf1\xff\x54\xdf\xb6\xc1\xfc\xb9\xbf\xfd\x60\xba\x0e\x00\x00\x00" "\x00\x00\x00\x00\x00\xf0\x48\xab\xa7\x22\xfe\x2e\x52\xfc\x70\xa4\x96\x5e" "\xcc\xdb\xb6\xf3\xf7\xff\x26\x36\x1e\x68\x97\xfe\xfe\xdf\xa7\xfb\xb6\x4d" "\x3c\x98\xf5\x8a\xee\xf9\x62\xc7\x27\x15\x00\x00\x00\x00\xf6\x89\x7a\x2a" "\xe2\x27\x91\xe2\xfa\xc2\xbb\xb7\xe7\x50\xdf\x39\xff\xbb\x6f\xfe\xe7\xef" "\xad\xcf\xff\x1c\x4e\x1b\xf6\x56\x7f\xce\xf7\x6b\xd5\x73\x03\x1e\xe4\x9f" "\xff\xf5\x1b\xcc\x9f\x3b\xbe\xf3\x6e\x03\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\xc0\xbe\x92\x52\x11\x2f\xe6\xf5\xd4\xc7\xab\xf9" "\xfc\x13\x5b\xae\xa7\xbe\x1c\x29\x5e\xfb\xef\xe7\x73\xb9\x74\xa4\x2c\xd7" "\x5b\x07\x7e\xb0\xfa\xb5\x71\x71\x66\xfa\xf8\xf9\xa9\xa9\x99\xab\xed\x85" "\xf6\x95\xa9\xc9\xe6\xe8\x6c\xfb\xea\x64\x59\xf7\xe9\x48\xb1\xfa\x37\x9f" "\xcb\x75\x8b\x6a\x7d\xf5\xde\x7a\xf3\xdd\x35\xde\xd7\xd7\x62\x9f\x8b\x14" "\x23\x7f\xdf\x2b\xdb\x5d\x8b\xbd\xb7\x36\xf9\xd3\xeb\x65\x4f\x96\x65\x3f" "\x11\x29\xfe\xeb\x1f\xee\x2c\xdb\x5b\xc7\xfa\x53\xeb\x65\x4f\x95\x65\xff" "\x3a\x52\x7c\xfd\x9f\x37\x2f\x7b\x64\xbd\xec\xe9\xb2\xec\x77\x23\xc5\x8f" "\xbe\xde\xec\x95\x7d\xa2\x2c\xdb\x7b\x3e\xea\xa7\xd7\xcb\xbe\x70\x75\xa6" "\xd8\x85\x51\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\xe0\x71\x53\x4f\x45\xfc\x59\xa4\xf8\x9f\x1b\x4b\xb7\xe7\xf2\xe7\xf5\xff" "\xeb\x7d\x6f\x2b\xef\x7c\xb3\x6f\xbd\xff\x0d\x6e\x55\xeb\xfc\x0f\x56\xeb" "\xff\x6f\xf5\xfa\x7e\xd6\xff\xaf\x9e\x2b\xb0\xb8\xd5\xa7\x02\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc0\xc7\x53\x8a\x22" "\xde\x8e\x14\xb3\x17\x57\xd3\xf2\x40\xf9\xbe\xab\x71\xa1\x33\x7d\xf3\xd6" "\xd8\xf0\xc8\xe6\xd5\x0e\xa5\xaa\xe6\x81\xaa\x7c\xf9\xd3\x38\x79\xea\xf4" "\x99\x2f\xbd\x38\x74\xb6\x97\x1f\x5d\xff\x41\xfb\x4c\xbc\x31\x7a\xf9\x7c" "\xf3\xd5\x99\x1b\xb3\x73\x93\xf3\xf3\x93\x13\xcd\xb1\xe9\xce\xd5\x99\x89" "\xc9\x6d\x1f\x61\xa7\xf5\x37\x3a\x56\x9d\x80\xe6\x8d\x37\x6f\x4e\x5c\xbb" "\x36\xdf\x3c\xf5\xc2\xe9\x6a\xf3\xc1\xbc\xfb\xd6\xe0\x87\x03\x4f\x1e\x19" "\x3c\x37\xf4\xdc\xf1\x67\x7b\x65\xc7\x86\x47\x46\x46\xfb\x0e\x51\xab\xdf" "\xf7\xa7\xdf\x25\x6d\xb1\xfd\x60\x14\xf1\x57\x91\xe2\xf9\xef\xfd\x34\xfd" "\x70\x20\xa2\x88\x9d\x9f\x8b\x7b\x7c\x77\x76\xdb\xa1\xaa\x13\xc7\xaa\x4e" "\x8c\x0d\x8f\x54\x1d\x99\xea\xb4\xa7\x17\xca\x9d\x97\x7a\x27\xa2\x88\x68" "\xf6\x55\x6a\xf5\xce\xd1\x1e\x8c\xc5\x8e\xb4\x22\x16\xcb\xe6\x97\x0d\x3e" "\x56\x76\x6f\x74\xb6\x3d\xd7\xbe\x32\x35\xd9\xbc\xd4\x9e\x5b\xe8\x2c\x74" "\x66\xa6\x2f\xa5\x6e\x6b\xcb\xfe\x34\xa3\x88\xb3\x29\x62\x29\x22\x56\x06" "\xee\x3e\x5c\x3d\x8a\x78\x33\x52\x7c\xe7\xf0\x6a\xfa\x97\x81\x88\x03\xbd" "\xf3\xf0\xc5\x8b\xa3\x5f\x3d\x71\x6a\xeb\x76\x14\xbb\xd8\xc7\x6d\x28\xdb" "\xd9\xac\x47\x2c\x15\x8f\xc0\x98\xed\x63\x03\x51\xc4\x3f\x45\x8a\x9f\xbd" "\x77\x34\xfe\x75\x20\xa2\x16\xdd\x9f\xf8\x42\xc4\xeb\x65\xfe\x20\xe2\x9d" "\xe8\x8e\x77\x2a\xbf\x18\x67\x22\x3e\xd8\xe4\x7b\xc4\xa3\xa9\x16\x45\xfc" "\x5f\x39\xfe\xe7\x56\xd3\x7b\x03\xe5\xf5\xa0\x77\x5d\xb9\xf0\xb5\xe6\x57" "\xa6\xaf\xcd\xf4\x95\xed\x5d\x57\x1e\xf9\xfb\xc3\x5e\xda\xfa\xda\xf4\xca" "\x9e\xb6\x63\x0b\x8d\x28\xe2\x47\xd5\x15\x7f\x35\xfd\x9b\xff\xae\x01\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf6\x91\x22\x7e\x3d\x52\xbc" "\xf4\xfe\xd1\x54\xcd\x0f\xce\x73\x8a\x9f\xce\x7b\xaf\x4c\x75\xa7\xf5\xf5" "\xe6\xfe\xf5\xe6\x4c\xaf\xad\xad\xad\x35\x53\x37\x5b\x39\xc7\x73\x2e\xe6" "\x5c\xca\xb9\x9c\x73\x25\x67\x14\xb9\x7e\xce\x56\x99\x8d\xb5\xb5\xf1\xfc" "\x7e\x31\xe7\x52\xce\xe5\x9c\x2b\x39\xe3\x40\xae\x9f\xb3\x95\x73\x3c\xe7" "\x62\xce\xa5\x9c\xcb\x39\x57\x72\x46\x2d\xd7\xcf\xd9\xca\x39\x9e\x73\x31" "\xe7\x52\xce\xe5\x9c\x2b\x39\xc3\xbc\x62\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x60\x17\x14\xd5\x3f\x29\xbe\xfd\x8d\xd5\xb4\x36" "\xd0\x5d\x5f\x7a\x3c\xba\xb9\x6c\x3d\xd0\x8f\xbd\xff\x0f\x00\x00\xff\xff" "\xda\x50\xf0\xda", 3136); syz_mount_image(/*fs=*/0x200000000f00, /*dir=*/0x200000000080, /*flags=MS_LAZYTIME|MS_SILENT*/ 0x2008000, /*opts=*/0x2000000002c0, /*chdir=*/2, /*size=*/0xc40, /*img=*/0x200000002740); // 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); // creat arguments: [ // file: ptr[in, buffer] { // buffer: {2e 2f 62 75 73 00} (length 0x6) // } // mode: open_mode = 0x0 (8 bytes) // ] // returns fd memcpy((void*)0x200000000000, "./bus\000", 6); res = syscall(__NR_creat, /*file=*/0x200000000000ul, /*mode=*/0ul); if (res != -1) r[0] = res; // ftruncate arguments: [ // fd: fd (resource) // len: intptr = 0x3fffffffc00 (8 bytes) // ] syscall(__NR_ftruncate, /*fd=*/r[0], /*len=*/0x3fffffffc00ul); } int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffffffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x200000000000ul, /*len=*/0x1000000ul, /*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=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); const char* reason; (void)reason; loop(); return 0; }