// https://syzkaller.appspot.com/bug?id=1fc5799a4a70b8c6393ac8ad40103ace62c470b2 // 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 #ifndef __NR_memfd_create #define __NR_memfd_create 319 #endif static unsigned long long procid; //% 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; } 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; 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 = 0x804000 (8 bytes) // opts: ptr[inout, array[ANYUNION]] { // array[ANYUNION] { // union ANYUNION { // ANYBLOB: buffer: {6c 61 73 74 62 6c 6f 63 6b 3d 30 30 30 30 30 30 // 30 30 30 30 30 30 30 30 30 30 30 30 30 30 2c 75 6d 61 73 6b 3d 30 // 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 // 2c 75 6e 64 65 6c 65 74 65 2c 6c 6f 6e 67 61 64 2c 73 68 6f 72 74 // 61 64 2c 75 69 64 3d 66 6f 72 67 65 74 2c 75 6e 64 65 6c 65 74 65 // 2c 69 6f 63 68 61 72 73 65 74 3d 75 74 66 38 2c 73 68 6f 72 74 61 // 64 2c 69 6f 63 68 61 72 73 65 74 3d 64 65 66 61 75 6c 74 2c 75 69 // 64 3d 66 6f 72 67 65 74 2c 6e 6f 73 74 72 69 63 74 2c 73 65 73 73 // 69 6f 6e 3d 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 // 30 30 2c 70 61 72 74 69 74 69 6f 6e 3d 30 30 30 30 30 30 30 30 30 // 30 30 30 30 30 30 30 30 30 30 36 2c 00 b2 e0 1f 5c 0b 5c 8f b2 62 // 3d 8f 88 8e 41 df ce b3 ec f9 59 d2 3d 90 b0 71 66 06 60 b1 78 84 // bd 10 9d 37 08 60 24 cf 83 fa} (length 0x10c) // } // } // } // chdir: int8 = 0x2 (1 bytes) // size: len = 0xc36 (8 bytes) // img: ptr[in, buffer] { // buffer: (compressed buffer with length 0xc36) // } // ] // returns fd_dir memcpy((void*)0x2000000000c0, "udf\000", 4); memcpy((void*)0x200000000180, "./file1\000", 8); memcpy( (void*)0x200000000f00, "\x6c\x61\x73\x74\x62\x6c\x6f\x63\x6b\x3d\x30\x30\x30\x30\x30\x30\x30\x30" "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x2c\x75\x6d\x61\x73\x6b" "\x3d\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30" "\x30\x30\x30\x30\x30\x30\x2c\x75\x6e\x64\x65\x6c\x65\x74\x65\x2c\x6c\x6f" "\x6e\x67\x61\x64\x2c\x73\x68\x6f\x72\x74\x61\x64\x2c\x75\x69\x64\x3d\x66" "\x6f\x72\x67\x65\x74\x2c\x75\x6e\x64\x65\x6c\x65\x74\x65\x2c\x69\x6f\x63" "\x68\x61\x72\x73\x65\x74\x3d\x75\x74\x66\x38\x2c\x73\x68\x6f\x72\x74\x61" "\x64\x2c\x69\x6f\x63\x68\x61\x72\x73\x65\x74\x3d\x64\x65\x66\x61\x75\x6c" "\x74\x2c\x75\x69\x64\x3d\x66\x6f\x72\x67\x65\x74\x2c\x6e\x6f\x73\x74\x72" "\x69\x63\x74\x2c\x73\x65\x73\x73\x69\x6f\x6e\x3d\x30\x30\x30\x30\x30\x30" "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x2c\x70\x61\x72" "\x74\x69\x74\x69\x6f\x6e\x3d\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30" "\x30\x30\x30\x30\x30\x30\x30\x30\x36\x2c\x00\xb2\xe0\x1f\x5c\x0b\x5c\x8f" "\xb2\x62\x3d\x8f\x88\x8e\x41\xdf\xce\xb3\xec\xf9\x59\xd2\x3d\x90\xb0\x71" "\x66\x06\x60\xb1\x78\x84\xbd\x10\x9d\x37\x08\x60\x24\xcf\x83\xfa", 268); memcpy( (void*)0x200000001040, "\x78\x9c\xec\xdd\x4f\x6c\x5c\xd7\x79\x37\xe0\xf7\x5c\xcd\x88\x23\xf9\xfb" "\x2a\x26\x76\x14\x27\x8d\x8b\x49\x5b\xa4\xb2\x62\xb9\xfa\x17\x53\xb1\x0a" "\x77\x54\xd3\x6c\x03\xc8\xb2\x10\x8a\xd9\x05\xe0\x48\xa4\xd4\xa9\x29\x92" "\x20\xa9\x46\x36\xd2\x82\xe9\xa6\x8b\x2e\x02\x14\x45\x17\x59\x11\x68\x8d" "\x02\x29\x1a\x18\x4d\x11\x74\xc9\xb4\x2e\x90\x6c\xbc\x28\xb2\x2a\xba\x20" "\x5a\xd8\x08\x8a\x2e\xd8\x22\x40\x56\x01\x8b\x7b\xe7\x8c\x38\xa4\x48\x9b" "\x36\x45\x89\x92\x9e\xc7\xa6\x7e\x33\x77\xce\x99\x39\xe7\xde\xf1\xbd\xb2" "\xa0\xf7\x9e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x22" "\x7e\xe7\x95\x0b\x27\x4f\xa5\x07\x3d\x0a\x00\xe0\x7e\xba\x34\xfa\xd5\x93" "\xa7\x5d\xff\x01\xe0\xb1\x72\xc5\xff\xff\x03\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\xc0\x7e\x97\xa2\x88\x27\x23\xc5\xec\xa5\xd5\x34\x5e\x3d\xef" "\x6a\x5c\xec\xd4\x6f\xdd\x1e\x1b\x1e\xd9\xba\xdb\xa1\x54\xf5\x3c\x50\xb5" "\x2f\x7f\x1a\xa7\x4e\x9f\x39\xfb\xa5\x17\x86\xce\xf5\xf2\x62\x67\xfa\x03" "\xfa\xdf\x6b\x9f\x8d\xd7\x46\xaf\x5c\x68\xbe\x3c\x73\x73\x76\x6e\x72\x7e" "\x7e\x72\xa2\x39\x36\xdd\xb9\x36\x33\x31\xb9\xe3\x77\xd8\x6d\xff\xcd\x8e" "\x57\x3b\xa0\x79\xf3\xf5\x5b\x13\xd7\xaf\xcf\x37\x4f\x3f\x7f\x66\xc3\xcb" "\xb7\x07\xdf\x1f\x78\xe2\xe8\xe0\xf9\xa1\x67\x4f\x3c\xd3\x6b\x3b\x36\x3c" "\x32\x32\xba\xde\xa4\xd1\xdf\xbe\xf6\xb1\x07\xd2\xb5\x5d\x85\xc7\xc1\x28" "\xe2\x44\xa4\x78\xee\x7b\x3f\x4d\xed\x88\x28\x62\xf7\xfb\xa2\x71\x7f\x8f" "\xfd\x66\x87\xaa\x49\x1c\xaf\x26\x31\x36\x3c\x52\x4d\x64\xaa\xd3\x9e\x5e" "\x28\x5f\xbc\xdc\xdb\x11\x45\x44\xb3\xaf\x53\xab\xb7\x8f\xb6\x3e\x16\x51" "\xab\xdf\xd7\x39\x6c\xaf\x15\xb1\x58\x0e\xbf\x1c\xf0\xf1\x72\x7a\xa3\xb3" "\xed\xb9\xf6\xd5\xa9\xc9\xe6\xe5\xf6\xdc\x42\x67\xa1\x33\x33\x7d\x39\x75" "\x47\x5b\xce\xa7\x19\x45\x9c\x4b\x11\x4b\x11\xb1\x32\x70\xf7\xdb\xd5\xa3" "\x88\x5a\xa4\xf8\xce\x91\xd5\x74\x35\x22\x0e\xf4\xf6\xc3\x17\xab\xc2\xe0" "\xed\xc7\x51\xec\xe1\x1c\x77\xa0\x1c\x67\xb3\x1e\xb1\x54\x3c\x04\xc7\x6c" "\x1f\x1b\x88\x22\x5e\x8d\x14\x3f\x7b\xe7\x58\x5c\xcb\xe7\x99\xea\x5c\xf3" "\x85\x88\x57\xcb\xfc\x41\xc4\x5b\x65\xbe\x14\x91\xca\x2f\xc6\xd9\x88\xf7" "\xb6\xf8\x1e\xf1\x70\xaa\x45\x11\x7f\x56\x1e\xff\xf3\xab\x69\xa2\x3a\x1f" "\xf4\xce\x2b\x17\xbf\xd6\xfc\xca\xf4\xf5\x99\xbe\xb6\xbd\xf3\xca\x47\xbc" "\x3e\xdc\x75\xa6\x78\x40\xd7\x87\x43\x9b\xf2\xfe\xd8\xe7\xe7\xa6\x46\x14" "\xd1\xae\xce\xf8\xab\xe9\x23\xfc\x66\xe7\x0f\xf6\x72\x4c\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x74\x8b\xa5\x3f\x13\x29\x5e\xf9\xd7" "\x3f\xac\xea\x8a\xa3\xaa\x4b\x3f\x72\x7e\xe8\x77\x07\xff\x7f\x7f\xcd\xf8" "\xd3\x1f\xf2\x3e\x65\xdb\xe7\x23\x62\xb1\xd8\x59\x4d\xee\xc1\x5c\x18\x78" "\x39\x5d\x4e\xe9\x01\xd7\x12\x3f\xce\x1a\x51\xc4\x1f\xe5\xfa\xbf\x6f\x3d" "\xe8\xc1\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x3c" "\xd6\x8a\xf8\x49\xa4\xfa\x8b\xef\x1e\x4b\x4b\xd1\xbf\xa6\x78\x67\xfa\x46" "\xf3\x4a\xfb\xea\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\xdc" "\x3f\x67\x2b\xe7\x78\xce\xc5\x9c\x4b\x39\x97\x73\xae\xe4\x8c\x03\xb9\x7f" "\xce\x56\xce\xf1\x9c\x8b\x39\x97\x72\x2e\xe7\x5c\xc9\x19\xb5\xdc\x3f\x67" "\x2b\xe7\x78\xce\xc5\x9c\x4b\x39\x97\x73\xae\xe4\x8c\x7d\xb2\x76\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\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc0\xa3\xa4\x88\x22\x7e\x11\x29\xbe" "\xfd\x8d\xd5\x14\x29\x22\x5a\x11\xe3\xd1\xcd\xe5\x81\x07\x3d\x3a\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xa0" "\x34\x90\x8a\xf8\x7e\xa4\x68\xfe\x5e\xeb\xce\xb6\x5a\x44\xa4\xea\xdf\xae" "\x63\xe5\x2f\x67\xa3\x75\xb0\xcc\x4f\x46\x6b\xa8\xcc\x97\xa2\x75\x21\x67" "\xbb\xca\x5a\xeb\x5b\x0f\x60\xfc\xec\x4e\x3d\x15\xf1\xe3\x48\x31\xd0\x78" "\xfb\xce\x01\xcf\xc7\xbf\xde\x7d\x76\xe7\x6b\x10\x6f\x7d\x73\xfd\xd9\x67" "\x6b\xdd\x3c\xd0\x7b\x71\xf0\xfd\x81\x27\x8e\x1e\x39\x3f\x34\xf2\x2b\x4f" "\x6f\xf7\x38\x6d\x35\x80\xe3\x17\x3b\xd3\xb7\x6e\x37\xc7\x86\x47\x46\x46" "\xfb\x36\xd7\xf2\xa7\x7f\xb2\x6f\xdb\x60\xfe\xdc\xe2\xde\x4c\x9d\x88\x98" "\x7f\xe3\xcd\xd7\xdb\x53\x53\x93\x73\x1f\xff\x41\xf9\x15\xd8\x45\xf7\x87" "\xe8\x41\xaa\xed\x9f\x99\xfe\x7b\x44\xec\x83\x61\x3c\xda\x0f\xa2\xb6\x2f" "\x86\xf1\x60\xe6\xce\x63\xa0\xbc\xfe\xbf\x17\x29\x7e\xf3\xdd\x7f\xeb\x5d" "\xf0\xbb\xd7\xff\x46\xfc\xbf\xee\xb3\x3b\x57\xf8\xf8\xf9\x1f\xaf\x5f\xff" "\x5f\xdc\xfc\x46\x3b\xbc\xfe\xd7\x36\xf7\xcb\xd7\xff\xf2\x9a\xbe\xd5\xf5" "\xff\xc9\xbe\x6d\x2f\xe6\xdf\x8d\xd4\x6b\x11\x8d\x85\x9b\xb3\xf5\xa3\x11" "\x8d\xf9\x37\xde\x3c\xd1\xb9\xd9\xbe\x31\x79\x63\x72\xfa\xec\xc9\x93\x5f" "\x1e\x1a\xfa\xf2\x99\x93\xf5\x83\x11\x8d\xeb\x9d\xa9\xc9\xbe\x47\xf7\x64" "\x77\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xdc\x3f\xa9\x88" "\xdf\x8e\x14\xed\x1f\xaf\xa6\x66\x44\xdc\xae\xea\xb5\x06\xcf\x0f\x3d\x7b" "\xe2\x99\x03\x71\xa0\xaa\xb7\xda\x50\xb7\xfd\xda\xe8\x95\x0b\xcd\x97\x67" "\x6e\xce\xce\x4d\xce\xcf\x4f\x4e\x34\xc7\xa6\x3b\xd7\x66\x26\x26\x77\xfa" "\x71\x8d\xaa\xdc\x6b\x6c\x78\x64\x4f\x26\xf3\xa1\x0e\xed\xf1\xf8\x0f\x35" "\x5e\x9e\x99\x7d\x63\xae\x73\xe3\xf7\x17\xb6\x7c\xfd\x70\xe3\xc2\xd5\xf9" "\x85\xb9\xf6\xb5\xad\x5f\x8e\x43\x51\x44\xb4\xfa\xb7\x1c\xaf\x06\x3c\x36" "\x3c\x52\x0d\x7a\xaa\xd3\x9e\xae\xba\x5e\xde\xb2\x98\xfe\xa3\xab\xa7\x22" "\xfe\x23\x52\x5c\x3b\xdb\x4c\x9f\xcf\xdb\x72\xfd\xff\xe6\x0a\xff\x0d\xf5" "\xff\x8b\x9b\xdf\x68\x8f\xea\xff\x3f\xd1\xb7\xad\xfc\xcc\x94\x8a\xf8\x79" "\xa4\xf8\x8d\x3f\x7f\x3a\x3e\x5f\x8d\xf3\x70\xdc\xb5\xcf\x72\xbb\xbf\x8e" "\x14\xc7\xcf\x7d\x2e\xb7\x8b\x83\x65\xbb\xde\x18\xba\xf7\x15\xe8\x56\x06" "\x96\x6d\xff\x27\x52\xfc\xfd\x2f\x36\xb6\xed\xd5\x43\x3e\xb9\xde\xf6\xd4" "\x8e\x77\xec\x43\xa2\x3c\xfe\x47\x22\xc5\xf7\xff\xf4\xbb\xf1\xab\x79\xdb" "\xc6\xfb\x3f\x6c\x7d\xfc\x0f\x6f\x7e\xa3\x3d\x3a\xfe\x4f\xf5\x6d\x3b\xbc" "\xe1\x7e\x05\xbb\x9e\x3a\xf9\xf8\x9f\x88\x14\x2f\x3d\xf9\x76\xfc\x5a\xde" "\xf6\x41\xf7\xff\xe8\xdd\x7b\xe3\x58\x6e\x7c\xe7\xfe\x1c\x7b\x74\xfc\x3f" "\xd5\xb7\x6d\x30\x7f\xee\xaf\xdf\x9b\xa9\x03\x00\x00\x00\x00\x00\x00\x00" "\x00\x3c\xd4\xea\xa9\x88\xbf\x89\x14\x3f\x1c\xa9\xa5\x17\xf2\xb6\x9d\xfc" "\xfd\xbf\x89\xcd\x6f\xb4\x47\x7f\xff\xeb\xd3\x7d\xdb\x26\xee\xcd\x7a\x45" "\x1f\xfa\x60\xd7\x3b\x15\x00\x00\x00\x00\xf6\x89\x7a\x2a\xe2\x27\x91\xe2" "\xc6\xc2\xdb\x77\x6a\xa8\x37\xd6\x7f\xf7\xd5\x7f\xfe\xd6\x7a\xfd\xe7\x70" "\xda\xf4\x6a\xf5\xe7\x7c\xbf\x54\xdd\x37\xe0\x5e\xfe\xf9\x5f\xbf\xc1\xfc" "\xb9\xe3\xbb\x9f\x36\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\xec\x2b\x29\x15\xf1\x42\x5e\x4f\x7d\xbc\xaa\xe7\x9f\xd8\x76\x3d" "\xf5\xe5\x48\xf1\xca\x7f\x3d\x97\xdb\xa5\xa3\x65\xbb\xde\x3a\xf0\x83\xd5" "\xaf\x8d\x4b\x33\xd3\x27\x2e\x4c\x4d\xcd\x5c\x6b\x2f\xb4\xaf\x4e\x4d\x36" "\x47\x67\xdb\xd7\x26\xcb\xbe\x4f\x45\x8a\xd5\xbf\xfa\x5c\xee\x5b\x54\xeb" "\xab\xf7\xd6\x9b\xef\xae\xf1\xbe\xbe\x16\xfb\x5c\xa4\x18\xf9\xdb\x5e\xdb" "\xee\x5a\xec\xbd\xb5\xc9\x9f\x5a\x6f\x7b\xaa\x6c\xfb\x89\x48\xf1\x9f\x7f" "\xb7\xb1\x6d\x6f\x1d\xeb\x4f\xad\xb7\x3d\x5d\xb6\xfd\xcb\x48\xf1\xf5\x7f" "\xdc\xba\xed\xd1\xf5\xb6\x67\xca\xb6\xdf\x8d\x14\x3f\xfa\x7a\xb3\xd7\xf6" "\x70\xd9\xb6\x77\x7f\xd4\x4f\xaf\xb7\x7d\xfe\xda\x4c\xb1\x07\x47\x05\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\xc7\x4d\x3d\x15" "\xf1\x27\x91\xe2\xbf\x6f\x2e\xdd\xa9\xe5\xcf\xeb\xff\xd7\xfb\x9e\x56\xde" "\xfa\x66\xdf\x7a\xff\x9b\xdc\xae\xd6\xf9\x1f\xac\xd6\xff\xdf\xee\xf1\xc7" "\x59\xff\xbf\xba\xaf\xc0\xe2\x76\x9f\x0a\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x8f\xa6\x14\x45\xbc\x19\x29\x66\x2f" "\xad\xa6\xe5\x81\xf2\x79\x57\xe3\x62\x67\xfa\xd6\xed\xb1\xe1\x91\xad\xbb" "\x1d\x4a\x55\xcf\x03\x55\xfb\xf2\xa7\x71\xea\xf4\x99\xb3\x5f\x7a\x61\xe8" "\x5c\x2f\x3f\xb8\xff\xbd\xf6\x99\x78\x6d\xf4\xca\x85\xe6\xcb\x33\x37\x67" "\xe7\x26\xe7\xe7\x27\x27\x9a\x63\xd3\x9d\x6b\x33\x13\x93\x3b\x7e\x87\xdd" "\xf6\xdf\xec\x78\xb5\x03\x9a\x37\x5f\xbf\x35\x71\xfd\xfa\x7c\xf3\xf4\xf3" "\x67\x36\xbc\x7c\x7b\xf0\xfd\x81\x27\x8e\x0e\x9e\x1f\x7a\xf6\xc4\x33\xbd" "\xb6\x63\xc3\x23\x23\xa3\x7d\x6d\x6a\xf5\x8f\xfd\xe9\x77\x49\xdb\x6c\x3f" "\x18\x45\xfc\x45\xa4\x78\xee\x7b\x3f\x4d\x3f\x1c\x88\x28\x62\xf7\xfb\xe2" "\x43\xbe\x3b\x7b\xed\x50\x35\x89\xe3\xd5\x24\xc6\x86\x47\xaa\x89\x4c\x75" "\xda\xd3\x0b\xe5\x8b\x97\x7b\x3b\xa2\x88\x68\xf6\x75\x6a\xf5\xf6\xd1\x7d" "\x38\x16\xbb\xd2\x8a\x58\x2c\x87\x5f\x0e\xf8\x78\x39\xbd\xd1\xd9\xf6\x5c" "\xfb\xea\xd4\x64\xf3\x72\x7b\x6e\xa1\xb3\xd0\x99\x99\xbe\x9c\xba\xa3\x2d" "\xe7\xd3\x8c\x22\xce\xa5\x88\xa5\x88\x58\x19\xb8\xfb\xed\xea\x51\xc4\xeb" "\x91\xe2\x3b\x47\x56\xd3\x3f\x0d\x44\x1c\xe8\xed\x87\x2f\x5e\x1a\xfd\xea" "\xc9\xd3\xdb\x8f\xa3\xd8\xc3\x39\xee\x40\x39\xce\x66\xfd\x21\x39\x66\xfb" "\xd8\x40\x14\xf1\x0f\x91\xe2\x67\xef\x1c\x8b\x7f\x1e\x88\xa8\x45\xf7\x27" "\xbe\x10\xf1\x6a\x99\x3f\x88\x78\x2b\xba\xc7\x3b\x95\x3b\xfb\x6c\xc4\x7b" "\x5b\x7c\x8f\x78\x38\xd5\xa2\x88\xff\x2d\x8f\xff\xf9\xd5\xf4\xce\x40\x79" "\x3e\xe8\x9d\x57\x2e\x7e\xad\xf9\x95\xe9\xeb\x33\x7d\x6d\x7b\xe7\x95\x87" "\xfe\xfa\x70\x3f\xed\xf3\x73\x53\x23\x8a\xf8\x51\x75\x16\x5d\x4d\xff\xe2" "\xbf\x6b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x7d\xa4\x88" "\x5f\x8e\x14\x2f\xbe\x7b\x2c\x55\xf5\xc1\x77\x6a\x8a\x3b\xd3\x37\x9a\x57" "\xda\x57\xa7\xba\x65\x7d\xbd\xda\xbf\x5e\xcd\xf4\xda\xda\xda\x5a\x33\x75" "\xb3\x95\x73\x3c\xe7\x62\xce\xa5\x9c\xcb\x39\x57\x72\x46\x91\xfb\xe7\x6c" "\x95\xd9\x58\x5b\x1b\xcf\xcf\x17\x73\x2e\xe5\x5c\xce\xb9\x92\x33\x0e\xe4" "\xfe\x39\x5b\x39\xc7\x73\x2e\xe6\x5c\xca\xb9\x9c\x73\x25\x67\xd4\x72\xff" "\x9c\xad\x9c\xe3\x39\x17\x73\x2e\xe5\x5c\xce\xb9\x92\x33\xf6\x49\xed\x1e" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf0\x68\x29\xaa" "\x7f\x52\x7c\xfb\x1b\xab\x69\x6d\xa0\xbb\xbe\xf4\x78\x74\x73\xd9\x7a\xa0" "\x8f\xbc\xff\x0b\x00\x00\xff\xff\x6b\xf6\xf7\x84", 3126); syz_mount_image(/*fs=*/0x2000000000c0, /*dir=*/0x200000000180, /*flags=MS_I_VERSION|MS_REC*/ 0x804000, /*opts=*/0x200000000f00, /*chdir=*/2, /*size=*/0xc36, /*img=*/0x200000001040); // openat arguments: [ // fd: fd_dir (resource) // file: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 31 00} (length 0x8) // } // flags: open_flags = 0x8042 (4 bytes) // mode: open_mode = 0x10c (2 bytes) // ] // returns fd memcpy((void*)0x2000000000c0, "./file1\000", 8); syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x2000000000c0ul, /*flags=O_LARGEFILE|O_CREAT|O_RDWR*/ 0x8042, /*mode=S_IROTH|S_IXGRP|S_IRUSR*/ 0x10c); // unlinkat arguments: [ // fd: fd_dir (resource) // path: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 31 00} (length 0x8) // } // flags: unlinkat_flags = 0x0 (8 bytes) // ] memcpy((void*)0x200000000380, "./file1\000", 8); syscall(__NR_unlinkat, /*fd=*/0xffffff9c, /*path=*/0x200000000380ul, /*flags=*/0ul); // creat arguments: [ // file: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 30 61 61 61 61 61 61 61 61 61 61 61 61 61 // 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 // 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 // 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 // 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 // 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 // 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 // 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 // 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 // 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 // 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 // 61 61 00} (length 0xfd) // } // mode: open_mode = 0x141 (8 bytes) // ] // returns fd memcpy((void*)0x200000000000, "./" "file0aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\000", 253); syscall(__NR_creat, /*file=*/0x200000000000ul, /*mode=S_IXOTH|S_IXUSR|S_IRUSR*/ 0x141ul); // rename arguments: [ // old: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 30 61 61 61 61 61 61 61 61 61 61 61 61 61 // 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 // 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 // 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 // 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 // 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 // 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 // 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 // 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 // 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 // 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 // 61 61 00} (length 0xfd) // } // new: ptr[in, buffer] { // buffer: {2e 2f 66 69 6c 65 31 00} (length 0x8) // } // ] memcpy((void*)0x200000000580, "./" "file0aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\000", 253); memcpy((void*)0x2000000002c0, "./file1\000", 8); syscall(__NR_rename, /*old=*/0x200000000580ul, /*new=*/0x2000000002c0ul); return 0; }