// https://syzkaller.appspot.com/bug?id=f5f8c3ed3edf9e3df1b6c94143d821c7ecb409ca // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #ifndef __NR_bpf #define __NR_bpf 321 #endif 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; } #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 bool write_file(const char* file, const char* what, ...) { char buf[1024]; va_list args; va_start(args, what); vsnprintf(buf, sizeof(buf), what, args); va_end(args); buf[sizeof(buf) - 1] = 0; int len = strlen(buf); int fd = open(file, O_WRONLY | O_CLOEXEC); if (fd == -1) return false; if (write(fd, buf, len) != len) { int err = errno; close(fd); errno = err; return false; } close(fd); return true; } static void kill_and_wait(int pid, int* status) { kill(-pid, SIGKILL); kill(pid, SIGKILL); for (int i = 0; i < 100; i++) { if (waitpid(-1, status, WNOHANG | __WALL) == pid) return; usleep(1000); } DIR* dir = opendir("/sys/fs/fuse/connections"); if (dir) { for (;;) { struct dirent* ent = readdir(dir); if (!ent) break; if (strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0) continue; char abort[300]; snprintf(abort, sizeof(abort), "/sys/fs/fuse/connections/%s/abort", ent->d_name); int fd = open(abort, O_WRONLY); if (fd == -1) { continue; } if (write(fd, abort, 1) < 0) { } close(fd); } closedir(dir); } else { } while (waitpid(-1, status, __WALL) != pid) { } } static void setup_test() { prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); setpgrp(); write_file("/proc/self/oom_score_adj", "1000"); } static void execute_one(void); #define WAIT_FLAGS __WALL static void loop(void) { int iter = 0; for (;; iter++) { int pid = fork(); if (pid < 0) exit(1); if (pid == 0) { setup_test(); execute_one(); exit(0); } int status = 0; uint64_t start = current_time_ms(); for (;;) { sleep_ms(10); if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid) break; if (current_time_ms() - start < 5000) continue; kill_and_wait(pid, &status); break; } } } uint64_t r[2] = {0xffffffffffffffff, 0xffffffffffffffff}; void execute_one(void) { intptr_t res = 0; if (write(1, "executing program\n", sizeof("executing program\n") - 1)) { } // bpf$PROG_LOAD arguments: [ // cmd: const = 0x5 (8 bytes) // arg: ptr[in, bpf_prog_t[flags[bpf_prog_type, int32], // bpf_prog_attach_types, bpf_btf_id[opt], fd_bpf_prog[opt]]] { // bpf_prog_t[flags[bpf_prog_type, int32], bpf_prog_attach_types, // bpf_btf_id[opt], fd_bpf_prog[opt]] { // type: bpf_prog_type = 0x5 (4 bytes) // ninsn: bytesize8 = 0x3 (4 bytes) // insns: ptr[inout, array[ANYUNION]] { // array[ANYUNION] { // union ANYUNION { // ANYBLOB: buffer: {85 00 00 00 2a 00 00 00 25 00 00 00 00 00 00 // 00 95 00 00 00 00 00 00 00 af cd 48 d6 49 37 90 71 c3 33 90 e4 // 18 ec 47 0d b2 c6 16 1d ba 39 21 76 dd 29 63 03 8e 1d 69 ba 7e // a9 4c 50 0d c4 ef 2f ad 96 ed 40 6f 21 ca f5 ad cf 92 05 69 c0 // 0c c1 19 96 84 fa 7c 93 83 6d 9e a2 cf b0 e6 04 36 e0 54 25 cc // 46 86 b0 66 70 7d e9 4a 4f 4d 5f c7 9c 98 7d 66 9f 38 1f ac a0 // f9 d9 92 4b e4 1a 91 69 bd fa f1 6d a9 15 b2 e2 49 ee 1c 6e ee // 84 30 9e 7a 23 c1 9a 39 48 48 09 53 9f cb 4e 0b 6e ab 1a a7 d5 // 55 45 a3 4e ff a0 77 fa a5 5c 59 e8 82 54 f5 40 77 f7 99 bf 16 // 83 01 00 00 00 bf 22 55 d6 a0 24 4d 35 b2 13 bd a8 4c c1 72 af // cc 2e 47 a7 d8 b8 5a 5e 3d 77 ac 46 39 20 e2 31 b7 ae 0d a8 61 // 6d 2b 79 58 f9 1f 5d a6 c0 25 d0 60 ab 18 6d 94 af 98 af 1d a2 // b5 95 2e b1 58 55 93 3a 21 23 04 e0 35 f7 a3 5d fc 72 c8 12 56 // a5 5a 25 f8 fe 3b 28 d7 e5 3c 78 fb fe 5a b0 25 5f 34 71 60 ec // 83 07 00 00 00 00 00 00 40 15 cf 10 45 3f 6c 0b 97 3b 81 a4 84 // eb ad 04 85 9d 92 83 65 a7 ea 3f ab 2e 4b 38 0a 00 d7 2b c0 48 // 0f 94 9c 47 97 57 30 67 20 39 93 79 d9 27 1c f5 55 c1 4d 56 b5 // 1c 22 98 23 7b eb fc 08 e0 d5 97 6a 94 2b 84 69 70 cf d9 8b 9d // 41 39 f1 11 1f 2d c5 e4 6a c1 c6 0a 9b 03 00 74 bf bc d4 b0 90 // 12 17 54 84 13 5f 0e 51 9f 0b 1e 4a aa 02 6d 57 0e cb 5e 8c dd // be d6 5f f7 02 00 00 00 a3 ff 4f 8a 4c f7 96 b0 7a 6f f6 1c 55 // 52 41 7f d7 03 f7 f1 4d 8b 78 a6 02 ca 3c df 6a 66 2d 8b c9 c8 // 9c 91 20 07 2a 5d 00 dc dd 85 95 35 6c 9b 24 92 aa f1 26 4d 4e // f4 a4 10 c8 82 83 48 67 bc d2 b6 e5 58 d1 78 79 57 0c 8a d9 43 // e3 92 95 5f 4f 97 9e a1 32 01 ba fe 4f 0f 6e a5 08 00 00 00 a0 // c5 48 55 2b 57 1b ed 56 47 32 3c 78 a9 96 81 00 00 00 05 71 cb // b1 7d 9f 37 28 24 62 f0 e9 c1 47 c0 d4 97 c6 14 33 c6 cc c3 56 // 01 ee f9 7e e6 11 be 8c 97 f4 15 1f cd a6 cb 79 9c 6e 92 49 66 // a7 f9 0b f8 fd 1e 75 ee 76 bd 72 34 6c fb b5 26 89 0a a7 fe 5e // 68 94 9a 3b 30 56 7e 54 d3 50 47 23 17 7d 35 6c 46 04 bc a4 92 // ec ec 37 e8 3e fc ee fd 7c a2 53 36 59 ed c8 be f9 cb 85 45 1c // 6a 14 50 74 34 3c ae a5 c4 bf 69 04 41 97 4b 15 5f 5a dc 68 1a // 03 c0 bb b8 35 88 56 17 5e 2c e8 b0 cb bb e3 c0 33 e5 4f fc eb // de 1d 9d 3d 35 00 00 00 00 00 00 00 00 e0 f2 09 15 0a 07 68 2c // 4e 14 e3 a8 35 58 df 6f 3f c9 7f 17 30 a1 36 bd ee 07 e9 8c b9 // 84 b2 e2 30 4a 1b 63 af ef db 63 6e 56 bb aa e4 e6 21 36 57 4b // c6 37 1a 0b b2 be 1a 96 2a ae 9c 12 58 da 6e f5 90 e1 d8 5e a9 // e1 2b 30 25 f4 3e 7e 08 cc ff c5 06 4d ea 4c 39 cf 4b 98 e1 fc // 6e fb 59 78 f5 1e 16 b6 78 ec a0 b6 58 a5 60 08 94 8e 5a 61 56 // 1a 98 45 e4 ff 29 e2 bd b1 d0 b9 23 b2 72 34 1c 5e 09 3f d6 6a // 29 46 50 15 59 33 57 81 09 2c f8 ce 98 7c 56 cd 31 12 16 24 d7 // 45 5f 2a 36 66 27 6c 3c 0e 81 2b 28 e2 f3 0d 03 5c ee 5d 0e 77 // a3 c7 22 08 ec 65 1c c0 ae 63 7f a4 74 81 6b c5 9d 2e 2a 00 09 // 24 19 30 4b 33 8a 98 7e 9d 30 44 d8 56 ce 24 f3 70 03 0b e3 b5 // f7 9f 03 0b 8d 3e bc e6 86 63 ef 5a f4 69 ab e7 53 31 4f ae 31 // a0 44 58 59 a5 ec e8 fb 11 a4 ee 8e 46 35 4c 9c 3a 04 1a 1e 7b // 55 c4 e8 1d ba 1e 12 28 9e e3 44 63 aa f2 83 45 bd e0 c1 95 bc // 9f 02 2c a8 ce 37 ed 85 46 4c 31 67 90 53 e7 f9 d0 4b b5 cb 51 // da 0b 79 58 98 9f d7 0f 24 12 62 d0 af 32 46 eb 4f c4 bd a3 45 // 36 02 00 00 00 01 fb dd ea cd 3a da a4 d2 71 5e 21 c7 72 cc d4 // 43 41 f7 fd 53 df 58 ae 79 1e e8 b4 89 a7 c9 ef e3 62 5a 9d 97 // 1b 59 97 48 5d 6a 06 3d c6 f7 35 9e 2e cc c2 fb 39 d4 19 de 1a // 7b 5c 9d c2 2c 96 29 5a 06 00 ad f5 9d 44 e5 8e b1 c6 0b 34 75 // be 31 a9 b7 cf 42 b6 40 23 12 d2 72 5b 8d 9f a7 00 a8 64 07 e7 // 9a e2 9d 2c 11 7c a6 5f c8 6c 2d ce 97 aa 03 27 9a 66 ec 87 12 // 22 19 b0 f7 96 ab 92 b1 ad ec ae 50 fd b4 08 c8 a8 f2 7e 02 f7 // 50 d6 c9 77 a1 91 9f 9f 69 a6 cf ef df 87 9d 44 7d f5 3f 3b 9b // 70 d1 03 55 b0 74 66 d1 ef 00 56 b5 af 55 3d 18 a6 cd 50 fe eb // 7b fa d9 b7 be 32 83 b6 45 0d 26 4e 77 12 d2 f1 d7 00 45 48 b1 // 91 62 ce f0 4d 18 d4 f5 98 7b aa b9 7a 9b fb d8 f1 85 b5 63 18 // 20 42 0b 75 b6 52 2c 0e 21 c8 82 c6 6f 4f 25 ff b6 d9 5e 07 de // 02 20 5f ca 4f 18 a2 eb 5b 63 e4 5d 5d 80 fe 52 73 40 93 ae 5a // a3 c0 b4 f3 f4 5b ff f2 01 00 00 00 00 00 00 00 2e 31 56 0e 5b // 74 14 45 ea 2a 1a ce e2 e9 8c 9f 34 27 83 4b a0 a7 65 d2 0b 30 // f8 7a f9 76 a4 6f 9a 9a 1a c7 de a1 ea 68 45 f9 aa 66 23 7e 0d // ac c1 07 f5 32 34 8c c2 11 64 73 38 1e 96 1f 3d 98 8c 21 57 8f // e3 24 50 97 c2 80 ab e5 14 27 b9 f6 cd 72 b5 da 6d 02 52 80 3c // 66 73 0c d5 ea c9 07 f0 9b 96 95 90 63 13 f8 87 35 22 60 8c 6f // c0 1e 1b 9e 16 58 7b b5 f7 21 30 3e 6b 89 e5 c5 4d 68 0a c6 6d // 09 af 90 db f5 0e e6 9a 39 26 59 64 27 9d 17 4b 00 00 00 00 00 // 00 00 00 00 00 00 fa 08 ad 07 31 ba 49 fb f9 81 f8 26 5e 7f 1f // 4c 2d 97 f4 68 0b 13 5f 87 c2 28 ce 69 41 8a 28 2b 6c aa 24 81 // a0 df 17 74 fa 7d 94 94 4b b9 2d 2b 89 f7 3f 0e 8b 63 f6 31 6c // 57 62 f3 28 8b c9 70 72 0f 48 b5 64 7d d1 77 db 68 10 fa e0 53 // 34 96 b6 d5 8d a5 0e e8 0a 6b 9a 74 38 a5 8c 54 65 11 3f 66 8e // b4 48 43 50 04 82 89 d0 7d be f3 25 d3 22 1a 7c b3 5f 81 2f 25 // 79 41 a9 78 1e 32 14 c2 a3 dc f8 9d 99 84 4b 76 2a 9c f1 75 48 // c5 4f cc ad 2c 7a e8 07 2b 82 e0 88 08 15 da f9 66 bd 53 43 c1 // 63 5e 12 3f 86 8a 71 67 cf cf f3 33 20 25 3a f5 70 f4 ef 9c 02 // 54 af dd 89 ac 39 43 56 2b 53 0d d8 8d a8 a9 40 13 bb af 20 4b // eb c3 80 55 ad c3 9f 07 f7 c2 27 11 f4 d1 f6 dc c9 28 d1 57 8a // 09 3c 07 2e 0b 92 ba bc 76 f4 7e e3 67 e7 45 a0 24 a2 27 83 19 // d9 a4 d1 37 84 82 b7 4c 51 66 47 65 2b fb 6e 93 00 24 94 a5 cd // 74 e2 a9 a4 73 44 87 06 24 37 da 23 e1 ef a6 ef 76 74 10 8a aa // 3f fa c8 59 c3 57 7c 26 37 bb 3b dc 69 bc 36 5b 1f 20 db a9 6b // 8a cc a6 2f 3f 80 04 53 18 de 0f ac f2 ed 44 b8 14 e8 42 c2 a5 // 20 15 9b b6 c3 20 ce c0 91 0c 0b 8b d3 d5 47 bd fb a2 e0 bb 24 // d1 17 ed 03 88 af d3 7a ff ba d2 f9 c7 7c 9c 13 14 a1 6f fe 64 // f5 e3 74 4a 2f ff d7 03 96 70 f5 70 6e 58 9a 4c 38 68 0a 37 7f // 8c 26 e6 e3 82 06 7f 69 00 89 f3 4b 13 ee 06 33 a1 71 c7 91 84 // 01 ac d4 57 5f 14 43 81 58 54 f7 75 30 8c 08 3f f4 f4 04 6c fc // a8 bc a4 8e 6d b6 b2 11 11 3c 06 79 77 22 23 0a f9 22 90 23 1a // 0f 02 e2 47 cf 96 87 62 57 da c9 ff 0b 8f 07 ff 59 16 a8 cc d3 // f1 5b 38 9d 34 52 0f 07 4c 6f 00 6e 03 83 28 0b f0 b9 76 5c 99 // 5e f1 e6 96 a1 da 41 d9 37 2a 1c 9d 85 f1 a8 3b 62 13 b5 fb 23 // 6f be da 8f b9 0d ee 70 ca 3c fc 08 33 74 1a 0e 93 41 ab 4d ee // 09 66 9b 83 28 40 fe f5 a2 bb eb d5 95 75 03 65 6c 44 5a 42 8e // fc 57 11 d1 c6 60 93 b3 60 c6 3e 63 e9 1c b8 71 f8 dc 43 a9 15 // ec 87 be 49 2d ae c1 88 47 de 70 32 d5 c9 7d 02 96 a1 fa 97 d1 // 7f} (length 0x81a) // } // } // } // license: ptr[in, buffer] { // buffer: {47 50 4c 00} (length 0x4) // } // loglev: int32 = 0x5 (4 bytes) // logsize: len = 0x252 (4 bytes) // log: ptr[out, buffer] { // buffer: (DirOut) // } // kern_version: bpf_kern_version = 0x0 (4 bytes) // flags: bpf_prog_load_flags = 0x0 (4 bytes) // prog_name: buffer: {00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00} // (length 0x10) prog_ifindex: ifindex (resource) expected_attach_type: // union bpf_prog_attach_types { // fallback: bpf_attach_types = 0x0 (4 bytes) // } // btf_fd: fd_btf (resource) // func_info_rec_size: const = 0x8 (4 bytes) // func_info: nil // func_info_cnt: len = 0x0 (4 bytes) // line_info_rec_size: const = 0x10 (4 bytes) // line_info: nil // line_info_cnt: len = 0x0 (4 bytes) // attach_btf_id: bpf_btf_id (resource) // attach_prog_fd: fd_bpf_prog (resource) // core_relo_cnt: len = 0x0 (4 bytes) // fd_array: nil // core_relos: nil // core_relo_rec_size: const = 0x10 (4 bytes) // log_true_size: int32 = 0x0 (4 bytes) // prog_token_fd: union _bpf_prog_t[flags[bpf_prog_type, int32], // bpf_prog_attach_types, bpf_btf_id[opt], // fd_bpf_prog[opt]]_prog_token_fd_wrapper { // void: buffer: {} (length 0x0) // } // pad: union _bpf_prog_t[flags[bpf_prog_type, int32], // bpf_prog_attach_types, bpf_btf_id[opt], // fd_bpf_prog[opt]]_pad_wrapper { // value: const = 0x0 (4 bytes) // } // } // } // size: len = 0x48 (8 bytes) // ] // returns fd_bpf_prog *(uint32_t*)0x200000000080 = 5; *(uint32_t*)0x200000000084 = 3; *(uint64_t*)0x200000000088 = 0x200000000400; memcpy( (void*)0x200000000400, "\x85\x00\x00\x00\x2a\x00\x00\x00\x25\x00\x00\x00\x00\x00\x00\x00\x95\x00" "\x00\x00\x00\x00\x00\x00\xaf\xcd\x48\xd6\x49\x37\x90\x71\xc3\x33\x90\xe4" "\x18\xec\x47\x0d\xb2\xc6\x16\x1d\xba\x39\x21\x76\xdd\x29\x63\x03\x8e\x1d" "\x69\xba\x7e\xa9\x4c\x50\x0d\xc4\xef\x2f\xad\x96\xed\x40\x6f\x21\xca\xf5" "\xad\xcf\x92\x05\x69\xc0\x0c\xc1\x19\x96\x84\xfa\x7c\x93\x83\x6d\x9e\xa2" "\xcf\xb0\xe6\x04\x36\xe0\x54\x25\xcc\x46\x86\xb0\x66\x70\x7d\xe9\x4a\x4f" "\x4d\x5f\xc7\x9c\x98\x7d\x66\x9f\x38\x1f\xac\xa0\xf9\xd9\x92\x4b\xe4\x1a" "\x91\x69\xbd\xfa\xf1\x6d\xa9\x15\xb2\xe2\x49\xee\x1c\x6e\xee\x84\x30\x9e" "\x7a\x23\xc1\x9a\x39\x48\x48\x09\x53\x9f\xcb\x4e\x0b\x6e\xab\x1a\xa7\xd5" "\x55\x45\xa3\x4e\xff\xa0\x77\xfa\xa5\x5c\x59\xe8\x82\x54\xf5\x40\x77\xf7" "\x99\xbf\x16\x83\x01\x00\x00\x00\xbf\x22\x55\xd6\xa0\x24\x4d\x35\xb2\x13" "\xbd\xa8\x4c\xc1\x72\xaf\xcc\x2e\x47\xa7\xd8\xb8\x5a\x5e\x3d\x77\xac\x46" "\x39\x20\xe2\x31\xb7\xae\x0d\xa8\x61\x6d\x2b\x79\x58\xf9\x1f\x5d\xa6\xc0" "\x25\xd0\x60\xab\x18\x6d\x94\xaf\x98\xaf\x1d\xa2\xb5\x95\x2e\xb1\x58\x55" "\x93\x3a\x21\x23\x04\xe0\x35\xf7\xa3\x5d\xfc\x72\xc8\x12\x56\xa5\x5a\x25" "\xf8\xfe\x3b\x28\xd7\xe5\x3c\x78\xfb\xfe\x5a\xb0\x25\x5f\x34\x71\x60\xec" "\x83\x07\x00\x00\x00\x00\x00\x00\x40\x15\xcf\x10\x45\x3f\x6c\x0b\x97\x3b" "\x81\xa4\x84\xeb\xad\x04\x85\x9d\x92\x83\x65\xa7\xea\x3f\xab\x2e\x4b\x38" "\x0a\x00\xd7\x2b\xc0\x48\x0f\x94\x9c\x47\x97\x57\x30\x67\x20\x39\x93\x79" "\xd9\x27\x1c\xf5\x55\xc1\x4d\x56\xb5\x1c\x22\x98\x23\x7b\xeb\xfc\x08\xe0" "\xd5\x97\x6a\x94\x2b\x84\x69\x70\xcf\xd9\x8b\x9d\x41\x39\xf1\x11\x1f\x2d" "\xc5\xe4\x6a\xc1\xc6\x0a\x9b\x03\x00\x74\xbf\xbc\xd4\xb0\x90\x12\x17\x54" "\x84\x13\x5f\x0e\x51\x9f\x0b\x1e\x4a\xaa\x02\x6d\x57\x0e\xcb\x5e\x8c\xdd" "\xbe\xd6\x5f\xf7\x02\x00\x00\x00\xa3\xff\x4f\x8a\x4c\xf7\x96\xb0\x7a\x6f" "\xf6\x1c\x55\x52\x41\x7f\xd7\x03\xf7\xf1\x4d\x8b\x78\xa6\x02\xca\x3c\xdf" "\x6a\x66\x2d\x8b\xc9\xc8\x9c\x91\x20\x07\x2a\x5d\x00\xdc\xdd\x85\x95\x35" "\x6c\x9b\x24\x92\xaa\xf1\x26\x4d\x4e\xf4\xa4\x10\xc8\x82\x83\x48\x67\xbc" "\xd2\xb6\xe5\x58\xd1\x78\x79\x57\x0c\x8a\xd9\x43\xe3\x92\x95\x5f\x4f\x97" "\x9e\xa1\x32\x01\xba\xfe\x4f\x0f\x6e\xa5\x08\x00\x00\x00\xa0\xc5\x48\x55" "\x2b\x57\x1b\xed\x56\x47\x32\x3c\x78\xa9\x96\x81\x00\x00\x00\x05\x71\xcb" "\xb1\x7d\x9f\x37\x28\x24\x62\xf0\xe9\xc1\x47\xc0\xd4\x97\xc6\x14\x33\xc6" "\xcc\xc3\x56\x01\xee\xf9\x7e\xe6\x11\xbe\x8c\x97\xf4\x15\x1f\xcd\xa6\xcb" "\x79\x9c\x6e\x92\x49\x66\xa7\xf9\x0b\xf8\xfd\x1e\x75\xee\x76\xbd\x72\x34" "\x6c\xfb\xb5\x26\x89\x0a\xa7\xfe\x5e\x68\x94\x9a\x3b\x30\x56\x7e\x54\xd3" "\x50\x47\x23\x17\x7d\x35\x6c\x46\x04\xbc\xa4\x92\xec\xec\x37\xe8\x3e\xfc" "\xee\xfd\x7c\xa2\x53\x36\x59\xed\xc8\xbe\xf9\xcb\x85\x45\x1c\x6a\x14\x50" "\x74\x34\x3c\xae\xa5\xc4\xbf\x69\x04\x41\x97\x4b\x15\x5f\x5a\xdc\x68\x1a" "\x03\xc0\xbb\xb8\x35\x88\x56\x17\x5e\x2c\xe8\xb0\xcb\xbb\xe3\xc0\x33\xe5" "\x4f\xfc\xeb\xde\x1d\x9d\x3d\x35\x00\x00\x00\x00\x00\x00\x00\x00\xe0\xf2" "\x09\x15\x0a\x07\x68\x2c\x4e\x14\xe3\xa8\x35\x58\xdf\x6f\x3f\xc9\x7f\x17" "\x30\xa1\x36\xbd\xee\x07\xe9\x8c\xb9\x84\xb2\xe2\x30\x4a\x1b\x63\xaf\xef" "\xdb\x63\x6e\x56\xbb\xaa\xe4\xe6\x21\x36\x57\x4b\xc6\x37\x1a\x0b\xb2\xbe" "\x1a\x96\x2a\xae\x9c\x12\x58\xda\x6e\xf5\x90\xe1\xd8\x5e\xa9\xe1\x2b\x30" "\x25\xf4\x3e\x7e\x08\xcc\xff\xc5\x06\x4d\xea\x4c\x39\xcf\x4b\x98\xe1\xfc" "\x6e\xfb\x59\x78\xf5\x1e\x16\xb6\x78\xec\xa0\xb6\x58\xa5\x60\x08\x94\x8e" "\x5a\x61\x56\x1a\x98\x45\xe4\xff\x29\xe2\xbd\xb1\xd0\xb9\x23\xb2\x72\x34" "\x1c\x5e\x09\x3f\xd6\x6a\x29\x46\x50\x15\x59\x33\x57\x81\x09\x2c\xf8\xce" "\x98\x7c\x56\xcd\x31\x12\x16\x24\xd7\x45\x5f\x2a\x36\x66\x27\x6c\x3c\x0e" "\x81\x2b\x28\xe2\xf3\x0d\x03\x5c\xee\x5d\x0e\x77\xa3\xc7\x22\x08\xec\x65" "\x1c\xc0\xae\x63\x7f\xa4\x74\x81\x6b\xc5\x9d\x2e\x2a\x00\x09\x24\x19\x30" "\x4b\x33\x8a\x98\x7e\x9d\x30\x44\xd8\x56\xce\x24\xf3\x70\x03\x0b\xe3\xb5" "\xf7\x9f\x03\x0b\x8d\x3e\xbc\xe6\x86\x63\xef\x5a\xf4\x69\xab\xe7\x53\x31" "\x4f\xae\x31\xa0\x44\x58\x59\xa5\xec\xe8\xfb\x11\xa4\xee\x8e\x46\x35\x4c" "\x9c\x3a\x04\x1a\x1e\x7b\x55\xc4\xe8\x1d\xba\x1e\x12\x28\x9e\xe3\x44\x63" "\xaa\xf2\x83\x45\xbd\xe0\xc1\x95\xbc\x9f\x02\x2c\xa8\xce\x37\xed\x85\x46" "\x4c\x31\x67\x90\x53\xe7\xf9\xd0\x4b\xb5\xcb\x51\xda\x0b\x79\x58\x98\x9f" "\xd7\x0f\x24\x12\x62\xd0\xaf\x32\x46\xeb\x4f\xc4\xbd\xa3\x45\x36\x02\x00" "\x00\x00\x01\xfb\xdd\xea\xcd\x3a\xda\xa4\xd2\x71\x5e\x21\xc7\x72\xcc\xd4" "\x43\x41\xf7\xfd\x53\xdf\x58\xae\x79\x1e\xe8\xb4\x89\xa7\xc9\xef\xe3\x62" "\x5a\x9d\x97\x1b\x59\x97\x48\x5d\x6a\x06\x3d\xc6\xf7\x35\x9e\x2e\xcc\xc2" "\xfb\x39\xd4\x19\xde\x1a\x7b\x5c\x9d\xc2\x2c\x96\x29\x5a\x06\x00\xad\xf5" "\x9d\x44\xe5\x8e\xb1\xc6\x0b\x34\x75\xbe\x31\xa9\xb7\xcf\x42\xb6\x40\x23" "\x12\xd2\x72\x5b\x8d\x9f\xa7\x00\xa8\x64\x07\xe7\x9a\xe2\x9d\x2c\x11\x7c" "\xa6\x5f\xc8\x6c\x2d\xce\x97\xaa\x03\x27\x9a\x66\xec\x87\x12\x22\x19\xb0" "\xf7\x96\xab\x92\xb1\xad\xec\xae\x50\xfd\xb4\x08\xc8\xa8\xf2\x7e\x02\xf7" "\x50\xd6\xc9\x77\xa1\x91\x9f\x9f\x69\xa6\xcf\xef\xdf\x87\x9d\x44\x7d\xf5" "\x3f\x3b\x9b\x70\xd1\x03\x55\xb0\x74\x66\xd1\xef\x00\x56\xb5\xaf\x55\x3d" "\x18\xa6\xcd\x50\xfe\xeb\x7b\xfa\xd9\xb7\xbe\x32\x83\xb6\x45\x0d\x26\x4e" "\x77\x12\xd2\xf1\xd7\x00\x45\x48\xb1\x91\x62\xce\xf0\x4d\x18\xd4\xf5\x98" "\x7b\xaa\xb9\x7a\x9b\xfb\xd8\xf1\x85\xb5\x63\x18\x20\x42\x0b\x75\xb6\x52" "\x2c\x0e\x21\xc8\x82\xc6\x6f\x4f\x25\xff\xb6\xd9\x5e\x07\xde\x02\x20\x5f" "\xca\x4f\x18\xa2\xeb\x5b\x63\xe4\x5d\x5d\x80\xfe\x52\x73\x40\x93\xae\x5a" "\xa3\xc0\xb4\xf3\xf4\x5b\xff\xf2\x01\x00\x00\x00\x00\x00\x00\x00\x2e\x31" "\x56\x0e\x5b\x74\x14\x45\xea\x2a\x1a\xce\xe2\xe9\x8c\x9f\x34\x27\x83\x4b" "\xa0\xa7\x65\xd2\x0b\x30\xf8\x7a\xf9\x76\xa4\x6f\x9a\x9a\x1a\xc7\xde\xa1" "\xea\x68\x45\xf9\xaa\x66\x23\x7e\x0d\xac\xc1\x07\xf5\x32\x34\x8c\xc2\x11" "\x64\x73\x38\x1e\x96\x1f\x3d\x98\x8c\x21\x57\x8f\xe3\x24\x50\x97\xc2\x80" "\xab\xe5\x14\x27\xb9\xf6\xcd\x72\xb5\xda\x6d\x02\x52\x80\x3c\x66\x73\x0c" "\xd5\xea\xc9\x07\xf0\x9b\x96\x95\x90\x63\x13\xf8\x87\x35\x22\x60\x8c\x6f" "\xc0\x1e\x1b\x9e\x16\x58\x7b\xb5\xf7\x21\x30\x3e\x6b\x89\xe5\xc5\x4d\x68" "\x0a\xc6\x6d\x09\xaf\x90\xdb\xf5\x0e\xe6\x9a\x39\x26\x59\x64\x27\x9d\x17" "\x4b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xfa\x08\xad\x07\x31\xba" "\x49\xfb\xf9\x81\xf8\x26\x5e\x7f\x1f\x4c\x2d\x97\xf4\x68\x0b\x13\x5f\x87" "\xc2\x28\xce\x69\x41\x8a\x28\x2b\x6c\xaa\x24\x81\xa0\xdf\x17\x74\xfa\x7d" "\x94\x94\x4b\xb9\x2d\x2b\x89\xf7\x3f\x0e\x8b\x63\xf6\x31\x6c\x57\x62\xf3" "\x28\x8b\xc9\x70\x72\x0f\x48\xb5\x64\x7d\xd1\x77\xdb\x68\x10\xfa\xe0\x53" "\x34\x96\xb6\xd5\x8d\xa5\x0e\xe8\x0a\x6b\x9a\x74\x38\xa5\x8c\x54\x65\x11" "\x3f\x66\x8e\xb4\x48\x43\x50\x04\x82\x89\xd0\x7d\xbe\xf3\x25\xd3\x22\x1a" "\x7c\xb3\x5f\x81\x2f\x25\x79\x41\xa9\x78\x1e\x32\x14\xc2\xa3\xdc\xf8\x9d" "\x99\x84\x4b\x76\x2a\x9c\xf1\x75\x48\xc5\x4f\xcc\xad\x2c\x7a\xe8\x07\x2b" "\x82\xe0\x88\x08\x15\xda\xf9\x66\xbd\x53\x43\xc1\x63\x5e\x12\x3f\x86\x8a" "\x71\x67\xcf\xcf\xf3\x33\x20\x25\x3a\xf5\x70\xf4\xef\x9c\x02\x54\xaf\xdd" "\x89\xac\x39\x43\x56\x2b\x53\x0d\xd8\x8d\xa8\xa9\x40\x13\xbb\xaf\x20\x4b" "\xeb\xc3\x80\x55\xad\xc3\x9f\x07\xf7\xc2\x27\x11\xf4\xd1\xf6\xdc\xc9\x28" "\xd1\x57\x8a\x09\x3c\x07\x2e\x0b\x92\xba\xbc\x76\xf4\x7e\xe3\x67\xe7\x45" "\xa0\x24\xa2\x27\x83\x19\xd9\xa4\xd1\x37\x84\x82\xb7\x4c\x51\x66\x47\x65" "\x2b\xfb\x6e\x93\x00\x24\x94\xa5\xcd\x74\xe2\xa9\xa4\x73\x44\x87\x06\x24" "\x37\xda\x23\xe1\xef\xa6\xef\x76\x74\x10\x8a\xaa\x3f\xfa\xc8\x59\xc3\x57" "\x7c\x26\x37\xbb\x3b\xdc\x69\xbc\x36\x5b\x1f\x20\xdb\xa9\x6b\x8a\xcc\xa6" "\x2f\x3f\x80\x04\x53\x18\xde\x0f\xac\xf2\xed\x44\xb8\x14\xe8\x42\xc2\xa5" "\x20\x15\x9b\xb6\xc3\x20\xce\xc0\x91\x0c\x0b\x8b\xd3\xd5\x47\xbd\xfb\xa2" "\xe0\xbb\x24\xd1\x17\xed\x03\x88\xaf\xd3\x7a\xff\xba\xd2\xf9\xc7\x7c\x9c" "\x13\x14\xa1\x6f\xfe\x64\xf5\xe3\x74\x4a\x2f\xff\xd7\x03\x96\x70\xf5\x70" "\x6e\x58\x9a\x4c\x38\x68\x0a\x37\x7f\x8c\x26\xe6\xe3\x82\x06\x7f\x69\x00" "\x89\xf3\x4b\x13\xee\x06\x33\xa1\x71\xc7\x91\x84\x01\xac\xd4\x57\x5f\x14" "\x43\x81\x58\x54\xf7\x75\x30\x8c\x08\x3f\xf4\xf4\x04\x6c\xfc\xa8\xbc\xa4" "\x8e\x6d\xb6\xb2\x11\x11\x3c\x06\x79\x77\x22\x23\x0a\xf9\x22\x90\x23\x1a" "\x0f\x02\xe2\x47\xcf\x96\x87\x62\x57\xda\xc9\xff\x0b\x8f\x07\xff\x59\x16" "\xa8\xcc\xd3\xf1\x5b\x38\x9d\x34\x52\x0f\x07\x4c\x6f\x00\x6e\x03\x83\x28" "\x0b\xf0\xb9\x76\x5c\x99\x5e\xf1\xe6\x96\xa1\xda\x41\xd9\x37\x2a\x1c\x9d" "\x85\xf1\xa8\x3b\x62\x13\xb5\xfb\x23\x6f\xbe\xda\x8f\xb9\x0d\xee\x70\xca" "\x3c\xfc\x08\x33\x74\x1a\x0e\x93\x41\xab\x4d\xee\x09\x66\x9b\x83\x28\x40" "\xfe\xf5\xa2\xbb\xeb\xd5\x95\x75\x03\x65\x6c\x44\x5a\x42\x8e\xfc\x57\x11" "\xd1\xc6\x60\x93\xb3\x60\xc6\x3e\x63\xe9\x1c\xb8\x71\xf8\xdc\x43\xa9\x15" "\xec\x87\xbe\x49\x2d\xae\xc1\x88\x47\xde\x70\x32\xd5\xc9\x7d\x02\x96\xa1" "\xfa\x97\xd1\x7f", 2074); *(uint64_t*)0x200000000090 = 0x200000000000; memcpy((void*)0x200000000000, "GPL\000", 4); *(uint32_t*)0x200000000098 = 5; *(uint32_t*)0x20000000009c = 0x252; *(uint64_t*)0x2000000000a0 = 0x20000000cf3d; *(uint32_t*)0x2000000000a8 = 0; *(uint32_t*)0x2000000000ac = 0; memset((void*)0x2000000000b0, 0, 16); *(uint32_t*)0x2000000000c0 = 0; *(uint32_t*)0x2000000000c4 = 0; *(uint32_t*)0x2000000000c8 = -1; *(uint32_t*)0x2000000000cc = 8; *(uint64_t*)0x2000000000d0 = 0; *(uint32_t*)0x2000000000d8 = 0; *(uint32_t*)0x2000000000dc = 0x10; *(uint64_t*)0x2000000000e0 = 0; *(uint32_t*)0x2000000000e8 = 0; *(uint32_t*)0x2000000000ec = 0; *(uint32_t*)0x2000000000f0 = -1; *(uint32_t*)0x2000000000f4 = 0; *(uint64_t*)0x2000000000f8 = 0; *(uint64_t*)0x200000000100 = 0; *(uint32_t*)0x200000000108 = 0x10; *(uint32_t*)0x20000000010c = 0; *(uint32_t*)0x200000000110 = 0; res = syscall(__NR_bpf, /*cmd=*/5ul, /*arg=*/0x200000000080ul, /*size=*/0x48ul); if (res != -1) r[0] = res; // perf_event_open$cgroup arguments: [ // attr: ptr[in, perf_event_attr] { // perf_event_attr { // type: perf_event_type = 0x2 (4 bytes) // size: len = 0x80 (4 bytes) // config0: int8 = 0x16 (1 bytes) // config1: int8 = 0x1 (1 bytes) // config2: int8 = 0x0 (1 bytes) // config3: int8 = 0x0 (1 bytes) // config4: const = 0x0 (4 bytes) // sample_freq: int64 = 0x0 (8 bytes) // sample_type: perf_sample_type = 0x0 (8 bytes) // read_format: perf_read_format = 0x0 (8 bytes) // disabled: int64 = 0x0 (0 bytes) // inherit: int64 = 0x0 (0 bytes) // pinned: int64 = 0x0 (0 bytes) // exclusive: int64 = 0x0 (0 bytes) // exclude_user: int64 = 0x0 (0 bytes) // exclude_kernel: int64 = 0x0 (0 bytes) // exclude_hv: int64 = 0x0 (0 bytes) // exclude_idle: int64 = 0x0 (0 bytes) // mmap: int64 = 0x0 (0 bytes) // comm: int64 = 0x0 (0 bytes) // freq: int64 = 0x0 (0 bytes) // inherit_stat: int64 = 0x0 (0 bytes) // enable_on_exec: int64 = 0x0 (0 bytes) // task: int64 = 0x0 (0 bytes) // watermark: int64 = 0x0 (0 bytes) // precise_ip: int64 = 0x0 (0 bytes) // mmap_data: int64 = 0x0 (0 bytes) // sample_id_all: int64 = 0x0 (0 bytes) // exclude_host: int64 = 0x0 (0 bytes) // exclude_guest: int64 = 0x0 (0 bytes) // exclude_callchain_kernel: int64 = 0x0 (0 bytes) // exclude_callchain_user: int64 = 0x0 (0 bytes) // mmap2: int64 = 0x0 (0 bytes) // comm_exec: int64 = 0x0 (0 bytes) // use_clockid: int64 = 0x0 (0 bytes) // context_switch: int64 = 0x0 (0 bytes) // write_backward: int64 = 0x0 (0 bytes) // namespaces: int64 = 0x0 (0 bytes) // ksymbol: int64 = 0x0 (0 bytes) // bpf_event: int64 = 0x0 (0 bytes) // aux_output: int64 = 0x0 (0 bytes) // cgroup: int64 = 0x0 (0 bytes) // text_poke: int64 = 0x0 (0 bytes) // build_id: int64 = 0x0 (0 bytes) // inherit_thread: int64 = 0x0 (0 bytes) // remove_on_exec: int64 = 0x0 (0 bytes) // sigtrap: int64 = 0x0 (0 bytes) // __reserved_1: const = 0x0 (8 bytes) // wakeup_events: int32 = 0x0 (4 bytes) // bp_type: perf_bp_type = 0x0 (4 bytes) // bp_config: union perf_bp_config { // perf_bp: perf_bp { // bp_addr: nil // bp_len: perf_bp_lens = 0x0 (8 bytes) // } // } // branch_sample_type: perf_branch_sample_type = 0x0 (8 bytes) // sample_regs_user: int64 = 0x0 (8 bytes) // sample_stack_user: int32 = 0x0 (4 bytes) // clockid: clock_type = 0x0 (4 bytes) // sample_regs_intr: int64 = 0x4 (8 bytes) // aux_watermark: int32 = 0x0 (4 bytes) // sample_max_stack: int16 = 0x0 (2 bytes) // __reserved_2: const = 0x0 (2 bytes) // aux_sample_size: int32 = 0x0 (4 bytes) // __reserved_3: const = 0x0 (4 bytes) // sig_data: int64 = 0x0 (8 bytes) // } // } // fd: fd_cgroup (resource) // cpu: intptr = 0x0 (8 bytes) // group: fd_perf (resource) // flags: perf_flags_cgroup = 0x0 (8 bytes) // ] // returns fd_perf *(uint32_t*)0x2000000003c0 = 2; *(uint32_t*)0x2000000003c4 = 0x80; *(uint8_t*)0x2000000003c8 = 0x16; *(uint8_t*)0x2000000003c9 = 1; *(uint8_t*)0x2000000003ca = 0; *(uint8_t*)0x2000000003cb = 0; *(uint32_t*)0x2000000003cc = 0; *(uint64_t*)0x2000000003d0 = 0; *(uint64_t*)0x2000000003d8 = 0; *(uint64_t*)0x2000000003e0 = 0; STORE_BY_BITMASK(uint64_t, , 0x2000000003e8, 0, 0, 1); STORE_BY_BITMASK(uint64_t, , 0x2000000003e8, 0, 1, 1); STORE_BY_BITMASK(uint64_t, , 0x2000000003e8, 0, 2, 1); STORE_BY_BITMASK(uint64_t, , 0x2000000003e8, 0, 3, 1); STORE_BY_BITMASK(uint64_t, , 0x2000000003e8, 0, 4, 1); STORE_BY_BITMASK(uint64_t, , 0x2000000003e8, 0, 5, 1); STORE_BY_BITMASK(uint64_t, , 0x2000000003e8, 0, 6, 1); STORE_BY_BITMASK(uint64_t, , 0x2000000003e8, 0, 7, 1); STORE_BY_BITMASK(uint64_t, , 0x2000000003e8, 0, 8, 1); STORE_BY_BITMASK(uint64_t, , 0x2000000003e8, 0, 9, 1); STORE_BY_BITMASK(uint64_t, , 0x2000000003e8, 0, 10, 1); STORE_BY_BITMASK(uint64_t, , 0x2000000003e8, 0, 11, 1); STORE_BY_BITMASK(uint64_t, , 0x2000000003e8, 0, 12, 1); STORE_BY_BITMASK(uint64_t, , 0x2000000003e8, 0, 13, 1); STORE_BY_BITMASK(uint64_t, , 0x2000000003e8, 0, 14, 1); STORE_BY_BITMASK(uint64_t, , 0x2000000003e8, 0, 15, 2); STORE_BY_BITMASK(uint64_t, , 0x2000000003e8, 0, 17, 1); STORE_BY_BITMASK(uint64_t, , 0x2000000003e8, 0, 18, 1); STORE_BY_BITMASK(uint64_t, , 0x2000000003e8, 0, 19, 1); STORE_BY_BITMASK(uint64_t, , 0x2000000003e8, 0, 20, 1); STORE_BY_BITMASK(uint64_t, , 0x2000000003e8, 0, 21, 1); STORE_BY_BITMASK(uint64_t, , 0x2000000003e8, 0, 22, 1); STORE_BY_BITMASK(uint64_t, , 0x2000000003e8, 0, 23, 1); STORE_BY_BITMASK(uint64_t, , 0x2000000003e8, 0, 24, 1); STORE_BY_BITMASK(uint64_t, , 0x2000000003e8, 0, 25, 1); STORE_BY_BITMASK(uint64_t, , 0x2000000003e8, 0, 26, 1); STORE_BY_BITMASK(uint64_t, , 0x2000000003e8, 0, 27, 1); STORE_BY_BITMASK(uint64_t, , 0x2000000003e8, 0, 28, 1); STORE_BY_BITMASK(uint64_t, , 0x2000000003e8, 0, 29, 1); STORE_BY_BITMASK(uint64_t, , 0x2000000003e8, 0, 30, 1); STORE_BY_BITMASK(uint64_t, , 0x2000000003e8, 0, 31, 1); STORE_BY_BITMASK(uint64_t, , 0x2000000003e8, 0, 32, 1); STORE_BY_BITMASK(uint64_t, , 0x2000000003e8, 0, 33, 1); STORE_BY_BITMASK(uint64_t, , 0x2000000003e8, 0, 34, 1); STORE_BY_BITMASK(uint64_t, , 0x2000000003e8, 0, 35, 1); STORE_BY_BITMASK(uint64_t, , 0x2000000003e8, 0, 36, 1); STORE_BY_BITMASK(uint64_t, , 0x2000000003e8, 0, 37, 1); STORE_BY_BITMASK(uint64_t, , 0x2000000003e8, 0, 38, 26); *(uint32_t*)0x2000000003f0 = 0; *(uint32_t*)0x2000000003f4 = 0; *(uint64_t*)0x2000000003f8 = 0; *(uint64_t*)0x200000000400 = 0; *(uint64_t*)0x200000000408 = 0; *(uint64_t*)0x200000000410 = 0; *(uint32_t*)0x200000000418 = 0; *(uint32_t*)0x20000000041c = 0; *(uint64_t*)0x200000000420 = 4; *(uint32_t*)0x200000000428 = 0; *(uint16_t*)0x20000000042c = 0; *(uint16_t*)0x20000000042e = 0; *(uint32_t*)0x200000000430 = 0; *(uint32_t*)0x200000000434 = 0; *(uint64_t*)0x200000000438 = 0; res = syscall(__NR_perf_event_open, /*attr=*/0x2000000003c0ul, /*fd=*/(intptr_t)-1, /*cpu=*/0ul, /*group=*/(intptr_t)-1, /*flags=*/0ul); if (res != -1) r[1] = res; // ioctl$PERF_EVENT_IOC_SET_BPF arguments: [ // fd: fd_perf (resource) // cmd: const = 0x40042408 (4 bytes) // prog: fd_bpf_prog (resource) // ] syscall(__NR_ioctl, /*fd=*/r[1], /*cmd=*/0x40042408, /*prog=*/r[0]); // bpf$MAP_CREATE arguments: [ // cmd: const = 0x0 (8 bytes) // arg: ptr[in, bpf_map_create_arg] { // union bpf_map_create_arg { // base: bpf_map_create_arg_t[flags[bpf_map_type, int32], int32, int32, // int32, flags[map_flags, int32], const[0, int64]] { // type: bpf_map_type = 0xe (4 bytes) // ksize: int32 = 0x4 (4 bytes) // vsize: int32 = 0x4 (4 bytes) // max: int32 = 0x3 (4 bytes) // flags: map_flags = 0x0 (4 bytes) // inner: fd_bpf_map (resource) // node: int32 = 0x0 (4 bytes) // map_name: buffer: {00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // 00} (length 0x10) map_ifindex: ifindex (resource) btf_fd: fd_btf // (resource) btf_key_type_id: int32 = 0x0 (4 bytes) // btf_value_type_id: int32 = 0x0 (4 bytes) // btf_vmlinux_type_id: int32 = 0x0 (4 bytes) // map_extra: const = 0x0 (8 bytes) // value_type_btf_obj_fd: union // _bpf_map_create_arg_t[flags[bpf_map_type, int32], int32, int32, // int32, flags[map_flags, int32], const[0, // int64]]_value_type_btf_obj_fd_wrapper { // void: buffer: {} (length 0x0) // } // pad1: union _bpf_map_create_arg_t[flags[bpf_map_type, int32], // int32, int32, int32, flags[map_flags, int32], const[0, // int64]]_pad1_wrapper { // value: const = 0x0 (4 bytes) // } // map_token_fd: union _bpf_map_create_arg_t[flags[bpf_map_type, // int32], int32, int32, int32, flags[map_flags, int32], const[0, // int64]]_map_token_fd_wrapper { // void: buffer: {} (length 0x0) // } // pad2: union _bpf_map_create_arg_t[flags[bpf_map_type, int32], // int32, int32, int32, flags[map_flags, int32], const[0, // int64]]_pad2_wrapper { // value: const = 0x0 (4 bytes) // } // } // } // } // size: len = 0x48 (8 bytes) // ] // returns fd_bpf_map *(uint32_t*)0x200000000400 = 0xe; *(uint32_t*)0x200000000404 = 4; *(uint32_t*)0x200000000408 = 4; *(uint32_t*)0x20000000040c = 3; *(uint32_t*)0x200000000410 = 0; *(uint32_t*)0x200000000414 = -1; *(uint32_t*)0x200000000418 = 0; memset((void*)0x20000000041c, 0, 16); *(uint32_t*)0x20000000042c = 0; *(uint32_t*)0x200000000430 = -1; *(uint32_t*)0x200000000434 = 0; *(uint32_t*)0x200000000438 = 0; *(uint32_t*)0x20000000043c = 0; *(uint64_t*)0x200000000440 = 0; *(uint32_t*)0x200000000448 = 0; *(uint32_t*)0x20000000044c = 0; syscall(__NR_bpf, /*cmd=*/0ul, /*arg=*/0x200000000400ul, /*size=*/0x48ul); } int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffffffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x200000000000ul, /*len=*/0x1000000ul, /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/ 7ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x200001000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); const char* reason; (void)reason; loop(); return 0; }