// https://syzkaller.appspot.com/bug?id=ff834988a0e05a23199aa0230d9afa4b010c69d2 // 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; static long syz_open_procfs(volatile long a0, volatile long a1) { char buf[128]; memset(buf, 0, sizeof(buf)); if (a0 == 0) { snprintf(buf, sizeof(buf), "/proc/self/%s", (char*)a1); } else if (a0 == -1) { snprintf(buf, sizeof(buf), "/proc/thread-self/%s", (char*)a1); } else { snprintf(buf, sizeof(buf), "/proc/self/task/%d/%s", (int)a0, (char*)a1); } int fd = open(buf, O_RDWR); if (fd == -1) fd = open(buf, O_RDONLY); return fd; } //% 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"); } 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; } uint64_t r[4] = {0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff}; int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x20000000ul, /*len=*/0x1000000ul, /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/ 7ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x21000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1, /*offset=*/0ul); intptr_t res = 0; memcpy((void*)0x20000100, "udf\000", 4); memcpy((void*)0x20000040, "./file0\000", 8); memcpy((void*)0x200003c0, "iocharset=iso8859-6,uid=ignore,unhide,uid=forget,gid=", 53); sprintf((char*)0x200003f5, "%020llu", (long long)0); memcpy((void*)0x20000409, "\x2c\x73\x65\x73\x73\x69\x6f\x6e\x3d\x30\x30\x30\x30\x30\x00\x30\x30" "\x30\x2a\x30\x30\x30\x31\x30\x36\x35\x35\x33\x36\x3c\x75\x6e\x64\x65" "\x6c\x06\x00\x65\x2c\x00\xcf\x26\x43\x25\x33\x18\xc7\x08\x00\x00\x00" "\xc8\xaf\xa5\x5e\x19\xa8\x73\x1e\xf1\xd3\x7e\x70\xdd\x35\x9d\x22\x99" "\x53\x7c\x82\x4f\x94\x9b\x81\x4e\xee\x58\x6b\x56\x9a\x73\x9a\xb0\x23" "\xfb\xca\x02\x59\xda\x86\x43\xf3\x25\x03\x84\x0f\x25\x27\xfe", 100); memcpy( (void*)0x20002440, "\x78\x9c\xec\xdd\x41\x6c\x1c\xd7\x7d\x07\xe0\xff\x1b\x2d\x45\x4a\x6e\x2b" "\x26\x4e\x54\xbb\x8d\x8b\x4d\x5b\xa4\x32\x63\xb9\xb2\xa4\x98\x8a\x55\xb8" "\xab\x9a\x66\x1b\x40\x96\x89\x50\xcc\x2d\x00\x57\xe4\x4a\x5d\x98\x22\x09" "\x92\x6a\x64\x23\x6d\x99\x5e\x7a\xe8\x21\x40\x51\xf4\x90\x13\x81\xd6\x28" "\x90\xa2\x81\xd1\x14\x41\x8f\x6c\xeb\x02\xc9\xc5\x87\x22\xa7\x9e\x88\x16" "\x36\x82\xa2\x07\xb6\x08\x90\x93\xc1\x60\x66\xdf\x8a\x4b\x8a\xb2\x64\x53" "\xa4\x48\xfb\xfb\x6c\xea\x37\x3b\xfb\xde\xec\x7b\x6f\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\x7b" "\xf9\xd2\x99\xe7\xd2\xa3\x6e\x05\x00\xb0\x9f\xae\x8c\x7f\xf5\xcc\x59\xf7" "\x7f\x00\xf8\x44\xb9\xea\xff\xff\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\xe0\xa0\x4b\x51\xc4\xe3\x91\x62\xfe\xca\x7a\x9a\xac\x5e\x77\x0c\x5c" "\x6e\xcf\xde\xba\x3d\x31\x32\xba\x73\xb5\x63\xa9\xaa\x79\xa4\x2a\x5f\xfe" "\x0c\x3c\x77\xf6\xdc\xf9\x2f\x3d\x3f\x7c\xa1\x9b\x1f\x5c\xff\x61\x7b\x32" "\x5e\x1d\xbf\x7a\xa9\xfe\xd2\xdc\xcd\xf9\x85\xd6\xe2\x62\x6b\xba\x3e\x31" "\xdb\x9e\x9a\x9b\x6e\x3d\xf0\x11\x76\x5b\x7f\xbb\xa1\x6a\x00\xea\x37\x5f" "\xbb\x35\x7d\xfd\xfa\x62\xfd\xec\xb3\xe7\xb6\xbc\x7d\x7b\xf0\xbd\xfe\xc7" "\x4e\x0e\x5e\x1c\x7e\xfa\xf4\x53\xdd\xb2\x13\x23\xa3\xa3\xe3\x3d\x65\x6a" "\x7d\x1f\xf9\xd3\xef\x72\xaf\x19\x1e\x47\xa3\x88\xd3\x91\xe2\x99\xef\xfd" "\x24\x35\x23\xa2\x88\xdd\x8f\xc5\x7d\xbe\x3b\x7b\xed\x58\xd5\x89\xa1\xaa" "\x13\x13\x23\xa3\x55\x47\x66\xda\xcd\xd9\xa5\xf2\xcd\xb1\xee\x40\x14\x11" "\xf5\x9e\x4a\x8d\xee\x18\xed\xc3\xb9\xd8\x95\x46\xc4\x72\xd9\xfc\xb2\xc1" "\x43\x65\xf7\xc6\xe7\x9b\x0b\xcd\x6b\x33\xad\xfa\x58\x73\x61\xa9\xbd\xd4" "\x9e\x9b\x1d\x4b\x9d\xd6\x96\xfd\xa9\x47\x11\x17\x52\xc4\x4a\x44\xac\xf5" "\xdf\x7d\xb8\xbe\x28\xa2\x16\x29\xbe\x73\x62\x3d\x5d\x8b\x88\x23\xdd\x71" "\xf8\x62\x35\x31\xf8\xde\xed\x28\xf6\xb0\x8f\x0f\xa0\x6c\x67\xbd\x2f\x62" "\xa5\x38\x04\xe7\xec\x00\xeb\x8f\x22\x5e\x89\x14\x3f\x7d\xbb\x88\xa9\x72" "\xcc\xf2\x4f\x7c\x21\xe2\x95\x32\x7f\x10\xf1\x66\x99\x2f\x46\xa4\xf2\x8b" "\x71\x3e\xe2\xdd\x1d\xbe\x47\x1c\x4e\xb5\x28\xe2\x2f\xca\xf3\x7f\x71\x3d" "\x4d\x57\xd7\x83\xee\x75\xe5\xf2\xd7\xea\x5f\x99\xbd\x3e\xd7\x53\xb6\x7b" "\x5d\x39\xf4\xf7\x87\xfd\x74\xc0\xaf\x4d\x03\x51\x44\xb3\xba\xe2\xaf\xa7" "\x8f\xfe\x9b\x1d\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1e" "\xb6\x63\x51\xc4\x93\x91\xe2\xe5\xff\xf8\xa3\x6a\x5e\x71\x54\xf3\xd2\x4f" "\x5c\x1c\xfe\xfd\xc1\x5f\xec\x9d\x33\xfe\xc4\x7d\x8e\x53\x96\x7d\x36\x22" "\x96\x8b\x07\x9b\x93\x7b\x34\x4f\x21\x1e\x4b\x63\x29\x3d\xe2\xb9\xc4\x9f" "\x64\x03\x51\xc4\x1f\xe7\xf9\x7f\xdf\x7a\xd4\x8d\x01\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf8\x44\x2b\xe2\xc7\x91\xe2\x85\x77" "\x4e\xa5\x95\xe8\x5d\x53\xbc\x3d\x7b\xa3\x7e\xb5\x79\x6d\xa6\xb3\x2a\x6c" "\x77\xed\xdf\xee\x9a\xe9\x1b\x1b\x1b\x1b\xf5\xd4\xc9\x46\xce\xc9\x9c\xcb" "\x39\x57\x72\xae\xe6\x5c\xcb\x19\x45\xae\x9f\xb3\x91\x73\x32\xe7\x72\xce" "\x95\x9c\xab\x39\xd7\x72\xc6\x91\x5c\x3f\x67\x23\xe7\x64\xce\xe5\x9c\x2b" "\x39\x57\x73\xae\xe5\x8c\x5a\xae\x9f\xb3\x91\x73\x32\xe7\x72\xce\x95\x9c" "\xab\x39\xd7\x72\xc6\x01\x59\xbb\x17\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\xe0\xe3\xa4\x88\x22\xde\x8f\x14\xdf\xfe\xc6\x7a\x8a\x14\x11\x8d\x88" "\xc9\xe8\xe4\x6a\x7f\xb7\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\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\x28\xf5\xa7\x22\xbe\x1f\x29\xea\x7f" "\xd0\xb8\xb3\xaf\x16\x11\xa9\xfa\xb7\xe3\x54\xf9\xcb\xf9\x68\x1c\x2d\xf3" "\xd3\xd1\x18\x2e\xf3\xc5\x68\x5c\xca\xd9\xac\xb2\xd6\xf8\xd6\x23\x68\x3f" "\xbb\xd3\x97\x8a\xf8\x51\xa4\xe8\x1f\x78\xeb\xce\x09\xcf\xe7\xbf\xaf\xf3" "\xea\xce\xd7\x20\xde\xfc\xe6\xe6\xab\x5f\xa9\x75\xf2\x48\xf7\xcd\xc1\xf7" "\xfa\x1f\x3b\x79\xe2\xe2\xf0\xe8\xaf\x3d\x71\xaf\xed\xb4\x53\x03\x86\x2e" "\xb7\x67\x6f\xdd\xae\x4f\x8c\x8c\x8e\x8e\xf7\xec\xae\xe5\x4f\xff\x74\xcf" "\xbe\xc1\xfc\xb9\xc5\xc3\xe9\x3a\x11\xb1\xf8\xfa\x1b\xaf\x35\x67\x66\x5a" "\x0b\x36\x3e\x19\x1b\xb5\xce\x46\x2d\x0e\x48\x7b\xf6\x6b\x23\x5f\xaf\xe2" "\xa0\xb4\x67\xfb\x46\xe3\x60\x34\x63\x73\xe3\x11\x5f\x98\xd8\x17\xe5\xfd" "\xff\xdd\x48\xf1\xdb\xef\xfc\x67\xf7\x86\xdf\xbd\xff\xff\x42\xe7\xd5\x9d" "\x3b\x7c\xfc\xec\x4f\x36\xef\xff\x2f\x6c\x3f\xd0\x1e\xdd\xff\x1f\xef\xd9" "\xf7\x42\xfe\xdd\x48\x5f\x2d\x62\x60\xe9\xe6\x7c\xdf\xc9\x88\x81\xc5\xd7" "\xdf\x38\xdd\xbe\xd9\xbc\xd1\xba\xd1\x9a\x3d\x7f\xe6\xcc\x97\x87\x87\xbf" "\x7c\xee\x4c\xdf\xd1\x88\x81\xeb\xed\x99\x56\xcf\xd6\xae\x87\x0a\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x60\x7f\xa5\x22\x7e\x37\x52\x34" "\x7f\xb4\x9e\xea\x11\x71\xbb\x9a\xaf\x35\x78\x71\xf8\xe9\xd3\x4f\x1d\x89" "\x23\xd5\x7c\xab\x2d\xf3\xb6\x5e\x1d\xbf\x7a\xa9\xfe\xd2\xdc\xcd\xf9\x85" "\xd6\xe2\x62\x6b\xba\x3e\x31\xdb\x9e\x9a\x9b\x6e\x3d\xe8\xc7\x0d\x54\xd3" "\xbd\x26\x46\x46\xf7\xa4\x33\xf7\x75\x6c\x8f\xdb\x7f\x6c\xe0\xa5\xb9\xf9" "\xd7\x17\xda\x37\xfe\x70\x69\xc7\xf7\x8f\x0f\x5c\xba\xb6\xb8\xb4\xd0\x9c" "\xda\xf9\xed\x38\x16\x45\x44\xa3\x77\xcf\x50\xd5\xe0\x89\x91\xd1\xaa\xd1" "\x33\xed\xe6\x6c\x55\x75\x6c\xc7\xc9\x74\x1f\x5e\x5f\x2a\xe2\xbf\x22\xc5" "\xd4\xf9\x7a\xfa\x7c\xde\x97\xe7\xff\x6d\x9f\xe1\xbf\x65\xfe\xff\xf2\xf6" "\x03\xed\xd1\xfc\xbf\x4f\xf5\xec\x2b\x3f\x33\xa5\x22\x7e\x16\x29\x7e\xeb" "\x2f\x9f\x88\xcf\x57\xed\x3c\x1e\x77\x8d\x59\x2e\xf7\xb7\x91\x62\xe8\xc2" "\xe7\x72\xb9\x38\x5a\x96\xeb\xb6\xa1\xf3\x5c\x81\xce\xcc\xc0\xb2\xec\xff" "\x45\x8a\x7f\x7c\x7f\x6b\xd9\xee\x7c\xc8\xc7\x37\xcb\x3e\xf7\xc0\x03\x7b" "\x48\x94\xe7\xff\x44\xa4\xf8\xfe\x9f\x7f\x37\x7e\x3d\xef\xdb\xfa\xfc\x87" "\x9d\xcf\xff\xf1\xed\x07\xda\xa3\xf3\xff\x99\x9e\x7d\xc7\xb7\x3c\xaf\x60" "\xd7\x5d\x27\x9f\xff\xd3\x91\xe2\xc5\xc7\xdf\x8a\xdf\xc8\xfb\x3e\xe8\xf9" "\x1f\x45\x6c\x6c\x6c\xfc\x69\xc4\xa9\x5c\xf8\xce\xf3\x39\xf6\xe8\xfc\x7f" "\xb6\x67\xdf\x60\x74\x3e\xf7\x37\x1f\x5e\xf7\x01\x00\x00\x00\x00\x00\x00" "\x00\x00\x0e\xad\xbe\x54\xc4\xdf\x45\x8a\xa7\x46\x6b\xe9\xf9\xbc\xef\x41" "\xfe\xfe\xdf\xf4\xf6\x03\xed\xd1\xdf\xff\xfa\xe5\x9e\x7d\xd3\xfb\xb4\x5e" "\xd1\xae\x07\x15\x00\x00\x00\x00\x0e\x88\xbe\x54\xc4\x8f\x23\xc5\x8d\xa5" "\xb7\xee\xcc\xa1\xde\x3a\xff\xbb\x67\xfe\xe7\xef\x6c\xae\xbd\x3e\x92\xb6" "\xbd\x5b\xfd\x39\xdf\x2f\x55\xcf\x0d\x78\x98\x7f\xfe\xd7\x6b\x30\x7f\xee" "\xe4\xee\xbb\x0d\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x07\x4a\x4a\x45\x3c\x9f\xd7\x53\x9f\xbc\xcf\x7a\xea\xab\x91\xe2\xe5" "\xff\x79\x26\x97\x4b\x27\xcb\x72\xdd\x75\xe0\x07\xab\x5f\x07\xae\xcc\xcd" "\x9e\xbe\x34\x33\x33\x37\xd5\x5c\x6a\x5e\x9b\x69\xd5\xc7\xe7\x9b\x53\xad" "\xb2\xee\x67\x22\xc5\xfa\xdf\x7c\x2e\xd7\x2d\xaa\xf5\xd5\xbb\xeb\xcd\x77" "\xd6\x78\x1f\xd8\xe8\xae\xc5\xbe\x10\x29\x46\xff\xbe\x5b\xb6\xb3\x16\x7b" "\x77\x6d\xf2\xce\x7a\xe0\x9d\xb5\xd8\xcb\xb2\x9f\x8a\x14\xff\xfd\x0f\x5b" "\xcb\x76\xd7\xb1\xfe\xec\x66\xd9\xb3\x65\xd9\xbf\x8e\x14\x5f\xff\xe7\x9d" "\xcb\x9e\xdc\x2c\x7b\xae\x2c\xfb\xdd\x48\xf1\xc3\xaf\xd7\xbb\x65\x8f\x97" "\x65\xbb\xcf\x47\xed\x3c\x93\x74\xa0\x16\x33\xad\x67\xa7\xe6\x66\xee\x7a" "\x14\x2a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x7c" "\x58\x7d\xa9\x88\x3f\x8b\x14\xff\x7b\x73\x25\x96\xf3\xb4\xff\xbc\xfe\x7f" "\x77\x05\xfe\x5a\xb7\xec\x9b\xdf\xec\x59\xef\x7f\x9b\xdb\xd5\x3a\xff\x83" "\xd5\xfa\xff\xf7\xda\xfe\x28\xeb\xff\x0f\x3e\xb4\x9e\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\xe1\x91\xa2\x88\x37" "\x22\xc5\xfc\x95\xf5\xb4\xda\x5f\xbe\xee\x18\xb8\xdc\x9e\xbd\x75\x7b\x62" "\x64\x74\xe7\x6a\xc7\x52\x55\xf3\x48\x55\xbe\xfc\x19\x78\xee\xec\xb9\xf3" "\x5f\x7a\x7e\xf8\x42\x37\x3f\xb8\xfe\xc3\xf6\x64\xbc\x3a\x7e\xf5\x52\xfd" "\xa5\xb9\x9b\xf3\x0b\xad\xc5\xc5\xd6\x74\x7d\x62\xb6\x3d\x35\x37\xdd\x7a" "\xe0\x23\xec\xb6\xfe\xe6\xd0\x75\x0c\x55\x03\x50\xbf\xf9\xda\xad\xe9\xeb" "\xd7\x17\xeb\x67\x9f\x3d\xb7\xe5\xed\xdb\x83\xef\xf5\x3f\x76\x72\xf0\xe2" "\xf0\xd3\xa7\x9f\xea\x96\x9d\x18\x19\x1d\x1d\xef\x29\x53\xeb\xfb\x10\x9f" "\xfe\xa1\x1a\xb7\xe9\x68\x14\xf1\x57\x91\xe2\x99\xef\xfd\x24\xfd\x4b\x7f" "\x44\x11\xbb\x1f\x8b\xfb\x7c\x77\xf6\xda\xb1\xaa\x13\x43\x55\x27\x26\x46" "\x46\xab\x8e\xcc\xb4\x9b\xb3\x4b\xe5\x9b\x63\xdd\x81\x28\x22\xea\x3d\x95" "\x1a\xdd\x31\xda\x87\x73\xb1\x2b\x8d\x88\xe5\xb2\xf9\x65\x83\x87\xca\xee" "\x8d\xcf\x37\x17\x9a\xd7\x66\x5a\xf5\xb1\xe6\xc2\x52\x7b\xa9\x3d\x37\x3b" "\x96\x3a\xad\x2d\xfb\x53\x8f\x22\x2e\xa4\x88\x95\x88\x58\xeb\xbf\xfb\x70" "\x7d\x51\xc4\x6b\x91\xe2\x3b\x27\xd6\xd3\xbf\xf6\x47\x1c\xe9\x8e\xc3\x17" "\xaf\x8c\x7f\xf5\xcc\xd9\x7b\xb7\xa3\xd8\xc3\x3e\x3e\x80\xb2\x9d\xf5\xbe" "\x88\x95\xe2\x10\x9c\xb3\x03\xac\x3f\x8a\xf8\xa7\x48\xf1\xd3\xb7\x4f\xc5" "\xbf\xf5\x47\xd4\xa2\xf3\x13\x5f\x88\x78\xa5\xcc\x1f\x44\xbc\x59\xe6\x8b" "\x11\xa9\xfc\x62\x9c\x8f\x78\x77\x87\xef\x11\x87\x53\x2d\x8a\xf8\xff\xf2" "\xfc\x5f\x5c\x4f\x6f\xf7\x97\xd7\x83\xee\x75\xe5\xf2\xd7\xea\x5f\x99\xbd" "\x3e\xd7\x53\xb6\x7b\x5d\x39\xf4\xf7\x87\xfd\x74\xc0\xaf\x4d\x03\x51\xc4" "\x0f\xab\x2b\xfe\x7a\xfa\x77\xff\x5d\x03\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x1c\x20\x45\xfc\x6a\xa4\x78\xe1\x9d\x53\xa9\x9a\x1f\x7c" "\x67\x4e\x71\x7b\xf6\x46\xfd\x6a\xf3\xda\x4c\x67\x5a\x5f\x77\xee\x5f\x77" "\xce\xf4\xc6\xc6\xc6\x46\x3d\x75\xb2\x91\x73\x32\xe7\x72\xce\x95\x9c\xab" "\x39\xd7\x72\x46\x91\xeb\xe7\x6c\xe4\x9c\xcc\xb9\x9c\x73\x25\xe7\x6a\xce" "\xb5\x9c\x71\x24\xd7\xcf\xd9\xc8\x39\x99\x73\x39\xe7\x4a\xce\xd5\x9c\x6b" "\x39\xa3\x96\xeb\xe7\x6c\xe4\x9c\xcc\xb9\x9c\x73\x25\xe7\x6a\xce\xb5\x9c" "\x71\x40\xe6\xee\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x1f\x2f\x45\xf5\x4f\x8a\x6f\x7f\x63\x3d\x6d\xf4\x77\xd6\x97\x9e\x8c" "\x4e\xae\x5a\x0f\xf4\x63\xef\xe7\x01\x00\x00\xff\xff\x5b\xce\xfd\x0b", 3095); syz_mount_image(/*fs=*/0x20000100, /*dir=*/0x20000040, /*flags=MS_POSIXACL|MS_REC|MS_NODEV|MS_NOATIME|0x40*/ 0x14444, /*opts=*/0x200003c0, /*chdir=*/0xfe, /*size=*/0xc17, /*img=*/0x20002440); memcpy((void*)0x20000100, "mountinfo\000", 10); res = -1; res = syz_open_procfs(/*pid=*/-1, /*file=*/0x20000100); if (res != -1) r[0] = res; memcpy((void*)0x20000a40, "./bus\000", 6); res = syscall( __NR_open, /*file=*/0x20000a40ul, /*flags=O_TRUNC|O_SYNC|O_NONBLOCK|O_NOATIME|O_CREAT|O_RDWR*/ 0x141a42ul, /*mode=*/0ul); if (res != -1) r[1] = res; memcpy((void*)0x20000100, "./file1\000", 8); res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x20000100ul, /*flags=O_SYNC|O_NONBLOCK|O_NOATIME|O_CREAT|O_RDWR*/ 0x141842ul, /*mode=*/0ul); if (res != -1) r[2] = res; memcpy( (void*)0x20004200, "\x74\xef\xc4\xc4\x19\xfd\xb8\xd6\x6b\xbb\xa7\x28\xf3\x71\xd0\x56\xad\x6f" "\x01\xe9\x76\x2d\x70\x40\x1d\x1c\x9d\x33\x1b\x48\xb9\x25\xe9\xe6\xa7\x75" "\x9a\xbb\x20\x6b\x9b\x18\xbf\xc3\xf3\xf9\x6a\xdb\x2b\x37\xc2\x12\x1e\xf2" "\x1e\x91\xba\xc7\x68\xdd\x33\xdf\x29\x64\x9d\xa1\xd8\x2e\x82\x6a\x55\xc4" "\xd6\x20\xb6\xf5\x10\xda\xee\x26\x00\x4b\x74\x1c\x95\x1d\x52\x8d\x80\x6e" "\xfb\xe0\x0c\x43\x9f\x2d\xf4\x6d\x3a\xdf\x8b\xe2\x4e\x28\x0b\x94\x8a\x49" "\xaf\xd1\x7d\x56\x43\x7c\x6e\x75\x2d\x84\xf9\x9b\xf3\x7a\x88\xf0\xc5\x44" "\x88\xdd\x13\xb8\x48\xf2\x38\x1d\x7d\x2a\xec\xb6\x8e\xd1\x67\x62\xe4\xa3" "\xc1\xa8\x47\x56\x53\x64\xb9\xf1\xaf\x92\xc9\xc8\x9e\x06\xe8\x9f\xe6\x17" "\x9c\xb7\x07\x8a\x74\x2c\xb9\x68\xa9\xf0\x9c\xc6\x90\xdc\x47\x3d\xf2\x9d" "\x6a\xd9\xaf\x58\x79\xe9\xa2\x61\x8c\x63\x70\x21\x17\xa3\xa6\x3d\x3a\x42" "\x36\xba\xee\x86\xf5\xf4\x52\xe9\x66\x3a\x79\x53\x06\xda\xbb\x97\xdb\x88" "\x43\x48\xab\x43\x7b\xdc\x13\xb7\xcf\xb0\x3e\xff\x1c\xf2\x16\xf0\x9d\x21" "\x07\x8e\x18\x52\xfc\x7c\x96\x41\x3d\x9d\x65\xc5\x2c\xe9\xba\xa6\xbc\x26" "\xde\x7f\x02\x87\x38\xa1\x71\x20\xde\x30\xa4\x33\xc9\xc3\xc8\xe2\x76\xf3" "\xae\x5e\x18\xa1\xf9\x57\x67\xff\xfe\x8e\x98\xb0\xc3\xf1\x34\xf1\x22\x63" "\xb0\x1c\x36\x86\x6d\x4e\x0e\x85\x6c\xc1\x4e\xcf\x50\x27\x9a\xdb\x94\x38" "\xc6\x21\x9c\x49\xca\xe9\x73\xd8\xe7\xfa\xf3\x3d\xcd\xeb\x96\xd7\xef\x7e" "\x89\xae\x82\x8c\xb9\x1d\xf2\x29\x39\x30\x7b\xb1\xf7\xfb\x73\x92\xe1\xe2" "\x4f\x6b\x63\x16\x6b\x89\x93\x7c\x00\xeb\x8f\xea\x02\x45\xcd\x93\xe4\xaa" "\x80\x31\x60\xbd\x71\xc1\xa0\xbb\xb6\xb8\x28\x5d\x8a\xb6\x54\x48\x5a\xb9" "\x85\xf1\xdd\x2e\xb9\xab\xf5\x31\x31\xa9\x68\x0d\xca\xfe\x40\x00\xd3\xea" "\x52\x8d\xd5\x2a\xba\x3e\x4f\xf6\xa3\x88\x3e\xc6\x14\x25\x3d\x56\x27\xbd" "\x91\x52\x2d\x88\x11\x28\x32\x8e\xd1\xe0\x09\x07\xfa\x6c\xc4\x8c\xec\x52" "\x68\xbb\xed\xd8\x5e\xc0\x2d\x8b\xac\x31\x83\x46\x0d\xd1\xa2\x7f\xbc\x06" "\xb5\x64\x24\x73\xa4\x1a\x6c\xbf\xb0\x7f\x53\xde\xab\x24\x73\xb3\x7c\x3d" "\x10\xa1\x25\xd6\x10\xf1\xb9\xea\x5c\x83\xe7\xd4\x62\x04\x8f\x25\xfc\x1e" "\x79\x29\x5e\xef\xf7\x50\xa2\x3f\xaf\x5d\x54\x27\x58\xc4\x21\xbb\x06\x73" "\x50\x4c\x9d\xba\xe2\x95\x9f\x77", 512); syscall(__NR_write, /*fd=*/r[2], /*buf=*/0x20004200ul, /*count=*/0xffe00ul); *(uint32_t*)0x20000600 = 0x16; *(uint16_t*)0x20000604 = 0x98; *(uint16_t*)0x20000606 = 0xfa00; *(uint64_t*)0x20000608 = 0; *(uint64_t*)0x20000610 = 4; *(uint32_t*)0x20000618 = -1; *(uint16_t*)0x2000061c = 0x1c; *(uint16_t*)0x2000061e = 0; *(uint16_t*)0x20000620 = 0xa; *(uint16_t*)0x20000622 = htobe16(0x4e24); *(uint32_t*)0x20000624 = htobe32(6); *(uint8_t*)0x20000628 = 0xfe; *(uint8_t*)0x20000629 = 0x88; memset((void*)0x2000062a, 0, 12); *(uint8_t*)0x20000636 = 1; *(uint8_t*)0x20000637 = 1; *(uint32_t*)0x20000638 = 4; syscall(__NR_write, /*fd=*/r[2], /*data=*/0x20000600ul, /*len=*/0xa0ul); memcpy((void*)0x200000c0, "./bus\000", 6); res = syscall(__NR_creat, /*file=*/0x200000c0ul, /*mode=*/0ul); if (res != -1) r[3] = res; *(uint32_t*)0x200002c0 = 0x50; *(uint32_t*)0x200002c4 = 0; *(uint64_t*)0x200002c8 = 0; *(uint32_t*)0x200002d0 = 7; *(uint32_t*)0x200002d4 = 0x27; *(uint32_t*)0x200002d8 = 0; *(uint32_t*)0x200002dc = 0; *(uint16_t*)0x200002e0 = 0; *(uint16_t*)0x200002e2 = 0; *(uint32_t*)0x200002e4 = 0; *(uint32_t*)0x200002e8 = 0; *(uint16_t*)0x200002ec = 0; *(uint16_t*)0x200002ee = 0; memset((void*)0x200002f0, 0, 32); syscall(__NR_write, /*fd=*/r[3], /*arg=*/0x200002c0ul, /*len=*/0x50ul); syscall(__NR_sendfile, /*fdout=*/r[1], /*fdin=*/r[0], /*off=*/0ul, /*count=*/0x100800001ul); return 0; }