// https://syzkaller.appspot.com/bug?id=25ca058ab5cd43064985ff5bde64a573a308bf54 // 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 static unsigned long long procid; static void kill_and_wait(int pid, int* status) { kill(pid, SIGKILL); while (waitpid(-1, status, 0) != pid) { } } static void sleep_ms(uint64_t ms) { usleep(ms * 1000); } static uint64_t current_time_ms(void) { struct timespec ts; if (clock_gettime(CLOCK_MONOTONIC, &ts)) exit(1); return (uint64_t)ts.tv_sec * 1000 + (uint64_t)ts.tv_nsec / 1000000; } static void use_temporary_dir(void) { char tmpdir_template[] = "./syzkaller.XXXXXX"; char* tmpdir = mkdtemp(tmpdir_template); if (!tmpdir) exit(1); if (chmod(tmpdir, 0777)) exit(1); if (chdir(tmpdir)) exit(1); } static void reset_flags(const char* filename) { struct stat st; if (lstat(filename, &st)) exit(1); st.st_flags &= ~(SF_NOUNLINK | UF_NOUNLINK | SF_IMMUTABLE | UF_IMMUTABLE | SF_APPEND | UF_APPEND); if (lchflags(filename, st.st_flags)) exit(1); } static void __attribute__((noinline)) remove_dir(const char* dir) { DIR* dp = opendir(dir); if (dp == NULL) { if (errno == EACCES) { if (rmdir(dir)) exit(1); return; } exit(1); } struct dirent* ep = 0; while ((ep = readdir(dp))) { if (strcmp(ep->d_name, ".") == 0 || strcmp(ep->d_name, "..") == 0) continue; char filename[FILENAME_MAX]; snprintf(filename, sizeof(filename), "%s/%s", dir, ep->d_name); struct stat st; if (lstat(filename, &st)) exit(1); if (S_ISDIR(st.st_mode)) { remove_dir(filename); continue; } if (unlink(filename)) { if (errno == EPERM) { reset_flags(filename); reset_flags(dir); if (unlink(filename) == 0) continue; } exit(1); } } closedir(dp); while (rmdir(dir)) { if (errno == EPERM) { reset_flags(dir); if (rmdir(dir) == 0) break; } exit(1); } } static void execute_one(void); #define WAIT_FLAGS 0 static void loop(void) { int iter = 0; for (;; iter++) { char cwdbuf[32]; sprintf(cwdbuf, "./%d", iter); if (mkdir(cwdbuf, 0777)) exit(1); int pid = fork(); if (pid < 0) exit(1); if (pid == 0) { if (chdir(cwdbuf)) exit(1); execute_one(); exit(0); } int status = 0; uint64_t start = current_time_ms(); for (;;) { sleep_ms(10); if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid) break; if (current_time_ms() - start < 5000) continue; kill_and_wait(pid, &status); break; } remove_dir(cwdbuf); } } uint64_t r[4] = {0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff}; void execute_one(void) { intptr_t res = 0; if (write(1, "executing program\n", sizeof("executing program\n") - 1)) { } // munlockall arguments: [ // ] syscall(SYS_munlockall); // setreuid arguments: [ // ruid: uid (resource) // euid: uid (resource) // ] syscall(SYS_setreuid, /*ruid=*/0, /*euid=*/0xee01); // socket$inet_udp arguments: [ // domain: const = 0x2 (8 bytes) // type: const = 0x2 (8 bytes) // proto: const = 0x0 (1 bytes) // ] // returns sock_udp res = syscall(SYS_socket, /*domain=*/2ul, /*type=*/2ul, /*proto=*/0); if (res != -1) r[0] = res; // bind$inet arguments: [ // fd: sock_in (resource) // addr: nil // addrlen: len = 0x0 (8 bytes) // ] syscall(SYS_bind, /*fd=*/r[0], /*addr=*/0ul, /*addrlen=*/0ul); // sigprocmask arguments: [ // how: sigprocmask_how = 0x1 (8 bytes) // set: nil // oset: nil // ] syscall(SYS_sigprocmask, /*how=SIG_BLOCK*/ 1ul, /*set=*/0ul, /*oset=*/0ul); // sigprocmask arguments: [ // how: sigprocmask_how = 0x1 (8 bytes) // set: ptr[in, sigset] { // sigset { // mask: array[int32] { // int32 = 0x0 (4 bytes) // int32 = 0x5 (4 bytes) // int32 = 0xffffffff (4 bytes) // int32 = 0x0 (4 bytes) // } // } // } // oset: nil // ] *(uint32_t*)0x200000000a40 = 0; *(uint32_t*)0x200000000a44 = 5; *(uint32_t*)0x200000000a48 = -1; *(uint32_t*)0x200000000a4c = 0; syscall(SYS_sigprocmask, /*how=SIG_BLOCK*/ 1ul, /*set=*/0x200000000a40ul, /*oset=*/0ul); // openat$acpi arguments: [ // fd: const = 0xffffffffffffff9c (8 bytes) // file: ptr[in, buffer] { // buffer: {2f 64 65 76 2f 61 63 70 69 00} (length 0xa) // } // flags: open_flags = 0x1 (8 bytes) // mode: const = 0x0 (8 bytes) // ] // returns fd_acpi memcpy((void*)0x200000000ac0, "/dev/acpi\000", 10); res = syscall(SYS_openat, /*fd=*/0xffffffffffffff9cul, /*file=*/0x200000000ac0ul, /*flags=O_WRONLY*/ 1ul, /*mode=*/0ul); if (res != -1) r[1] = res; // mmap arguments: [ // addr: VMA[0x400000] // len: len = 0x400000 (8 bytes) // prot: mmap_prot = 0x2 (8 bytes) // flags: mmap_flags = 0x11 (8 bytes) // fd: fd (resource) // offset: intptr = 0x0 (8 bytes) // ] syscall(SYS_mmap, /*addr=*/0x200000000000ul, /*len=*/0x400000ul, /*prot=PROT_WRITE*/ 2ul, /*flags=MAP_FIXED|MAP_SHARED*/ 0x11ul, /*fd=*/r[1], /*offset=*/0ul); // mmap arguments: [ // addr: VMA[0x400000] // len: len = 0x400000 (8 bytes) // prot: mmap_prot = 0x2 (8 bytes) // flags: mmap_flags = 0x11 (8 bytes) // fd: fd (resource) // offset: intptr = 0x0 (8 bytes) // ] syscall(SYS_mmap, /*addr=*/0x200000000000ul, /*len=*/0x400000ul, /*prot=PROT_WRITE*/ 2ul, /*flags=MAP_FIXED|MAP_SHARED*/ 0x11ul, /*fd=*/r[1], /*offset=*/0ul); // setsockopt$sock_int arguments: [ // fd: sock (resource) // level: const = 0xffff (4 bytes) // optname: sockopt_opt_sock_int = 0x10000 (4 bytes) // optval: ptr[in, int32] { // int32 = 0x10001 (4 bytes) // } // optlen: len = 0x4 (8 bytes) // ] *(uint32_t*)0x2000000009c0 = 0x10001; syscall(SYS_setsockopt, /*fd=*/(intptr_t)-1, /*level=*/0xffff, /*optname=SO_REUSEPORT_LB*/ 0x10000, /*optval=*/0x2000000009c0ul, /*optlen=*/4ul); // pipe2 arguments: [ // pipefd: ptr[out, pipefd] { // pipefd { // rfd: fd (resource) // wfd: fd (resource) // } // } // flags: pipe_flags = 0x0 (8 bytes) // ] res = syscall(SYS_pipe2, /*pipefd=*/0x200000000040ul, /*flags=*/0ul); if (res != -1) r[2] = *(uint32_t*)0x200000000044; // msync arguments: [ // addr: VMA[0x3000] // len: len = 0x3000 (8 bytes) // f: msync_flags = 0x2 (8 bytes) // ] syscall(SYS_msync, /*addr=*/0x200000001000ul, /*len=*/0x3000ul, /*f=MS_INVALIDATE*/ 2ul); // open arguments: [ // file: nil // flags: open_flags = 0x615 (8 bytes) // mode: open_mode = 0x0 (8 bytes) // ] // returns fd res = syscall(SYS_open, /*file=*/0ul, /*flags=O_TRUNC|O_NONBLOCK|O_CREAT|O_WRONLY|0x10*/ 0x615ul, /*mode=*/0ul); if (res != -1) r[3] = res; // mprotect arguments: [ // addr: VMA[0xf000] // len: len = 0xf000 (8 bytes) // prot: mmap_prot = 0x1 (8 bytes) // ] syscall(SYS_mprotect, /*addr=*/0x200000000000ul, /*len=*/0xf000ul, /*prot=PROT_READ*/ 1ul); // mmap arguments: [ // addr: VMA[0x2000] // len: len = 0x2000 (8 bytes) // prot: mmap_prot = 0x2 (8 bytes) // flags: mmap_flags = 0x11 (8 bytes) // fd: fd (resource) // offset: intptr = 0x0 (8 bytes) // ] syscall(SYS_mmap, /*addr=*/0x200000000000ul, /*len=*/0x2000ul, /*prot=PROT_WRITE*/ 2ul, /*flags=MAP_FIXED|MAP_SHARED*/ 0x11ul, /*fd=*/r[3], /*offset=*/0ul); // ftruncate arguments: [ // fd: fd (resource) // len: intptr = 0x8531 (8 bytes) // ] syscall(SYS_ftruncate, /*fd=*/r[3], /*len=*/0x8531ul); // writev arguments: [ // fd: fd (resource) // vec: nil // vlen: len = 0x0 (8 bytes) // ] syscall(SYS_writev, /*fd=*/r[2], /*vec=*/0ul, /*vlen=*/0ul); // execve arguments: [ // file: nil // argv: nil // envp: nil // ] syscall(SYS_execve, /*file=*/0ul, /*argv=*/0ul, /*envp=*/0ul); // openat$md arguments: [ // fd: const = 0xffffffffffffff9c (8 bytes) // file: nil // flags: open_flags = 0x8 (8 bytes) // mode: const = 0x0 (8 bytes) // ] // returns fd_md syscall(SYS_openat, /*fd=*/0xffffffffffffff9cul, /*file=*/0ul, /*flags=O_APPEND*/ 8ul, /*mode=*/0ul); // mprotect arguments: [ // addr: VMA[0xf000] // len: len = 0xf000 (8 bytes) // prot: mmap_prot = 0x1 (8 bytes) // ] syscall(SYS_mprotect, /*addr=*/0x200000000000ul, /*len=*/0xf000ul, /*prot=PROT_READ*/ 1ul); // mprotect arguments: [ // addr: VMA[0xf000] // len: len = 0xf000 (8 bytes) // prot: mmap_prot = 0x1 (8 bytes) // ] syscall(SYS_mprotect, /*addr=*/0x200000000000ul, /*len=*/0xf000ul, /*prot=PROT_READ*/ 1ul); // sendto$inet arguments: [ // fd: sock_in (resource) // buf: nil // len: len = 0x0 (8 bytes) // f: send_flags = 0x10d (8 bytes) // addr: ptr[in, sockaddr_in] { // sockaddr_in { // len: len = 0x10 (1 bytes) // family: const = 0x2 (1 bytes) // port: proc = 0x2 (2 bytes) // addr: union ipv4_addr { // local: ipv4_addr_local { // a0: const = 0xac (1 bytes) // a1: const = 0x14 (1 bytes) // a2: proc = 0x0 (1 bytes) // a3: const = 0xaa (1 bytes) // } // } // pad: buffer: {00 00 00 00 00 00 00 00} (length 0x8) // } // } // addrlen: len = 0x10 (8 bytes) // ] *(uint8_t*)0x2000000007c0 = 0x10; *(uint8_t*)0x2000000007c1 = 2; *(uint16_t*)0x2000000007c2 = htobe16(0x4e22 + procid * 4); *(uint8_t*)0x2000000007c4 = 0xac; *(uint8_t*)0x2000000007c5 = 0x14; *(uint8_t*)0x2000000007c6 = 0 + procid * 1; *(uint8_t*)0x2000000007c7 = 0xaa; memset((void*)0x2000000007c8, 0, 8); syscall(SYS_sendto, /*fd=*/(intptr_t)-1, /*buf=*/0ul, /*len=*/0ul, /*f=MSG_EOF|MSG_EOR|MSG_DONTROUTE|MSG_OOB*/ 0x10dul, /*addr=*/0x2000000007c0ul, /*addrlen=*/0x10ul); // sendto$inet arguments: [ // fd: sock_in (resource) // buf: ptr[in, buffer] { // buffer: {07 2d ff 30 aa 09 12 dc 22 60 07 f9 c9 98 73 ab 02 1c 3f 36 // c3 f9 7c 35 7b e0 61 f9 f9 db 29 47 41 18 1d 04 0b e9 57 43 44 98 35 // d1 68 48 f3 3f e1 ae d0 e2 ba e8 69 a3 a5 72 63 98 7f 74 c3 76 16 fc // 6e b1 29 ad 5d 8f e4 95 58 5f 8e e7 2e 00 33 4a ff ae 96 22 ee 16 1e // fd 38 d1 27 e7 80 f1 03 fe d6 14 fd d3 cf fa 7b bd 03 51 ed e0 79 7a // b4 b8 e8 90 5c 4f cc 59 96 99 a2 bf 53 7e 8c 32 7a a7 08 f8 3a b4 68 // 2e 4f 21 33 5f 11 d6 6e 35 d5 5a 57 7b 3c 4c 77 95 05 84 6d 75 f2 c3 // 40 fe 3c b8 a4 81 59 0f c5 d3 ec 06 72 70 6c e5 af fa 64 ea 91 55 fe // c7 61 76 e3 a9 74 5f 0d 74 fa e1 4a b2 40 a3 8b cb 93 aa 1a 8d 12 fe // a8 74 c0 e0 5f 52 3a b5 70 be eb 70 55 13 3f 4e 58 e0 50 12 4a 35 c6 // 99 d7 26 d5 8f d2 74 a4 4d 35 df 45 7f 8a 1e 74 b4 84 ee 6b cf e0 12 // 50 3d 1e 3f 1a fb df 01 0a 30 10 ec 01 d3 e5 a8 07 68 bf 31 74 47 cf // 19 e1 25 0f 4b e6 18 17 cf 1c f9 94 6d c4 b1 2a 00 3e 6a fe 05 56 6a // 7a f2 e1 bf 23 9b 5b 74 2d 32 f7 1c 39 25 bc f0 29 63 22 71 6f 2f f3 // 1b 15 29 e1 4d 8c e5 83 6f 7c 65 8f 0d 62 52 a3 4d 7a bd 01 03 84 de // fe 5d 32 81 80 32 14 8d 5f 24 d3 b8 d2 d9 47 10 24 18 57 59 a4 2b c0 // 38 48 7a 2c e4 ef 21 31 79 2f c8 b3 5d b8 15 83 50 ec d9 5d 1c d3 a4 // 67 7e 9a 9f fa ff 50 3a 9f a1 97 85 a8 1a 40 e6 84 d0 8b f5 ef 33 d0 // fe 7d 46 b7 79 d8 e3 4e 3d 83 4c 38 f7 a4 d5 63 66 9a b2 1f be b0 e5 // a6 76 a9 02 38 df e4 38 ca 8a fa 08 17 c7 30 35 37 ac c9 50 f2 fd fb // 10 b9 bc 1d 1d 68 b8 4e be e6 e0 dd 70 25 6c c5 51 52 18 af 94 be 75 // de 21 2c a4 b0 1f 70 1e e7 48 9d 0e b0 8b d1 9e 11 8d 94 06 87 54 6a // d3 28 3a 8f de 59 3e 0a bf f3 b8 b3 06 b8 46 4b e3 fb e0 c6 2b 92 7d // bb e5 81 76 24 4b e3 f0 46 a9 0e 9d 11 cb bf 28 42 4f 5d b7 90 38 00 // 16 ff 46 95 cd c5 69 89 13 48 18 30 fa 9f d9 48 2e 2e ed 7b f3 86 0f // e5 9e ea e3 f5 4b 80 62 a7 54 20 3e 0d 78 68 1c 59 7b d0 94 e0 0b cc // 6b fa 95 bf c0 24 8a 19 2d 73 e9 e3 ab 7a 7a ee ab 0c 96 ba 20 be 3a // 7b 4a cb 87 39 62 40 12 ef 95 d3 c3 45 a0 f8 b9 52 9e 06 e9 80 8a 92 // 49 e9 fb 0b 89 bd 74 60 e8 2f 20 5e 76 90 ce 87 2e ff 8e 8c d1 22 3f // 11 5d 98 cf ae 62 17 ae 82 16 cc 6a 94 e2 5f 70 8a 48 93 5f e5 ac 46 // eb c3 d8 92 e4 5f 71 62 56 f4 dc a6 8a 4e 1b a3 22 bc 86 fa a4 4a 79 // fd b4 9c e8 8a b7 6b 73 83 cc 80 19 c6 94 fc 96 a9 88 96 9d cf 0c 3a // aa 4f e3 60 56 b7 21 95 45 9f 75 8d f9 b1 64 ee 1e c9 93 cf 35 9c 68 // f1 27 b5 75 a3 55 be 8f d1 f1 8a 0e 57 b6 0e ee 15 4c 28 56 da 9b ab // fc c3 09 39 6f aa 85 0d b1 cd 19 bc 2e 8c 6f 40 d3 a0 8c 5f 06 98 c1 // 19 b0 16 76 9a 61 37 21 9c b9 40 80 09 a2 a2 98 6d 01 f7 ec 86 54 59 // d4 1c 1e 4a d9 25 93 4d f6 94 77 00 1e be 01 62 20 40 bc ef 2b 1e 75 // 01 69 00 05 50 12 24 00 50 5d b6 87 5b 73 77 af 95 eb 3b dd 57 fb 69 // a4 69 2c f3 d9 5f e7 31 b2 c4 5c a0 fd f7 f2 ae d1 f0 da 33 0f b7 8f // 38 63 63 7f 7d ed 9a 29 2d bf 92 da 79 76 39 61 5e ad bd 8a 65 23 20 // c8 79 e7 d7 83 5a 9e 50 51 91 a6 f7 69 7c 8b 73 10 41 9f a5 a0 6a fa // 22 52 b0 92 6b 83 19 50 48 92 40 92 f2 0a 7a a7 ed 45 d1 19 a3 95 b2 // d9 f4 84 8a ba b0 99 07 66 c3 96 95 d0 07 ab a8 2b 1e 7a 42 b0 11 54 // fd 0d 08 57 4d e1 e8 54 bd 2e 12 96 35 a3 88 e7 d7 6e ad d1 2f f8 fd // a1 3d 3c f1 20 3b 8f a9 5e f7 2f aa a6 97 a2 77 1e 72 1f b5 29 1e 59 // 4a 07 bb 59 41 f1 af 3a f4 fe 2c b8 f0 4e 2b 0c 8f a5 26 a5 04 db d1 // 69 a5 e1 31 d7 02 c0 16 b7 3f 46 2b 5e f0 08 45 ad c4 7e a2 f6 21 3c // e2 5f b3 8a 39 4b 4d fe f5 e7 c3 cf 3d 1d 21 68 0a 6e 9d f6 e2 cd a9 // 1b 78 37 20 e1 fd 1b cb 6a f2 e6 3c f2 ff 99 fb f9 eb 11 2d b4 6f b8 // 4b 9c f5 1f e1 17 88 49 04 17 59 f8 26 ba 36 1e cd 9e a5 77 42 7a f7 // b3 01 a2 37 8f 6a 54 94 a0 14 f6 38 44 9f b5 44 bc 22 00 a7 69 5e 02 // 59 c6 1c c9 17 a9 b2 19 ea 5f 14 23 45 54 f8 3e ec 0c 77 40 07 87 60 // 40 9f b3 1a 20 e5 72 b1 c4 d4 76 21 33 d1 65 29 be ce de e4 05 fd 2a // 0c 59 2e 26 e7 02 b3 fe cc 6d 54 46 2e 26 a7 12 2c 93 2b 85 9d 3a 24 // 83 74 03 37 0e 50 43 21 27 1a f0 a6 b4 b5 db ef a2 99 40 75 5b 84 98 // 26 d5 0f e7 e2 4a ff 34 d6 47 01 20 b6 86 d1 c5 80 b1 0f ca 0b d1 1e // 51 91 c5 d7 3c be dd db f1 92 5a 7b 09 02 d2 91 18 80 13 36 f1 92 09 // 74 e5 13 6c c0 ee a2 77 32 ed 02 c7 f5 19 5c 91 19 87 a8 51 82 6b 75 // 2e 6e ac 48 ad 55 0e 53 66 08 40 eb a5 03 7b a0 37 3c c0 b2 70 59 65 // ee 28 6a 17 91 c5 1d 60 38 2e 44 d6 de ae c4 5c 85 b4 be 33 2a cf ed // 2e cf 12 67 f3 c0 cc 82 e7 ee c2 a2 34 68 95 97 3b 66 3d d2 08 cb 82 // 8f 21 ea 29 d5 64 1d f2 ba 40 6a 4d 94 67 00 dd 98 de 33 37 33 0b 44 // da 27 d7 55 8c 8c 9b 4b 92 18 bb d3 8e 96 48 93 f5 60 f2 7a 59 e4 da // ca 7a ca f3 d5 d9 8b 32 98 46 bd f9 43 3c 1f 9b 40 57 e4 16 c7 fb 27 // 91 d0 7a 5d} (length 0x5c1) // } // len: len = 0x5c1 (8 bytes) // f: send_flags = 0x10d (8 bytes) // addr: nil // addrlen: len = 0x0 (8 bytes) // ] memcpy( (void*)0x2000000001c0, "\x07\x2d\xff\x30\xaa\x09\x12\xdc\x22\x60\x07\xf9\xc9\x98\x73\xab\x02\x1c" "\x3f\x36\xc3\xf9\x7c\x35\x7b\xe0\x61\xf9\xf9\xdb\x29\x47\x41\x18\x1d\x04" "\x0b\xe9\x57\x43\x44\x98\x35\xd1\x68\x48\xf3\x3f\xe1\xae\xd0\xe2\xba\xe8" "\x69\xa3\xa5\x72\x63\x98\x7f\x74\xc3\x76\x16\xfc\x6e\xb1\x29\xad\x5d\x8f" "\xe4\x95\x58\x5f\x8e\xe7\x2e\x00\x33\x4a\xff\xae\x96\x22\xee\x16\x1e\xfd" "\x38\xd1\x27\xe7\x80\xf1\x03\xfe\xd6\x14\xfd\xd3\xcf\xfa\x7b\xbd\x03\x51" "\xed\xe0\x79\x7a\xb4\xb8\xe8\x90\x5c\x4f\xcc\x59\x96\x99\xa2\xbf\x53\x7e" "\x8c\x32\x7a\xa7\x08\xf8\x3a\xb4\x68\x2e\x4f\x21\x33\x5f\x11\xd6\x6e\x35" "\xd5\x5a\x57\x7b\x3c\x4c\x77\x95\x05\x84\x6d\x75\xf2\xc3\x40\xfe\x3c\xb8" "\xa4\x81\x59\x0f\xc5\xd3\xec\x06\x72\x70\x6c\xe5\xaf\xfa\x64\xea\x91\x55" "\xfe\xc7\x61\x76\xe3\xa9\x74\x5f\x0d\x74\xfa\xe1\x4a\xb2\x40\xa3\x8b\xcb" "\x93\xaa\x1a\x8d\x12\xfe\xa8\x74\xc0\xe0\x5f\x52\x3a\xb5\x70\xbe\xeb\x70" "\x55\x13\x3f\x4e\x58\xe0\x50\x12\x4a\x35\xc6\x99\xd7\x26\xd5\x8f\xd2\x74" "\xa4\x4d\x35\xdf\x45\x7f\x8a\x1e\x74\xb4\x84\xee\x6b\xcf\xe0\x12\x50\x3d" "\x1e\x3f\x1a\xfb\xdf\x01\x0a\x30\x10\xec\x01\xd3\xe5\xa8\x07\x68\xbf\x31" "\x74\x47\xcf\x19\xe1\x25\x0f\x4b\xe6\x18\x17\xcf\x1c\xf9\x94\x6d\xc4\xb1" "\x2a\x00\x3e\x6a\xfe\x05\x56\x6a\x7a\xf2\xe1\xbf\x23\x9b\x5b\x74\x2d\x32" "\xf7\x1c\x39\x25\xbc\xf0\x29\x63\x22\x71\x6f\x2f\xf3\x1b\x15\x29\xe1\x4d" "\x8c\xe5\x83\x6f\x7c\x65\x8f\x0d\x62\x52\xa3\x4d\x7a\xbd\x01\x03\x84\xde" "\xfe\x5d\x32\x81\x80\x32\x14\x8d\x5f\x24\xd3\xb8\xd2\xd9\x47\x10\x24\x18" "\x57\x59\xa4\x2b\xc0\x38\x48\x7a\x2c\xe4\xef\x21\x31\x79\x2f\xc8\xb3\x5d" "\xb8\x15\x83\x50\xec\xd9\x5d\x1c\xd3\xa4\x67\x7e\x9a\x9f\xfa\xff\x50\x3a" "\x9f\xa1\x97\x85\xa8\x1a\x40\xe6\x84\xd0\x8b\xf5\xef\x33\xd0\xfe\x7d\x46" "\xb7\x79\xd8\xe3\x4e\x3d\x83\x4c\x38\xf7\xa4\xd5\x63\x66\x9a\xb2\x1f\xbe" "\xb0\xe5\xa6\x76\xa9\x02\x38\xdf\xe4\x38\xca\x8a\xfa\x08\x17\xc7\x30\x35" "\x37\xac\xc9\x50\xf2\xfd\xfb\x10\xb9\xbc\x1d\x1d\x68\xb8\x4e\xbe\xe6\xe0" "\xdd\x70\x25\x6c\xc5\x51\x52\x18\xaf\x94\xbe\x75\xde\x21\x2c\xa4\xb0\x1f" "\x70\x1e\xe7\x48\x9d\x0e\xb0\x8b\xd1\x9e\x11\x8d\x94\x06\x87\x54\x6a\xd3" "\x28\x3a\x8f\xde\x59\x3e\x0a\xbf\xf3\xb8\xb3\x06\xb8\x46\x4b\xe3\xfb\xe0" "\xc6\x2b\x92\x7d\xbb\xe5\x81\x76\x24\x4b\xe3\xf0\x46\xa9\x0e\x9d\x11\xcb" "\xbf\x28\x42\x4f\x5d\xb7\x90\x38\x00\x16\xff\x46\x95\xcd\xc5\x69\x89\x13" "\x48\x18\x30\xfa\x9f\xd9\x48\x2e\x2e\xed\x7b\xf3\x86\x0f\xe5\x9e\xea\xe3" "\xf5\x4b\x80\x62\xa7\x54\x20\x3e\x0d\x78\x68\x1c\x59\x7b\xd0\x94\xe0\x0b" "\xcc\x6b\xfa\x95\xbf\xc0\x24\x8a\x19\x2d\x73\xe9\xe3\xab\x7a\x7a\xee\xab" "\x0c\x96\xba\x20\xbe\x3a\x7b\x4a\xcb\x87\x39\x62\x40\x12\xef\x95\xd3\xc3" "\x45\xa0\xf8\xb9\x52\x9e\x06\xe9\x80\x8a\x92\x49\xe9\xfb\x0b\x89\xbd\x74" "\x60\xe8\x2f\x20\x5e\x76\x90\xce\x87\x2e\xff\x8e\x8c\xd1\x22\x3f\x11\x5d" "\x98\xcf\xae\x62\x17\xae\x82\x16\xcc\x6a\x94\xe2\x5f\x70\x8a\x48\x93\x5f" "\xe5\xac\x46\xeb\xc3\xd8\x92\xe4\x5f\x71\x62\x56\xf4\xdc\xa6\x8a\x4e\x1b" "\xa3\x22\xbc\x86\xfa\xa4\x4a\x79\xfd\xb4\x9c\xe8\x8a\xb7\x6b\x73\x83\xcc" "\x80\x19\xc6\x94\xfc\x96\xa9\x88\x96\x9d\xcf\x0c\x3a\xaa\x4f\xe3\x60\x56" "\xb7\x21\x95\x45\x9f\x75\x8d\xf9\xb1\x64\xee\x1e\xc9\x93\xcf\x35\x9c\x68" "\xf1\x27\xb5\x75\xa3\x55\xbe\x8f\xd1\xf1\x8a\x0e\x57\xb6\x0e\xee\x15\x4c" "\x28\x56\xda\x9b\xab\xfc\xc3\x09\x39\x6f\xaa\x85\x0d\xb1\xcd\x19\xbc\x2e" "\x8c\x6f\x40\xd3\xa0\x8c\x5f\x06\x98\xc1\x19\xb0\x16\x76\x9a\x61\x37\x21" "\x9c\xb9\x40\x80\x09\xa2\xa2\x98\x6d\x01\xf7\xec\x86\x54\x59\xd4\x1c\x1e" "\x4a\xd9\x25\x93\x4d\xf6\x94\x77\x00\x1e\xbe\x01\x62\x20\x40\xbc\xef\x2b" "\x1e\x75\x01\x69\x00\x05\x50\x12\x24\x00\x50\x5d\xb6\x87\x5b\x73\x77\xaf" "\x95\xeb\x3b\xdd\x57\xfb\x69\xa4\x69\x2c\xf3\xd9\x5f\xe7\x31\xb2\xc4\x5c" "\xa0\xfd\xf7\xf2\xae\xd1\xf0\xda\x33\x0f\xb7\x8f\x38\x63\x63\x7f\x7d\xed" "\x9a\x29\x2d\xbf\x92\xda\x79\x76\x39\x61\x5e\xad\xbd\x8a\x65\x23\x20\xc8" "\x79\xe7\xd7\x83\x5a\x9e\x50\x51\x91\xa6\xf7\x69\x7c\x8b\x73\x10\x41\x9f" "\xa5\xa0\x6a\xfa\x22\x52\xb0\x92\x6b\x83\x19\x50\x48\x92\x40\x92\xf2\x0a" "\x7a\xa7\xed\x45\xd1\x19\xa3\x95\xb2\xd9\xf4\x84\x8a\xba\xb0\x99\x07\x66" "\xc3\x96\x95\xd0\x07\xab\xa8\x2b\x1e\x7a\x42\xb0\x11\x54\xfd\x0d\x08\x57" "\x4d\xe1\xe8\x54\xbd\x2e\x12\x96\x35\xa3\x88\xe7\xd7\x6e\xad\xd1\x2f\xf8" "\xfd\xa1\x3d\x3c\xf1\x20\x3b\x8f\xa9\x5e\xf7\x2f\xaa\xa6\x97\xa2\x77\x1e" "\x72\x1f\xb5\x29\x1e\x59\x4a\x07\xbb\x59\x41\xf1\xaf\x3a\xf4\xfe\x2c\xb8" "\xf0\x4e\x2b\x0c\x8f\xa5\x26\xa5\x04\xdb\xd1\x69\xa5\xe1\x31\xd7\x02\xc0" "\x16\xb7\x3f\x46\x2b\x5e\xf0\x08\x45\xad\xc4\x7e\xa2\xf6\x21\x3c\xe2\x5f" "\xb3\x8a\x39\x4b\x4d\xfe\xf5\xe7\xc3\xcf\x3d\x1d\x21\x68\x0a\x6e\x9d\xf6" "\xe2\xcd\xa9\x1b\x78\x37\x20\xe1\xfd\x1b\xcb\x6a\xf2\xe6\x3c\xf2\xff\x99" "\xfb\xf9\xeb\x11\x2d\xb4\x6f\xb8\x4b\x9c\xf5\x1f\xe1\x17\x88\x49\x04\x17" "\x59\xf8\x26\xba\x36\x1e\xcd\x9e\xa5\x77\x42\x7a\xf7\xb3\x01\xa2\x37\x8f" "\x6a\x54\x94\xa0\x14\xf6\x38\x44\x9f\xb5\x44\xbc\x22\x00\xa7\x69\x5e\x02" "\x59\xc6\x1c\xc9\x17\xa9\xb2\x19\xea\x5f\x14\x23\x45\x54\xf8\x3e\xec\x0c" "\x77\x40\x07\x87\x60\x40\x9f\xb3\x1a\x20\xe5\x72\xb1\xc4\xd4\x76\x21\x33" "\xd1\x65\x29\xbe\xce\xde\xe4\x05\xfd\x2a\x0c\x59\x2e\x26\xe7\x02\xb3\xfe" "\xcc\x6d\x54\x46\x2e\x26\xa7\x12\x2c\x93\x2b\x85\x9d\x3a\x24\x83\x74\x03" "\x37\x0e\x50\x43\x21\x27\x1a\xf0\xa6\xb4\xb5\xdb\xef\xa2\x99\x40\x75\x5b" "\x84\x98\x26\xd5\x0f\xe7\xe2\x4a\xff\x34\xd6\x47\x01\x20\xb6\x86\xd1\xc5" "\x80\xb1\x0f\xca\x0b\xd1\x1e\x51\x91\xc5\xd7\x3c\xbe\xdd\xdb\xf1\x92\x5a" "\x7b\x09\x02\xd2\x91\x18\x80\x13\x36\xf1\x92\x09\x74\xe5\x13\x6c\xc0\xee" "\xa2\x77\x32\xed\x02\xc7\xf5\x19\x5c\x91\x19\x87\xa8\x51\x82\x6b\x75\x2e" "\x6e\xac\x48\xad\x55\x0e\x53\x66\x08\x40\xeb\xa5\x03\x7b\xa0\x37\x3c\xc0" "\xb2\x70\x59\x65\xee\x28\x6a\x17\x91\xc5\x1d\x60\x38\x2e\x44\xd6\xde\xae" "\xc4\x5c\x85\xb4\xbe\x33\x2a\xcf\xed\x2e\xcf\x12\x67\xf3\xc0\xcc\x82\xe7" "\xee\xc2\xa2\x34\x68\x95\x97\x3b\x66\x3d\xd2\x08\xcb\x82\x8f\x21\xea\x29" "\xd5\x64\x1d\xf2\xba\x40\x6a\x4d\x94\x67\x00\xdd\x98\xde\x33\x37\x33\x0b" "\x44\xda\x27\xd7\x55\x8c\x8c\x9b\x4b\x92\x18\xbb\xd3\x8e\x96\x48\x93\xf5" "\x60\xf2\x7a\x59\xe4\xda\xca\x7a\xca\xf3\xd5\xd9\x8b\x32\x98\x46\xbd\xf9" "\x43\x3c\x1f\x9b\x40\x57\xe4\x16\xc7\xfb\x27\x91\xd0\x7a\x5d", 1473); syscall(SYS_sendto, /*fd=*/(intptr_t)-1, /*buf=*/0x2000000001c0ul, /*len=*/0x5c1ul, /*f=MSG_EOF|MSG_EOR|MSG_DONTROUTE|MSG_OOB*/ 0x10dul, /*addr=*/0ul, /*addrlen=*/0ul); // socket$inet6_tcp arguments: [ // domain: const = 0x1c (8 bytes) // type: const = 0x1 (8 bytes) // proto: const = 0x0 (1 bytes) // ] // returns sock_tcp6 syscall(SYS_socket, /*domain=*/0x1cul, /*type=*/1ul, /*proto=*/0); } int main(void) { syscall(SYS_mmap, /*addr=*/0x200000000000ul, /*len=*/0x1000000ul, /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/ 7ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x1012ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); const char* reason; (void)reason; for (procid = 0; procid < 4; procid++) { if (fork() == 0) { use_temporary_dir(); loop(); } } sleep(1000000); return 0; }