// https://syzkaller.appspot.com/bug?id=35f58b0015cab234aaffb487fc08382a83c0d4cb // 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 #ifndef __NR_ioctl #define __NR_ioctl 29 #endif #ifndef __NR_mmap #define __NR_mmap 222 #endif #ifndef __NR_openat #define __NR_openat 56 #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; } 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 void netlink_nest(struct nlmsg* nlmsg, int typ) { struct nlattr* attr = (struct nlattr*)nlmsg->pos; attr->nla_type = typ; nlmsg->pos += sizeof(*attr); nlmsg->nested[nlmsg->nesting++] = attr; } static void netlink_done(struct nlmsg* nlmsg) { struct nlattr* attr = nlmsg->nested[--nlmsg->nesting]; attr->nla_len = nlmsg->pos - (char*)attr; } 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_send(struct nlmsg* nlmsg, int sock) { return netlink_send_ext(nlmsg, sock, 0, NULL, true); } 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 void netlink_add_device_impl(struct nlmsg* nlmsg, const char* type, const char* name, bool up) { struct ifinfomsg hdr; memset(&hdr, 0, sizeof(hdr)); if (up) hdr.ifi_flags = hdr.ifi_change = IFF_UP; netlink_init(nlmsg, RTM_NEWLINK, NLM_F_EXCL | NLM_F_CREATE, &hdr, sizeof(hdr)); if (name) netlink_attr(nlmsg, IFLA_IFNAME, name, strlen(name)); netlink_nest(nlmsg, IFLA_LINKINFO); netlink_attr(nlmsg, IFLA_INFO_KIND, type, strlen(type)); } static void netlink_device_change(struct nlmsg* nlmsg, int sock, const char* name, bool up, const char* master, const void* mac, int macsize, const char* new_name) { struct ifinfomsg hdr; memset(&hdr, 0, sizeof(hdr)); if (up) hdr.ifi_flags = hdr.ifi_change = IFF_UP; hdr.ifi_index = if_nametoindex(name); netlink_init(nlmsg, RTM_NEWLINK, 0, &hdr, sizeof(hdr)); if (new_name) netlink_attr(nlmsg, IFLA_IFNAME, new_name, strlen(new_name)); if (master) { int ifindex = if_nametoindex(master); netlink_attr(nlmsg, IFLA_MASTER, &ifindex, sizeof(ifindex)); } if (macsize) netlink_attr(nlmsg, IFLA_ADDRESS, mac, macsize); int err = netlink_send(nlmsg, sock); if (err < 0) { } } static struct nlmsg nlmsg; static long syz_open_dev(volatile long a0, volatile long a1, volatile long a2) { if (a0 == 0xc || a0 == 0xb) { char buf[128]; sprintf(buf, "/dev/%s/%d:%d", a0 == 0xc ? "char" : "block", (uint8_t)a1, (uint8_t)a2); return open(buf, O_RDWR, 0); } else { char buf[1024]; char* hash; strncpy(buf, (char*)a0, sizeof(buf) - 1); buf[sizeof(buf) - 1] = 0; while ((hash = strchr(buf, '#'))) { *hash = '0' + (char)(a1 % 10); a1 /= 10; } return open(buf, a2, 0); } } static int inject_fault(int nth) { int fd; fd = open("/proc/thread-self/fail-nth", O_RDWR); if (fd == -1) exit(1); char buf[16]; sprintf(buf, "%d", nth); if (write(fd, buf, strlen(buf)) != (ssize_t)strlen(buf)) exit(1); return fd; } 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_fault() { static struct { const char* file; const char* val; bool fatal; } files[] = { {"/sys/kernel/debug/failslab/ignore-gfp-wait", "N", true}, {"/sys/kernel/debug/fail_futex/ignore-private", "N", false}, {"/sys/kernel/debug/fail_page_alloc/ignore-gfp-highmem", "N", false}, {"/sys/kernel/debug/fail_page_alloc/ignore-gfp-wait", "N", false}, {"/sys/kernel/debug/fail_page_alloc/min-order", "0", false}, }; unsigned i; for (i = 0; i < sizeof(files) / sizeof(files[0]); i++) { if (!write_file(files[i].file, files[i].val)) { if (files[i].fatal) exit(1); } } } #define NL802154_CMD_SET_SHORT_ADDR 11 #define NL802154_ATTR_IFINDEX 3 #define NL802154_ATTR_SHORT_ADDR 10 static void setup_802154() { int sock_route = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); if (sock_route == -1) exit(1); int sock_generic = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC); if (sock_generic < 0) exit(1); int nl802154_family_id = netlink_query_family_id(&nlmsg, sock_generic, "nl802154", true); for (int i = 0; i < 2; i++) { char devname[] = "wpan0"; devname[strlen(devname) - 1] += i; uint64_t hwaddr = 0xaaaaaaaaaaaa0002 + (i << 8); uint16_t shortaddr = 0xaaa0 + i; int ifindex = if_nametoindex(devname); struct genlmsghdr genlhdr; memset(&genlhdr, 0, sizeof(genlhdr)); genlhdr.cmd = NL802154_CMD_SET_SHORT_ADDR; netlink_init(&nlmsg, nl802154_family_id, 0, &genlhdr, sizeof(genlhdr)); netlink_attr(&nlmsg, NL802154_ATTR_IFINDEX, &ifindex, sizeof(ifindex)); netlink_attr(&nlmsg, NL802154_ATTR_SHORT_ADDR, &shortaddr, sizeof(shortaddr)); int err = netlink_send(&nlmsg, sock_generic); if (err < 0) { } netlink_device_change(&nlmsg, sock_route, devname, true, 0, &hwaddr, sizeof(hwaddr), 0); if (i == 0) { netlink_add_device_impl(&nlmsg, "lowpan", "lowpan0", false); netlink_done(&nlmsg); netlink_attr(&nlmsg, IFLA_LINK, &ifindex, sizeof(ifindex)); int err = netlink_send(&nlmsg, sock_route); if (err < 0) { } } } close(sock_route); close(sock_generic); } 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[2] = {0xffffffffffffffff, 0xffffffffffffffff}; void execute_one(void) { intptr_t res = 0; memcpy((void*)0x20000280, "/dev/fb0\000", 9); res = syscall(__NR_openat, /*fd=*/0xffffffffffffff9cul, /*file=*/0x20000280ul, /*flags=*/0ul, /*mode=*/0ul); if (res != -1) r[0] = res; *(uint32_t*)0x200000c0 = 0x500; *(uint32_t*)0x200000c4 = 0x80; *(uint32_t*)0x200000c8 = 0x30; *(uint32_t*)0x200000cc = 0x480; *(uint32_t*)0x200000d0 = 0x800; *(uint32_t*)0x200000d4 = 0xfffffffa; *(uint32_t*)0x200000d8 = 1; *(uint32_t*)0x200000dc = 1; *(uint32_t*)0x200000e0 = 0xff; *(uint32_t*)0x200000e4 = 7; *(uint32_t*)0x200000e8 = 0; *(uint32_t*)0x200000ec = 0x641a; *(uint32_t*)0x200000f0 = 0x7f; *(uint32_t*)0x200000f4 = 1; *(uint32_t*)0x200000f8 = 0xfffffff7; *(uint32_t*)0x200000fc = 3; *(uint32_t*)0x20000100 = 1; *(uint32_t*)0x20000104 = 5; *(uint32_t*)0x20000108 = 9; *(uint32_t*)0x2000010c = 0; *(uint32_t*)0x20000110 = 2; *(uint32_t*)0x20000114 = 0x100; *(uint32_t*)0x20000118 = 0x80; *(uint32_t*)0x2000011c = 0x81; *(uint32_t*)0x20000120 = 1; *(uint32_t*)0x20000124 = 0x80000000; *(uint32_t*)0x20000128 = 0xff; *(uint32_t*)0x2000012c = 7; *(uint32_t*)0x20000130 = 2; *(uint32_t*)0x20000134 = -1; *(uint32_t*)0x20000138 = 8; *(uint32_t*)0x2000013c = 0xfffffff7; *(uint32_t*)0x20000140 = 0; *(uint32_t*)0x20000144 = 0; *(uint32_t*)0x20000148 = 3; *(uint32_t*)0x2000014c = 8; memset((void*)0x20000150, 0, 16); syscall(__NR_ioctl, /*fd=*/r[0], /*cmd=*/0x4601, /*arg=*/0x200000c0ul); res = -1; res = syz_open_dev(/*dev=*/0xc, /*major=*/4, /*minor=*/1); if (res != -1) r[1] = res; *(uint32_t*)0x20000000 = 0; *(uint32_t*)0x20000004 = 0; *(uint32_t*)0x20000008 = 0xb; *(uint32_t*)0x2000000c = 1; *(uint32_t*)0x20000010 = 0x100; *(uint64_t*)0x20000018 = 0x20000440; memcpy( (void*)0x20000440, "\x03\x58\x35\x71\x3f\xcf\xda\x5c\x82\xbe\xd3\xe0\xa4\x47\x11\x49\x1f\x34" "\x2f\x9b\xdf\x74\xaf\x23\xb8\x52\xf8\xf9\xa0\xbf\xae\xa6\xee\xf0\xba\x10" "\xd7\xa5\x37\xfe\x87\xc5\x0e\x3e\x42\x44\x0b\xf8\x1c\xe8\x10\xf6\x15\x40" "\x55\x3d\xb0\x45\x72\xf7\xa0\x26\x52\xf3\xa6\x64\x6c\x98\xd1\x77\xf0\x71" "\x21\xd0\x2f\x43\x5c\x6c\xb9\xcd\xb0\xcb\x89\xa0\x63\x00\x06\xb8\xa9\x3b" "\x8c\xc0\x9a\x6d\x43\xd6\x83\x64\x07\x42\xc6\xcd\x2e\x98\xef\x0a\x69\xd7" "\x2e\xcb\xc7\x08\xa3\xcf\xc5\xaa\xd2\xc1\x4a\x99\x34\x9f\x5f\x95\x74\x4b" "\x5c\x84\x1e\x31\x7a\x1a\x7d\x4a\x96\x48\x0c\x1d\x18\xc1\x3c\xeb\xe9\x20" "\x6b\x46\x05\x0a\x72\x28\x39\xf7\x95\xe9\x27\x49\xd1\x02\x81\xbb\xc5\x1a" "\xba\x63\x34\x87\x18\xba\x62\x6f\xb0\x6a\xf2\x91\x57\x74\x02\x0c\x30\xa6" "\x92\xcf\x01\x11\x9c\xa5\x74\x76\x7e\x8d\x93\x8e\xf3\x01\xed\xb8\xf2\x2f" "\xff\x97\x00\xc6\xba\xa0\x55\x5b\x03\x13\xad\x3a\xf2\x4b\x25\x98\x1a\x18" "\x36\x47\x43\x72\x77\xf6\xa0\xca\x73\xc1\xe1\xbf\x8c\x44\x0d\xe5\xdf\x33" "\xcf\x99\xc0\x4a\x75\xd9\xce\x61\x56\x42\x65\x71\x6d\xb6\x9c\x2f\x01\xb7" "\xd8\x4d\x69\x71\x67\x58\xf6\xa6\xa4\x44\x1d\x15\xd8\xa4\x7d\x91\x35\xe5" "\x99\x14\xde\xc6\x4f\xb9\xf6\xfb\x34\xa5\x93\xd9\x10\x61\x16\xe8\x8b\x08" "\x81\xda\x7a\xfb\xdb\xc1\xfd\xeb\xe4\xc7\x47\xe4\x2b\x6a\xca\x5a\xf9\x0a" "\xe2\x8e\xbb\x33\xc8\x48\x84\xa0\xc9\x5d\x85\xdf\x8e\x8a\x20\x24\xe7\x2e" "\xf6\x6d\x96\xd3\x7c\x84\xe7\x4b\x26\xa5\x94\x04\x47\xad\x84\xda\x0a\xbd" "\x90\x00\xc4\xfd\x8f\x32\x85\xc1\x02\x27\x21\x7b\xee\xe7\x52\x7c\x9a\xfa" "\x69\xa7\x66\x0a\xb7\x08\x00\x00\x00\x00\x00\x00\x00\x97\xaf\x6f\xa0\xc1" "\x79\xac\x1a\x46\x4a\x54\x8c\xb9\x36\x90\x6e\x02\x21\x61\x88\x82\x25\x2b" "\xaf\x97\x49\xb3\xea\xe6\x83\x5e\xc1\xfa\x05\x4a\x4d\x44\x4d\x70\x28\x3d" "\x4e\x7d\xc4\x8b\x5a\x84\x38\x65\xcd\x12\xbe\x43\x3d\x56\xe9\x80\xa9\x37" "\x05\x45\xa5\x4a\x40\x50\x6d\xd8\x1f\x1f\x91\x2a\xb6\xed\xc0\xb8\x24\x0a" "\xf4\x1d\x4a\x6a\xad\xcc\xf7\x40\x9c\x52\x47\xd7\x61\xb6\x03\xad\x8d\xfa" "\xd8\x63\x32\x2f\xe8\x68\x13\xac\x67\x89\x31\xe8\xad\x7a\x59\x24\x62\x22" "\xf6\x90\xbd\xe0\xd5\x19\x0c\xf8\x46\x1c\xaa\x0b\x08\x79\x9e\x6f\x34\x7c" "\x83\x39\x8b\xa4\xd6\x60\x87\xca\x1d\x1e\xb7\xdb\xcf\x6f\xe2\xb0\x6d\xa6" "\xdb\xa0\x3f\xaf\x76\x35\x18\x77\x15\x09\x6a\xb6\xd0\x09\x00\x00\x00\x00" "\x00\x00\x00\x44\x86\x8b\x6d\x5f\xc0\x02\x07\xf6\xaf\xc5\xcd\xde\xb6\x7b" "\x10\x85\x71\x92\x3e\x76\x4d\xe9\x4a\xb7\x66\x6d\x1f\xa1\x44\xae\x96\x58" "\xbf\xb4\xd6\x54\x43\xac\x1a\x29\x3f\x64\x68\xad\x65\xad\xd8\x06\xa6\x1f" "\x06\x4a\xdb\x16\x90\xcc\xb9\x09\xa5\x9c\x04\xaf\xe8\xb6\xe1\x2b\x7f\x61" "\xc2\xd6\xc8\x6a\xdf\xa1\x62\x54\x40\x31\x67\x2e\x2c\x18\xf5\xe9\xb7\x09" "\xb5\x9d\x80\x3f\xc9\xad\xef\xc4\xdd\x71\xbe\x1e\x11\xe7\x70\xa6\x7f\x5f" "\x9b\xfc\x06\xd3\x99\x52\xf9\xa3\xf5\xc8\x70\x8d\xbd\x19\xe4\x9b\xdb\x1c" "\xcc\x57\xa2\x61\x69\x7f\x58\x5b\xa0\x51\x0e\x8d\x83\xa6\xad\x4e\x4a\x06" "\x1a\x64\xca\x0e\x17\x32\xce\x31\x08\x9c\x6d\x10\xd8\x8b\x71\xd5\xf2\x75" "\xea\x81\x66\xd1\x0d\xae\xee\x10\x16\x17\x00\x00\x00\x00\x00\x00\x00\x80" "\x2d\x6f\x66\x79\x3c\x7b\xe5\xc8\x49\x41\xd6\xe5\x5e\x63\xef\x22\xf2\xee" "\x96\xae\x65\x1f\x68\x3d\xa2\x10\xa2\x0b\x42\x50\xb0\x7b\xba\xaf\xfc\x14" "\xea\x7c\xdc\x5a\xc4\x44\xf8\x8f\x7c\x7b\xa8\xb1\x0e\x3c\x63\x7d\x7c\xaa" "\x9f\xdb\x0e\x53\x3b\x9d\x40\x7b\xd4\xfe\x48\x01\x80\x00\x00\x00\x00\x00" "\x00\x9d\xa6\x72\xa0\x06\x6a\x17\x8a\x73\x7b\x28\xb7\xa5\xa9\x1b\x0d\xfb" "\x87\xdf\x14\x04\xf3\x7c\xbb\x7d\x2b\x37\xd3\x81\xe3\xc6\x83\xf3\xd3\xb2" "\xbd\xe9\x4b\xaa\x45\xbc\x07\x17\x45\xaf\x40\x8c\x1d\xd8\xda\xd5\xbe\x74" "\xb0\x4d\x30\x0c\x1e\x47\xbb\x9b\xa2\xc1\xcd\x83\x81\x7d\x85\x0a\x2b\x6a" "\x3c\x8b\xb8\x1b\x28\xa1\x66\x4a\xc3\xb4\x3e\x4b\x30\xde\xc0\x4a\xcc\xca" "\xb7\x87\xe3\x9d\x51\xc3\x45\xa0\x9e\x4e\x39\x07\x79\x4c\x5a\x97\xe3\x4f" "\xe2\xc1\xec\x43\x59\xb3\x08\x12\x31\x8f\x8e\x3a\xc2\x54\xad\x1b\x07\x95" "\x8d\xad\x56\x08\x93\xda\x4f\x1d\x39\x45\xc9\x9b\x5c\x74\xd4\x6a\xa2\xbe" "\xa5\x99\xad\xcd\x1c\xa0\xf1\x9b\x04\x19\x5e\xc8\x73\x8a\x7b\x6a\xf8\x2a" "\xe8\x44\x6f\xc1\xca\xd4\xc5\xbd\xa5\xcd\xee\x8a\x34\x9c\xe3\x70\x3b\xe1" "\x76\xb3\xee\x96\x9b\xad\x1c\x61\x3a\xa7\x47\xa6\x86\xad\x02\xcb\xb3\xe0" "\x7b\xe4\x82\x5e\xc1\xfb\x4d\xd8\x4f\xed\x00\x00\x00\x00\x00\x00\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 1024); inject_fault(7); syscall(__NR_ioctl, /*fd=*/r[1], /*cmd=*/0x4b72, /*arg=*/0x20000000ul); syscall(__NR_ioctl, /*fd=*/-1, /*cmd=*/0xd000943d, /*arg=*/0ul); } 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); setup_fault(); setup_802154(); loop(); return 0; }