Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // autogenerated by syzkaller (https://github.com/google/syzkaller)
- #define _GNU_SOURCE
- #include <endian.h>
- #include <errno.h>
- #include <fcntl.h>
- #include <setjmp.h>
- #include <stdbool.h>
- #include <stddef.h>
- #include <stdint.h>
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #include <sys/ioctl.h>
- #include <sys/mman.h>
- #include <sys/mount.h>
- #include <sys/stat.h>
- #include <sys/syscall.h>
- #include <sys/types.h>
- #include <unistd.h>
- #include <linux/loop.h>
- #ifndef __NR_io_uring_register
- #define __NR_io_uring_register 427
- #endif
- #ifndef __NR_io_uring_setup
- #define __NR_io_uring_setup 425
- #endif
- #ifndef __NR_memfd_create
- #define __NR_memfd_create 319
- #endif
- static unsigned long long procid;
- static long syz_sysconfig_set__proc_sys_vm_zone_reclaim_mode(volatile long val)
- {
- char command[256];
- sprintf(command, "echo %ld > /proc/sys/vm/zone_reclaim_mode", val);
- int ret = system(command);
- if (ret != 0) {
- return 0;
- }
- return 0;
- }
- static long syz_sysconfig_reset__proc_sys_vm_zone_reclaim_mode()
- {
- char command[256];
- sprintf(command, "echo 0 > /proc/sys/vm/zone_reclaim_mode");
- int ret = system(command);
- if (ret != 0) {
- return 0;
- }
- return 0;
- }
- static long syz_sysconfig_set__proc_sys_vm_stat_interval(volatile long val)
- {
- char command[256];
- sprintf(command, "echo %ld > /proc/sys/vm/stat_interval", val);
- int ret = system(command);
- if (ret != 0) {
- return 0;
- }
- return 0;
- }
- static long syz_sysconfig_reset__proc_sys_vm_stat_interval()
- {
- char command[256];
- sprintf(command, "echo 1 > /proc/sys/vm/stat_interval");
- int ret = system(command);
- if (ret != 0) {
- return 0;
- }
- return 0;
- }
- static long syz_sysconfig_set__proc_sys_vm_swappiness(volatile long val)
- {
- char command[256];
- sprintf(command, "echo %ld > /proc/sys/vm/swappiness", val);
- int ret = system(command);
- if (ret != 0) {
- return 0;
- }
- return 0;
- }
- static long syz_sysconfig_reset__proc_sys_vm_swappiness()
- {
- char command[256];
- sprintf(command, "echo 60 > /proc/sys/vm/swappiness");
- int ret = system(command);
- if (ret != 0) {
- return 0;
- }
- return 0;
- }
- #define BITMASK(bf_off, bf_len) (((1ull << (bf_len)) - 1) << (bf_off))
- #define STORE_BY_BITMASK(type, htobe, addr, val, bf_off, bf_len) \
- *(type*)(addr) = \
- htobe((htobe(*(type*)(addr)) & ~BITMASK((bf_off), (bf_len))) | \
- (((type)(val) << (bf_off)) & BITMASK((bf_off), (bf_len))))
- static long syz_open_dev(volatile long a0, volatile long a1, volatile long a2)
- {
- if (a0 == 0xc || a0 == 0xb) {
- char buf[128];
- sprintf(buf, "/dev/%s/%d:%d", a0 == 0xc ? "char" : "block", (uint8_t)a1,
- (uint8_t)a2);
- return open(buf, O_RDWR, 0);
- } else {
- char buf[1024];
- char* hash;
- strncpy(buf, (char*)a0, sizeof(buf) - 1);
- buf[sizeof(buf) - 1] = 0;
- while ((hash = strchr(buf, '#'))) {
- *hash = '0' + (char)(a1 % 10);
- a1 /= 10;
- }
- return open(buf, a2, 0);
- }
- }
- 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 [email protected]
- //% 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[17] = {0x0,
- 0xffffffffffffffff,
- 0x0,
- 0xffffffffffffffff,
- 0xffffffffffffffff,
- 0xffffffffffffffff,
- 0xffffffffffffffff,
- 0xffffffffffffffff,
- 0xffffffffffffffff,
- 0xffffffffffffffff,
- 0xffffffffffffffff,
- 0xffffffffffffffff,
- 0xffffffffffffffff,
- 0xffffffffffffffff,
- 0xffffffffffffffff,
- 0xffffffffffffffff,
- 0xffffffffffffffff};
- int main(void)
- {
- syscall(__NR_mmap, /*addr=*/0x1ffffffff000ul, /*len=*/0x1000ul, /*prot=*/0ul,
- /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-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=*/-1,
- /*offset=*/0ul);
- syscall(__NR_mmap, /*addr=*/0x200001000000ul, /*len=*/0x1000ul, /*prot=*/0ul,
- /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1,
- /*offset=*/0ul);
- const char* reason;
- (void)reason;
- intptr_t res = 0;
- if (write(1, "executing program\n", sizeof("executing program\n") - 1)) {
- }
- memcpy((void*)0x2000000004c0, "ext4\000", 5);
- memcpy((void*)0x200000000500, "./file0\000", 8);
- memcpy((void*)0x200000000140, "nobarrier", 9);
- *(uint8_t*)0x200000000149 = 0x2c;
- *(uint8_t*)0x20000000014a = 0;
- memcpy(
- (void*)0x200000000a80,
- "\x78\x9c\xec\xdd\xcf\x6f\x13\x57\x1e\x00\xf0\xaf\x6d\x12\x92\x90\xe5\xd7"
- "\x2e\xd2\xc2\x61\x41\xcb\xee\xb2\x3f\x44\x4c\x1c\x05\xa4\x15\x97\xaa\x07"
- "\x0e\x15\x55\x55\xa4\x5e\x69\x48\x4c\x84\xf2\xc3\x51\xec\x50\x12\x71\x08"
- "\xbd\x71\xab\xaa\x4a\xad\xd4\x53\xff\x80\xfe\x0f\x91\x7a\xeb\xa1\xe7\x22"
- "\xf5\xd0\x43\x4f\x48\xa8\x20\x2a\xd2\x4a\x95\x5c\xcd\xd8\x0e\x49\x88\x53"
- "\xd3\x06\x5b\xcd\x7c\x3e\xd2\xe0\x37\xf3\x06\x7f\xdf\xc3\xfa\x3e\xc6\x6f"
- "\x66\x3c\x01\x64\xd6\x99\xe4\x8f\x5c\xc4\x70\x44\x7c\x15\x11\x47\x1a\xab"
- "\x5b\x77\x38\xd3\x78\x79\xf6\xe4\xee\xe4\xfa\x93\xbb\x93\xb9\xa8\xd7\xaf"
- "\x7d\x9f\x4b\xf7\x4b\xb6\xb5\x76\x6d\xfd\xbd\x43\x11\xb1\x1a\x11\x03\x11"
- "\xf1\xf6\x95\x88\x1b\xb9\x17\xe3\x56\x97\x57\x66\x26\xfa\xa2\xbc\xd8\x5c"
- "\x2f\xd6\xe6\x16\x8a\xd5\xe5\x95\xf3\xb7\xe6\x26\xa6\xcb\xd3\xe5\xf9\xd2"
- "\xc5\xf1\xd2\xe8\xa5\xf1\xb1\xd2\xde\xf5\xf5\xc6\xe5\x2f\xbf\xb8\xff\xfe"
- "\x1b\xf5\xd5\xc7\xaf\x7f\xb0\x70\xe5\xcd\xc3\x49\xb3\x86\x9b\x75\x9b\xfb"
- "\xb1\x97\x1a\x5d\xef\x8b\x63\x9b\xb6\x1d\x88\x88\xcb\xaf\x22\x58\x0f\x14"
- "\x9a\xfd\x19\xec\x75\x43\xf8\x4d\x92\xcf\xef\xcf\x11\x71\x36\xcd\xff\x23"
- "\x51\x48\x3f\x4d\x20\x0b\xea\xf5\x7a\xfd\xe7\xfa\xc1\x76\xd5\xab\x75\x60"
- "\xdf\xca\xa7\xc7\xc0\xb9\xfc\x48\x44\x34\xca\xf9\xfc\xc8\x48\xe3\x18\xfe"
- "\x2f\x31\x94\x9f\xad\x54\x6b\xff\xbb\x59\x59\x9a\x9f\x6a\x1c\x2b\x1f\x8d"
- "\xbe\xfc\xcd\x5b\xb3\xe5\x0b\xcd\xef\x0a\x47\xa3\x2f\x97\xac\x8f\xa6\xe5"
- "\xe7\xeb\xa5\x6d\xeb\x63\x11\xe9\x31\xf0\x47\x85\xc1\x74\x7d\x64\xb2\x32"
- "\x3b\xd5\xdd\xa1\x0e\xd8\xe6\xd0\xb6\xfc\xff\xa1\xd0\xc8\x7f\x20\x23\x7c"
- "\xe5\x87\xec\x92\xff\x90\x5d\xf2\x1f\xb2\x4b\xfe\x43\x76\xc9\x7f\xc8\x2e"
- "\xf9\x0f\xd9\x25\xff\x21\xbb\xe4\x3f\x64\x97\xfc\x87\xec\xda\x94\xff\x03"
- "\xbd\x6c\x07\xd0\x7d\xfe\xff\x87\x4c\x7a\xeb\xea\xd5\x64\xa9\xaf\x37\xef"
- "\x7f\x9f\xba\xbd\xbc\x34\x53\xb9\x7d\x7e\xaa\x5c\x9d\x19\x99\x5b\x9a\xcc"
- "\x47\x65\x71\x61\x64\xba\x52\x99\x4e\xef\xd9\x99\xfb\xb5\xf7\x9b\xad\x54"
- "\x16\x46\x4b\xb1\x74\xa7\x58\x2b\x57\x6b\xc5\xea\xf2\xca\xf5\xb9\xca\xd2"
- "\x7c\xed\x7a\x7a\x5f\xff\xf5\x72\x5f\x57\x7a\x05\x74\xe2\xd8\xe9\xb5\x07"
- "\xb9\x88\x58\xfd\xff\x60\xba\x24\xfa\x9b\x75\x72\x15\xf6\xb7\x7a\x3d\x17"
- "\xbd\xbe\x07\x19\xe8\x8d\xc2\xcb\x0c\x16\x6d\x7f\x26\x04\xf8\x23\x32\xf5"
- "\x07\xd9\xe5\x3b\x3e\xb0\xc3\x4f\xf4\x6e\xd1\xf6\xba\x80\x85\xbd\x6f\x0b"
- "\xd0\x1d\xf9\x5e\x37\x00\xe8\x99\x73\x27\xd7\x1e\xe4\xfa\x9d\xff\x83\x2c"
- "\x7a\xa9\xf9\x7f\x60\x5f\x31\xff\x0f\xd9\xe5\x18\x1f\x30\xff\x0f\xd9\x63"
- "\xfe\x1f\xb2\x6b\xb8\xcd\xf3\xbf\xfe\xb4\xe9\xd9\x5d\x17\x22\xe2\x70\x44"
- "\x7c\x5d\xe8\x3b\xd8\x7a\xd6\x17\xb0\x1f\xe4\x1f\xe6\x9a\xc7\xff\xe7\x8e"
- "\xfc\x63\x78\x7b\x6d\x7f\xee\xc7\xf4\x14\x41\x7f\x44\xbc\xf7\xe9\xb5\x8f"
- "\xef\x4c\xd4\x6a\x8b\xa3\xc9\xf6\xc7\x1b\xdb\x6b\x9f\x34\xb7\xef\xe1\xb3"
- "\xba\x81\xbd\xd7\xca\xd3\x56\x1e\x03\x00\xd9\xf5\xec\xc9\xdd\xc9\xd6\xd2"
- "\xcd\xb8\x8f\x5e\x6b\x5c\x84\x90\xc4\x5d\x6f\x2e\x8d\x9a\x03\xcd\xb9\xc9"
- "\x81\xf4\x1c\xe5\xd0\xd3\xdc\x96\x6b\x15\x72\x7b\x74\xed\xc2\xea\xbd\x88"
- "\xf8\xeb\x4e\xfd\xcf\x35\x9f\x77\xde\x38\xf3\x31\xf4\xb4\xf0\x42\xfc\xe3"
- "\xcd\xd7\x5c\xe3\x2d\xd2\xf6\x1e\x48\x9f\x9b\xde\x9d\xf8\x27\x37\xc5\xff"
- "\xdb\xa6\xf8\xa7\x7e\xf7\xbf\x0a\x64\xc3\x5a\x32\xfe\x5c\xd8\x29\xff\xf2"
- "\x69\x4e\xc7\x46\xfe\x6d\x1d\x7f\x86\xf7\xe8\xda\x89\xd6\xf8\xb7\xfe\xc2"
- "\xf8\x97\xdf\x18\xff\x0a\x6d\xc6\xbf\xd3\x1d\xc6\x38\x31\xbc\xf4\x4d\xdb"
- "\xf8\xf7\x22\x4e\xed\x18\xbf\x15\x6f\x20\x8d\xb5\x3d\x7e\xd2\xb6\x73\x1d"
- "\xc6\x1f\xfd\xf0\xea\x44\xbb\xba\xfa\x67\x11\xff\x8a\x9d\xe3\xb7\x24\xa5"
- "\x62\x6d\x6e\xa1\x58\x5d\x5e\x39\x9f\xfe\x8e\xdc\x74\x79\xbe\x74\x71\xbc"
- "\x34\x7a\x69\x7c\xac\x54\x4c\xa7\xa8\x8b\xad\x89\xea\x1d\xdc\xff\xf6\xa7"
- "\xb5\xdd\xfa\x3f\xd4\x26\xfe\x6e\xfd\x4f\xb6\xfd\xa7\xc3\xfe\xbf\xf3\x5d"
- "\xdf\xc3\x33\xbb\xc4\xff\xf7\xd9\x9d\x3f\xff\xe3\xbb\xc4\x1f\x8c\x88\xff"
- "\x76\x18\xff\x9f\xef\x96\x4f\xb4\xab\x4b\xe2\x4f\xb5\xe9\x7f\x7e\x97\xf8"
- "\xc9\xb6\xb1\x0e\xe3\x3f\xfa\xfb\xfd\xcf\x3b\xdc\x15\x00\xe8\x82\xea\xf2"
- "\xca\xcc\xc4\xec\x6c\x79\x51\x41\x41\x41\x61\xa3\xd0\xeb\x91\x09\x78\xd5"
- "\x9e\x27\x7d\xaf\x5b\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x74\xaa\x1b"
- "\x97\x13\xf7\xba\x8f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xfb\xc1\x2f\x01\x00\x00\xff\xff"
- "\x62\xa3\xd2\xfc",
- 1210);
- syz_mount_image(/*fs=*/0x2000000004c0, /*dir=*/0x200000000500, /*flags=*/0,
- /*opts=*/0x200000000140, /*chdir=*/1, /*size=*/0x4ba,
- /*img=*/0x200000000a80);
- memcpy((void*)0x200000000080, "./file0\000", 8);
- memcpy((void*)0x200000000940, "tmpfs\000", 6);
- syscall(__NR_mount, /*src=*/0ul, /*dst=*/0x200000000080ul,
- /*type=*/0x200000000940ul, /*flags=*/0ul, /*data=*/0ul);
- memcpy((void*)0x200000000300, "./file0\000", 8);
- syscall(__NR_chdir, /*dir=*/0x200000000300ul);
- res = syscall(__NR_getpid);
- if (res != -1)
- r[0] = res;
- *(uint8_t*)0x200000000000 = 0;
- syscall(__NR_prctl, /*option=*/0x3bul, /*mode=*/1ul, /*offset=*/0ul,
- /*len=*/0ul, /*selector=*/0x200000000000ul);
- syscall(__NR_fchown, /*fd=*/-1, /*uid=*/0, /*gid=*/0xee01);
- syscall(__NR_ptrace, /*req=PTRACE_SETREGS*/ 0xdul, /*pid=*/r[0],
- /*ignored=*/0xf96ul, /*data=*/0x200000000000ul);
- *(uint32_t*)0x200000000100 = 1;
- *(uint32_t*)0x200000000104 = 0x80;
- *(uint8_t*)0x200000000108 = 0;
- *(uint8_t*)0x200000000109 = 0;
- *(uint8_t*)0x20000000010a = 1;
- *(uint8_t*)0x20000000010b = 6;
- *(uint32_t*)0x20000000010c = 0;
- *(uint64_t*)0x200000000110 = 0x41c1;
- *(uint64_t*)0x200000000118 = 0;
- *(uint64_t*)0x200000000120 = 4;
- STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 0, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 1, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 2, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 3, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 4, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000128, 1, 5, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 6, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 7, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 8, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 9, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 10, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 11, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 12, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 13, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 14, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 15, 2);
- STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 17, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 18, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 19, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 20, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 21, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 22, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 23, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 24, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 25, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 26, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 27, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 28, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 29, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 30, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 31, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 32, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 33, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 34, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 35, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 36, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 37, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 38, 26);
- *(uint32_t*)0x200000000130 = 0;
- *(uint32_t*)0x200000000134 = 0;
- *(uint64_t*)0x200000000138 = 0x200000000000;
- *(uint64_t*)0x200000000140 = 0;
- *(uint64_t*)0x200000000148 = 0;
- *(uint64_t*)0x200000000150 = 0;
- *(uint32_t*)0x200000000158 = 0;
- *(uint32_t*)0x20000000015c = 2;
- *(uint64_t*)0x200000000160 = 0;
- *(uint32_t*)0x200000000168 = 0;
- *(uint16_t*)0x20000000016c = 0;
- *(uint16_t*)0x20000000016e = 0;
- *(uint32_t*)0x200000000170 = 0;
- *(uint32_t*)0x200000000174 = 0;
- *(uint64_t*)0x200000000178 = 0xfffffffffffffc00;
- syscall(__NR_perf_event_open, /*attr=*/0x200000000100ul, /*pid=*/0,
- /*cpu=*/-1, /*group=*/-1, /*flags=*/0ul);
- res = syscall(__NR_socket, /*domain=*/2ul, /*type=SOCK_STREAM*/ 1ul,
- /*proto=*/0);
- if (res != -1)
- r[1] = res;
- syscall(__NR_getpriority, /*which=PRIO_PGRP*/ 1ul, /*who=*/0);
- *(uint32_t*)0x2000000001c0 = 0x169;
- syscall(__NR_setsockopt, /*fd=*/-1, /*level=*/6, /*optname=TCP_MAXSEG*/ 2,
- /*optval=*/0x2000000001c0ul, /*optlen=*/4ul);
- *(uint16_t*)0x200000000340 = 2;
- *(uint16_t*)0x200000000342 = htobe16(0);
- *(uint32_t*)0x200000000344 = htobe32(-1);
- *(uint8_t*)0x2000000003c0 = 0;
- *(uint8_t*)0x2000000003c1 = 9;
- *(uint16_t*)0x2000000003c2 = 0;
- *(uint32_t*)0x2000000003c4 = 0;
- memset((void*)0x2000000003c8, 0, 80);
- syscall(__NR_setsockopt, /*fd=*/r[1], /*level=*/6, /*optname=*/0xe,
- /*optval=*/0x200000000340ul, /*optlen=*/0xd8ul);
- res = syscall(__NR_getpgid, /*pid=*/0);
- if (res != -1)
- r[2] = res;
- syscall(__NR_getpgid, /*pid=*/0);
- memcpy((void*)0x200000000b80, "ext4\000", 5);
- memcpy((void*)0x200000000140, "./file1\000", 8);
- memcpy((void*)0x200000000000, "init_itable", 11);
- *(uint8_t*)0x20000000000b = 0x2c;
- memcpy((void*)0x20000000000c, "errors=remount-ro", 17);
- *(uint8_t*)0x20000000001d = 0x2c;
- memcpy((void*)0x20000000001e, "jqfmt=vfsold", 12);
- *(uint8_t*)0x20000000002a = 0x2c;
- memcpy((void*)0x20000000002b, "block_validity", 14);
- *(uint8_t*)0x200000000039 = 0x2c;
- memcpy((void*)0x20000000003a, "dioread_lock", 12);
- *(uint8_t*)0x200000000046 = 0x2c;
- *(uint8_t*)0x200000000047 = 0;
- memcpy(
- (void*)0x200000000bc0,
- "\x78\x9c\xec\xdc\x4d\x6b\x5c\xd5\x1b\x00\xf0\xe7\xde\xbc\x34\x69\xf2\x6f"
- "\xd2\xff\x42\x6d\x11\x0c\x48\xad\x28\x4e\xd3\xa6\x28\x74\xd5\xba\x16\x15"
- "\x74\xd1\x65\x63\x32\x29\x21\xd3\x17\x93\x08\x26\x14\x9c\xd6\xbd\xba\x10"
- "\x71\x51\x90\x7e\x04\xc1\xbd\x75\xe1\x4a\x70\x51\x17\x5a\x3f\x41\x11\x8b"
- "\x14\xdd\xb4\x2e\x46\xee\xbc\xa4\x63\x92\x49\x62\x3b\xd3\xd3\x97\xdf\x0f"
- "\x4e\xee\x39\x73\x66\xe6\x79\x9e\xb9\xcc\xbd\xe7\xc2\xdc\x04\xf0\xc4\x9a"
- "\x28\xfe\xe4\x11\xfb\x22\xe2\x54\x16\x31\xd6\x7c\x3c\x8f\x88\xc1\x7a\x6f"
- "\x28\xa2\xda\x78\xde\x9d\x5b\x17\x66\x8a\x96\x45\xad\xf6\xce\x1f\x59\x64"
- "\x11\x71\xfb\xd6\x85\x99\xd6\x7b\x65\xcd\xed\x48\x73\x30\x14\x11\xd7\x5e"
- "\xcf\xe2\xff\x1f\x6f\x8c\xbb\xb4\xb2\xba\x30\x5d\xa9\x94\x17\x9b\xe3\x43"
- "\xcb\x67\xce\x1f\x5a\x5a\x59\x7d\x65\xfe\xcc\xf4\xe9\xf2\xe9\xf2\xd9\xa3"
- "\x53\xaf\x1d\x9d\x7a\x75\x6a\xaa\x8b\xb5\xde\x38\xff\xde\x97\xcf\xfe\xf4"
- "\xe6\x0b\x97\xae\x7c\x32\xf9\xd6\x17\x7b\x7e\xc8\xe2\x78\x8c\x36\xe7\xda"
- "\xeb\xe8\x96\x89\x98\x58\xfb\x4c\xda\xf5\x47\xc4\x74\xb7\x83\x25\xd2\xd7"
- "\xac\xa7\xbd\xce\xac\x3f\x61\x42\x00\x00\x6c\x29\x6f\x5b\xc3\x3d\x15\x63"
- "\xd1\x17\x77\x17\x6f\x63\xf1\xfd\xcf\x49\x93\x03\x00\x00\x00\xba\xa2\xd6"
- "\x17\x51\x03\x00\x00\x00\x1e\x73\x99\xeb\x7f\x00\x00\x00\x78\xcc\xb5\x7e"
- "\x07\x70\xfb\xd6\x85\x99\x56\x4b\xfb\x8b\x84\x07\xeb\xe6\x89\x88\x18\x6f"
- "\xd4\xdf\xba\xbf\xb9\x31\xd3\x1f\xd5\xfa\x76\x28\x06\x22\x62\xf7\x9f\x59"
- "\xb4\xdf\xd6\x9a\x35\x5e\x76\xdf\x26\x8a\x48\xdf\xfc\x58\x2e\x5a\xf4\xe8"
- "\x3e\xe4\xad\x54\x2f\x46\xc4\x33\x9b\xed\xff\xac\x5e\xff\x78\xfd\x2e\xee"
- "\x8d\xf5\xe7\x11\x31\xd9\x85\xf8\x13\xeb\xc6\x8f\x52\xfd\xc7\xbb\x10\x3f"
- "\x75\xfd\x00\x3c\x99\xae\x9e\x68\x9c\xc8\x36\x9e\xff\xf2\xb5\xf5\x4f\x6c"
- "\x72\xfe\xeb\xdf\xe4\xdc\x75\x2f\x36\x3d\xff\xe5\x5d\x78\xe3\x1d\x6a\xad"
- "\xff\xee\x6c\x58\xff\xdd\xad\xbf\x2f\x22\x86\xd7\xbd\xae\x58\xff\xbd\xbd"
- "\xc3\x18\xfb\xff\x7e\xe9\xda\xba\x87\x06\x5b\x9d\xf6\xf5\xdf\xc9\x4f\x7f"
- "\x9d\x2d\xe2\x17\xdb\xfb\x2a\xea\x3f\xb8\x79\x31\x62\x7f\xff\x66\xf5\x67"
- "\x6b\xf5\x67\x1d\xd6\xbf\xa7\x76\x18\x63\x64\xe6\xc6\xe5\x4e\x73\x45\xfd"
- "\x45\xbd\xad\xf6\xa0\xeb\xaf\x5d\x89\x38\x10\x9b\xd7\xdf\x92\x6d\xf5\xff"
- "\x89\x0e\xcd\xcd\x57\xca\x93\x8d\xbf\x1d\x62\x1c\xf8\xee\xe4\xc1\x4e\xf1"
- "\xdb\xf7\x7f\xd1\x8a\xf8\xad\x6b\x81\x07\xa1\xd8\xff\xbb\x3b\xd4\xbf\xdd"
- "\xfe\x3f\xbf\xc3\x18\xe3\x4f\xff\xbe\xaf\xd3\xdc\xf6\xf5\xe7\xbf\x0d\x66"
- "\xef\xd6\x7b\xad\x2f\xcd\x87\xd3\xcb\xcb\x8b\x87\x23\x06\xb3\x37\x36\x3e"
- "\x7e\x64\xeb\x5c\x5a\xcf\x69\xbd\x47\x51\xff\x8b\xcf\x6f\xfd\xfd\xaf\x7d"
- "\xb4\xb1\xfe\xe2\x98\x50\x6d\x7e\x0e\xc5\xe1\xea\x62\x73\x5b\x8c\x2f\xad"
- "\x8b\x39\x72\xe0\xc8\xd7\xf7\x5e\x7f\x6f\x15\xf5\xcf\xde\xe3\xfe\xff\x6c"
- "\x87\x31\xbe\xfa\xf6\xf2\xfb\x9d\xe6\x52\xd7\x0f\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\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\x21\x8f\x88\xd1\xc8\xf2\xd2\x5a\x3f\xcf\x4b\xc5\xa0\x5a\xab\xab"
- "\x9c\x5b\x5a\x7e\x79\xee\xdc\x07\x67\x67\x8b\xb9\x88\xf1\x18\xc8\xe7\xe6"
- "\x2b\xe5\xc9\x88\x18\x6b\x8c\xb3\x62\x7c\xb8\xde\xbf\x3b\x3e\xb2\x6e\x3c"
- "\x15\x11\x7b\x23\xe2\xf3\xb1\xe1\xfa\xb8\x34\x73\xae\x32\x9b\xba\x78\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\xd6\x8c\x44\xc4\x68\x64\x79\x29\x22\xf2"
- "\x88\xf8\x6b\x2c\xcf\x4b\xa5\xd4\x59\x01\x00\x00\x00\x5d\x37\x9e\x3a\x01"
- "\x00\x00\x00\xa0\xe7\x5c\xff\x03\x00\x00\xc0\xe3\xcf\xf5\x3f\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x3d\xb6\xf7\xb9\xab\xd7"
- "\xb3\x88\xa8\x1e\x1b\xae\xb7\xc2\x60\x73\x6e\x20\x69\x66\x40\xaf\xe5\xa9"
- "\x13\x00\x92\xe9\x4b\x9d\x00\x90\x4c\x7f\xea\x04\x80\x64\x5c\xe3\x03\xd9"
- "\x36\xf3\x43\x1d\x67\x76\x75\x3d\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\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1e\x5e\x07\xf7\x5d"
- "\xbd\x9e\x45\x44\xf5\xd8\x70\xbd\x15\x06\x9b\x73\x03\xff\x7a\xe6\x4c\x82"
- "\xec\x80\x5e\xca\x53\x27\x00\x24\xd3\x97\x3a\x01\x20\x99\xfe\xd4\x09\x00"
- "\xc9\x0c\xa4\x4e\x00\x48\x2e\xdb\x66\x7e\xa8\xe3\xcc\xae\xae\xe7\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\xc0\xc3\x6b\xb4\xde\xb2\xbc\x14\x11\x79\xbd\x9f\xe7\xa5\x52\xc4"
- "\xff\x22\x62\x3c\x06\xb2\xb9\xf9\x4a\x79\x32\x22\xf6\x44\xc4\x2f\x63\x03"
- "\xbb\x8a\xf1\xe1\xd4\x49\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xd0\x75\x4b"
- "\x2b\xab\x0b\xd3\x95\x4a\x79\x51\x47\x47\x47\x67\xad\x93\xfa\xc8\x04\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x40\x0a\x4b\x2b\xab\x0b\xd3\x95\x4a\x79\x71\x29"
- "\x75\x26\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x40\x6a\x4b\x2b\xab\x0b\xd3\x95\x4a\x79\xb1\x87\x9d\xd4\x35\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\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
- "\x00\x90\xce\x3f\x01\x00\x00\xff\xff\x05\x17\x0d\x57",
- 2965);
- syz_mount_image(/*fs=*/0x200000000b80, /*dir=*/0x200000000140, /*flags=*/0,
- /*opts=*/0x200000000000, /*chdir=*/1, /*size=*/0xb95,
- /*img=*/0x200000000bc0);
- syscall(__NR_creat, /*file=*/0ul, /*mode=*/0ul);
- memcpy((void*)0x200000000880, "/dev/loop#\000", 11);
- res = -1;
- res = syz_open_dev(/*dev=*/0x200000000880, /*id=*/0, /*flags=*/0);
- if (res != -1)
- r[3] = res;
- syscall(__NR_ioctl, /*fd=*/r[3], /*cmd=*/0x4c03, /*arg=*/0x200000000080ul);
- syscall(__NR_gettid);
- *(uint32_t*)0x200000000700 = 2;
- *(uint32_t*)0x200000000704 = 0x80;
- *(uint8_t*)0x200000000708 = 0;
- *(uint8_t*)0x200000000709 = 0;
- *(uint8_t*)0x20000000070a = 0;
- *(uint8_t*)0x20000000070b = 0;
- *(uint32_t*)0x20000000070c = 0;
- *(uint64_t*)0x200000000710 = 0x50d;
- *(uint64_t*)0x200000000718 = 0x21008;
- *(uint64_t*)0x200000000720 = 0;
- STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 0, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 1, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 2, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 3, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 4, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 5, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 6, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 7, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 8, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 9, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 10, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 11, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 12, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 13, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 14, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 15, 2);
- STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 17, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 18, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 19, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 20, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 21, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 22, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 23, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 24, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 25, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 26, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 27, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 28, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 29, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 30, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 31, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 32, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 33, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 34, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 35, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 36, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 37, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 38, 26);
- *(uint32_t*)0x200000000730 = 0;
- *(uint32_t*)0x200000000734 = 0;
- *(uint64_t*)0x200000000738 = 0x200000000000;
- *(uint64_t*)0x200000000740 = 0;
- *(uint64_t*)0x200000000748 = 0;
- *(uint64_t*)0x200000000750 = 0;
- *(uint32_t*)0x200000000758 = 0;
- *(uint32_t*)0x20000000075c = 0;
- *(uint64_t*)0x200000000760 = 0;
- *(uint32_t*)0x200000000768 = 0;
- *(uint16_t*)0x20000000076c = -1;
- *(uint16_t*)0x20000000076e = 0;
- *(uint32_t*)0x200000000770 = 0;
- *(uint32_t*)0x200000000774 = 0;
- *(uint64_t*)0x200000000778 = 0;
- syscall(__NR_perf_event_open, /*attr=*/0x200000000700ul, /*pid=*/r[2],
- /*cpu=*/-1, /*group=*/-1, /*flags=*/0ul);
- *(uint32_t*)0x200000000080 = 2;
- *(uint32_t*)0x200000000084 = 0x80;
- *(uint8_t*)0x200000000088 = 0xcc;
- *(uint8_t*)0x200000000089 = 0x9d;
- *(uint8_t*)0x20000000008a = 0;
- *(uint8_t*)0x20000000008b = 3;
- *(uint32_t*)0x20000000008c = 0;
- *(uint64_t*)0x200000000090 = 7;
- *(uint64_t*)0x200000000098 = 0x8002;
- *(uint64_t*)0x2000000000a0 = 0;
- STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 1, 0, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 0, 1, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 1, 2, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 0, 3, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 1, 4, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 1, 5, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 0, 6, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 0, 7, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 0, 8, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 0, 9, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 1, 10, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 1, 11, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 0, 12, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 0, 13, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 0, 14, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 1, 15, 2);
- STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 1, 17, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 0, 18, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 0, 19, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 1, 20, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 1, 21, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 0, 22, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 1, 23, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 0, 24, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 1, 25, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 1, 26, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 1, 27, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 0, 28, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 0, 29, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 7, 30, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 0, 31, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 0, 32, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 0x30c0, 33, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 0xfffffffffffffffa, 34, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 5, 35, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 2, 36, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 0x10000, 37, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 4, 38, 26);
- *(uint32_t*)0x2000000000b0 = 0xa82;
- *(uint32_t*)0x2000000000b4 = 1;
- *(uint64_t*)0x2000000000b8 = 0x200000000000;
- *(uint64_t*)0x2000000000c0 = 0;
- *(uint64_t*)0x2000000000c8 = 0x100;
- *(uint64_t*)0x2000000000d0 = 0x10000;
- *(uint32_t*)0x2000000000d8 = 0;
- *(uint32_t*)0x2000000000dc = 0;
- *(uint64_t*)0x2000000000e0 = 0;
- *(uint32_t*)0x2000000000e8 = 0;
- *(uint16_t*)0x2000000000ec = 2;
- *(uint16_t*)0x2000000000ee = 0;
- *(uint32_t*)0x2000000000f0 = 0;
- *(uint32_t*)0x2000000000f4 = 0;
- *(uint64_t*)0x2000000000f8 = 0;
- syscall(__NR_perf_event_open, /*attr=*/0x200000000080ul, /*pid=*/r[2],
- /*cpu=*/0ul, /*group=*/-1,
- /*flags=PERF_FLAG_FD_CLOEXEC|PERF_FLAG_FD_OUTPUT*/ 0xaul);
- *(uint16_t*)0x200000000040 = 2;
- *(uint16_t*)0x200000000042 = htobe16(0x4e23);
- *(uint32_t*)0x200000000044 = htobe32(0xe0000002);
- syscall(__NR_bind, /*fd=*/-1, /*addr=*/0x200000000040ul, /*addrlen=*/0x10ul);
- res = syscall(__NR_socket, /*domain=*/2ul, /*type=*/2ul, /*proto=*/0);
- if (res != -1)
- r[4] = res;
- *(uint16_t*)0x200000000080 = 2;
- *(uint16_t*)0x200000000082 = htobe16(0);
- *(uint32_t*)0x200000000084 = htobe32(-1);
- syscall(__NR_connect, /*fd=*/r[4], /*addr=*/0x200000000080ul,
- /*addrlen=*/0x10ul);
- syscall(__NR_sendmmsg, /*fd=*/r[4], /*mmsg=*/0ul, /*vlen=*/0ul, /*f=*/0ul);
- *(uint64_t*)0x200000000200 = htobe64(0);
- *(uint64_t*)0x200000000208 = htobe64(1);
- memset((void*)0x200000000210, 0, 16);
- *(uint16_t*)0x200000000220 = htobe16(0x4e24);
- *(uint16_t*)0x200000000222 = htobe16(0);
- *(uint16_t*)0x200000000224 = htobe16(0x4e21);
- *(uint16_t*)0x200000000226 = htobe16(1);
- *(uint16_t*)0x200000000228 = 0xa;
- *(uint8_t*)0x20000000022a = 0x20;
- *(uint8_t*)0x20000000022b = 0x80;
- *(uint8_t*)0x20000000022c = 0;
- *(uint32_t*)0x200000000230 = 0;
- *(uint32_t*)0x200000000234 = 0;
- *(uint64_t*)0x200000000238 = 4;
- *(uint64_t*)0x200000000240 = 0;
- *(uint64_t*)0x200000000248 = -1;
- *(uint64_t*)0x200000000250 = 0x7ff;
- *(uint64_t*)0x200000000258 = 0xffffffff;
- *(uint64_t*)0x200000000260 = 2;
- *(uint64_t*)0x200000000268 = 2;
- *(uint64_t*)0x200000000270 = 0;
- *(uint64_t*)0x200000000278 = 3;
- *(uint64_t*)0x200000000280 = 0x80;
- *(uint64_t*)0x200000000288 = 5;
- *(uint64_t*)0x200000000290 = 4;
- *(uint32_t*)0x200000000298 = 0x156;
- *(uint32_t*)0x20000000029c = 0x6e6bb5;
- *(uint8_t*)0x2000000002a0 = 1;
- *(uint8_t*)0x2000000002a1 = 1;
- *(uint8_t*)0x2000000002a2 = 1;
- *(uint8_t*)0x2000000002a3 = 3;
- memcpy((void*)0x2000000002a8,
- " \001\000\000\000\000\000\000\000\000\000\000\000\000\000\000", 16);
- *(uint32_t*)0x2000000002b8 = htobe32(0);
- *(uint8_t*)0x2000000002bc = 0x33;
- *(uint16_t*)0x2000000002c0 = 2;
- memset((void*)0x2000000002c4, 0, 10);
- memset((void*)0x2000000002ce, 255, 2);
- *(uint32_t*)0x2000000002d0 = htobe32(0xa010102);
- *(uint32_t*)0x2000000002d4 = 0x3501;
- *(uint8_t*)0x2000000002d8 = 3;
- *(uint8_t*)0x2000000002d9 = 1;
- *(uint8_t*)0x2000000002da = 2;
- *(uint32_t*)0x2000000002dc = 6;
- *(uint32_t*)0x2000000002e0 = 6;
- *(uint32_t*)0x2000000002e4 = 8;
- syscall(__NR_setsockopt, /*fd=*/r[4], /*level=*/0, /*optname=*/0x11,
- /*optval=*/0x200000000200ul, /*optlen=*/0xe8ul);
- *(uint16_t*)0x200000000300 = 2;
- *(uint16_t*)0x200000000302 = htobe16(0x4e23);
- *(uint8_t*)0x200000000304 = 0xac;
- *(uint8_t*)0x200000000305 = 0x14;
- *(uint8_t*)0x200000000306 = 0x14;
- *(uint8_t*)0x200000000307 = 0xaa;
- syscall(
- __NR_sendto, /*fd=*/r[1], /*buf=*/0ul, /*len=*/0ul,
- /*f=MSG_FASTOPEN|MSG_MORE|MSG_EOR|MSG_DONTROUTE|0x10728*/ 0x200187acul,
- /*addr=*/0x200000000300ul, /*addrlen=*/0x10ul);
- memcpy((void*)0x200000000540, "#! ", 3);
- memcpy((void*)0x200000000543, "./file0", 7);
- *(uint8_t*)0x20000000054a = 0x20;
- memcpy(
- (void*)0x20000000054b,
- "#,/"
- "*&*\205\251\322\325\207\320\276\356\245F&\326\367\344d\311^"
- "\255\213\327\242\tE\020\376\026\257\333\373sv\372\266\232\234\223x\234"
- "\261\024\350\311Z\264l\204\332\v\315\321,\034\340."
- "\t\201\243\205p\031\210~\374\311\314\371,H\021\360\323n\312\374:"
- "\263A\325rkg&b\351Q\264\235U\020\'M\252<\315\250\300t]\213\031\177\363{"
- "\026\303T4\27106\203\250\364\245$"
- "\321\205cg\221\233\276\030\240\333\242\365\310u\017\026X.\246\277\026&"
- "p\206\204l\237f\366\267\325;\257\262\210\036q\003\343#\377\235e\'\332",
- 166);
- *(uint8_t*)0x2000000005f1 = 0xa;
- syscall(__NR_write, /*fd=*/r[1], /*data=*/0x200000000540ul, /*len=*/0xb2ul);
- memcpy((void*)0x2000000001c0, "./file0\000", 8);
- syscall(__NR_mkdir, /*path=*/0x2000000001c0ul, /*mode=*/0ul);
- memcpy((void*)0x2000000009c0, "./file1\000", 8);
- syscall(__NR_mkdir, /*path=*/0x2000000009c0ul, /*mode=*/0ul);
- res = syscall(__NR_socket, /*domain=*/0x11ul, /*type=SOCK_DGRAM*/ 2ul,
- /*proto=*/0x300);
- if (res != -1)
- r[5] = res;
- *(uint32_t*)0x200000000040 = 0x10000;
- *(uint32_t*)0x200000000044 = 1;
- *(uint32_t*)0x200000000048 = 0x10000;
- *(uint32_t*)0x20000000004c = 1;
- *(uint32_t*)0x200000000050 = 0;
- *(uint32_t*)0x200000000054 = 0;
- *(uint32_t*)0x200000000058 = 0;
- syscall(__NR_setsockopt, /*fd=*/r[5], /*level=*/0x107, /*optname=*/0xd,
- /*optval=*/0x200000000040ul, /*optlen=*/0x1cul);
- *(uint64_t*)0x200000001440 = 0x200000000240;
- *(uint16_t*)0x200000000240 = 0x1e;
- *(uint8_t*)0x200000000242 = 1;
- *(uint8_t*)0x200000000243 = 0;
- *(uint32_t*)0x200000000244 = 2;
- *(uint32_t*)0x200000000248 = 0;
- *(uint32_t*)0x20000000024c = 0;
- *(uint32_t*)0x200000001448 = 0x80;
- *(uint64_t*)0x200000001450 = 0;
- *(uint64_t*)0x200000001458 = 0;
- *(uint64_t*)0x200000001460 = 0;
- *(uint64_t*)0x200000001468 = 0;
- *(uint32_t*)0x200000001470 = 0;
- *(uint32_t*)0x200000001478 = 0;
- syscall(__NR_sendmmsg, /*fd=*/r[5], /*mmsg=*/0x200000001440ul, /*vlen=*/1ul,
- /*f=*/0ul);
- syz_sysconfig_set__proc_sys_vm_zone_reclaim_mode(/*val=*/6);
- *(uint32_t*)0x200000000040 = 2;
- *(uint32_t*)0x200000000044 = 0x80;
- *(uint8_t*)0x200000000048 = 0xb8;
- *(uint8_t*)0x200000000049 = 0;
- *(uint8_t*)0x20000000004a = 0;
- *(uint8_t*)0x20000000004b = 0;
- *(uint32_t*)0x20000000004c = 0;
- *(uint64_t*)0x200000000050 = 0;
- *(uint64_t*)0x200000000058 = 0;
- *(uint64_t*)0x200000000060 = 0;
- STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 0, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 1, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 2, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 3, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 4, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 5, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 6, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 7, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 8, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 9, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 10, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 11, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 12, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 13, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 14, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 15, 2);
- STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 17, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 18, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 19, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 20, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 21, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 22, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 23, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 24, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 25, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 26, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 27, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 28, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 29, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 30, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 31, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 32, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 33, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 34, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 35, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 36, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 37, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 38, 26);
- *(uint32_t*)0x200000000070 = 0;
- *(uint32_t*)0x200000000074 = 0;
- *(uint64_t*)0x200000000078 = 0;
- *(uint64_t*)0x200000000080 = 0;
- *(uint64_t*)0x200000000088 = 0;
- *(uint64_t*)0x200000000090 = 0;
- *(uint32_t*)0x200000000098 = 0;
- *(uint32_t*)0x20000000009c = 0;
- *(uint64_t*)0x2000000000a0 = 0;
- *(uint32_t*)0x2000000000a8 = 0;
- *(uint16_t*)0x2000000000ac = 0;
- *(uint16_t*)0x2000000000ae = 0;
- *(uint32_t*)0x2000000000b0 = 0;
- *(uint32_t*)0x2000000000b4 = 0;
- *(uint64_t*)0x2000000000b8 = 0;
- syscall(__NR_perf_event_open, /*attr=*/0x200000000040ul, /*pid=*/0,
- /*cpu=*/-1, /*group=*/-1, /*flags=*/0ul);
- syscall(__NR_symlink, /*old=*/0ul, /*new=*/0ul);
- syz_sysconfig_reset__proc_sys_vm_zone_reclaim_mode();
- syz_sysconfig_set__proc_sys_vm_stat_interval(/*val=*/8);
- memcpy((void*)0x200000000140, "msdos\000", 6);
- memcpy((void*)0x200000000180, "./file0\000", 8);
- memcpy(
- (void*)0x200000000500,
- "\x6e\x6f\x64\x6f\x74\x73\x2c\x6e\x6f\x64\x6f\x74\x73\x2c\x6e\x6f\x64\x6f"
- "\x74\x73\x2c\x64\x6f\x74\x73\x2c\x61\x6c\x6c\x6f\x77\x5f\x75\x74\x69\x6d"
- "\x65\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30"
- "\x30\x30\x30\x30\x30\x30\x32\x2c\x61\x6c\x6c\x6f\x77\x5f\x75\x74\x69\x6d"
- "\x65\x3d\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30"
- "\x30\x30\x30\x30\x33\x37\x37\x2c\x64\x6f\x74\x73\x2c\x6e\x6f\x63\x61\x73"
- "\x65\x2c\x64\x6f\x74\x73\x2c\x6e\x6f\x64\x6f\x49\x9f\x4e\xfe\x80\x11\x62"
- "\xa9\x50\x6f\x00\x4c\xd8\x74\x73\x2c\x6e\x6f\x64\x6f\x74\x73\x2c\x00",
- 143);
- memcpy(
- (void*)0x2000000001c0,
- "\x78\x9c\xec\xdb\x31\x0b\x12\x61\x18\x07\xf0\x47\xb3\xb4\x5a\x9c\xa3\xe1"
- "\xa0\xa5\x49\x2a\xfa\x00\x46\x18\x44\x07\x41\xe1\x50\x53\x81\xb5\x68\x04"
- "\xb9\x5c\x4d\x7e\x94\xbe\x60\x10\x4e\x6e\x6f\x5c\x67\x5a\x92\x83\xc3\x79"
- "\x57\xfe\x7e\x8b\x0f\xfc\x11\x9e\xe7\xe0\xbd\x7b\xdf\x83\x7b\x73\xfb\xc3"
- "\x7c\xf6\x71\xf9\x7e\xf1\x70\x1d\x83\x4e\x27\xba\xe3\xc8\x62\xd3\x89\x61"
- "\x74\xe3\x97\x55\x00\x00\xff\x93\x4d\x4a\xf1\x3d\xa5\x94\xfa\xab\xb8\xfe"
- "\x35\x52\x4a\x4d\x77\x04\x00\xd4\xcd\xf3\x1f\x00\x2e\xcf\xcb\x57\xaf\x9f"
- "\x3d\xca\xf3\xc9\x8b\x2c\x1b\x44\x7c\x5b\x15\xd3\x62\x5a\xfd\x56\xf9\x93"
- "\xa7\xf9\xe4\x5e\xf6\xd3\x70\xff\xaf\x75\x51\x4c\xfb\xbb\xfc\x7e\x95\x67"
- "\x7f\xe6\x57\xe3\xc6\x36\x7f\xf0\xd7\xfc\x5a\xdc\xbd\x53\xe5\x65\xf6\xf8"
- "\x79\x7e\x90\xdf\x8c\x59\xfd\xe3\x03\x00\x00\xc0\x45\x18\x65\x3b\x07\xe7"
- "\xfb\x2b\x55\x3e\x3a\x96\x57\xd5\x6f\xef\x07\x0e\xce\xef\xbd\xb8\xd5\x3b"
- "\xdb\x18\x00\xc0\x09\x96\x9f\xbf\xcc\xdf\x2e\x16\xef\x3e\xb5\xb4\x28\x77"
- "\x21\x2d\x68\x63\x5b\x94\x57\xac\xdc\xd4\xb4\xa5\x9f\x53\x8b\x71\x44\xb4"
- "\xa0\x8d\x7f\xa7\xe8\xb6\x7e\x81\xd4\x56\x34\x7d\x67\x02\xea\xb6\x5f\xf4"
- "\x4d\x77\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1c\x73\x8e\xcf"
- "\x89\x9a\x9e\x11\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\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\xcb\xf3\x23\x00\x00\xff\xff\xf1\x8b\x32\x42",
- 340);
- syz_mount_image(/*fs=*/0x200000000140, /*dir=*/0x200000000180, /*flags=*/0,
- /*opts=*/0x200000000500, /*chdir=*/1, /*size=*/0x154,
- /*img=*/0x2000000001c0);
- memcpy((void*)0x2000000001c0, "memory.current\000", 15);
- res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x2000000001c0ul,
- /*flags=*/0x275a, /*mode=*/0);
- if (res != -1)
- r[6] = res;
- memcpy((void*)0x200000000000, "#! ", 3);
- *(uint8_t*)0x200000000003 = 0xa;
- syscall(__NR_write, /*fd=*/r[6], /*data=*/0x200000000000ul, /*len=*/4ul);
- memcpy((void*)0x200000000180, "pagemap\000", 8);
- res = -1;
- res = syz_open_procfs(/*pid=*/0, /*file=*/0x200000000180);
- if (res != -1)
- r[7] = res;
- syscall(__NR_mmap, /*addr=*/0x2000005eb000ul, /*len=*/0x4000ul,
- /*prot=PROT_GROWSUP|PROT_GROWSDOWN|PROT_WRITE|PROT_EXEC*/ 0x3000006ul,
- /*flags=MAP_FIXED|MAP_SHARED*/ 0x11ul, /*fd=*/r[7], /*offset=*/0ul);
- memcpy((void*)0x200000000080, "./bus\000", 6);
- res = syscall(__NR_creat, /*file=*/0x200000000080ul, /*mode=S_IROTH*/ 4ul);
- if (res != -1)
- r[8] = res;
- syscall(__NR_ftruncate, /*fd=*/r[8], /*len=*/0x208200ul);
- memcpy((void*)0x200000000280, "./bus\000", 6);
- res = syscall(__NR_open, /*file=*/0x200000000280ul, /*flags=*/0ul,
- /*mode=*/0ul);
- if (res != -1)
- r[9] = res;
- syscall(__NR_keyctl, /*code=*/0x1ful, /*buffer=*/0ul, /*buflen=*/0ul, 0, 0);
- res = syscall(__NR_socket, /*domain=*/0xaul,
- /*type=SOCK_STREAM|0x401000000000*/ 0x401000000001ul,
- /*proto=*/0);
- if (res != -1)
- r[10] = res;
- syscall(__NR_close, /*fd=*/r[10]);
- memcpy((void*)0x200000000400, "./bus\000", 6);
- res = syscall(
- __NR_open, /*file=*/0x200000000400ul,
- /*flags=O_SYNC|O_NOATIME|O_DIRECT|O_CREAT|O_RDWR|0x1000000*/ 0x1145042ul,
- /*mode=*/0ul);
- if (res != -1)
- r[11] = res;
- syscall(__NR_fstat, /*fd=*/-1, /*statbuf=*/0x2000000000c0ul);
- syscall(__NR_fcntl, /*fd=*/-1, /*cmd=*/0x10ul, /*arg=*/0x200000000040ul);
- syscall(__NR_sendfile, /*fdout=*/r[10], /*fdin=*/r[11], /*off=*/0ul,
- /*count=*/0xffffdffaul);
- syscall(__NR_read, /*fd=*/r[9], /*buf=*/0x200000000180ul,
- /*count=*/0xfffffe47ul);
- syz_sysconfig_reset__proc_sys_vm_stat_interval();
- *(uint32_t*)0x200000000180 = 2;
- *(uint32_t*)0x200000000184 = 0x80;
- *(uint8_t*)0x200000000188 = 0x66;
- *(uint8_t*)0x200000000189 = 1;
- *(uint8_t*)0x20000000018a = 0;
- *(uint8_t*)0x20000000018b = 0;
- *(uint32_t*)0x20000000018c = 0;
- *(uint64_t*)0x200000000190 = 0;
- *(uint64_t*)0x200000000198 = 0;
- *(uint64_t*)0x2000000001a0 = 0;
- STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 0, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 1, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 2, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 3, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 4, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 5, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 6, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 7, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 8, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 9, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 10, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 11, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 12, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 13, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 14, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 15, 2);
- STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 17, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 18, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 19, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 20, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 21, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 22, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 23, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 24, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 25, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 26, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 27, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 28, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 29, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 30, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 31, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 32, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 33, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 34, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 35, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 36, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 37, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 38, 26);
- *(uint32_t*)0x2000000001b0 = 0;
- *(uint32_t*)0x2000000001b4 = 0;
- *(uint64_t*)0x2000000001b8 = 0;
- *(uint64_t*)0x2000000001c0 = 0;
- *(uint64_t*)0x2000000001c8 = 0;
- *(uint64_t*)0x2000000001d0 = 0;
- *(uint32_t*)0x2000000001d8 = 0;
- *(uint32_t*)0x2000000001dc = 0;
- *(uint64_t*)0x2000000001e0 = 0;
- *(uint32_t*)0x2000000001e8 = 0;
- *(uint16_t*)0x2000000001ec = 0;
- *(uint16_t*)0x2000000001ee = 0;
- *(uint32_t*)0x2000000001f0 = 0;
- *(uint32_t*)0x2000000001f4 = 0;
- *(uint64_t*)0x2000000001f8 = 0;
- syscall(__NR_perf_event_open, /*attr=*/0x200000000180ul, /*pid=*/0,
- /*cpu=*/0ul, /*group=*/-1, /*flags=*/0ul);
- memcpy((void*)0x200000000080, "smaps_rollup\000", 13);
- res = -1;
- res = syz_open_procfs(/*pid=*/0, /*file=*/0x200000000080);
- if (res != -1)
- r[12] = res;
- *(uint32_t*)0x200000000280 = 2;
- *(uint32_t*)0x200000000284 = 0x70;
- *(uint8_t*)0x200000000288 = 0x12;
- *(uint8_t*)0x200000000289 = 1;
- *(uint8_t*)0x20000000028a = 0;
- *(uint8_t*)0x20000000028b = 0;
- *(uint32_t*)0x20000000028c = 0;
- *(uint64_t*)0x200000000290 = 0;
- *(uint64_t*)0x200000000298 = 0;
- *(uint64_t*)0x2000000002a0 = 0;
- STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 0, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 1, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 2, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 3, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 4, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, -1, 5, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 6, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 7, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 8, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 9, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 10, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 11, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 12, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 13, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 14, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 15, 2);
- STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 17, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 18, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 19, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 20, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 21, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 22, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 23, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 24, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 25, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 26, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 27, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 28, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 29, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 30, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 31, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 32, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 33, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 34, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 35, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 36, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 37, 1);
- STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 38, 26);
- *(uint32_t*)0x2000000002b0 = 0;
- *(uint32_t*)0x2000000002b4 = 0;
- *(uint64_t*)0x2000000002b8 = 0x200000000000;
- *(uint64_t*)0x2000000002c0 = 0;
- *(uint64_t*)0x2000000002c8 = 0;
- *(uint64_t*)0x2000000002d0 = 0;
- *(uint32_t*)0x2000000002d8 = 0;
- *(uint32_t*)0x2000000002dc = 0;
- *(uint64_t*)0x2000000002e0 = 0;
- *(uint32_t*)0x2000000002e8 = 0;
- *(uint16_t*)0x2000000002ec = 0;
- *(uint16_t*)0x2000000002ee = 0;
- *(uint32_t*)0x2000000002f0 = 0;
- *(uint32_t*)0x2000000002f4 = 0;
- *(uint64_t*)0x2000000002f8 = 0;
- syscall(__NR_perf_event_open, /*attr=*/0x200000000280ul, /*pid=*/0,
- /*cpu=*/0ul, /*group=*/-1, /*flags=*/0ul);
- res = syscall(__NR_socket, /*domain=AF_PACKET*/ 0x11ul,
- /*type=SOCK_DGRAM*/ 2ul, /*proto=*/0);
- if (res != -1)
- r[13] = res;
- memcpy((void*)0x200000000080,
- "\x01\x00\x00\x00\x00\x00\x06\x00\x00\x07\x1a\x80\x00\x00\x01\xcc",
- 16);
- syscall(__NR_setsockopt, /*fd=*/r[13], /*level=*/0x107, /*optname=*/1,
- /*optval=*/0x200000000080ul, /*optlen=*/0x10ul);
- syscall(__NR_close, /*fd=*/r[13]);
- res = syscall(__NR_socket, /*domain=*/0xaul, /*type=SOCK_RAW*/ 3ul,
- /*proto=*/8);
- if (res != -1)
- r[14] = res;
- *(uint16_t*)0x200000000000 = 0xa;
- *(uint16_t*)0x200000000002 = htobe16(0);
- *(uint32_t*)0x200000000004 = htobe32(0);
- *(uint8_t*)0x200000000008 = -1;
- *(uint8_t*)0x200000000009 = 1;
- memset((void*)0x20000000000a, 0, 13);
- *(uint8_t*)0x200000000017 = 1;
- *(uint32_t*)0x200000000018 = 0x1fab;
- syscall(__NR_bind, /*fd=*/r[14], /*addr=*/0x200000000000ul,
- /*addrlen=*/0x1cul);
- *(uint16_t*)0x200000000040 = 0xa;
- *(uint16_t*)0x200000000042 = htobe16(0);
- *(uint32_t*)0x200000000044 = htobe32(0);
- *(uint8_t*)0x200000000048 = 0xfe;
- *(uint8_t*)0x200000000049 = 0x80;
- memset((void*)0x20000000004a, 0, 13);
- *(uint8_t*)0x200000000057 = 0xbb;
- *(uint32_t*)0x200000000058 = 4;
- syscall(__NR_connect, /*fd=*/r[14], /*addr=*/0x200000000040ul,
- /*addrlen=*/0x1cul);
- syscall(__NR_mmap, /*addr=*/0x200000ffe000ul, /*len=*/0x2000ul,
- /*prot=PROT_GROWSDOWN|PROT_SEM|PROT_READ|PROT_EXEC*/ 0x100000dul,
- /*flags=MAP_STACK|MAP_FIXED*/ 0x20010ul, /*fd=*/r[14],
- /*offset=*/0x419db000ul);
- syscall(__NR_sendmsg, /*fd=*/r[13], /*msg=*/0ul, /*f=*/0ul);
- *(uint32_t*)0x200000000200 = 1;
- *(uint32_t*)0x200000000204 = 0x80;
- *(uint8_t*)0x200000000208 = 2;
- *(uint8_t*)0x200000000209 = 0;
- *(uint8_t*)0x20000000020a = 0;
- *(uint8_t*)0x20000000020b = 0;
- *(uint32_t*)0x20000000020c = 0;
- *(uint64_t*)0x200000000210 = 0x7b;
- *(uint64_t*)0x200000000218 = 0x90521;
- *(uint64_t*)0x200000000220 = 0;
- STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 0, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 1, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 2, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 3, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 4, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 5, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 6, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 7, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 8, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 9, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 10, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 11, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 12, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 13, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 14, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 15, 2);
- STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 17, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 18, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 19, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 20, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 21, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 22, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 23, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 24, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 25, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 26, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 27, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 28, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 29, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 30, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 31, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 32, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 33, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 34, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 35, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 36, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 37, 1);
- STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 38, 26);
- *(uint32_t*)0x200000000230 = 0;
- *(uint32_t*)0x200000000234 = 0;
- *(uint64_t*)0x200000000238 = 0;
- *(uint64_t*)0x200000000240 = 0;
- *(uint64_t*)0x200000000248 = 0;
- *(uint64_t*)0x200000000250 = 0;
- *(uint32_t*)0x200000000258 = 0;
- *(uint32_t*)0x20000000025c = 0;
- *(uint64_t*)0x200000000260 = 0;
- *(uint32_t*)0x200000000268 = 0;
- *(uint16_t*)0x20000000026c = 0;
- *(uint16_t*)0x20000000026e = 0;
- *(uint32_t*)0x200000000270 = 0;
- *(uint32_t*)0x200000000274 = 0;
- *(uint64_t*)0x200000000278 = 0;
- syscall(__NR_perf_event_open, /*attr=*/0x200000000200ul, /*pid=*/0,
- /*cpu=*/0ul, /*group=*/-1, /*flags=*/0ul);
- syscall(__NR_open, /*file=*/0ul, /*flags=*/0ul, /*mode=*/0ul);
- memcpy((void*)0x200000000300, "/dev/vga_arbiter\000", 17);
- res = syscall(__NR_openat, /*fd=*/0xffffffffffffff9cul,
- /*file=*/0x200000000300ul, /*flags=O_CREAT|O_WRONLY*/ 0x41,
- /*mode=*/0);
- if (res != -1)
- r[15] = res;
- syz_sysconfig_set__proc_sys_vm_swappiness(/*val=*/0);
- memcpy((void*)0x200000000080, "target ", 7);
- memcpy((void*)0x200000000087, "PCI:", 4);
- memset((void*)0x20000000008b, 48, 1);
- memset((void*)0x20000000008c, 58, 1);
- memset((void*)0x20000000008d, 48, 1);
- memset((void*)0x20000000008e, 58, 1);
- memset((void*)0x20000000008f, 51, 1);
- memset((void*)0x200000000090, 46, 1);
- memcpy((void*)0x200000000091, "10", 2);
- *(uint8_t*)0x200000000093 = 0;
- syscall(__NR_write, /*fd=*/r[15], /*data=*/0x200000000080ul, /*len=*/0x14ul);
- *(uint32_t*)0x200000001844 = 0;
- *(uint32_t*)0x200000001848 = 0x40;
- *(uint32_t*)0x20000000184c = 0;
- *(uint32_t*)0x200000001850 = 0;
- *(uint32_t*)0x200000001858 = -1;
- memset((void*)0x20000000185c, 0, 12);
- res = syscall(__NR_io_uring_setup, /*entries=*/0x6630,
- /*params=*/0x200000001840ul);
- if (res != -1)
- r[16] = res;
- syscall(__NR_io_uring_register, /*fd=*/r[16], /*opcode=*/0xbul,
- /*arg=*/0x2000000018c0ul, /*nr_args=*/0ul);
- *(uint64_t*)0x200000001600 = 0x200000000300;
- *(uint64_t*)0x200000001608 = 0x4c;
- syscall(__NR_preadv, /*fd=*/r[12], /*vec=*/0x200000001600ul, /*vlen=*/1ul,
- /*off_low=*/0, /*off_high=*/0);
- syz_sysconfig_reset__proc_sys_vm_swappiness();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment