// https://syzkaller.appspot.com/bug?id=afbc066a93c69dab5cd28912bfea4e648bf61df2 // 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 #include #include #include #include #include #include #include #include #include #include #include #include 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; } struct nlmsg { char* pos; int nesting; struct nlattr* nested[8]; char buf[4096]; }; static void netlink_init(struct nlmsg* nlmsg, int typ, int flags, const void* data, int size) { memset(nlmsg, 0, sizeof(*nlmsg)); struct nlmsghdr* hdr = (struct nlmsghdr*)nlmsg->buf; hdr->nlmsg_type = typ; hdr->nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK | flags; memcpy(hdr + 1, data, size); nlmsg->pos = (char*)(hdr + 1) + NLMSG_ALIGN(size); } static void netlink_attr(struct nlmsg* nlmsg, int typ, const void* data, int size) { struct nlattr* attr = (struct nlattr*)nlmsg->pos; attr->nla_len = sizeof(*attr) + size; attr->nla_type = typ; if (size > 0) memcpy(attr + 1, data, size); nlmsg->pos += NLMSG_ALIGN(attr->nla_len); } static int netlink_send_ext(struct nlmsg* nlmsg, int sock, uint16_t reply_type, int* reply_len, bool dofail) { if (nlmsg->pos > nlmsg->buf + sizeof(nlmsg->buf) || nlmsg->nesting) exit(1); struct nlmsghdr* hdr = (struct nlmsghdr*)nlmsg->buf; hdr->nlmsg_len = nlmsg->pos - nlmsg->buf; struct sockaddr_nl addr; memset(&addr, 0, sizeof(addr)); addr.nl_family = AF_NETLINK; ssize_t n = sendto(sock, nlmsg->buf, hdr->nlmsg_len, 0, (struct sockaddr*)&addr, sizeof(addr)); if (n != (ssize_t)hdr->nlmsg_len) { if (dofail) exit(1); return -1; } n = recv(sock, nlmsg->buf, sizeof(nlmsg->buf), 0); if (reply_len) *reply_len = 0; if (n < 0) { if (dofail) exit(1); return -1; } if (n < (ssize_t)sizeof(struct nlmsghdr)) { errno = EINVAL; if (dofail) exit(1); return -1; } if (hdr->nlmsg_type == NLMSG_DONE) return 0; if (reply_len && hdr->nlmsg_type == reply_type) { *reply_len = n; return 0; } if (n < (ssize_t)(sizeof(struct nlmsghdr) + sizeof(struct nlmsgerr))) { errno = EINVAL; if (dofail) exit(1); return -1; } if (hdr->nlmsg_type != NLMSG_ERROR) { errno = EINVAL; if (dofail) exit(1); return -1; } errno = -((struct nlmsgerr*)(hdr + 1))->error; return -errno; } static int netlink_query_family_id(struct nlmsg* nlmsg, int sock, const char* family_name, bool dofail) { struct genlmsghdr genlhdr; memset(&genlhdr, 0, sizeof(genlhdr)); genlhdr.cmd = CTRL_CMD_GETFAMILY; netlink_init(nlmsg, GENL_ID_CTRL, 0, &genlhdr, sizeof(genlhdr)); netlink_attr(nlmsg, CTRL_ATTR_FAMILY_NAME, family_name, strnlen(family_name, GENL_NAMSIZ - 1) + 1); int n = 0; int err = netlink_send_ext(nlmsg, sock, GENL_ID_CTRL, &n, dofail); if (err < 0) { return -1; } uint16_t id = 0; struct nlattr* attr = (struct nlattr*)(nlmsg->buf + NLMSG_HDRLEN + NLMSG_ALIGN(sizeof(genlhdr))); for (; (char*)attr < nlmsg->buf + n; attr = (struct nlattr*)((char*)attr + NLMSG_ALIGN(attr->nla_len))) { if (attr->nla_type == CTRL_ATTR_FAMILY_ID) { id = *(uint16_t*)(attr + 1); break; } } if (!id) { errno = EINVAL; return -1; } recv(sock, nlmsg->buf, sizeof(nlmsg->buf), 0); return id; } static long syz_genetlink_get_family_id(volatile long name, volatile long sock_arg) { int fd = sock_arg; if (fd < 0) { fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC); if (fd == -1) { return -1; } } struct nlmsg nlmsg_tmp; int ret = netlink_query_family_id(&nlmsg_tmp, fd, (char*)name, false); if ((int)sock_arg < 0) close(fd); if (ret < 0) { return -1; } return ret; } 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 (;;) { if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid) break; sleep_ms(1); if (current_time_ms() - start < 5000) continue; kill_and_wait(pid, &status); break; } } } uint64_t r[3] = {0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff}; void execute_one(void) { intptr_t res = 0; *(uint64_t*)0x20000580 = 0; *(uint32_t*)0x20000588 = 0; *(uint64_t*)0x20000590 = 0x20000540; *(uint64_t*)0x20000540 = 0x20000280; *(uint32_t*)0x20000280 = 0x2ac; *(uint16_t*)0x20000284 = 0x24; *(uint16_t*)0x20000286 = 0x400; *(uint32_t*)0x20000288 = 0x70bd27; *(uint32_t*)0x2000028c = 0x25dfdbff; *(uint8_t*)0x20000290 = 0; *(uint8_t*)0x20000291 = 0; *(uint16_t*)0x20000292 = 0; *(uint32_t*)0x20000294 = 0; *(uint16_t*)0x20000298 = 3; *(uint16_t*)0x2000029a = 0xcfc6; *(uint16_t*)0x2000029c = 0xa; *(uint16_t*)0x2000029e = 3; *(uint16_t*)0x200002a0 = 0xe; *(uint16_t*)0x200002a2 = 6; *(uint16_t*)0x200002a4 = 4; STORE_BY_BITMASK(uint16_t, , 0x200002a6, 8, 0, 14); STORE_BY_BITMASK(uint16_t, , 0x200002a7, 0, 6, 1); STORE_BY_BITMASK(uint16_t, , 0x200002a7, 1, 7, 1); *(uint16_t*)0x200002a8 = 0xf0; STORE_BY_BITMASK(uint16_t, , 0x200002aa, 8, 0, 14); STORE_BY_BITMASK(uint16_t, , 0x200002ab, 0, 6, 1); STORE_BY_BITMASK(uint16_t, , 0x200002ab, 1, 7, 1); *(uint16_t*)0x200002ac = 0x1c; *(uint16_t*)0x200002ae = 1; *(uint8_t*)0x200002b0 = 4; *(uint8_t*)0x200002b1 = 0x80; *(uint16_t*)0x200002b2 = 0x10; *(uint32_t*)0x200002b4 = 9; *(uint32_t*)0x200002b8 = 0; *(uint32_t*)0x200002bc = 4; *(uint32_t*)0x200002c0 = 0xc75; *(uint32_t*)0x200002c4 = 9; *(uint16_t*)0x200002c8 = 0x16; *(uint16_t*)0x200002ca = 2; *(uint16_t*)0x200002cc = 3; *(uint16_t*)0x200002ce = 2; *(uint16_t*)0x200002d0 = 8; *(uint16_t*)0x200002d2 = 5; *(uint16_t*)0x200002d4 = 3; *(uint16_t*)0x200002d6 = 0x8a; *(uint16_t*)0x200002d8 = 5; *(uint16_t*)0x200002da = 0x101; *(uint16_t*)0x200002dc = 8; *(uint16_t*)0x200002e0 = 0x1c; *(uint16_t*)0x200002e2 = 1; *(uint8_t*)0x200002e4 = 8; *(uint8_t*)0x200002e5 = 4; *(uint16_t*)0x200002e6 = 0x520c; *(uint32_t*)0x200002e8 = 0x7f; *(uint32_t*)0x200002ec = 2; *(uint32_t*)0x200002f0 = 0xffffff7f; *(uint32_t*)0x200002f4 = 0x400; *(uint32_t*)0x200002f8 = 1; *(uint16_t*)0x200002fc = 6; *(uint16_t*)0x200002fe = 2; *(uint16_t*)0x20000300 = 9; *(uint16_t*)0x20000304 = 0x1c; *(uint16_t*)0x20000306 = 1; *(uint8_t*)0x20000308 = 0x40; *(uint8_t*)0x20000309 = 9; *(uint16_t*)0x2000030a = 0x241; *(uint32_t*)0x2000030c = 9; *(uint32_t*)0x20000310 = 1; *(uint32_t*)0x20000314 = 3; *(uint32_t*)0x20000318 = 7; *(uint32_t*)0x2000031c = 4; *(uint16_t*)0x20000320 = 0xc; *(uint16_t*)0x20000322 = 2; *(uint16_t*)0x20000324 = 9; *(uint16_t*)0x20000326 = 2; *(uint16_t*)0x20000328 = 5; *(uint16_t*)0x2000032a = 0x7ff; *(uint16_t*)0x2000032c = 0x1c; *(uint16_t*)0x2000032e = 1; *(uint8_t*)0x20000330 = 0; *(uint8_t*)0x20000331 = 1; *(uint16_t*)0x20000332 = 0x20; *(uint32_t*)0x20000334 = 7; *(uint32_t*)0x20000338 = 2; *(uint32_t*)0x2000033c = 0x81; *(uint32_t*)0x20000340 = 0x7f; *(uint32_t*)0x20000344 = 1; *(uint16_t*)0x20000348 = 6; *(uint16_t*)0x2000034a = 2; *(uint16_t*)0x2000034c = 0xff; *(uint16_t*)0x20000350 = 0x1c; *(uint16_t*)0x20000352 = 1; *(uint8_t*)0x20000354 = 5; *(uint8_t*)0x20000355 = 5; *(uint16_t*)0x20000356 = 9; *(uint32_t*)0x20000358 = 0x80; *(uint32_t*)0x2000035c = 2; *(uint32_t*)0x20000360 = 9; *(uint32_t*)0x20000364 = 0; *(uint32_t*)0x20000368 = 2; *(uint16_t*)0x2000036c = 8; *(uint16_t*)0x2000036e = 2; *(uint16_t*)0x20000370 = 0x110b; *(uint16_t*)0x20000372 = 0x100; *(uint16_t*)0x20000374 = 0x1c; *(uint16_t*)0x20000376 = 1; *(uint8_t*)0x20000378 = 0; *(uint8_t*)0x20000379 = 0xf8; *(uint16_t*)0x2000037a = 6; *(uint32_t*)0x2000037c = 8; *(uint32_t*)0x20000380 = 0; *(uint32_t*)0x20000384 = 2; *(uint32_t*)0x20000388 = 9; *(uint32_t*)0x2000038c = 2; *(uint16_t*)0x20000390 = 8; *(uint16_t*)0x20000392 = 2; *(uint16_t*)0x20000394 = 0x8001; *(uint16_t*)0x20000396 = 0x11f; *(uint16_t*)0x20000398 = 0xbc; STORE_BY_BITMASK(uint16_t, , 0x2000039a, 8, 0, 14); STORE_BY_BITMASK(uint16_t, , 0x2000039b, 0, 6, 1); STORE_BY_BITMASK(uint16_t, , 0x2000039b, 1, 7, 1); *(uint16_t*)0x2000039c = 0x1c; *(uint16_t*)0x2000039e = 1; *(uint8_t*)0x200003a0 = 0xfc; *(uint8_t*)0x200003a1 = 8; *(uint16_t*)0x200003a2 = 0x54c; *(uint32_t*)0x200003a4 = 4; *(uint32_t*)0x200003a8 = 1; *(uint32_t*)0x200003ac = 0x800; *(uint32_t*)0x200003b0 = 8; *(uint32_t*)0x200003b4 = 5; *(uint16_t*)0x200003b8 = 0xe; *(uint16_t*)0x200003ba = 2; *(uint16_t*)0x200003bc = 4; *(uint16_t*)0x200003be = 3; *(uint16_t*)0x200003c0 = 8; *(uint16_t*)0x200003c2 = 4; *(uint16_t*)0x200003c4 = 9; *(uint16_t*)0x200003c8 = 0x1c; *(uint16_t*)0x200003ca = 1; *(uint8_t*)0x200003cc = 1; *(uint8_t*)0x200003cd = 0; *(uint16_t*)0x200003ce = 9; *(uint32_t*)0x200003d0 = 0xb14; *(uint32_t*)0x200003d4 = 0; *(uint32_t*)0x200003d8 = 9; *(uint32_t*)0x200003dc = 2; *(uint32_t*)0x200003e0 = 0xa; *(uint16_t*)0x200003e4 = 0x18; *(uint16_t*)0x200003e6 = 2; *(uint16_t*)0x200003e8 = 0x800; *(uint16_t*)0x200003ea = 1; *(uint16_t*)0x200003ec = 8; *(uint16_t*)0x200003ee = 0x1ff; *(uint16_t*)0x200003f0 = 5; *(uint16_t*)0x200003f2 = 2; *(uint16_t*)0x200003f4 = 9; *(uint16_t*)0x200003f6 = 7; *(uint16_t*)0x200003f8 = 0x1ff; *(uint16_t*)0x200003fa = 4; *(uint16_t*)0x200003fc = 0x1c; *(uint16_t*)0x200003fe = 1; *(uint8_t*)0x20000400 = 9; *(uint8_t*)0x20000401 = 0x7f; *(uint16_t*)0x20000402 = 0x800; *(uint32_t*)0x20000404 = 0xc4; *(uint32_t*)0x20000408 = 0; *(uint32_t*)0x2000040c = 7; *(uint32_t*)0x20000410 = 4; *(uint32_t*)0x20000414 = 3; *(uint16_t*)0x20000418 = 0xa; *(uint16_t*)0x2000041a = 2; *(uint16_t*)0x2000041c = 4; *(uint16_t*)0x2000041e = 8; *(uint16_t*)0x20000420 = 6; *(uint16_t*)0x20000424 = 0x1c; *(uint16_t*)0x20000426 = 1; *(uint8_t*)0x20000428 = 0x20; *(uint8_t*)0x20000429 = 0x7f; *(uint16_t*)0x2000042a = 0x8000; *(uint32_t*)0x2000042c = 9; *(uint32_t*)0x20000430 = 0; *(uint32_t*)0x20000434 = 5; *(uint32_t*)0x20000438 = 8; *(uint32_t*)0x2000043c = 8; *(uint16_t*)0x20000440 = 0x14; *(uint16_t*)0x20000442 = 2; *(uint16_t*)0x20000444 = 0; *(uint16_t*)0x20000446 = 2; *(uint16_t*)0x20000448 = 5; *(uint16_t*)0x2000044a = 8; *(uint16_t*)0x2000044c = 5; *(uint16_t*)0x2000044e = 0x101; *(uint16_t*)0x20000450 = 0x369; *(uint16_t*)0x20000452 = 7; *(uint16_t*)0x20000454 = 6; *(uint16_t*)0x20000456 = 5; *(uint8_t*)0x20000458 = 0x3f; *(uint8_t*)0x20000459 = 4; *(uint16_t*)0x2000045c = 7; *(uint16_t*)0x2000045e = 1; memcpy((void*)0x20000460, "mq\000", 3); *(uint16_t*)0x20000464 = 8; *(uint16_t*)0x20000466 = 0xd; *(uint32_t*)0x20000468 = 0x80; *(uint16_t*)0x2000046c = 8; *(uint16_t*)0x2000046e = 1; memcpy((void*)0x20000470, "etf\000", 4); *(uint16_t*)0x20000474 = 0x14; *(uint16_t*)0x20000476 = 2; *(uint16_t*)0x20000478 = 0x10; *(uint16_t*)0x2000047a = 1; *(uint32_t*)0x2000047c = 0x46e; *(uint32_t*)0x20000480 = 0; *(uint32_t*)0x20000484 = 0; *(uint16_t*)0x20000488 = 6; *(uint16_t*)0x2000048a = 5; *(uint8_t*)0x2000048c = 9; *(uint8_t*)0x2000048d = 0; *(uint16_t*)0x20000490 = 0x9c; STORE_BY_BITMASK(uint16_t, , 0x20000492, 8, 0, 14); STORE_BY_BITMASK(uint16_t, , 0x20000493, 0, 6, 1); STORE_BY_BITMASK(uint16_t, , 0x20000493, 1, 7, 1); *(uint16_t*)0x20000494 = 0x1c; *(uint16_t*)0x20000496 = 1; *(uint8_t*)0x20000498 = 6; *(uint8_t*)0x20000499 = 0; *(uint16_t*)0x2000049a = 0x3e8e; *(uint32_t*)0x2000049c = 8; *(uint32_t*)0x200004a0 = 1; *(uint32_t*)0x200004a4 = 0x80000001; *(uint32_t*)0x200004a8 = 0xfff; *(uint32_t*)0x200004ac = 5; *(uint16_t*)0x200004b0 = 0xe; *(uint16_t*)0x200004b2 = 2; *(uint16_t*)0x200004b4 = 1; *(uint16_t*)0x200004b6 = 6; *(uint16_t*)0x200004b8 = 2; *(uint16_t*)0x200004ba = 2; *(uint16_t*)0x200004bc = 2; *(uint16_t*)0x200004c0 = 0x1c; *(uint16_t*)0x200004c2 = 1; *(uint8_t*)0x200004c4 = 1; *(uint8_t*)0x200004c5 = 0x40; *(uint16_t*)0x200004c6 = 9; *(uint32_t*)0x200004c8 = 9; *(uint32_t*)0x200004cc = 1; *(uint32_t*)0x200004d0 = 2; *(uint32_t*)0x200004d4 = 1; *(uint32_t*)0x200004d8 = 2; *(uint16_t*)0x200004dc = 8; *(uint16_t*)0x200004de = 2; *(uint16_t*)0x200004e0 = 0xbe; *(uint16_t*)0x200004e2 = 9; *(uint16_t*)0x200004e4 = 0x1c; *(uint16_t*)0x200004e6 = 1; *(uint8_t*)0x200004e8 = 5; *(uint8_t*)0x200004e9 = 3; *(uint16_t*)0x200004ea = 0x100; *(uint32_t*)0x200004ec = 0x8001; *(uint32_t*)0x200004f0 = 2; *(uint32_t*)0x200004f4 = 8; *(uint32_t*)0x200004f8 = 8; *(uint32_t*)0x200004fc = 2; *(uint16_t*)0x20000500 = 8; *(uint16_t*)0x20000502 = 2; *(uint16_t*)0x20000504 = 4; *(uint16_t*)0x20000506 = 8; *(uint16_t*)0x20000508 = 0x1c; *(uint16_t*)0x2000050a = 1; *(uint8_t*)0x2000050c = 0x1f; *(uint8_t*)0x2000050d = 0xaf; *(uint16_t*)0x2000050e = 7; *(uint32_t*)0x20000510 = 0xfff; *(uint32_t*)0x20000514 = 0; *(uint32_t*)0x20000518 = 9; *(uint32_t*)0x2000051c = 0x6491; *(uint32_t*)0x20000520 = 1; *(uint16_t*)0x20000524 = 6; *(uint16_t*)0x20000526 = 2; *(uint16_t*)0x20000528 = 0xed0b; *(uint64_t*)0x20000548 = 0x2ac; *(uint64_t*)0x20000598 = 1; *(uint64_t*)0x200005a0 = 0; *(uint64_t*)0x200005a8 = 0; *(uint32_t*)0x200005b0 = 0xc000000; syscall(__NR_sendmsg, /*fd=*/-1, /*msg=*/0x20000580ul, /*f=*/0x4000814ul); res = syscall(__NR_socket, /*domain=*/0x10ul, /*type=*/3ul, /*proto=*/0); if (res != -1) r[0] = res; res = syscall(__NR_socketpair, /*domain=*/1ul, /*type=*/1ul, /*proto=*/0, /*fds=*/0x20000080ul); if (res != -1) r[1] = *(uint32_t*)0x20000084; memcpy((void*)0x20000000, "lo\000\000\000\000\000\000\000\000\000\000\000\000\000\000", 16); res = syscall(__NR_ioctl, /*fd=*/r[1], /*cmd=*/0x8933, /*arg=*/0x20000000ul); if (res != -1) r[2] = *(uint32_t*)0x20000010; *(uint64_t*)0x20000000 = 0; *(uint32_t*)0x20000008 = 0; *(uint64_t*)0x20000010 = 0x20000780; *(uint64_t*)0x20000780 = 0x200002c0; memcpy((void*)0x200002c0, "\x78\x00\x00\x00\x24\x00\x0b\x0f\x00\x00\x00\x00\x00\x00\x00\x00\x60" "\x00\x00\x00", 20); *(uint32_t*)0x200002d4 = r[2]; memcpy((void*)0x200002d8, "\x00\x00\x00\x00\xff\xff\xff\xff\x00\x00\x00\x00\x0a\x00\x01\x00\x6e" "\x65\x74\x65\x6d\x00\x04\x00\x48\x00\x02\x00\x00\x00\x00\x00\x86\x00" "\x02\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\xff\xff\xff\xff", 50); *(uint64_t*)0x20000788 = 0x78; *(uint64_t*)0x20000018 = 1; *(uint64_t*)0x20000020 = 0; *(uint64_t*)0x20000028 = 0; *(uint32_t*)0x20000030 = 0; syscall(__NR_sendmsg, /*fd=*/r[0], /*msg=*/0x20000000ul, /*f=*/0ul); syz_genetlink_get_family_id(/*name=*/0, /*fd=*/-1); } int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x20000000ul, /*len=*/0x1000000ul, /*prot=*/7ul, /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x21000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul); loop(); return 0; }