// https://syzkaller.appspot.com/bug?id=2de59fc4ecf3e7df530e2ced439093ad5953193e // 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 #include #ifndef __NR_bpf #define __NR_bpf 321 #endif static unsigned long long procid; 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 setup_sysctl() { int cad_pid = fork(); if (cad_pid < 0) exit(1); if (cad_pid == 0) { for (;;) sleep(100); } char tmppid[32]; snprintf(tmppid, sizeof(tmppid), "%d", cad_pid); struct { const char* name; const char* data; } files[] = { {"/sys/kernel/debug/x86/nmi_longest_ns", "10000000000"}, {"/proc/sys/kernel/hung_task_check_interval_secs", "20"}, {"/proc/sys/net/core/bpf_jit_kallsyms", "1"}, {"/proc/sys/net/core/bpf_jit_harden", "0"}, {"/proc/sys/kernel/kptr_restrict", "0"}, {"/proc/sys/kernel/softlockup_all_cpu_backtrace", "1"}, {"/proc/sys/fs/mount-max", "100"}, {"/proc/sys/vm/oom_dump_tasks", "0"}, {"/proc/sys/debug/exception-trace", "0"}, {"/proc/sys/kernel/printk", "7 4 1 3"}, {"/proc/sys/kernel/keys/gc_delay", "1"}, {"/proc/sys/vm/oom_kill_allocating_task", "1"}, {"/sys/kernel/debug/failslab/task-filter", "Y"}, {"/sys/kernel/debug/fail_page_alloc/task-filter", "Y"}, {"/sys/kernel/debug/fail_futex/task-filter", "Y"}, {"/sys/kernel/debug/fail_usercopy/task-filter", "Y"}, {"/sys/kernel/debug/fail_make_request/task-filter", "Y"}, {"/sys/kernel/debug/fail_io_timeout/task-filter", "Y"}, {"/sys/kernel/debug/fail_iommufd/task-filter", "Y"}, {"/proc/sys/kernel/ctrl-alt-del", "0"}, {"/proc/sys/kernel/cad_pid", tmppid}, }; for (size_t i = 0; i < sizeof(files) / sizeof(files[0]); i++) { if (!write_file(files[i].name, files[i].data)) { } } kill(cad_pid, SIGKILL); while (waitpid(cad_pid, NULL, 0) != cad_pid) ; } 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[1] = {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 = 0xc (4 bytes) // ninsn: bytesize8 = 0xe (4 bytes) // insns: ptr[inout, array[ANYUNION]] { // array[ANYUNION] { // union ANYUNION { // ANYBLOB: buffer: {b7 02 00 00 26 f9 00 00 bf a3 00 00 00 00 00 // 00 07 03 00 00 00 7e ff ff 7a 0a f0 ff f8 ff ff ff 79 a4 f0 ff // 00 00 00 00 b7 06 00 00 ff ff ff ff 2d 64 05 00 00 00 00 00 65 // 06 04 00 01 00 00 05 04 04 00 00 01 00 7d 60 b7 03 00 00 00 00 // 00 00 6a 0a 00 fe 00 00 00 00 85 00 00 00 2b 00 00 00 b7 00 00 // 00 00 00 00 00 95 00 00 00 00 00 00 00 49 6c f2 7f b6 d2 c6 43 // db 7e 2d 5f b4 b0 93 6c df 82 7f b4 3a 43 1c a7 11 fc d0 cd fa // 14 6e d3 d0 9a 61 75 03 79 58 e2 71 06 e2 25 b7 93 7f 02 00 8b // 5e 5a 07 6d 83 92 3d d2 9c 03 40 55 b6 7d af e6 c8 dc 52 5d 78 // c0 7f 17 e4 d5 b3 18 5b 31 0e fc fa 89 14 7a 09 00 00 00 f1 10 // 02 6e 6d 2e f8 31 ab 7e a0 c3 4f 17 e3 ad 6e ec bb 62 20 03 b5 // 34 df d8 e0 12 e7 95 78 e5 1b c5 30 99 e9 0f 45 80 d7 60 55 1b // 5b 0a 34 1a 2d 7c bd b9 cd 38 bd b2 ca 8e 05 00 00 00 3a 14 81 // 7a c6 1e 4d d1 11 83 a1 34 77 bf 7e 06 0e 36 70 ef 0e 78 9f 65 // f1 32 8d 67 04 90 2c be 7b c0 4b 82 d2 78 9c b1 32 b8 66 7c 21 // 47 33 a1 8c 8b 66 19 f2 8d 99 61 b6 fb ce 3f 89 72 26 c5 7c 26 // 91 20 81 73 65 6d 60 a1 7e 3c 18 4b 75 1c 51 16 0f bc bb db 5b // 1e 7b e6 14 8b a5 32 e6 0a 0a c3 46 df eb d3 1a 08 06 00 00 00 // 02 00 00 00 00 00 00 00 48 f9 41 b1 3d 92 4b cf 33 4d 83 23 9d // d2 70 80 e7 11 13 61 0e 10 d8 58 e8 32 7e f0 1f b6 c8 6a ca c1 // 22 33 f9 a1 fb 9c 2a ec 61 ce 63 a3 8d 2f d5 01 17 b8 9a 9a b3 // 59 b4 ee a0 c6 e9 57 bc 73 dd c4 ea bb a0 8a b1 e1 ad 82 82 67 // d4 ea dd 39 64 66 3e 88 53 5c 06 3f 71 30 85 6f 75 64 36 30 37 // 67 d2 e2 4f 29 e5 da d9 79 6e db 69 7a 6e a1 18 2b ab c1 90 ae // 2e bf 8a ad 34 73 21 81 fe b2 15 13 9f 15 ea 7e 8c b0 ba e7 c3 // 4d 5a c5 e7 c8 05 21 06 00 00 00 00 00 00 00 c3 de c0 4b 25 df // c1 79 75 23 83 45 d4 f7 1a b1 58 c3 66 57 b7 21 8b aa 07 00 f7 // 81 c0 a9 9b d5 04 99 cc c4 21 ac e5 e8 45 88 5e fb 5b 99 64 e4 // be ba 3d a8 22 3f e5 30 8e 4e 65 ee 93 e1 07 00 00 00 f8 dd eb // f7 01 32 a4 d0 17 5b 98 9b 8e cc f7 07 88 20 42 e7 16 df 9b 57 // b2 90 c6 61 d4 e8 50 31 08 61 97 bc c5 cb 0e 22 1a 0c 34 32 3c // 12 91 02 b6 ff 01 00 00 2e 88 a1 94 0b 3c 02 ed 9c 92 d6 f6 4b // 12 82 dc 51 bb 00 15 98 27 30 71 1c 59 9e 1c 72 ff a1 1e d8 be // 1a 68 30 d7 50 70 05 15 4c 46 bd 3c a9 63 18 c5 70 d3 38 f0 72 // 1f c7 aa 2a 58 36 ba 99 fe 1f 86 46 86 94 f2 2c df 55 0e f0 91 // a7 80 98 53 4f 0d 97 30 59 59 41 19 d0 6d 5e a9 a8 d0 85 73 82 // ec 6e 2a 07 14 74 cf c1 23 46 e4 7a d9 7f 4e ad 7c f7 0a 9d 1c // da c9 44 77 9d c0 8a 70 54 14 88 87 00 a3 0e 23 66 c6 a0 6b 33 // 67 a3 89 ca 39 05 97 87 79 00 17 b0 68 9a 41 1f 45 0f 17 3d b9 // c2 4d b6 5c 1e 00 01 5c 1d 09 3d ab 18 fd 06 99 fe 33 04 00 00 // 00 32 3e 9c 70 80 39 7b c4 9d 70 c0 60 d5 7b c8 8f be 3b ba a0 // 58 b0 40 36 2a b9 26 15 03 63 fb 09 94 08 88 5a fc 2b f9 a4 6a // 07 6b 7b ab fc dd ef f8 c3 50 30 66 9e a6 9f 5e 4b e1 b8 e0 d6 // 69 7e 97 18 6f 9a e9 7d 56 70 db a6 62 32 79 f7 3d b9 de c7 50 // 70 cd 9a b0 fd a6 b0 69 ef 6d 28 57 ca 3e 4e ff cf 74 62 71 0d // 13 3d 54 1d a8 6e 04 77 e4 a6 cc 99 9d c2 1c 3e f4 08 e6 b1 78 // e7 c9 f2 74 d7 fa fc 8d 75 7d 33 df a3 5a a2 00 00 34 83 7d 36 // 5e 63 84 5f 3c 10 92 f8 dd e8 af 39 04 ea 0f 4b 82 64 9b 83 ed // 4f a0 f8 73 33 9c 4c ad ec c1 32 19 ba 75 18 aa 4f 7d b3 4e ad // 13 48 47 42 06 7a b7 43 c1 d8 2a 56 87 f2 ed 69 00 00 00 00 00 // 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 99 d4 fa 00 // 00 00 00 00 00 3f 0e cd c7 c8 2e 72 91 9c 91 d2 03 9a fe 17 e9 // 5e de ee ba 72 20 5b ef f7 77 1b cb 29 37 47 b8 84 86 ca ce e4 // 03 00 00 00 a2 91 9a 4b ff 2e d8 93 f2 c8 14 67 9f a6 9f c7 e0 // cf 76 1f 91 87 25 70 4a 01 c5 60 09 a9 f7 48 e5 aa f3 0a 10 bd // 8c 40 9b 18 70 c1 f7 5e e9 05 00 00 00 d3 f8 e0 04 8e 55 ae 28 // 9c e2 ad 77 9c e7 1d 4d c3 0c bb 2c c4 28 9d 2f 88 4d 66 cd dc // 76 eb 7f 60 11 10 ff 39 05 3c 26 22 79 f4 ef 00 fb db 8c 32 86 // 15 a9 ec 84 f2 7a 9f 39 38 ae 73 61 38 b8 c1 ec 22 0c 15 40 bf // 3d 16 2d c1 c2 7f a3 0f 0d c6 0b 9f 25 7d b5 d1 c7 ed 2e 15 2c // b2 cf 06 f8 ed b3 01 77 fe ad 73 5a 95 2f fc e6 76 a9 31 10 90 // 4d 5e e2 ab da b2 ef 3f f8 4c 4d 61 44 3f 73 55 21 95 c7 cc fb // f9 f0 3c 44 43 2e aa 3b 75 01 d4 23 93 54 da 8d e2 1e ad a7 5d // 3a 3a fb 2c 76 ff 07 00 00 79 81 69 9b 6c 0f 0e 94 67 66 f5 75 // 44 ff 52 ce f0 dd 81 1b ec 4e 3c 0a 30 f2 d7 d1 9d 26 d2 50 3a // 3e a3 76 72 1b 8e de d3 bc 47 59 58 dd 49 8e e2 b2 d6 14 6e 33 // fc 0d e1 dc 2e 05 16 ac 56 5d db 1d 4a e8 9e 67 12 82 4a 85 eb // 9e e0 a3 b6 8c 9e 20 97 56 62 3a df 68 5d d7 15 d6 8e d1 1e 4b // 4d 55 02 f5 12 49 48 f8 f9 8c 61 5c ac 36 66 c5 8f 78 5c 3f 75 // 8b e3 52 a7 18 71 d5 c0 81 19 7d 37 98 0e 4f 4e 26 b5 47 6f b2 // 04 07 ff 70 98 b7 17 4b ef 66 02 00 a9 9b 5c 0c 20 b3 78 06 5f // ac 4e f9 ac 2d 00 00 00 60 e5 d3 f1 74 9f ea ec f6 9b a8 3a 71 // ca a9 bd dd c6 79 f1 b8 26 f5 4b 65 63 a4 be 1f d8 2b 73 c8 c2 // bc 65 f6 39 82 b9 51 fb 05 8f d3 c7 b6 34 1c 45 80 37 6b 6c 16 // bd 94 d2 da 66 05 9d e8 1a bf a1 5e ee b8 8b 6a e5 88 2a d3 41 // 03 2c 73 f1 28 5e 21 ff f5 a1 d1 38 e0 61 b1 dc 7b bd a1 99 b5 // fa b8 e0 71 9e 9c d6 9b 47 dc b5 2b 0b e6 a3 a7 3a fd f3 28 13 // 2e 1d 4f 21 06 57 16 be 0c 53 a2 39 40 d0 71 88 b0 15 fa 34 1d // bc 92 23 1c 8b 5e 57 17 ea c1 84 f4 6c 9f 61 b6 9f 55 cd 22 31 // bc f8 21 05 24 29 a1 f2 50 e8 b7 34 be 06 05 a1 5f 25 92 3d 59 // 95 44 b3 19 31 9f f0 a3 26 21 01 93 47 df 46 0a 09 81 19 a6 f4 // 7e b1 ba c4 79 46 d7 a0 09 cb c6 ec 74 c1 9a 93 cc 7c 71 38 b2 // 8c 95 27 01 16 18 1f d5 f5 53 57 3c 48 10 4d 2a d0 e1 0d 36 63 // 48 8e 66 44 01 45 3f 22 f0 d7 6d 21 62 63 53 65 25 8a f6 1a e1 // f4 6f 4a 78 62 f3 02 d9 1e 3f 7c 27 81 f6 02 22 05 22 e8 46 02 // a9 39 a8 d5 e4 13 7a e3 1c cd 39 74 04 dc 72 e0 67 15 a6 50 3d // 4d 86 51 82 80 3e e6 72 5d a7 29 3b 23 da ee be fd 6f ce 74 11 // c9 62 4a 7e 8d 5b a5 a1 3e 1c 32 ad c4 f3 27 44 97 c6 88 2a 72 // 47 5e 42 80 a4 d9 a4 7c 00 3c 6e d3 07 13 30 c5 81 45 be 49 8c // a2 b4 24 96 c4 79 a0 a7 1e 2f 6f 9b ad 8c 84 bc 6b e2 02 81 bd // e0 b3 48 cd 2c 60 53 8a 50 5a d4 a0 51 0e eb b0 23 e4 95 4c 9e // b6 cd 70 62 7f 5c 03 d8 67 db f3 ad 5d 1f 1d c8 52 06 4d d0 ef // af c3 df 20 ed 65 af 3d 19 4d b7 61 27 f8 8f 28 4f a1 b7 1a b9 // 64 fd d2 47 44 71 da 76 37 3e 65 e9 a8 bf 84 4b df dd 34 8b c7 // d0 0c 4c 7e 7a fe 8a 1f 8c de 79 b7 a6 c5 aa fe 95 4b 8b a3 78 // 18 e4 0c 14 b3 7c 23 f9 f6 14 57 6b 68 94 36 fe f2 f2 7f 8b 1e // 75 6e 00 26 2e 22 bc a4 9c 43 fd 73 e7 e9 9b 2f a4 4a 8c 1d b9 // 9c 2c f2 73 5a d6 c5 fa bf 08 2e 0d f0 f8 ba 7e 24 27 21 65 f2 // f5 b2 82 30 c0 2b 53 d4 4b d8 4b f6 77 01 57 e9 6b bb 96 b5 e1 // f1 65 c8 7e 7a d6 8a 36 00 b3 d3 57 fa 9a 7d 53 c2 81 d8 8e bb // 17 5a 4d bb 82 13 0e 68 70 98 29 47 91 31 10 f0 91 d2 17 60 d9 // 85 af d3 16 3f 2e 68 80 68 24 32 f9 b3 b9 7d 57 a9 f9 80 ed fa // 11 16 a3 d0 4d 58 87 2a 07 d6 a7 e1 2d b6 73 ac d2 f7 b8 98 8d // 83 3e 71 94 3f e2 c1 c6 5a 3c f3 6b 95 5c 56 b5 5b fd 3e cf 0a // f6 94 c7 1a 03 f2 99 6c 15 b1 ba 97 1d e1 cb 9c 7e 6a 00 00 00 // 00 00 00 00 14 78 3e f5 4c 51 19 93 17 41 3f 98 dc a8 ff 3d 0b // da 50 f6 c0 af 58 db d6 c0 31 b1 a5 a7 51 2c 58 96 51 4a df a1 // 7d 31 42 9c 68 db 50 a9 3d 88 19 9d ef d3 b4 62 5f ea 42 6f f9 // 29 3a 28 a5 44 a6 a9 e2 a7 9b 55 da a1 b3 c6 b1 4c 4e c6 d1 64 // e9 02 ce 49 13 84 3d 65 d8 41 97 34 68 72 9e a1 2b f6 d3 49 90 // 36 db b6 67 18 f3 49 78 55 c3 ba a6 cc 07 c0 fa 38 8e c9 df 06 // 17 c1 a2 8e f5 a5 95 ee 26 7a 76 17 5b 8a 05 7e 6e fa f4 fe fe // 46 de f4 51 f2 85 8f e7 1a 53 e7 7b 1a 44 e9 88 43 bb 3a 40 10 // 2d a3 70 3d fb 9f 61 bd ce a2 fb 81 0b 32 d5 2e 21 57 a1 50 a6 // 3e a6 13 5d 1c f6 f8 64 c2 e6 88 84 d7 24 5b c5 d6 1d c5 a1 14 // d1 0f fb 22 e7 66 78 bb fc 1e 38 65 d1 7d 12 83 06 d1 b8 18 84 // a9 34 cb 00 00 00 00 00 00 00 00 00 98 a4 52 6e 64 68 98 7d bc // 63 bf f7 59 0e b3 88 af ab a4 3d 81 19 96 33 3e ef 7e 9f 47 2b // ee 29 3f 0c 40 d4 34 b8 be 07 cb d5 23 25 29 6e 22 80 24 93 ed // b5 c5 90 ad 20 8b ac 68 3a 8b 2d 4c 9d 2d 57 ff 84 6a e8 c4 22 // e0 b2 85 46 67 1f 11 d8 15 7b b7 62 c9 1f 3f bc ca 8e 21 58 9c // 92 44 6a e6 5d 40 8c 06 37 ff cc 2d 44 d7 15 ce 00 3d d1 e1 2b // 08 5e 18 6d 06 9a 55 c2 e9 6e fb e5 02 4d 61 a5 6a 36 d9 88 c0 // f5 1a 97 3a 6c 23 8e 54 5b 28 21 1a 92 00 00 00 00 15 01 ae d8 // d7 2a f0 fc d5 40 a9 d4 e2 93 69 0c 5e 69 7b 3a 14 80 e4 6d f5 // 37 1b ca 1c fb 28 a5 7c 1b 3c 95 6e c8 13 97 e8 1f bf 87 0a 67 // 38 5f ea 04 22 04 23 f5 2a d8 17 8b 9f d0 4b dc 7e 5f ee 4b d5 // 2d b9 96 e6 33 79 21 18 ef db 6b 88 02 3e 80 da 74 fd f7 23 c7 // f0 b2 e9 f3 bb 90 61 35 08 c0 0a 29 2a 0c 5b 87 a4 f8 ff 35 eb // a7 3c e9 eb f7 7d 0c 84 20 63 a7 b4 2c 75 7d 82 86 78 d3 8e 6a // 86 8e ae ad 4f 19 cd eb 7c fc 10 0c ea bb 4a 39 99 cc e5 d3 6e // cf e8 0d ef 20 f7 18 7b ab 75 51 52 26 f4 d9 b3 0e 05 67 61 22 // 10 d4 92 46 87 81 99 9c e7 95 52 2b 72 6b df 37 b1 5e 9a fd e3 // 2a 70 52 cc 90 9e fe 6a e7 80 4e 50 44 f9 f7 ae 2d 8c b0 8c ca // 31 2c 55 7b ff 04 cf 1f bb 0d cf e8 ac 00 00 00 00 00 00 00 00 // 00 00 00} (length 0xb10) // } // } // } // license: ptr[in, buffer] { // buffer: {73 79 7a 6b 61 6c 6c 65 72 00} (length 0xa) // } // loglev: int32 = 0x0 (4 bytes) // logsize: len = 0x0 (4 bytes) // log: nil // 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: ptr[in, bpf_func_info] { // bpf_func_info { // insn_off: int32 = 0x0 (4 bytes) // type_id: int32 = 0x0 (4 bytes) // } // } // func_info_cnt: len = 0x0 (4 bytes) // line_info_rec_size: const = 0x10 (4 bytes) // line_info: ptr[in, bpf_line_info] { // bpf_line_info { // insn_off: int32 = 0x0 (4 bytes) // file_name_off: int32 = 0x0 (4 bytes) // line_off: int32 = 0x0 (4 bytes) // line_col: int32 = 0x0 (4 bytes) // } // } // line_info_cnt: len = 0xffffffffffffff4f (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*)0x200000000200 = 0xc; *(uint32_t*)0x200000000204 = 0xe; *(uint64_t*)0x200000000208 = 0x200000001f80; memcpy( (void*)0x200000001f80, "\xb7\x02\x00\x00\x26\xf9\x00\x00\xbf\xa3\x00\x00\x00\x00\x00\x00\x07\x03" "\x00\x00\x00\x7e\xff\xff\x7a\x0a\xf0\xff\xf8\xff\xff\xff\x79\xa4\xf0\xff" "\x00\x00\x00\x00\xb7\x06\x00\x00\xff\xff\xff\xff\x2d\x64\x05\x00\x00\x00" "\x00\x00\x65\x06\x04\x00\x01\x00\x00\x05\x04\x04\x00\x00\x01\x00\x7d\x60" "\xb7\x03\x00\x00\x00\x00\x00\x00\x6a\x0a\x00\xfe\x00\x00\x00\x00\x85\x00" "\x00\x00\x2b\x00\x00\x00\xb7\x00\x00\x00\x00\x00\x00\x00\x95\x00\x00\x00" "\x00\x00\x00\x00\x49\x6c\xf2\x7f\xb6\xd2\xc6\x43\xdb\x7e\x2d\x5f\xb4\xb0" "\x93\x6c\xdf\x82\x7f\xb4\x3a\x43\x1c\xa7\x11\xfc\xd0\xcd\xfa\x14\x6e\xd3" "\xd0\x9a\x61\x75\x03\x79\x58\xe2\x71\x06\xe2\x25\xb7\x93\x7f\x02\x00\x8b" "\x5e\x5a\x07\x6d\x83\x92\x3d\xd2\x9c\x03\x40\x55\xb6\x7d\xaf\xe6\xc8\xdc" "\x52\x5d\x78\xc0\x7f\x17\xe4\xd5\xb3\x18\x5b\x31\x0e\xfc\xfa\x89\x14\x7a" "\x09\x00\x00\x00\xf1\x10\x02\x6e\x6d\x2e\xf8\x31\xab\x7e\xa0\xc3\x4f\x17" "\xe3\xad\x6e\xec\xbb\x62\x20\x03\xb5\x34\xdf\xd8\xe0\x12\xe7\x95\x78\xe5" "\x1b\xc5\x30\x99\xe9\x0f\x45\x80\xd7\x60\x55\x1b\x5b\x0a\x34\x1a\x2d\x7c" "\xbd\xb9\xcd\x38\xbd\xb2\xca\x8e\x05\x00\x00\x00\x3a\x14\x81\x7a\xc6\x1e" "\x4d\xd1\x11\x83\xa1\x34\x77\xbf\x7e\x06\x0e\x36\x70\xef\x0e\x78\x9f\x65" "\xf1\x32\x8d\x67\x04\x90\x2c\xbe\x7b\xc0\x4b\x82\xd2\x78\x9c\xb1\x32\xb8" "\x66\x7c\x21\x47\x33\xa1\x8c\x8b\x66\x19\xf2\x8d\x99\x61\xb6\xfb\xce\x3f" "\x89\x72\x26\xc5\x7c\x26\x91\x20\x81\x73\x65\x6d\x60\xa1\x7e\x3c\x18\x4b" "\x75\x1c\x51\x16\x0f\xbc\xbb\xdb\x5b\x1e\x7b\xe6\x14\x8b\xa5\x32\xe6\x0a" "\x0a\xc3\x46\xdf\xeb\xd3\x1a\x08\x06\x00\x00\x00\x02\x00\x00\x00\x00\x00" "\x00\x00\x48\xf9\x41\xb1\x3d\x92\x4b\xcf\x33\x4d\x83\x23\x9d\xd2\x70\x80" "\xe7\x11\x13\x61\x0e\x10\xd8\x58\xe8\x32\x7e\xf0\x1f\xb6\xc8\x6a\xca\xc1" "\x22\x33\xf9\xa1\xfb\x9c\x2a\xec\x61\xce\x63\xa3\x8d\x2f\xd5\x01\x17\xb8" "\x9a\x9a\xb3\x59\xb4\xee\xa0\xc6\xe9\x57\xbc\x73\xdd\xc4\xea\xbb\xa0\x8a" "\xb1\xe1\xad\x82\x82\x67\xd4\xea\xdd\x39\x64\x66\x3e\x88\x53\x5c\x06\x3f" "\x71\x30\x85\x6f\x75\x64\x36\x30\x37\x67\xd2\xe2\x4f\x29\xe5\xda\xd9\x79" "\x6e\xdb\x69\x7a\x6e\xa1\x18\x2b\xab\xc1\x90\xae\x2e\xbf\x8a\xad\x34\x73" "\x21\x81\xfe\xb2\x15\x13\x9f\x15\xea\x7e\x8c\xb0\xba\xe7\xc3\x4d\x5a\xc5" "\xe7\xc8\x05\x21\x06\x00\x00\x00\x00\x00\x00\x00\xc3\xde\xc0\x4b\x25\xdf" "\xc1\x79\x75\x23\x83\x45\xd4\xf7\x1a\xb1\x58\xc3\x66\x57\xb7\x21\x8b\xaa" "\x07\x00\xf7\x81\xc0\xa9\x9b\xd5\x04\x99\xcc\xc4\x21\xac\xe5\xe8\x45\x88" "\x5e\xfb\x5b\x99\x64\xe4\xbe\xba\x3d\xa8\x22\x3f\xe5\x30\x8e\x4e\x65\xee" "\x93\xe1\x07\x00\x00\x00\xf8\xdd\xeb\xf7\x01\x32\xa4\xd0\x17\x5b\x98\x9b" "\x8e\xcc\xf7\x07\x88\x20\x42\xe7\x16\xdf\x9b\x57\xb2\x90\xc6\x61\xd4\xe8" "\x50\x31\x08\x61\x97\xbc\xc5\xcb\x0e\x22\x1a\x0c\x34\x32\x3c\x12\x91\x02" "\xb6\xff\x01\x00\x00\x2e\x88\xa1\x94\x0b\x3c\x02\xed\x9c\x92\xd6\xf6\x4b" "\x12\x82\xdc\x51\xbb\x00\x15\x98\x27\x30\x71\x1c\x59\x9e\x1c\x72\xff\xa1" "\x1e\xd8\xbe\x1a\x68\x30\xd7\x50\x70\x05\x15\x4c\x46\xbd\x3c\xa9\x63\x18" "\xc5\x70\xd3\x38\xf0\x72\x1f\xc7\xaa\x2a\x58\x36\xba\x99\xfe\x1f\x86\x46" "\x86\x94\xf2\x2c\xdf\x55\x0e\xf0\x91\xa7\x80\x98\x53\x4f\x0d\x97\x30\x59" "\x59\x41\x19\xd0\x6d\x5e\xa9\xa8\xd0\x85\x73\x82\xec\x6e\x2a\x07\x14\x74" "\xcf\xc1\x23\x46\xe4\x7a\xd9\x7f\x4e\xad\x7c\xf7\x0a\x9d\x1c\xda\xc9\x44" "\x77\x9d\xc0\x8a\x70\x54\x14\x88\x87\x00\xa3\x0e\x23\x66\xc6\xa0\x6b\x33" "\x67\xa3\x89\xca\x39\x05\x97\x87\x79\x00\x17\xb0\x68\x9a\x41\x1f\x45\x0f" "\x17\x3d\xb9\xc2\x4d\xb6\x5c\x1e\x00\x01\x5c\x1d\x09\x3d\xab\x18\xfd\x06" "\x99\xfe\x33\x04\x00\x00\x00\x32\x3e\x9c\x70\x80\x39\x7b\xc4\x9d\x70\xc0" "\x60\xd5\x7b\xc8\x8f\xbe\x3b\xba\xa0\x58\xb0\x40\x36\x2a\xb9\x26\x15\x03" "\x63\xfb\x09\x94\x08\x88\x5a\xfc\x2b\xf9\xa4\x6a\x07\x6b\x7b\xab\xfc\xdd" "\xef\xf8\xc3\x50\x30\x66\x9e\xa6\x9f\x5e\x4b\xe1\xb8\xe0\xd6\x69\x7e\x97" "\x18\x6f\x9a\xe9\x7d\x56\x70\xdb\xa6\x62\x32\x79\xf7\x3d\xb9\xde\xc7\x50" "\x70\xcd\x9a\xb0\xfd\xa6\xb0\x69\xef\x6d\x28\x57\xca\x3e\x4e\xff\xcf\x74" "\x62\x71\x0d\x13\x3d\x54\x1d\xa8\x6e\x04\x77\xe4\xa6\xcc\x99\x9d\xc2\x1c" "\x3e\xf4\x08\xe6\xb1\x78\xe7\xc9\xf2\x74\xd7\xfa\xfc\x8d\x75\x7d\x33\xdf" "\xa3\x5a\xa2\x00\x00\x34\x83\x7d\x36\x5e\x63\x84\x5f\x3c\x10\x92\xf8\xdd" "\xe8\xaf\x39\x04\xea\x0f\x4b\x82\x64\x9b\x83\xed\x4f\xa0\xf8\x73\x33\x9c" "\x4c\xad\xec\xc1\x32\x19\xba\x75\x18\xaa\x4f\x7d\xb3\x4e\xad\x13\x48\x47" "\x42\x06\x7a\xb7\x43\xc1\xd8\x2a\x56\x87\xf2\xed\x69\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x99" "\xd4\xfa\x00\x00\x00\x00\x00\x00\x3f\x0e\xcd\xc7\xc8\x2e\x72\x91\x9c\x91" "\xd2\x03\x9a\xfe\x17\xe9\x5e\xde\xee\xba\x72\x20\x5b\xef\xf7\x77\x1b\xcb" "\x29\x37\x47\xb8\x84\x86\xca\xce\xe4\x03\x00\x00\x00\xa2\x91\x9a\x4b\xff" "\x2e\xd8\x93\xf2\xc8\x14\x67\x9f\xa6\x9f\xc7\xe0\xcf\x76\x1f\x91\x87\x25" "\x70\x4a\x01\xc5\x60\x09\xa9\xf7\x48\xe5\xaa\xf3\x0a\x10\xbd\x8c\x40\x9b" "\x18\x70\xc1\xf7\x5e\xe9\x05\x00\x00\x00\xd3\xf8\xe0\x04\x8e\x55\xae\x28" "\x9c\xe2\xad\x77\x9c\xe7\x1d\x4d\xc3\x0c\xbb\x2c\xc4\x28\x9d\x2f\x88\x4d" "\x66\xcd\xdc\x76\xeb\x7f\x60\x11\x10\xff\x39\x05\x3c\x26\x22\x79\xf4\xef" "\x00\xfb\xdb\x8c\x32\x86\x15\xa9\xec\x84\xf2\x7a\x9f\x39\x38\xae\x73\x61" "\x38\xb8\xc1\xec\x22\x0c\x15\x40\xbf\x3d\x16\x2d\xc1\xc2\x7f\xa3\x0f\x0d" "\xc6\x0b\x9f\x25\x7d\xb5\xd1\xc7\xed\x2e\x15\x2c\xb2\xcf\x06\xf8\xed\xb3" "\x01\x77\xfe\xad\x73\x5a\x95\x2f\xfc\xe6\x76\xa9\x31\x10\x90\x4d\x5e\xe2" "\xab\xda\xb2\xef\x3f\xf8\x4c\x4d\x61\x44\x3f\x73\x55\x21\x95\xc7\xcc\xfb" "\xf9\xf0\x3c\x44\x43\x2e\xaa\x3b\x75\x01\xd4\x23\x93\x54\xda\x8d\xe2\x1e" "\xad\xa7\x5d\x3a\x3a\xfb\x2c\x76\xff\x07\x00\x00\x79\x81\x69\x9b\x6c\x0f" "\x0e\x94\x67\x66\xf5\x75\x44\xff\x52\xce\xf0\xdd\x81\x1b\xec\x4e\x3c\x0a" "\x30\xf2\xd7\xd1\x9d\x26\xd2\x50\x3a\x3e\xa3\x76\x72\x1b\x8e\xde\xd3\xbc" "\x47\x59\x58\xdd\x49\x8e\xe2\xb2\xd6\x14\x6e\x33\xfc\x0d\xe1\xdc\x2e\x05" "\x16\xac\x56\x5d\xdb\x1d\x4a\xe8\x9e\x67\x12\x82\x4a\x85\xeb\x9e\xe0\xa3" "\xb6\x8c\x9e\x20\x97\x56\x62\x3a\xdf\x68\x5d\xd7\x15\xd6\x8e\xd1\x1e\x4b" "\x4d\x55\x02\xf5\x12\x49\x48\xf8\xf9\x8c\x61\x5c\xac\x36\x66\xc5\x8f\x78" "\x5c\x3f\x75\x8b\xe3\x52\xa7\x18\x71\xd5\xc0\x81\x19\x7d\x37\x98\x0e\x4f" "\x4e\x26\xb5\x47\x6f\xb2\x04\x07\xff\x70\x98\xb7\x17\x4b\xef\x66\x02\x00" "\xa9\x9b\x5c\x0c\x20\xb3\x78\x06\x5f\xac\x4e\xf9\xac\x2d\x00\x00\x00\x60" "\xe5\xd3\xf1\x74\x9f\xea\xec\xf6\x9b\xa8\x3a\x71\xca\xa9\xbd\xdd\xc6\x79" "\xf1\xb8\x26\xf5\x4b\x65\x63\xa4\xbe\x1f\xd8\x2b\x73\xc8\xc2\xbc\x65\xf6" "\x39\x82\xb9\x51\xfb\x05\x8f\xd3\xc7\xb6\x34\x1c\x45\x80\x37\x6b\x6c\x16" "\xbd\x94\xd2\xda\x66\x05\x9d\xe8\x1a\xbf\xa1\x5e\xee\xb8\x8b\x6a\xe5\x88" "\x2a\xd3\x41\x03\x2c\x73\xf1\x28\x5e\x21\xff\xf5\xa1\xd1\x38\xe0\x61\xb1" "\xdc\x7b\xbd\xa1\x99\xb5\xfa\xb8\xe0\x71\x9e\x9c\xd6\x9b\x47\xdc\xb5\x2b" "\x0b\xe6\xa3\xa7\x3a\xfd\xf3\x28\x13\x2e\x1d\x4f\x21\x06\x57\x16\xbe\x0c" "\x53\xa2\x39\x40\xd0\x71\x88\xb0\x15\xfa\x34\x1d\xbc\x92\x23\x1c\x8b\x5e" "\x57\x17\xea\xc1\x84\xf4\x6c\x9f\x61\xb6\x9f\x55\xcd\x22\x31\xbc\xf8\x21" "\x05\x24\x29\xa1\xf2\x50\xe8\xb7\x34\xbe\x06\x05\xa1\x5f\x25\x92\x3d\x59" "\x95\x44\xb3\x19\x31\x9f\xf0\xa3\x26\x21\x01\x93\x47\xdf\x46\x0a\x09\x81" "\x19\xa6\xf4\x7e\xb1\xba\xc4\x79\x46\xd7\xa0\x09\xcb\xc6\xec\x74\xc1\x9a" "\x93\xcc\x7c\x71\x38\xb2\x8c\x95\x27\x01\x16\x18\x1f\xd5\xf5\x53\x57\x3c" "\x48\x10\x4d\x2a\xd0\xe1\x0d\x36\x63\x48\x8e\x66\x44\x01\x45\x3f\x22\xf0" "\xd7\x6d\x21\x62\x63\x53\x65\x25\x8a\xf6\x1a\xe1\xf4\x6f\x4a\x78\x62\xf3" "\x02\xd9\x1e\x3f\x7c\x27\x81\xf6\x02\x22\x05\x22\xe8\x46\x02\xa9\x39\xa8" "\xd5\xe4\x13\x7a\xe3\x1c\xcd\x39\x74\x04\xdc\x72\xe0\x67\x15\xa6\x50\x3d" "\x4d\x86\x51\x82\x80\x3e\xe6\x72\x5d\xa7\x29\x3b\x23\xda\xee\xbe\xfd\x6f" "\xce\x74\x11\xc9\x62\x4a\x7e\x8d\x5b\xa5\xa1\x3e\x1c\x32\xad\xc4\xf3\x27" "\x44\x97\xc6\x88\x2a\x72\x47\x5e\x42\x80\xa4\xd9\xa4\x7c\x00\x3c\x6e\xd3" "\x07\x13\x30\xc5\x81\x45\xbe\x49\x8c\xa2\xb4\x24\x96\xc4\x79\xa0\xa7\x1e" "\x2f\x6f\x9b\xad\x8c\x84\xbc\x6b\xe2\x02\x81\xbd\xe0\xb3\x48\xcd\x2c\x60" "\x53\x8a\x50\x5a\xd4\xa0\x51\x0e\xeb\xb0\x23\xe4\x95\x4c\x9e\xb6\xcd\x70" "\x62\x7f\x5c\x03\xd8\x67\xdb\xf3\xad\x5d\x1f\x1d\xc8\x52\x06\x4d\xd0\xef" "\xaf\xc3\xdf\x20\xed\x65\xaf\x3d\x19\x4d\xb7\x61\x27\xf8\x8f\x28\x4f\xa1" "\xb7\x1a\xb9\x64\xfd\xd2\x47\x44\x71\xda\x76\x37\x3e\x65\xe9\xa8\xbf\x84" "\x4b\xdf\xdd\x34\x8b\xc7\xd0\x0c\x4c\x7e\x7a\xfe\x8a\x1f\x8c\xde\x79\xb7" "\xa6\xc5\xaa\xfe\x95\x4b\x8b\xa3\x78\x18\xe4\x0c\x14\xb3\x7c\x23\xf9\xf6" "\x14\x57\x6b\x68\x94\x36\xfe\xf2\xf2\x7f\x8b\x1e\x75\x6e\x00\x26\x2e\x22" "\xbc\xa4\x9c\x43\xfd\x73\xe7\xe9\x9b\x2f\xa4\x4a\x8c\x1d\xb9\x9c\x2c\xf2" "\x73\x5a\xd6\xc5\xfa\xbf\x08\x2e\x0d\xf0\xf8\xba\x7e\x24\x27\x21\x65\xf2" "\xf5\xb2\x82\x30\xc0\x2b\x53\xd4\x4b\xd8\x4b\xf6\x77\x01\x57\xe9\x6b\xbb" "\x96\xb5\xe1\xf1\x65\xc8\x7e\x7a\xd6\x8a\x36\x00\xb3\xd3\x57\xfa\x9a\x7d" "\x53\xc2\x81\xd8\x8e\xbb\x17\x5a\x4d\xbb\x82\x13\x0e\x68\x70\x98\x29\x47" "\x91\x31\x10\xf0\x91\xd2\x17\x60\xd9\x85\xaf\xd3\x16\x3f\x2e\x68\x80\x68" "\x24\x32\xf9\xb3\xb9\x7d\x57\xa9\xf9\x80\xed\xfa\x11\x16\xa3\xd0\x4d\x58" "\x87\x2a\x07\xd6\xa7\xe1\x2d\xb6\x73\xac\xd2\xf7\xb8\x98\x8d\x83\x3e\x71" "\x94\x3f\xe2\xc1\xc6\x5a\x3c\xf3\x6b\x95\x5c\x56\xb5\x5b\xfd\x3e\xcf\x0a" "\xf6\x94\xc7\x1a\x03\xf2\x99\x6c\x15\xb1\xba\x97\x1d\xe1\xcb\x9c\x7e\x6a" "\x00\x00\x00\x00\x00\x00\x00\x14\x78\x3e\xf5\x4c\x51\x19\x93\x17\x41\x3f" "\x98\xdc\xa8\xff\x3d\x0b\xda\x50\xf6\xc0\xaf\x58\xdb\xd6\xc0\x31\xb1\xa5" "\xa7\x51\x2c\x58\x96\x51\x4a\xdf\xa1\x7d\x31\x42\x9c\x68\xdb\x50\xa9\x3d" "\x88\x19\x9d\xef\xd3\xb4\x62\x5f\xea\x42\x6f\xf9\x29\x3a\x28\xa5\x44\xa6" "\xa9\xe2\xa7\x9b\x55\xda\xa1\xb3\xc6\xb1\x4c\x4e\xc6\xd1\x64\xe9\x02\xce" "\x49\x13\x84\x3d\x65\xd8\x41\x97\x34\x68\x72\x9e\xa1\x2b\xf6\xd3\x49\x90" "\x36\xdb\xb6\x67\x18\xf3\x49\x78\x55\xc3\xba\xa6\xcc\x07\xc0\xfa\x38\x8e" "\xc9\xdf\x06\x17\xc1\xa2\x8e\xf5\xa5\x95\xee\x26\x7a\x76\x17\x5b\x8a\x05" "\x7e\x6e\xfa\xf4\xfe\xfe\x46\xde\xf4\x51\xf2\x85\x8f\xe7\x1a\x53\xe7\x7b" "\x1a\x44\xe9\x88\x43\xbb\x3a\x40\x10\x2d\xa3\x70\x3d\xfb\x9f\x61\xbd\xce" "\xa2\xfb\x81\x0b\x32\xd5\x2e\x21\x57\xa1\x50\xa6\x3e\xa6\x13\x5d\x1c\xf6" "\xf8\x64\xc2\xe6\x88\x84\xd7\x24\x5b\xc5\xd6\x1d\xc5\xa1\x14\xd1\x0f\xfb" "\x22\xe7\x66\x78\xbb\xfc\x1e\x38\x65\xd1\x7d\x12\x83\x06\xd1\xb8\x18\x84" "\xa9\x34\xcb\x00\x00\x00\x00\x00\x00\x00\x00\x00\x98\xa4\x52\x6e\x64\x68" "\x98\x7d\xbc\x63\xbf\xf7\x59\x0e\xb3\x88\xaf\xab\xa4\x3d\x81\x19\x96\x33" "\x3e\xef\x7e\x9f\x47\x2b\xee\x29\x3f\x0c\x40\xd4\x34\xb8\xbe\x07\xcb\xd5" "\x23\x25\x29\x6e\x22\x80\x24\x93\xed\xb5\xc5\x90\xad\x20\x8b\xac\x68\x3a" "\x8b\x2d\x4c\x9d\x2d\x57\xff\x84\x6a\xe8\xc4\x22\xe0\xb2\x85\x46\x67\x1f" "\x11\xd8\x15\x7b\xb7\x62\xc9\x1f\x3f\xbc\xca\x8e\x21\x58\x9c\x92\x44\x6a" "\xe6\x5d\x40\x8c\x06\x37\xff\xcc\x2d\x44\xd7\x15\xce\x00\x3d\xd1\xe1\x2b" "\x08\x5e\x18\x6d\x06\x9a\x55\xc2\xe9\x6e\xfb\xe5\x02\x4d\x61\xa5\x6a\x36" "\xd9\x88\xc0\xf5\x1a\x97\x3a\x6c\x23\x8e\x54\x5b\x28\x21\x1a\x92\x00\x00" "\x00\x00\x15\x01\xae\xd8\xd7\x2a\xf0\xfc\xd5\x40\xa9\xd4\xe2\x93\x69\x0c" "\x5e\x69\x7b\x3a\x14\x80\xe4\x6d\xf5\x37\x1b\xca\x1c\xfb\x28\xa5\x7c\x1b" "\x3c\x95\x6e\xc8\x13\x97\xe8\x1f\xbf\x87\x0a\x67\x38\x5f\xea\x04\x22\x04" "\x23\xf5\x2a\xd8\x17\x8b\x9f\xd0\x4b\xdc\x7e\x5f\xee\x4b\xd5\x2d\xb9\x96" "\xe6\x33\x79\x21\x18\xef\xdb\x6b\x88\x02\x3e\x80\xda\x74\xfd\xf7\x23\xc7" "\xf0\xb2\xe9\xf3\xbb\x90\x61\x35\x08\xc0\x0a\x29\x2a\x0c\x5b\x87\xa4\xf8" "\xff\x35\xeb\xa7\x3c\xe9\xeb\xf7\x7d\x0c\x84\x20\x63\xa7\xb4\x2c\x75\x7d" "\x82\x86\x78\xd3\x8e\x6a\x86\x8e\xae\xad\x4f\x19\xcd\xeb\x7c\xfc\x10\x0c" "\xea\xbb\x4a\x39\x99\xcc\xe5\xd3\x6e\xcf\xe8\x0d\xef\x20\xf7\x18\x7b\xab" "\x75\x51\x52\x26\xf4\xd9\xb3\x0e\x05\x67\x61\x22\x10\xd4\x92\x46\x87\x81" "\x99\x9c\xe7\x95\x52\x2b\x72\x6b\xdf\x37\xb1\x5e\x9a\xfd\xe3\x2a\x70\x52" "\xcc\x90\x9e\xfe\x6a\xe7\x80\x4e\x50\x44\xf9\xf7\xae\x2d\x8c\xb0\x8c\xca" "\x31\x2c\x55\x7b\xff\x04\xcf\x1f\xbb\x0d\xcf\xe8\xac\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00", 2832); *(uint64_t*)0x200000000210 = 0x200000000340; memcpy((void*)0x200000000340, "syzkaller\000", 10); *(uint32_t*)0x200000000218 = 0; *(uint32_t*)0x20000000021c = 0; *(uint64_t*)0x200000000220 = 0; *(uint32_t*)0x200000000228 = 0; *(uint32_t*)0x20000000022c = 0; memset((void*)0x200000000230, 0, 16); *(uint32_t*)0x200000000240 = 0; *(uint32_t*)0x200000000244 = 0; *(uint32_t*)0x200000000248 = -1; *(uint32_t*)0x20000000024c = 8; *(uint64_t*)0x200000000250 = 0x200000000000; *(uint32_t*)0x200000000000 = 0; *(uint32_t*)0x200000000004 = 0; *(uint32_t*)0x200000000258 = 0; *(uint32_t*)0x20000000025c = 0x10; *(uint64_t*)0x200000000260 = 0x200000000000; *(uint32_t*)0x200000000000 = 0; *(uint32_t*)0x200000000004 = 0; *(uint32_t*)0x200000000008 = 0; *(uint32_t*)0x20000000000c = 0; *(uint32_t*)0x200000000268 = 0xffffff4f; *(uint32_t*)0x20000000026c = 0; *(uint32_t*)0x200000000270 = -1; *(uint32_t*)0x200000000274 = 0; *(uint64_t*)0x200000000278 = 0; *(uint64_t*)0x200000000280 = 0; *(uint32_t*)0x200000000288 = 0x10; *(uint32_t*)0x20000000028c = 0; *(uint32_t*)0x200000000290 = 0; syscall(__NR_bpf, /*cmd=*/5ul, /*arg=*/0x200000000200ul, /*size=*/0x48ul); // bpf$BPF_PROG_TEST_RUN arguments: [ // cmd: const = 0xa (8 bytes) // arg: nil // size: len = 0x0 (8 bytes) // ] syscall(__NR_bpf, /*cmd=*/0xaul, /*arg=*/0ul, /*size=*/0ul); // close arguments: [ // fd: fd (resource) // ] syscall(__NR_close, /*fd=*/(intptr_t)-1); // perf_event_open arguments: [ // attr: ptr[in, perf_event_attr] { // perf_event_attr { // type: perf_event_type = 0x2 (4 bytes) // size: len = 0x80 (4 bytes) // config0: int8 = 0x1d (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 = 0x4 (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 = 0x4000001 (4 bytes) // bp_type: perf_bp_type = 0x1 (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 = 0x8061 (8 bytes) // sample_regs_user: int64 = 0x3 (8 bytes) // sample_stack_user: int32 = 0x0 (4 bytes) // clockid: clock_type = 0x0 (4 bytes) // sample_regs_intr: int64 = 0x0 (8 bytes) // aux_watermark: int32 = 0x200 (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) // } // } // pid: pid (resource) // cpu: intptr = 0x0 (8 bytes) // group: fd_perf (resource) // flags: perf_flags = 0x0 (8 bytes) // ] // returns fd_perf *(uint32_t*)0x200000000140 = 2; *(uint32_t*)0x200000000144 = 0x80; *(uint8_t*)0x200000000148 = 0x1d; *(uint8_t*)0x200000000149 = 1; *(uint8_t*)0x20000000014a = 0; *(uint8_t*)0x20000000014b = 0; *(uint32_t*)0x20000000014c = 0; *(uint64_t*)0x200000000150 = 0; *(uint64_t*)0x200000000158 = 0; *(uint64_t*)0x200000000160 = 4; STORE_BY_BITMASK(uint64_t, , 0x200000000168, 0, 0, 1); STORE_BY_BITMASK(uint64_t, , 0x200000000168, 0, 1, 1); STORE_BY_BITMASK(uint64_t, , 0x200000000168, 0, 2, 1); STORE_BY_BITMASK(uint64_t, , 0x200000000168, 0, 3, 1); STORE_BY_BITMASK(uint64_t, , 0x200000000168, 0, 4, 1); STORE_BY_BITMASK(uint64_t, , 0x200000000168, 0, 5, 1); STORE_BY_BITMASK(uint64_t, , 0x200000000168, 0, 6, 1); STORE_BY_BITMASK(uint64_t, , 0x200000000168, 0, 7, 1); STORE_BY_BITMASK(uint64_t, , 0x200000000168, 0, 8, 1); STORE_BY_BITMASK(uint64_t, , 0x200000000168, 0, 9, 1); STORE_BY_BITMASK(uint64_t, , 0x200000000168, 0, 10, 1); STORE_BY_BITMASK(uint64_t, , 0x200000000168, 0, 11, 1); STORE_BY_BITMASK(uint64_t, , 0x200000000168, 0, 12, 1); STORE_BY_BITMASK(uint64_t, , 0x200000000168, 0, 13, 1); STORE_BY_BITMASK(uint64_t, , 0x200000000168, 0, 14, 1); STORE_BY_BITMASK(uint64_t, , 0x200000000168, 0, 15, 2); STORE_BY_BITMASK(uint64_t, , 0x200000000168, 0, 17, 1); STORE_BY_BITMASK(uint64_t, , 0x200000000168, 0, 18, 1); STORE_BY_BITMASK(uint64_t, , 0x200000000168, 0, 19, 1); STORE_BY_BITMASK(uint64_t, , 0x200000000168, 0, 20, 1); STORE_BY_BITMASK(uint64_t, , 0x200000000168, 0, 21, 1); STORE_BY_BITMASK(uint64_t, , 0x200000000168, 0, 22, 1); STORE_BY_BITMASK(uint64_t, , 0x200000000168, 0, 23, 1); STORE_BY_BITMASK(uint64_t, , 0x200000000168, 0, 24, 1); STORE_BY_BITMASK(uint64_t, , 0x200000000168, 0, 25, 1); STORE_BY_BITMASK(uint64_t, , 0x200000000168, 0, 26, 1); STORE_BY_BITMASK(uint64_t, , 0x200000000168, 0, 27, 1); STORE_BY_BITMASK(uint64_t, , 0x200000000168, 0, 28, 1); STORE_BY_BITMASK(uint64_t, , 0x200000000168, 0, 29, 1); STORE_BY_BITMASK(uint64_t, , 0x200000000168, 0, 30, 1); STORE_BY_BITMASK(uint64_t, , 0x200000000168, 0, 31, 1); STORE_BY_BITMASK(uint64_t, , 0x200000000168, 0, 32, 1); STORE_BY_BITMASK(uint64_t, , 0x200000000168, 0, 33, 1); STORE_BY_BITMASK(uint64_t, , 0x200000000168, 0, 34, 1); STORE_BY_BITMASK(uint64_t, , 0x200000000168, 0, 35, 1); STORE_BY_BITMASK(uint64_t, , 0x200000000168, 0, 36, 1); STORE_BY_BITMASK(uint64_t, , 0x200000000168, 0, 37, 1); STORE_BY_BITMASK(uint64_t, , 0x200000000168, 0, 38, 26); *(uint32_t*)0x200000000170 = 0x4000001; *(uint32_t*)0x200000000174 = 1; *(uint64_t*)0x200000000178 = 0; *(uint64_t*)0x200000000180 = 0; *(uint64_t*)0x200000000188 = 0x8061; *(uint64_t*)0x200000000190 = 3; *(uint32_t*)0x200000000198 = 0; *(uint32_t*)0x20000000019c = 0; *(uint64_t*)0x2000000001a0 = 0; *(uint32_t*)0x2000000001a8 = 0x200; *(uint16_t*)0x2000000001ac = 0; *(uint16_t*)0x2000000001ae = 0; *(uint32_t*)0x2000000001b0 = 0; *(uint32_t*)0x2000000001b4 = 0; *(uint64_t*)0x2000000001b8 = 0; syscall(__NR_perf_event_open, /*attr=*/0x200000000140ul, /*pid=*/0, /*cpu=*/0ul, /*group=*/(intptr_t)-1, /*flags=*/0ul); // setsockopt$sock_attach_bpf arguments: [ // fd: sock (resource) // level: const = 0x107 (4 bytes) // optname: const = 0x12 (4 bytes) // optval: nil // optlen: len = 0x0 (8 bytes) // ] syscall(__NR_setsockopt, /*fd=*/(intptr_t)-1, /*level=*/0x107, /*optname=*/0x12, /*optval=*/0ul, /*optlen=*/0ul); // sendmsg$inet arguments: [ // fd: sock (resource) // msg: nil // f: send_flags = 0x0 (8 bytes) // ] syscall(__NR_sendmsg, /*fd=*/(intptr_t)-1, /*msg=*/0ul, /*f=*/0ul); // sendmsg$inet arguments: [ // fd: sock (resource) // msg: nil // f: send_flags = 0x0 (8 bytes) // ] syscall(__NR_sendmsg, /*fd=*/(intptr_t)-1, /*msg=*/0ul, /*f=*/0ul); // close arguments: [ // fd: fd (resource) // ] syscall(__NR_close, /*fd=*/(intptr_t)-1); // perf_event_open arguments: [ // attr: nil // pid: pid (resource) // cpu: intptr = 0xffffffffffffffff (8 bytes) // group: fd_perf (resource) // flags: perf_flags = 0x0 (8 bytes) // ] // returns fd_perf syscall(__NR_perf_event_open, /*attr=*/0ul, /*pid=*/0, /*cpu=*/(intptr_t)-1, /*group=*/(intptr_t)-1, /*flags=*/0ul); // bpf$BPF_PROG_RAW_TRACEPOINT_LOAD arguments: [ // cmd: const = 0x5 (8 bytes) // arg: ptr[in, bpf_prog_t[flags[bpf_raw_tracepoint_prog_types, int32], // const[0, int32], const[0, int32], const[0, int32]]] { // bpf_prog_t[flags[bpf_raw_tracepoint_prog_types, int32], const[0, // int32], const[0, int32], const[0, int32]] { // type: bpf_raw_tracepoint_prog_types = 0x5 (4 bytes) // ninsn: bytesize8 = 0x3 (4 bytes) // insns: ptr[inout, array[ANYUNION]] { // array[ANYUNION] { // union ANYUNION { // ANYBLOB: buffer: {18 00 00 00 00 00 12 00 00 00 00 00 00 00 00 // 00 95} (length 0x11) // } // } // } // license: ptr[in, buffer] { // buffer: {47 50 4c 00} (length 0x4) // } // loglev: int32 = 0x0 (4 bytes) // logsize: len = 0x0 (4 bytes) // log: nil // 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: // const = 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: const = 0x0 (4 bytes) // attach_prog_fd: const = 0x0 (4 bytes) // 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_raw_tracepoint_prog_types, int32], const[0, // int32], const[0, int32], const[0, int32]]_prog_token_fd_wrapper { // void: buffer: {} (length 0x0) // } // pad: union _bpf_prog_t[flags[bpf_raw_tracepoint_prog_types, int32], // const[0, int32], const[0, int32], const[0, int32]]_pad_wrapper { // value: const = 0x0 (4 bytes) // } // } // } // size: len = 0x90 (8 bytes) // ] // returns fd_bpf_prog_raw_tracepoint *(uint32_t*)0x200000000780 = 5; *(uint32_t*)0x200000000784 = 3; *(uint64_t*)0x200000000788 = 0x200000000500; memcpy((void*)0x200000000500, "\x18\x00\x00\x00\x00\x00\x12\x00\x00\x00\x00\x00\x00\x00\x00\x00\x95", 17); *(uint64_t*)0x200000000790 = 0x200000000c00; memcpy((void*)0x200000000c00, "GPL\000", 4); *(uint32_t*)0x200000000798 = 0; *(uint32_t*)0x20000000079c = 0; *(uint64_t*)0x2000000007a0 = 0; *(uint32_t*)0x2000000007a8 = 0; *(uint32_t*)0x2000000007ac = 0; memset((void*)0x2000000007b0, 0, 16); *(uint32_t*)0x2000000007c0 = 0; *(uint32_t*)0x2000000007c4 = 0; *(uint32_t*)0x2000000007c8 = -1; *(uint32_t*)0x2000000007cc = 8; *(uint64_t*)0x2000000007d0 = 0; *(uint32_t*)0x2000000007d8 = 0; *(uint32_t*)0x2000000007dc = 0x10; *(uint64_t*)0x2000000007e0 = 0; *(uint32_t*)0x2000000007e8 = 0; *(uint32_t*)0x2000000007ec = 0; *(uint32_t*)0x2000000007f0 = 0; *(uint32_t*)0x2000000007f4 = 0; *(uint64_t*)0x2000000007f8 = 0; *(uint64_t*)0x200000000800 = 0; *(uint32_t*)0x200000000808 = 0x10; *(uint32_t*)0x20000000080c = 0; *(uint32_t*)0x200000000810 = 0; res = syscall(__NR_bpf, /*cmd=*/5ul, /*arg=*/0x200000000780ul, /*size=*/0x90ul); if (res != -1) r[0] = res; // bpf$BPF_PROG_TEST_RUN arguments: [ // cmd: const = 0x1c (8 bytes) // arg: ptr[in, bpf_test_prog_arg] { // bpf_test_prog_arg { // prog: fd_bpf_prog (resource) // retval: const = 0x4 (4 bytes) // insizedata: len = 0x29 (4 bytes) // outsizedata: len = 0x0 (4 bytes) // indata: nil // outdata: nil // repeat: int32 = 0x0 (4 bytes) // dur: const = 0x0 (4 bytes) // insizectx: len = 0x0 (4 bytes) // outsizectx: len = 0x0 (4 bytes) // inctx: nil // outctx: nil // flags: bpf_prog_test_run_flags = 0x0 (4 bytes) // cpu: const = 0x0 (4 bytes) // batch_size: int32 = 0x0 (4 bytes) // pad = 0x0 (4 bytes) // } // } // size: len = 0x50 (8 bytes) // ] *(uint32_t*)0x2000000002c0 = r[0]; *(uint32_t*)0x2000000002c4 = 4; *(uint32_t*)0x2000000002c8 = 0x29; *(uint32_t*)0x2000000002cc = 0; *(uint64_t*)0x2000000002d0 = 0; *(uint64_t*)0x2000000002d8 = 0; *(uint32_t*)0x2000000002e0 = 0; *(uint32_t*)0x2000000002e4 = 0; *(uint32_t*)0x2000000002e8 = 0; *(uint32_t*)0x2000000002ec = 0; *(uint64_t*)0x2000000002f0 = 0; *(uint64_t*)0x2000000002f8 = 0; *(uint32_t*)0x200000000300 = 0; *(uint32_t*)0x200000000304 = 0; *(uint32_t*)0x200000000308 = 0; syscall(__NR_bpf, /*cmd=*/0x1cul, /*arg=*/0x2000000002c0ul, /*size=*/0x50ul); // bpf$BPF_PROG_TEST_RUN arguments: [ // cmd: const = 0xa (8 bytes) // arg: nil // size: len = 0x0 (8 bytes) // ] syscall(__NR_bpf, /*cmd=*/0xaul, /*arg=*/0ul, /*size=*/0ul); // perf_event_open arguments: [ // attr: nil // pid: pid (resource) // cpu: intptr = 0x0 (8 bytes) // group: fd_perf (resource) // flags: perf_flags = 0x8 (8 bytes) // ] // returns fd_perf syscall(__NR_perf_event_open, /*attr=*/0ul, /*pid=*/0, /*cpu=*/0ul, /*group=*/(intptr_t)-1, /*flags=PERF_FLAG_FD_CLOEXEC*/ 8ul); } int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffffffff000ul, /*len=*/0x1000, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x200000000000ul, /*len=*/0x1000000, /*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=*/0x1000, /*prot=*/0ul, /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/(intptr_t)-1, /*offset=*/0ul); setup_sysctl(); const char* reason; (void)reason; for (procid = 0; procid < 5; procid++) { if (fork() == 0) { loop(); } } sleep(1000000); return 0; }