Tang-ZW

divide error in corrupted-C reproducer

May 15th, 2025
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 48.73 KB | None | 0 0
  1. // autogenerated by syzkaller (https://github.com/google/syzkaller)
  2.  
  3. #define _GNU_SOURCE
  4.  
  5. #include <endian.h>
  6. #include <errno.h>
  7. #include <fcntl.h>
  8. #include <setjmp.h>
  9. #include <stdbool.h>
  10. #include <stddef.h>
  11. #include <stdint.h>
  12. #include <stdio.h>
  13. #include <stdlib.h>
  14. #include <string.h>
  15. #include <sys/ioctl.h>
  16. #include <sys/mman.h>
  17. #include <sys/mount.h>
  18. #include <sys/stat.h>
  19. #include <sys/syscall.h>
  20. #include <sys/types.h>
  21. #include <unistd.h>
  22.  
  23. #include <linux/loop.h>
  24.  
  25. #ifndef __NR_memfd_create
  26. #define __NR_memfd_create 319
  27. #endif
  28. #ifndef __NR_rseq
  29. #define __NR_rseq 334
  30. #endif
  31. #ifndef __NR_seccomp
  32. #define __NR_seccomp 317
  33. #endif
  34.  
  35. static unsigned long long procid;
  36.  
  37. const int kInitNetNsFd = 201;
  38. static long syz_sysconfig_reset__proc_sys_vm_zone_reclaim_mode()
  39. {
  40. char command[256];
  41. sprintf(command, "echo 0 > /proc/sys/vm/zone_reclaim_mode");
  42. int ret = system(command);
  43. if (ret != 0) {
  44. return 0;
  45. }
  46. return 0;
  47. }
  48. static long syz_sysconfig_reset__proc_sys_net_ipv4_tcp_plb_rehash_rounds()
  49. {
  50. char command[256];
  51. sprintf(command, "echo 12 > /proc/sys/net/ipv4/tcp_plb_rehash_rounds");
  52. int ret = system(command);
  53. if (ret != 0) {
  54. return 0;
  55. }
  56. return 0;
  57. }
  58. static long syz_sysconfig_set__proc_sys_vm_zone_reclaim_mode(volatile long val)
  59. {
  60. char command[256];
  61. sprintf(command, "echo %ld > /proc/sys/vm/zone_reclaim_mode", val);
  62. int ret = system(command);
  63. if (ret != 0) {
  64. return 0;
  65. }
  66. return 0;
  67. }
  68. static long syz_sysconfig_set__proc_sys_net_netfilter_nf_conntrack_tcp_timeout_established(volatile long val)
  69. {
  70. char command[256];
  71. sprintf(command, "echo %ld > /proc/sys/net/netfilter/nf_conntrack_tcp_timeout_established", val);
  72. int ret = system(command);
  73. if (ret != 0) {
  74. return 0;
  75. }
  76. return 0;
  77. }
  78.  
  79. static long syz_open_procfs(volatile long a0, volatile long a1)
  80. {
  81. char buf[128];
  82. memset(buf, 0, sizeof(buf));
  83. if (a0 == 0) {
  84. snprintf(buf, sizeof(buf), "/proc/self/%s", (char*)a1);
  85. } else if (a0 == -1) {
  86. snprintf(buf, sizeof(buf), "/proc/thread-self/%s", (char*)a1);
  87. } else {
  88. snprintf(buf, sizeof(buf), "/proc/self/task/%d/%s", (int)a0, (char*)a1);
  89. }
  90. int fd = open(buf, O_RDWR);
  91. if (fd == -1)
  92. fd = open(buf, O_RDONLY);
  93. return fd;
  94. }
  95.  
  96. static long syz_init_net_socket(volatile long domain, volatile long type,
  97. volatile long proto)
  98. {
  99. return syscall(__NR_socket, domain, type, proto);
  100. }
  101.  
  102. //% This code is derived from puff.{c,h}, found in the zlib development. The
  103. //% original files come with the following copyright notice:
  104.  
  105. //% Copyright (C) 2002-2013 Mark Adler, all rights reserved
  106. //% version 2.3, 21 Jan 2013
  107. //% This software is provided 'as-is', without any express or implied
  108. //% warranty. In no event will the author be held liable for any damages
  109. //% arising from the use of this software.
  110. //% Permission is granted to anyone to use this software for any purpose,
  111. //% including commercial applications, and to alter it and redistribute it
  112. //% freely, subject to the following restrictions:
  113. //% 1. The origin of this software must not be misrepresented; you must not
  114. //% claim that you wrote the original software. If you use this software
  115. //% in a product, an acknowledgment in the product documentation would be
  116. //% appreciated but is not required.
  117. //% 2. Altered source versions must be plainly marked as such, and must not be
  118. //% misrepresented as being the original software.
  119. //% 3. This notice may not be removed or altered from any source distribution.
  120. //% Mark Adler [email protected]
  121.  
  122. //% BEGIN CODE DERIVED FROM puff.{c,h}
  123.  
  124. #define MAXBITS 15
  125. #define MAXLCODES 286
  126. #define MAXDCODES 30
  127. #define MAXCODES (MAXLCODES + MAXDCODES)
  128. #define FIXLCODES 288
  129.  
  130. struct puff_state {
  131. unsigned char* out;
  132. unsigned long outlen;
  133. unsigned long outcnt;
  134. const unsigned char* in;
  135. unsigned long inlen;
  136. unsigned long incnt;
  137. int bitbuf;
  138. int bitcnt;
  139. jmp_buf env;
  140. };
  141. static int puff_bits(struct puff_state* s, int need)
  142. {
  143. long val = s->bitbuf;
  144. while (s->bitcnt < need) {
  145. if (s->incnt == s->inlen)
  146. longjmp(s->env, 1);
  147. val |= (long)(s->in[s->incnt++]) << s->bitcnt;
  148. s->bitcnt += 8;
  149. }
  150. s->bitbuf = (int)(val >> need);
  151. s->bitcnt -= need;
  152. return (int)(val & ((1L << need) - 1));
  153. }
  154. static int puff_stored(struct puff_state* s)
  155. {
  156. s->bitbuf = 0;
  157. s->bitcnt = 0;
  158. if (s->incnt + 4 > s->inlen)
  159. return 2;
  160. unsigned len = s->in[s->incnt++];
  161. len |= s->in[s->incnt++] << 8;
  162. if (s->in[s->incnt++] != (~len & 0xff) ||
  163. s->in[s->incnt++] != ((~len >> 8) & 0xff))
  164. return -2;
  165. if (s->incnt + len > s->inlen)
  166. return 2;
  167. if (s->outcnt + len > s->outlen)
  168. return 1;
  169. for (; len--; s->outcnt++, s->incnt++) {
  170. if (s->in[s->incnt])
  171. s->out[s->outcnt] = s->in[s->incnt];
  172. }
  173. return 0;
  174. }
  175. struct puff_huffman {
  176. short* count;
  177. short* symbol;
  178. };
  179. static int puff_decode(struct puff_state* s, const struct puff_huffman* h)
  180. {
  181. int first = 0;
  182. int index = 0;
  183. int bitbuf = s->bitbuf;
  184. int left = s->bitcnt;
  185. int code = first = index = 0;
  186. int len = 1;
  187. short* next = h->count + 1;
  188. while (1) {
  189. while (left--) {
  190. code |= bitbuf & 1;
  191. bitbuf >>= 1;
  192. int count = *next++;
  193. if (code - count < first) {
  194. s->bitbuf = bitbuf;
  195. s->bitcnt = (s->bitcnt - len) & 7;
  196. return h->symbol[index + (code - first)];
  197. }
  198. index += count;
  199. first += count;
  200. first <<= 1;
  201. code <<= 1;
  202. len++;
  203. }
  204. left = (MAXBITS + 1) - len;
  205. if (left == 0)
  206. break;
  207. if (s->incnt == s->inlen)
  208. longjmp(s->env, 1);
  209. bitbuf = s->in[s->incnt++];
  210. if (left > 8)
  211. left = 8;
  212. }
  213. return -10;
  214. }
  215. static int puff_construct(struct puff_huffman* h, const short* length, int n)
  216. {
  217. int len;
  218. for (len = 0; len <= MAXBITS; len++)
  219. h->count[len] = 0;
  220. int symbol;
  221. for (symbol = 0; symbol < n; symbol++)
  222. (h->count[length[symbol]])++;
  223. if (h->count[0] == n)
  224. return 0;
  225. int left = 1;
  226. for (len = 1; len <= MAXBITS; len++) {
  227. left <<= 1;
  228. left -= h->count[len];
  229. if (left < 0)
  230. return left;
  231. }
  232. short offs[MAXBITS + 1];
  233. offs[1] = 0;
  234. for (len = 1; len < MAXBITS; len++)
  235. offs[len + 1] = offs[len] + h->count[len];
  236. for (symbol = 0; symbol < n; symbol++)
  237. if (length[symbol] != 0)
  238. h->symbol[offs[length[symbol]]++] = symbol;
  239. return left;
  240. }
  241. static int puff_codes(struct puff_state* s, const struct puff_huffman* lencode,
  242. const struct puff_huffman* distcode)
  243. {
  244. static const short lens[29] = {3, 4, 5, 6, 7, 8, 9, 10, 11, 13,
  245. 15, 17, 19, 23, 27, 31, 35, 43, 51, 59,
  246. 67, 83, 99, 115, 131, 163, 195, 227, 258};
  247. static const short lext[29] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2,
  248. 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0};
  249. static const short dists[30] = {
  250. 1, 2, 3, 4, 5, 7, 9, 13, 17, 25,
  251. 33, 49, 65, 97, 129, 193, 257, 385, 513, 769,
  252. 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577};
  253. static const short dext[30] = {0, 0, 0, 0, 1, 1, 2, 2, 3, 3,
  254. 4, 4, 5, 5, 6, 6, 7, 7, 8, 8,
  255. 9, 9, 10, 10, 11, 11, 12, 12, 13, 13};
  256. int symbol;
  257. do {
  258. symbol = puff_decode(s, lencode);
  259. if (symbol < 0)
  260. return symbol;
  261. if (symbol < 256) {
  262. if (s->outcnt == s->outlen)
  263. return 1;
  264. if (symbol)
  265. s->out[s->outcnt] = symbol;
  266. s->outcnt++;
  267. } else if (symbol > 256) {
  268. symbol -= 257;
  269. if (symbol >= 29)
  270. return -10;
  271. int len = lens[symbol] + puff_bits(s, lext[symbol]);
  272. symbol = puff_decode(s, distcode);
  273. if (symbol < 0)
  274. return symbol;
  275. unsigned dist = dists[symbol] + puff_bits(s, dext[symbol]);
  276. if (dist > s->outcnt)
  277. return -11;
  278. if (s->outcnt + len > s->outlen)
  279. return 1;
  280. while (len--) {
  281. if (dist <= s->outcnt && s->out[s->outcnt - dist])
  282. s->out[s->outcnt] = s->out[s->outcnt - dist];
  283. s->outcnt++;
  284. }
  285. }
  286. } while (symbol != 256);
  287. return 0;
  288. }
  289. static int puff_fixed(struct puff_state* s)
  290. {
  291. static int virgin = 1;
  292. static short lencnt[MAXBITS + 1], lensym[FIXLCODES];
  293. static short distcnt[MAXBITS + 1], distsym[MAXDCODES];
  294. static struct puff_huffman lencode, distcode;
  295. if (virgin) {
  296. lencode.count = lencnt;
  297. lencode.symbol = lensym;
  298. distcode.count = distcnt;
  299. distcode.symbol = distsym;
  300. short lengths[FIXLCODES];
  301. int symbol;
  302. for (symbol = 0; symbol < 144; symbol++)
  303. lengths[symbol] = 8;
  304. for (; symbol < 256; symbol++)
  305. lengths[symbol] = 9;
  306. for (; symbol < 280; symbol++)
  307. lengths[symbol] = 7;
  308. for (; symbol < FIXLCODES; symbol++)
  309. lengths[symbol] = 8;
  310. puff_construct(&lencode, lengths, FIXLCODES);
  311. for (symbol = 0; symbol < MAXDCODES; symbol++)
  312. lengths[symbol] = 5;
  313. puff_construct(&distcode, lengths, MAXDCODES);
  314. virgin = 0;
  315. }
  316. return puff_codes(s, &lencode, &distcode);
  317. }
  318. static int puff_dynamic(struct puff_state* s)
  319. {
  320. static const short order[19] = {16, 17, 18, 0, 8, 7, 9, 6, 10, 5,
  321. 11, 4, 12, 3, 13, 2, 14, 1, 15};
  322. int nlen = puff_bits(s, 5) + 257;
  323. int ndist = puff_bits(s, 5) + 1;
  324. int ncode = puff_bits(s, 4) + 4;
  325. if (nlen > MAXLCODES || ndist > MAXDCODES)
  326. return -3;
  327. short lengths[MAXCODES];
  328. int index;
  329. for (index = 0; index < ncode; index++)
  330. lengths[order[index]] = puff_bits(s, 3);
  331. for (; index < 19; index++)
  332. lengths[order[index]] = 0;
  333. short lencnt[MAXBITS + 1], lensym[MAXLCODES];
  334. struct puff_huffman lencode = {lencnt, lensym};
  335. int err = puff_construct(&lencode, lengths, 19);
  336. if (err != 0)
  337. return -4;
  338. index = 0;
  339. while (index < nlen + ndist) {
  340. int symbol;
  341. int len;
  342. symbol = puff_decode(s, &lencode);
  343. if (symbol < 0)
  344. return symbol;
  345. if (symbol < 16)
  346. lengths[index++] = symbol;
  347. else {
  348. len = 0;
  349. if (symbol == 16) {
  350. if (index == 0)
  351. return -5;
  352. len = lengths[index - 1];
  353. symbol = 3 + puff_bits(s, 2);
  354. } else if (symbol == 17)
  355. symbol = 3 + puff_bits(s, 3);
  356. else
  357. symbol = 11 + puff_bits(s, 7);
  358. if (index + symbol > nlen + ndist)
  359. return -6;
  360. while (symbol--)
  361. lengths[index++] = len;
  362. }
  363. }
  364. if (lengths[256] == 0)
  365. return -9;
  366. err = puff_construct(&lencode, lengths, nlen);
  367. if (err && (err < 0 || nlen != lencode.count[0] + lencode.count[1]))
  368. return -7;
  369. short distcnt[MAXBITS + 1], distsym[MAXDCODES];
  370. struct puff_huffman distcode = {distcnt, distsym};
  371. err = puff_construct(&distcode, lengths + nlen, ndist);
  372. if (err && (err < 0 || ndist != distcode.count[0] + distcode.count[1]))
  373. return -8;
  374. return puff_codes(s, &lencode, &distcode);
  375. }
  376. static int puff(unsigned char* dest, unsigned long* destlen,
  377. const unsigned char* source, unsigned long sourcelen)
  378. {
  379. struct puff_state s = {
  380. .out = dest,
  381. .outlen = *destlen,
  382. .outcnt = 0,
  383. .in = source,
  384. .inlen = sourcelen,
  385. .incnt = 0,
  386. .bitbuf = 0,
  387. .bitcnt = 0,
  388. };
  389. int err;
  390. if (setjmp(s.env) != 0)
  391. err = 2;
  392. else {
  393. int last;
  394. do {
  395. last = puff_bits(&s, 1);
  396. int type = puff_bits(&s, 2);
  397. err = type == 0 ? puff_stored(&s)
  398. : (type == 1 ? puff_fixed(&s)
  399. : (type == 2 ? puff_dynamic(&s) : -1));
  400. if (err != 0)
  401. break;
  402. } while (!last);
  403. }
  404. *destlen = s.outcnt;
  405. return err;
  406. }
  407.  
  408. //% END CODE DERIVED FROM puff.{c,h}
  409.  
  410. #define ZLIB_HEADER_WIDTH 2
  411.  
  412. static int puff_zlib_to_file(const unsigned char* source,
  413. unsigned long sourcelen, int dest_fd)
  414. {
  415. if (sourcelen < ZLIB_HEADER_WIDTH)
  416. return 0;
  417. source += ZLIB_HEADER_WIDTH;
  418. sourcelen -= ZLIB_HEADER_WIDTH;
  419. const unsigned long max_destlen = 132 << 20;
  420. void* ret = mmap(0, max_destlen, PROT_WRITE | PROT_READ,
  421. MAP_PRIVATE | MAP_ANON, -1, 0);
  422. if (ret == MAP_FAILED)
  423. return -1;
  424. unsigned char* dest = (unsigned char*)ret;
  425. unsigned long destlen = max_destlen;
  426. int err = puff(dest, &destlen, source, sourcelen);
  427. if (err) {
  428. munmap(dest, max_destlen);
  429. errno = -err;
  430. return -1;
  431. }
  432. if (write(dest_fd, dest, destlen) != (ssize_t)destlen) {
  433. munmap(dest, max_destlen);
  434. return -1;
  435. }
  436. return munmap(dest, max_destlen);
  437. }
  438.  
  439. static int setup_loop_device(unsigned char* data, unsigned long size,
  440. const char* loopname, int* loopfd_p)
  441. {
  442. int err = 0, loopfd = -1;
  443. int memfd = syscall(__NR_memfd_create, "syzkaller", 0);
  444. if (memfd == -1) {
  445. err = errno;
  446. goto error;
  447. }
  448. if (puff_zlib_to_file(data, size, memfd)) {
  449. err = errno;
  450. goto error_close_memfd;
  451. }
  452. loopfd = open(loopname, O_RDWR);
  453. if (loopfd == -1) {
  454. err = errno;
  455. goto error_close_memfd;
  456. }
  457. if (ioctl(loopfd, LOOP_SET_FD, memfd)) {
  458. if (errno != EBUSY) {
  459. err = errno;
  460. goto error_close_loop;
  461. }
  462. ioctl(loopfd, LOOP_CLR_FD, 0);
  463. usleep(1000);
  464. if (ioctl(loopfd, LOOP_SET_FD, memfd)) {
  465. err = errno;
  466. goto error_close_loop;
  467. }
  468. }
  469. close(memfd);
  470. *loopfd_p = loopfd;
  471. return 0;
  472.  
  473. error_close_loop:
  474. close(loopfd);
  475. error_close_memfd:
  476. close(memfd);
  477. error:
  478. errno = err;
  479. return -1;
  480. }
  481.  
  482. static void reset_loop_device(const char* loopname)
  483. {
  484. int loopfd = open(loopname, O_RDWR);
  485. if (loopfd == -1) {
  486. return;
  487. }
  488. if (ioctl(loopfd, LOOP_CLR_FD, 0)) {
  489. }
  490. close(loopfd);
  491. }
  492.  
  493. static long syz_mount_image(volatile long fsarg, volatile long dir,
  494. volatile long flags, volatile long optsarg,
  495. volatile long change_dir,
  496. volatile unsigned long size, volatile long image)
  497. {
  498. unsigned char* data = (unsigned char*)image;
  499. int res = -1, err = 0, need_loop_device = !!size;
  500. char* mount_opts = (char*)optsarg;
  501. char* target = (char*)dir;
  502. char* fs = (char*)fsarg;
  503. char* source = NULL;
  504. char loopname[64];
  505. if (need_loop_device) {
  506. int loopfd;
  507. memset(loopname, 0, sizeof(loopname));
  508. snprintf(loopname, sizeof(loopname), "/dev/loop%llu", procid);
  509. if (setup_loop_device(data, size, loopname, &loopfd) == -1)
  510. return -1;
  511. close(loopfd);
  512. source = loopname;
  513. }
  514. mkdir(target, 0777);
  515. char opts[256];
  516. memset(opts, 0, sizeof(opts));
  517. if (strlen(mount_opts) > (sizeof(opts) - 32)) {
  518. }
  519. strncpy(opts, mount_opts, sizeof(opts) - 32);
  520. if (strcmp(fs, "iso9660") == 0) {
  521. flags |= MS_RDONLY;
  522. } else if (strncmp(fs, "ext", 3) == 0) {
  523. bool has_remount_ro = false;
  524. char* remount_ro_start = strstr(opts, "errors=remount-ro");
  525. if (remount_ro_start != NULL) {
  526. char after = *(remount_ro_start + strlen("errors=remount-ro"));
  527. char before = remount_ro_start == opts ? '\0' : *(remount_ro_start - 1);
  528. has_remount_ro = ((before == '\0' || before == ',') &&
  529. (after == '\0' || after == ','));
  530. }
  531. if (strstr(opts, "errors=panic") || !has_remount_ro)
  532. strcat(opts, ",errors=continue");
  533. } else if (strcmp(fs, "xfs") == 0) {
  534. strcat(opts, ",nouuid");
  535. }
  536. res = mount(source, target, fs, flags, opts);
  537. if (res == -1) {
  538. err = errno;
  539. goto error_clear_loop;
  540. }
  541. res = open(target, O_RDONLY | O_DIRECTORY);
  542. if (res == -1) {
  543. err = errno;
  544. goto error_clear_loop;
  545. }
  546. if (change_dir) {
  547. res = chdir(target);
  548. if (res == -1) {
  549. err = errno;
  550. }
  551. }
  552.  
  553. error_clear_loop:
  554. if (need_loop_device)
  555. reset_loop_device(loopname);
  556. errno = err;
  557. return res;
  558. }
  559.  
  560. uint64_t r[9] = {0x0,
  561. 0xffffffffffffffff,
  562. 0xffffffffffffffff,
  563. 0xffffffffffffffff,
  564. 0xffffffffffffffff,
  565. 0xffffffffffffffff,
  566. 0xffffffffffffffff,
  567. 0x0,
  568. 0xffffffffffffffff};
  569.  
  570. int main(void)
  571. {
  572. syscall(__NR_mmap, /*addr=*/0x1ffffffff000ul, /*len=*/0x1000ul, /*prot=*/0ul,
  573. /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1,
  574. /*offset=*/0ul);
  575. syscall(__NR_mmap, /*addr=*/0x200000000000ul, /*len=*/0x1000000ul,
  576. /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/ 7ul,
  577. /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1,
  578. /*offset=*/0ul);
  579. syscall(__NR_mmap, /*addr=*/0x200001000000ul, /*len=*/0x1000ul, /*prot=*/0ul,
  580. /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1,
  581. /*offset=*/0ul);
  582. const char* reason;
  583. (void)reason;
  584. intptr_t res = 0;
  585. if (write(1, "executing program\n", sizeof("executing program\n") - 1)) {
  586. }
  587. res = syscall(__NR_getpgrp, /*pid=*/0);
  588. if (res != -1)
  589. r[0] = res;
  590. syscall(__NR_setpriority, /*which=*/0ul, /*who=*/r[0], /*prio=*/0ul);
  591. syscall(__NR_ptrace, /*req=*/0x1eul, /*pid=*/r[0],
  592. /*features=ARCH_SHSTK_SHSTK*/ 1ul, /*cmd=*/0x5003ul);
  593. *(uint16_t*)0x200000000400 = 1;
  594. *(uint64_t*)0x200000000408 = 0x200000000000;
  595. *(uint16_t*)0x200000000000 = 6;
  596. *(uint8_t*)0x200000000002 = 0;
  597. *(uint8_t*)0x200000000003 = 0;
  598. *(uint32_t*)0x200000000004 = 0x7fffffff;
  599. syscall(__NR_seccomp, /*op=*/1ul, /*flags=*/0ul, /*arg=*/0x200000000400ul);
  600. syscall(__NR_rseq, /*rseq=*/0ul, /*rseq_len=*/0ul, /*flags=*/0ul,
  601. /*sig=*/0ul);
  602. syz_sysconfig_set__proc_sys_vm_zone_reclaim_mode(/*val=*/0x22);
  603. memcpy((void*)0x2000000000c0, "./file0\000", 8);
  604. res = syscall(
  605. __NR_openat, /*fd=*/0xffffffffffffff9cul, /*file=*/0x2000000000c0ul,
  606. /*flags=O_SYNC|O_PATH|O_NONBLOCK|O_NOFOLLOW|O_NOATIME|O_WRONLY*/ 0x361801,
  607. /*mode=S_IWOTH|S_IRGRP*/ 0x22);
  608. if (res != -1)
  609. r[1] = res;
  610. memcpy((void*)0x200000000100, "./file0\000", 8);
  611. syscall(__NR_mknodat, /*dirfd=*/r[1], /*file=*/0x200000000100ul,
  612. /*mode=S_IFCHR*/ 0x2000ul, /*dev=*/0x700);
  613. memcpy((void*)0x200000001440, "iso9660\000", 8);
  614. memcpy((void*)0x200000001480, "./file0\000", 8);
  615. memcpy(
  616. (void*)0x200000000040,
  617. "\x64\x6d\x6f\x64\x65\x3d\x30\x78\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30"
  618. "\x30\x30\x61\x32\x34\x63\x2c\x6e\x6f\x63\x6f\x6d\x70\x72\x65\x73\x73\x2c"
  619. "\x6d\x96\x44\x3d\x6f\x66\x66\x2c\x69\x6f\x63\x68\x61\x72\x73\x65\x74\x3d"
  620. "\x63\x70\x34\x33\x37\x2c\x6d\x61\x70\x3d\x61\x63\x6f\x72\x6e\x2c\x00",
  621. 71);
  622. memcpy(
  623. (void*)0x200000001500,
  624. "\x78\x9c\xec\xdd\x79\x70\x9c\xe5\x7d\xc0\xf1\xdf\xbb\x96\x6c\x21\x13\x30"
  625. "\x60\x8c\x21\x04\x36\x36\xa4\x8e\xe3\x18\x49\x06\x13\x17\xda\x46\xe8\x30"
  626. "\x4a\x6c\x8b\xb1\xec\x0e\x4c\xfe\x08\x0e\x16\x8c\x06\x61\x67\x70\xda\x26"
  627. "\xb4\x9d\xa1\x33\x99\x9e\xa1\x39\x9b\x34\x49\x4f\xda\xa4\x6e\x9a\x04\x52"
  628. "\x9a\x36\x77\xc8\x7d\xdf\x07\x09\x39\xc8\x49\xee\x44\xb9\xc9\xe9\xce\xb3"
  629. "\xfb\xc8\x12\x60\x1d\x06\xc9\x72\xfc\x7c\x3e\x1e\x59\xab\xd5\xb3\xfb\x3e"
  630. "\xaf\x57\xd6\x77\xdf\xd5\x6a\x9f\xe0\x37\xd9\x81\x03\x07\x1a\x6f\x0f\xf0"
  631. "\xe3\x9d\x2f\x3b\x92\x93\xe5\xe8\x73\x49\xef\x5d\x37\xdf\x7a\x53\x7a\xfb"
  632. "\xb3\x1b\x63\x71\x2c\x8a\x0b\xaa\xd7\x44\xb4\x45\x44\x3d\xa2\x25\x22\x56"
  633. "\x46\xb4\xf6\xf4\x6e\x1f\xdc\x3a\xc3\x15\x5d\x1b\x71\x65\x44\xdc\x1e\x51"
  634. "\x45\xc4\x92\x68\xbe\x9f\x95\x2b\xa3\x7a\x66\x1c\x3f\xf1\xf1\xed\x51\xbd"
  635. "\x38\x6d\x97\xf9\x77\x80\xa2\x2d\xf4\xd7\x1f\x00\x00\x00\x00\x00\x00\x00"
  636. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  637. "\x00\x00\x00\x00\x1c\x8d\xaa\x9e\xde\x8e\x8e\xce\x2a\xb6\x0c\x6c\xdb\x79"
  638. "\x79\x7d\x6a\x8d\x25\xc0\xa7\xf9\xfc\xf8\xf5\x5d\x56\x4b\x7f\xd7\x2e\x9b"
  639. "\x71\xbb\x11\x55\x7a\x8b\xb6\xb6\xf1\xa5\xbe\x57\x1e\x7f\x70\xc5\xf0\xea"
  640. "\x84\xf4\xf7\xaa\x58\xde\x38\xa7\x5a\xde\x58\x90\x3c\xda\xe2\x86\xa5\x2b"
  641. "\x96\x5d\x74\x4a\x4b\x6d\xfc\xf2\xd3\x4c\xe8\x88\xd8\xf7\xb4\x1b\xae\xdd"
  642. "\x35\x3a\x3a\x7c\xfd\x42\x4f\x64\x81\x6c\xee\xdb\x36\x30\x34\x38\xb0\xb5"
  643. "\x7b\x73\x5f\x7d\x60\x68\xb0\xbe\x69\xe3\xc6\x8e\xf3\x2e\xed\x1f\xaa\xf7"
  644. "\x0f\x6c\xe9\x1b\xba\x62\x68\x47\xdf\xd6\x7a\xcf\xf6\xbe\xee\x1d\x83\xdb"
  645. "\xeb\x6b\x7a\x1e\x59\xef\xdc\xb4\x69\x43\xbd\x6f\xfd\x15\x83\x3b\xb7\x6d"
  646. "\xee\xed\xde\xd2\x37\x7e\xe6\x85\x8f\xee\xea\xe8\xd8\x58\x7f\xdc\xfa\xcb"
  647. "\xfa\xba\xb7\x0f\x0d\x6e\x3b\xef\x71\xeb\x87\x7a\x2e\x1d\xd8\xb2\x65\x60"
  648. "\xdb\xe6\xc6\x98\xf4\xe9\x34\xe6\xc2\xf4\x85\xf8\xf8\x81\x1d\xf5\x1d\x7d"
  649. "\xdd\x5b\xeb\xf5\xab\x47\x46\x87\x37\xcc\x34\xc9\x34\xa8\x73\x36\x83\xba"
  650. "\x66\x1a\xd4\xd5\xd1\xd5\xd5\xd9\xd9\xd5\xd5\xb9\xf1\x82\x4d\x17\x5c\xd8"
  651. "\xd1\xd1\x72\xbf\x33\x3a\xee\x23\xee\x37\x62\xe1\xbf\x68\x59\x58\xf3\xf2"
  652. "\x7d\x1c\x1e\x88\x5a\xee\x7f\x6c\x89\x81\xd8\x16\x3b\xe3\xf2\xa8\x1f\xf2"
  653. "\x4f\x4f\xf4\xc6\xf6\x18\x8c\xad\x53\x7c\x3e\x1b\xef\xff\xb9\xe7\xf5\x4d"
  654. "\xbb\xdd\xc9\xfd\x3f\xb3\x79\xd6\x99\xcb\x26\xfa\x7f\x72\x34\xfa\xbf\xa2"
  655. "\xd9\xff\x15\x53\xf5\x7f\x8a\xb9\x1c\xb9\x3f\xfb\xe2\x69\x71\x43\x5c\x1b"
  656. "\xbb\x62\x34\x46\x63\x38\xae\x5f\xf0\x19\x1d\xd9\x3f\x9b\xa3\x2f\xb6\xc5"
  657. "\x40\x0c\xc5\x60\x0c\xc4\xd6\xe8\x6e\x9c\x53\xcf\xe7\xd4\x63\x53\x6c\x8c"
  658. "\x8d\xd1\x11\x4f\x8c\x4b\xa3\x3f\x86\xa2\x1e\xfd\x31\x10\x5b\xa2\x2f\x86"
  659. "\xe2\x8a\x18\x8a\x1d\xd1\xd7\xf8\x8a\xea\x89\xed\xd1\x17\xdd\xb1\x23\x06"
  660. "\x63\x7b\xd4\x63\x4d\xf4\xc4\x23\xa3\x1e\x9d\xb1\x29\x36\xc5\x86\xa8\x47"
  661. "\x5f\xac\x8f\x2b\x62\x30\x76\xc6\xb6\xd8\x1c\xbd\xd1\xdd\xb8\x96\xab\x63"
  662. "\xa4\xf1\xef\xbe\x61\x9a\x39\x1e\x1c\xd4\x39\x9b\x41\x5d\xd3\x0c\xd2\x7f"
  663. "\x1e\xbc\xf9\xfa\x56\x0e\x87\xed\xc0\x78\xff\x01\x80\x72\x5c\xd2\xd7\xad"
  664. "\xff\x00\x50\x98\x6d\x43\xdb\x3b\xba\xf4\x1f\x00\x8a\xb2\xc3\xf1\x3f\x00"
  665. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  666. "\x00\x00\xcc\xb5\x2a\x6a\xf1\xed\x88\x78\x5e\xef\x58\x35\x79\x65\xca\xb6"
  667. "\xc6\x82\xff\x53\x5e\x6c\x71\xd5\xb8\x64\x2d\xaa\xe6\x5a\xbe\xd1\xb6\x71"
  668. "\xc3\x85\x3d\xfd\x9d\xfd\xbd\x1d\x1d\x1d\x1d\x9d\x17\x9c\x3f\xfd\xea\xbf"
  669. "\x73\xee\xa4\x18\x1c\xda\xd1\x5d\xef\xd9\x7b\xdd\x93\xaf\x1f\xde\xb7\x6f"
  670. "\x78\x77\x7d\xe7\x9e\x91\xab\xf6\xee\x1e\x9e\xf5\x35\x3c\xd8\xcb\x1f\xa6"
  671. "\x8b\x97\xdd\xbd\x64\xe9\x8a\x65\x17\x6d\x4a\x1f\xac\xbd\x66\x78\xcf\xc8"
  672. "\xbe\xbd\x23\xd7\xed\xba\x66\xde\x36\x08\x00\x93\xb4\x44\x2d\xee\x8e\x88"
  673. "\xb3\x6f\x19\xab\x1e\x9e\x5b\x1e\x6b\x77\xf6\xf6\xd7\xb7\xfc\x7e\x7d\x60"
  674. "\xcf\xd5\x7b\x27\x8d\xad\x8d\x2f\x13\xf0\x20\x5b\x39\xc3\x7d\x8b\xf9\xb6"
  675. "\xf8\x88\x6e\x4d\xdb\x01\x38\x0a\xb5\x46\x2d\xae\x8b\x88\xcb\x16\x8d\x55"
  676. "\xab\x52\xe3\xf3\x7d\x80\xda\xa3\x1a\x0b\x03\x2e\xf4\xf4\xa6\xd4\x78\xdc"
  677. "\xa1\x8a\x78\x6d\x68\x2c\x00\x1c\xae\xc5\x51\x8b\xc1\x88\xd8\x7d\xd2\x2b"
  678. "\xab\xd5\x11\xb1\x28\x8e\x81\xe3\xfb\xb6\x74\x9f\xa0\xb1\x13\x3b\x7b\xfb"
  679. "\x1b\x3b\x32\x3a\xb2\x6b\xcf\x53\xa2\xf1\x18\xc6\xa2\xe6\xa8\x65\xf7\xbd"
  680. "\xd0\xf8\x63\x1f\x47\xf9\x7d\x89\x65\x11\x8f\x4d\x73\x5d\x6c\xcd\x46\x00"
  681. "\x1e\xb8\x25\x51\x8b\x57\x45\xc4\x75\x27\xb6\xc5\x39\x8d\x9f\x07\x00\x00"
  682. "\xc7\xba\xb6\xa8\x45\xf3\x79\x7f\x63\xd5\xb9\x0b\x3d\x19\x00\x00\x00\x00"
  683. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x38"
  684. "\x46\x54\x51\x8b\x17\x44\xc4\xb3\xbf\x34\x56\x75\x4c\x3a\xff\x41\xae\xff"
  685. "\xff\x98\xfe\x23\x32\xfb\x83\xac\xff\x0f\x00\x87\xa1\x25\x6a\xf1\x93\xbc"
  686. "\xfe\x7f\xa7\xf5\xff\xe7\x9e\xb6\x03\x70\x14\x6a\x8d\x5a\xfc\x69\x5e\xff"
  687. "\xbf\xcb\xfa\xff\x00\x50\x84\xc5\x51\x8b\x27\xe6\xf5\xff\x37\x58\xff\xff"
  688. "\xe8\xbf\x2f\x61\xfd\x7f\x00\xe6\xc0\x92\xa8\xc5\x5b\xf2\xfa\xff\xe7\x5b"
  689. "\xff\x1f\x00\x8a\xd0\x16\xb5\x68\x3e\xef\x6f\xac\xba\x60\xa1\x27\x03\x00"
  690. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  691. "\x00\x00\xc7\x88\xe3\xa2\x16\xef\x88\x88\x97\x5f\xfe\x87\x8d\x75\x65\x26"
  692. "\xaf\x4b\x3f\x79\x85\x99\xe3\x67\x58\x6e\x26\x7d\x7a\x7d\x3e\x3d\x9b\x35"
  693. "\xf9\x5a\xf3\x5a\x83\xb5\x2a\xfd\x99\xc3\x1d\x02\x00\x66\xd4\x16\xb5\xb8"
  694. "\xb8\x71\x6a\xac\xea\x5e\xe8\xc9\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  695. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  696. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  697. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  698. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  699. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  700. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  701. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  702. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  703. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  704. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  705. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  706. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  707. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  708. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  709. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  710. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  711. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  712. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  713. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  714. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  715. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x47\xb5\x5a\xd4\xe2\x83\x11\x51\xdd"
  716. "\x31\x56\x45\x15\x11\x37\x46\xd4\xa3\xf9\xbe\x63\xa1\x27\x07\x00\xcc\x8f"
  717. "\xaa\x16\x5f\x8d\x88\x87\x7d\x7c\x2c\xd5\x3f\x2e\x5e\x76\xf7\x92\xa5\x2b"
  718. "\x96\x5d\xb4\x29\x22\x16\xc5\xa2\xc6\x5d\x82\x6a\xf2\xf8\xc1\xa1\x1d\xdd"
  719. "\xf5\x9e\xbd\xd7\x3d\xf9\xfa\xe1\x7d\xfb\x86\x77\xd7\x77\xee\x19\xb9\x6a"
  720. "\xef\xee\xe1\xd9\x6e\xae\xad\xa7\x77\xfb\xe0\xd6\xf9\xd8\x91\x59\x59\x3c"
  721. "\xcf\xf3\x5f\xfc\xa0\x67\xd8\x96\xee\x93\x4d\xb2\xb6\x31\xe1\x9d\xbd\xfd"
  722. "\x8d\x49\x8f\x8e\xec\xda\xf3\x94\x74\x76\xad\x5a\xf4\xa0\x37\x05\x40\xb9"
  723. "\xda\xa2\x16\xbf\x6c\x9c\x1a\xab\xaa\x85\x9e\x0c\x00\x70\x44\xb4\x56\xb5"
  724. "\x78\x48\x44\x3c\xe9\x67\xfb\x0f\x1e\x77\xb6\x34\x8f\xf9\x5b\x9a\x1f\x75"
  725. "\xd4\x0e\x64\x2f\x59\x3e\x71\x6c\xda\x96\xef\x2c\x8c\xdf\x67\x18\x7f\xdc"
  726. "\xe0\x94\x69\x4e\x1f\xf2\xfe\xc5\xda\x6b\x86\xf7\x8c\xec\xdb\x3b\x72\xdd"
  727. "\xae\x6b\x66\x3a\x08\x6f\xcb\xdb\x75\xe4\x0b\x00\x0f\x4e\x55\xd5\xe2\xdd"
  728. "\x11\xb1\xf9\x49\x2b\x1b\x5d\xad\xa2\xfd\xfe\x8f\x41\xe7\x71\xdf\x8b\x88"
  729. "\x0b\x9f\x5d\xcf\xe3\xa2\x3d\x8d\x1b\x7f\xc0\x7b\x49\x23\xee\x6d\x57\x8f"
  730. "\x8c\x0e\xaf\xbf\x6a\xef\xe8\xee\x34\xfe\x39\x11\xf1\x9e\x97\x9e\x99\xc7"
  731. "\xd7\x16\xa7\xf1\xf9\x4e\x45\xb4\x4e\x8c\xef\x48\x63\x6f\x89\x88\x3b\x5e"
  732. "\x3d\x3e\x36\x1a\x63\x97\xe4\xb1\x6d\x13\x63\x3b\xd3\xd8\x0b\x23\x62\xd7"
  733. "\x6d\xf7\x1e\xdb\x96\xc7\x1e\x37\x31\xb6\x2b\x8d\x5d\x15\x11\xa3\xcf\xbd"
  734. "\xf7\xd8\xe3\xf2\xd8\xf6\x89\xb1\x1b\xe6\xf7\x5f\x19\x00\x8e\x2e\xe9\xf8"
  735. "\xff\x8f\x22\xe2\x05\xeb\xf6\x1f\x6c\xf3\x74\xc7\xff\xe3\xc7\xf0\x3b\xf2"
  736. "\xfb\xf9\x3e\xfe\x6f\x9d\x74\xa1\xb6\xbc\xdd\xd6\xb9\xda\x79\x00\x28\x54"
  737. "\x3a\x46\x7e\x6f\x3e\xfe\x6f\x9d\xe1\xf8\xff\xa3\x11\x71\xcb\xaf\xcf\xcc"
  738. "\xe3\x9a\xc7\xd2\xed\xf9\xf3\x4b\x27\x1d\xcf\x1f\xf9\xbd\x00\x00\x0e\x47"
  739. "\x3a\xfe\xbf\x2c\xf5\xfc\x85\xfb\x0f\x3e\x96\x9f\x8f\xff\xf3\x61\xf6\xc4"
  740. "\xf1\xff\xd3\x97\x4d\x1c\xc3\xef\xce\xef\xe7\xfb\xf8\x7f\xc9\x7d\x8e\xff"
  741. "\xd3\x76\x4f\x9b\xab\x9d\x07\x80\x42\xa5\xfe\x5f\x12\x11\x5d\x57\xec\x3f"
  742. "\xf8\xf3\xf6\xd9\xf4\x7f\xfc\xb8\x7f\xbe\xfb\xdf\x76\x9f\xfe\xa7\xed\xae"
  743. "\x9c\xab\x9d\x07\x80\x42\xa5\xfe\x3f\x21\x22\x86\x2e\xdb\x7f\xf0\x39\x74"
  744. "\xb3\xe9\xff\x9a\xd5\xf9\xf2\xf9\xe3\xf9\xea\xff\x71\xf7\xe9\x7f\xda\xee"
  745. "\xe9\x73\xb6\xf7\x00\x50\xa6\xd4\xff\x67\x44\xc4\x1f\x5f\xbe\xff\xe0\xf3"
  746. "\xe2\x8f\xa6\xfe\xb7\x1f\xa2\xff\x67\xcd\xd9\xde\x03\x40\x99\x52\xff\xbb"
  747. "\x23\xe2\xce\x57\xec\x3f\xf8\x98\xfe\x6c\xfa\x7f\x46\xfe\xed\x80\xf9\x7e"
  748. "\xfc\x7f\xe9\x7d\xfa\x9f\xb6\xbb\x7a\xce\xf6\x1e\x00\xca\x54\xc5\xf2\xaa"
  749. "\x59\xe6\xd6\x38\xb5\x71\xaa\x7f\x60\x4b\x9f\xa7\xf0\x03\x00\x00\xc0\xb1"
  750. "\xa4\xb1\xbe\xcf\xf2\xf1\x87\xfb\xab\x53\xa3\x72\xfc\x0f\x00\x00\x00\xc7"
  751. "\x9a\x2a\x56\xe4\x9f\xff\xb7\xc7\x69\xcd\x53\x57\xc7\x48\x8c\xc6\xb0\xe5"
  752. "\xff\x01\x00\x00\xe0\x58\xd1\xf8\xf9\xff\x8a\xe6\x72\x7e\x11\xd5\x69\x51"
  753. "\x39\xfe\x07\x00\x00\x80\x63\xcd\xaa\xc6\xef\xff\x37\x7e\x07\xa0\xf1\xf2"
  754. "\xbf\x6d\x71\x43\xe3\xe5\x7a\x5a\x6a\x8d\xc7\x06\xaa\x6a\xe6\x11\xd5\xba"
  755. "\x58\xd9\x1c\xb1\x32\xaf\x0a\xb4\x3b\x8f\x68\x3e\xbe\x50\xb5\xf7\x0f\x6c"
  756. "\xe9\x5b\xdf\x33\xb8\xe5\xa2\xce\x78\x44\xe3\x55\x06\x1a\xbf\x69\x70\xc8"
  757. "\x6b\x6b\x6d\xfc\xfa\xc1\xda\x38\xbd\x39\xea\xf4\xfc\x9a\x44\xed\xf7\xbe"
  758. "\xc6\xb6\x34\xaa\x73\xfd\x45\x9d\xb1\x36\xce\x68\x8e\x3c\xa3\xf9\x8a\x84"
  759. "\xab\xd7\x1c\x62\x64\x57\x73\xe4\xd9\xcd\x91\x67\x4f\x33\x72\x43\x1a\x09"
  760. "\x00\xc7\xba\x55\x33\xf4\x78\x36\xfd\x5f\x1b\xe7\x34\x47\x9c\xd3\x7c\x55"
  761. "\xc0\x96\x33\x0e\x51\xd6\x0e\x65\x05\x80\xa3\xc5\xaa\xc6\xf3\xff\x1b\xcf"
  762. "\x01\x98\xb2\xff\x33\x8c\xa8\xce\x9f\xe1\xf8\xff\xe4\x83\x4f\x29\x58\x1f"
  763. "\x57\xc5\xde\x18\x8d\xdd\xb1\xae\xf1\xdb\x06\x8d\x67\x1c\x1c\xf2\x5a\xdb"
  764. "\x27\x3d\x0d\x61\xdd\x0c\x8f\x06\x4c\x8c\xed\x8c\x75\x33\x3c\x1e\x30\x31"
  765. "\xb6\x2b\xd6\xcd\xf0\x88\xc0\xc4\xd8\x0d\x47\xfc\x76\x01\x80\xf9\xb4\x6a"
  766. "\x86\x0e\xcf\xa6\xff\xeb\x66\x38\xfe\x6f\xf7\x94\x42\x00\x38\xaa\xec\x7b"
  767. "\xda\x0d\xd7\xee\x1a\x1d\x1d\xbe\x7e\x1e\x4f\x2c\xf4\x3e\x02\x00\xf7\xa6"
  768. "\xd2\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  769. "\x00\x00\x00\x00\x30\xf7\x8e\xc4\xeb\xff\x3b\xe1\x84\x13\xbf\x69\x27\x16"
  770. "\xfa\x3b\x13\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  771. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  772. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  773. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  774. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  775. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  776. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  777. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  778. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  779. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  780. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  781. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xc0"
  782. "\xb1\xa1\x8a\x58\x74\xa8\xf3\x6b\x11\x4b\x22\xa2\x23\x22\xce\x3b\xf2\xb3"
  783. "\x9a\x3f\x37\x2e\xf4\x04\x16\x58\x75\x4f\xdc\x13\x4f\x8d\x13\x16\x7a\x1e"
  784. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  785. "\x00\x00\x00\x00\x00\xc7\x9a\xfc\xfa\xff\xb5\x68\xbe\x5f\xda\x3c\x2b\x5a"
  786. "\x6a\x11\xe7\x46\xc4\x95\x11\xf1\x84\x85\x9e\xe3\x5c\xba\x67\xa1\x27\xb0"
  787. "\xc0\x26\xbd\xfe\x7f\xba\xcd\xe3\x40\x15\x2d\xcd\x9b\x3d\xaa\xd6\x9e\xde"
  788. "\xed\x83\x5b\xd3\xcd\xdf\x58\xfb\xa1\x76\xd7\xcd\xb7\xde\x94\xde\x1e\xc8"
  789. "\x76\xd2\x15\xa4\x2d\xdc\x6b\x71\x89\xbc\x85\xa9\x2f\x75\x52\xe3\x52\xed"
  790. "\xbd\xc3\xfb\xae\x7d\xca\xde\x27\xd7\x7b\x2f\x69\x4c\xf2\x92\x1d\xfd\x5b"
  791. "\x7a\xb7\x6e\xde\xfe\xd8\x89\x81\x2b\xaa\xdb\x22\xea\xd1\x7c\x1b\x37\x3e"
  792. "\xdf\x3f\x39\xf7\x4d\xcf\x3a\xc4\x9e\xdf\x96\xf6\x74\x76\xdb\xed\x6f\x6c"
  793. "\xb7\xf7\xfe\xdb\x3d\xed\x50\x97\x9e\x7e\xbb\xd3\x19\x19\x1d\xee\x4a\x5b"
  794. "\xda\xd1\x77\xf9\x8e\x3f\xd8\x33\xf2\xd4\x49\x9f\x3a\xb9\x3a\x3d\x62\xf5"
  795. "\x9a\x88\x35\xf7\xde\xd2\x35\xe9\x6d\x8a\x3d\x3c\x3d\x5a\xa7\xdb\x5a\x35"
  796. "\x56\xfd\x79\x75\x42\x3c\x3f\xae\x6c\xdc\xfe\xe9\x5f\xa3\x3a\x50\xa5\x9b"
  797. "\xe8\xc4\xc6\xfe\x1f\x77\xf5\xc8\xe8\xf0\xfa\xab\xf6\x8e\xee\x9e\x62\x4e"
  798. "\xcb\xaa\xb4\xff\xbb\x23\xda\x66\x3f\xa7\xd3\x1a\xdf\x4f\x0e\xa9\xf1\x55"
  799. "\x57\x6b\x4d\x5b\xed\x68\x0c\x4a\x7f\x2d\x9f\xfe\xfa\xa6\x37\xe9\x1a\x3b"
  800. "\xa7\xd8\x87\x93\xaa\x95\x11\xd1\x7e\x58\xfb\xb0\x72\xea\x7d\x88\x59\xfc"
  801. "\xbb\xe7\x19\x6d\x98\x62\x46\xa7\x54\x67\x1d\xf6\x2d\x7d\xd6\x0c\x5b\x3c"
  802. "\xf4\x3c\xc7\xaa\x3b\xab\x4b\xe3\x93\xf1\xf4\x49\xeb\x7f\xd4\xd2\xed\x7f"
  803. "\x6e\xcc\xe6\x7f\x67\x1a\xd3\x18\x39\xe9\x2b\x65\xca\x91\xb5\xe6\xc8\xc6"
  804. "\x9e\x77\x4d\x7b\x9d\x53\xfe\xaf\x64\x1e\x3c\x23\x9e\x14\x8f\x39\x78\xfb"
  805. "\xd7\x26\x7d\xff\xcf\xb7\xd5\x91\xf9\x7e\x34\x69\x8b\x47\xe8\xff\x45\xa3"
  806. "\x48\xcb\xef\x53\xa4\xfc\xdd\x67\xaa\xcb\xe4\x79\x2e\x6f\x8e\x9a\x62\x9e"
  807. "\xa7\x56\xab\x23\x5a\xce\x38\xac\xef\x28\xab\xa7\xff\x8e\x32\x6f\xff\xff"
  808. "\x5f\x54\xad\x89\x1f\xc4\x8d\xd6\xff\x01\x00\x00\x00\x00\x00\x00\x00\x00"
  809. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  810. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  811. "\x8e\x7e\x55\xc4\xa2\x43\x9d\x5f\x8b\x38\x37\x22\x96\x45\xc4\x89\xe9\xe3"
  812. "\x7a\xc4\x81\xb9\xd8\x5e\xad\xbd\x9a\x8b\xab\x79\xc0\x6e\x5c\xd0\xad\x2f"
  813. "\xbc\xea\x9e\xb8\x27\x9e\x1a\x27\x2c\xf4\x3c\x00\x00\x00\x00\x00\x00\x00"
  814. "\x98\x1b\x97\xf4\xde\x75\xf3\xad\x37\xa5\xb7\xc6\xcf\xe3\x17\xc5\x39\xd5"
  815. "\x6b\x22\xda\x9a\x3f\xe9\x6f\x89\x88\x65\xd5\xf3\x5a\x7b\x7a\xb7\x0f\x6e"
  816. "\x9d\xe1\x8a\x5a\x23\xae\x8c\x88\xdb\x1f\xc0\x1c\xd2\xe5\xe2\xf8\x89\x8f"
  817. "\x6f\x4f\x1f\xad\x7c\x00\x57\x04\x00\xcc\x4a\x2d\x6a\xf1\x17\x11\x51\xdd"
  818. "\x31\x56\xbd\xb6\x6a\x3e\x31\xae\x1e\xcd\xf7\x1d\x0b\x3d\x39\x00\x60\x5e"
  819. "\xa4\xfe\xff\x65\xee\xff\xeb\xf4\x1f\x00\x8a\x90\xfa\xff\x57\xb9\xff\xaf"
  820. "\xd7\x7f\x00\x28\x42\xea\xff\x5f\xe7\xfe\xbf\x41\xff\x01\xa0\x08\xa9\xff"
  821. "\x7f\x93\xfb\xff\x46\xfd\x07\x80\x22\xa4\xfe\x3f\x23\xf7\xff\x4d\xfa\x0f"
  822. "\x00\x45\x48\xfd\xbf\x29\xf7\xff\xcd\xfa\x0f\x00\x45\x48\xfd\xff\xdb\xdc"
  823. "\xff\xdb\xf5\x1f\x00\x8a\x90\xfa\xff\xcc\xdc\xff\xb7\xe8\x3f\x00\x14\x21"
  824. "\xf5\xff\x59\xb9\xff\x6f\xd5\x7f\x00\x28\x42\xea\xff\xb3\x73\xff\xdf\xa6"
  825. "\xff\x00\x50\x84\xd4\xff\xe7\xe4\xfe\xbf\x5d\xff\x01\xa0\x08\xa9\xff\xcf"
  826. "\xcd\xfd\x7f\x87\xfe\x03\x40\x11\x52\xff\x9f\x97\xfb\xff\x4e\xfd\x07\x80"
  827. "\x22\xa4\xfe\xff\x5d\xee\xff\xbb\xf4\x1f\x00\x8a\x90\xfa\xff\xfc\xdc\xff"
  828. "\x77\xeb\x3f\x00\x14\x21\xf5\xff\x05\xb9\xff\xef\xd1\x7f\x00\x28\x42\xea"
  829. "\xff\xdf\xe7\xfe\xbf\x57\xff\x01\xa0\x08\xa9\xff\x2f\xcc\xfd\x7f\x9f\xfe"
  830. "\x03\x40\x11\x52\xff\x5f\x94\xfb\xff\x7e\xfd\x07\x80\x22\xa4\xfe\xbf\x38"
  831. "\xf7\xff\x03\xfa\x0f\x00\x45\x48\xfd\xff\x87\xdc\xff\x0f\xea\x3f\x00\x14"
  832. "\x21\xf5\xff\x1f\x73\xff\x3f\xa4\xff\x00\x50\x84\xd4\xff\x7f\xca\xfd\xff"
  833. "\xb0\xfe\x03\x40\x11\x52\xff\xff\x39\xf7\xff\x23\xfa\x0f\x00\x45\x48\xfd"
  834. "\xff\x97\xdc\xff\x8f\xea\x3f\x00\x14\x21\xf5\xff\x5f\x73\xff\x3f\xa6\xff"
  835. "\x00\x50\x84\xd4\xff\x9b\x73\xff\x3f\xae\xff\x00\x50\x84\xd4\xff\x7f\xcb"
  836. "\xfd\xff\x84\xfe\x03\x40\x11\x52\xff\xff\x3d\xf7\xff\x93\xfa\x0f\x00\x45"
  837. "\x48\xfd\x7f\x49\xee\xff\x1d\xfa\x0f\x00\x45\x48\xfd\x7f\x69\xee\xff\xa7"
  838. "\xf4\x1f\x00\x8a\x90\xfa\xff\x1f\xb9\xff\x9f\xd6\x7f\x00\x28\x42\xea\xff"
  839. "\xfe\xdc\xff\x3b\xf5\x1f\x00\x8a\x90\xfa\xff\x9f\xb9\xff\x9f\xd1\x7f\x00"
  840. "\x28\x42\xea\xff\xcb\x72\xff\x3f\xab\xff\x00\x50\x84\xd4\xff\xff\xca\xfd"
  841. "\xff\x9c\xfe\x03\x40\x11\x52\xff\x5f\x9e\xfb\xff\x79\xfd\x07\x80\x22\xa4"
  842. "\xfe\xbf\x22\xf7\xff\x2e\xfd\x07\x80\x22\xa4\xfe\xbf\x32\xf7\xff\x0b\xfa"
  843. "\x0f\x00\x45\x48\xfd\xbf\x25\xf7\xff\x8b\xfa\x0f\x00\x45\x48\xfd\xbf\x35"
  844. "\xf7\xff\x4b\xfa\x0f\x00\x45\x48\xfd\x7f\x55\xee\xff\x97\xf5\x1f\x00\x8a"
  845. "\x90\xfa\xff\xdf\xb9\xff\x5f\xd1\x7f\x00\x28\x42\xea\xff\x6d\xb9\xff\x5f"
  846. "\xd5\x7f\x00\x28\x42\xea\xff\xff\xe4\xfe\xdf\xad\xff\x00\x50\x84\xd4\xff"
  847. "\x57\xe7\xfe\x7f\x4d\xff\x01\xa0\x08\xa9\xff\xff\x9b\xfb\xff\x75\xfd\x07"
  848. "\x80\x22\xa4\xfe\xff\x5f\xee\xff\x37\xf4\x1f\x00\x8a\x90\xfa\xff\x9a\xdc"
  849. "\xff\x6f\xea\x3f\x00\x14\x21\xf5\xff\xb5\xb9\xff\xdf\xd2\x7f\x00\x28\x42"
  850. "\xea\xff\xeb\x72\xff\xbf\xad\xff\x00\x50\x84\xd4\xff\xd7\xe7\xfe\x7f\x47"
  851. "\xff\x01\xa0\x08\xa9\xff\x6f\xc8\xfd\xff\xae\xfe\x03\x40\x11\x52\xff\xdf"
  852. "\x98\xfb\xff\x3d\xfd\x07\x80\x22\xa4\xfe\xbf\x29\xf7\x7f\x4c\xff\x01\xa0"
  853. "\x08\xa9\xff\x6f\xce\xfd\xff\xbe\xfe\x03\x40\x11\x52\xff\x6f\xcf\xfd\xff"
  854. "\x81\xfe\x03\x40\x11\x52\xff\xdf\x92\xfb\xff\x43\xfd\x07\x80\x22\xa4\xfe"
  855. "\xbf\x35\xf7\xff\x47\xfa\x0f\x00\x45\x48\xfd\x7f\x5b\xee\xff\x8f\xf5\x1f"
  856. "\x00\x8a\x90\xfa\xff\xf6\xdc\xff\x9f\xe8\x3f\x00\x14\x21\xf5\xff\x1d\xb9"
  857. "\xff\x3f\xd5\x7f\x00\x28\x42\xea\xff\x3b\x73\xff\xef\xd1\x7f\x00\x28\x42"
  858. "\xea\xff\xbb\x72\xff\x7f\xa6\xff\x00\x50\x84\xd4\xff\x77\xe7\xfe\xff\x5c"
  859. "\xff\x01\xa0\x08\xa9\xff\xef\xc9\xfd\xff\x85\xfe\x03\x40\x11\x52\xff\xdf"
  860. "\x9b\xfb\xff\x4b\xfd\x07\x80\x22\xa4\xfe\xbf\x2f\xf7\xff\x57\xfa\x0f\x00"
  861. "\x45\x48\xfd\x7f\x7f\xee\xff\xaf\xf5\x1f\x00\x8a\x90\xfa\xff\x81\xdc\xff"
  862. "\x03\xfa\x0f\x00\x45\x48\xfd\xff\x50\xee\x7f\xd4\xf4\x1f\x00\x4a\x90\xfa"
  863. "\xff\xe1\xdc\xff\x4a\xff\x01\xa0\x08\xa9\xff\x1f\xc9\xfd\xaf\xe9\x3f\x00"
  864. "\x14\x21\xf5\xff\xa3\xb9\xff\x8b\xf4\x1f\x00\x8a\x90\xfa\xff\xb1\xdc\xff"
  865. "\x16\xfd\x07\x80\x22\xa4\xfe\x7f\x3c\xf7\xbf\x55\xff\x01\xa0\x08\xa9\xff"
  866. "\x9f\xc8\xfd\x5f\xac\xff\x00\x50\x84\xd4\xff\x4f\xe6\xfe\x2f\xd1\x7f\x00"
  867. "\x28\x42\xea\xff\x1d\xb9\xff\x6d\xfa\x0f\x00\x45\x48\xfd\xff\x54\xee\xff"
  868. "\x71\xfa\x0f\x00\x45\x48\xfd\xff\x74\xee\x7f\xbb\xfe\x03\x40\x11\x52\xff"
  869. "\xef\xcc\xfd\x5f\xaa\xff\x00\x50\x84\xd4\xff\xcf\xe4\xfe\x1f\xaf\xff\x00"
  870. "\x50\x84\xd4\xff\xcf\xe6\xfe\x3f\x44\xff\x01\xa0\x08\xa9\xff\x9f\xcb\xfd"
  871. "\x3f\x41\xff\x01\xa0\x08\xa9\xff\x9f\xcf\xfd\x3f\x51\xff\x01\xa0\x08\xa9"
  872. "\xff\x77\xe5\xfe\x2f\xd3\x7f\x00\x28\x42\xea\xff\x17\x72\xff\x4f\xd2\x7f"
  873. "\x00\x28\x42\xea\xff\x17\x73\xff\x4f\xd6\x7f\x00\x28\x42\xea\xff\x97\x72"
  874. "\xff\x4f\xd1\x7f\x00\x28\x42\xea\xff\x97\x73\xff\x97\xeb\x3f\x00\x14\x21"
  875. "\xf5\xff\x2b\xb9\xff\xa7\xea\x3f\x00\x14\x21\xf5\xff\xab\xb9\xff\x2b\xf4"
  876. "\x1f\x00\x8a\x90\xfa\x7f\x77\xee\xff\x69\xfa\x0f\x00\x45\x48\xfd\xff\x5a"
  877. "\xee\xff\x4a\xfd\x07\x80\x22\xa4\xfe\x7f\x3d\xf7\xff\x74\xfd\x07\x80\x22"
  878. "\xa4\xfe\x7f\x23\xf7\xff\x0c\xfd\x07\x80\x22\xa4\xfe\x7f\x33\xf7\xff\xa1"
  879. "\xfa\x0f\x00\x45\x48\xfd\xff\x56\xee\xff\x99\xfa\x0f\x00\x45\x48\xfd\xff"
  880. "\x76\xee\xff\xc3\xf4\x1f\x00\x8a\x90\xfa\xff\x9d\xdc\xff\xb3\xf4\x1f\x00"
  881. "\x8a\x90\xfa\xff\xdd\xdc\xff\xb3\xf5\x1f\x00\x8a\x90\xfa\xff\xbd\xdc\xff"
  882. "\xba\xfe\x03\x40\x11\x52\xff\xc7\x72\xff\x1f\xae\xff\x00\x50\x84\xd4\xff"
  883. "\xef\xe7\xfe\xaf\xd2\x7f\x00\x28\x42\xea\xff\x0f\x72\xff\x57\xeb\x3f\x00"
  884. "\x14\x21\xf5\xff\x87\xb9\xff\xe7\xe8\x3f\x00\x14\x21\xf5\xff\x47\xb9\xff"
  885. "\xe7\xea\x3f\x00\x14\x21\xf5\xff\xc7\xb9\xff\x8f\xd0\x7f\x00\x28\x42\xea"
  886. "\xff\x4f\x72\xff\x7f\x4b\xff\x01\xa0\x08\xa9\xff\x3f\xcd\xfd\x5f\xa3\xff"
  887. "\x00\x50\x84\xd4\xff\x7b\x72\xff\x1f\xa9\xff\x00\x50\x84\xd4\xff\x9f\xe5"
  888. "\xfe\xaf\xd5\x7f\x00\x28\x42\xea\xff\xcf\x73\xff\x1f\xa5\xff\x00\x50\x84"
  889. "\xd4\xff\x5f\xe4\xfe\xaf\xd3\x7f\x00\x28\x42\xea\xff\x2f\x73\xff\x1f\xad"
  890. "\xff\x00\x50\x84\xd4\xff\x5f\xe5\xfe\xaf\xd7\x7f\x00\x28\x42\xea\xff\xaf"
  891. "\x73\xff\xcf\xd3\x7f\x00\x28\x42\xea\xff\x81\xdc\xff\x0e\xfd\x07\x80\x22"
  892. "\xa4\xfe\x47\xee\x7f\xa7\xfe\x03\x40\x11\x52\xff\xab\xdc\xff\x2e\xfd\x07"
  893. "\x80\x22\xd4\xf2\x23\x00\xa9\xff\x1b\xf4\x1f\x00\x8a\x90\xea\xbf\x28\xf7"
  894. "\xff\x7c\xfd\x07\x80\x22\xa4\xfe\xb7\xe4\xfe\x5f\xa0\xff\x00\x50\x84\xd4"
  895. "\xff\xd6\xdc\xff\x8d\xfa\x0f\x00\x45\x48\xfd\x5f\x9c\xfb\x7f\xa1\xfe\x03"
  896. "\x40\x11\x52\xff\x97\xe4\xfe\x3f\x46\xff\x01\xa0\x08\xa9\xff\x6d\xb9\xff"
  897. "\x9b\xf4\x1f\x00\x8a\x90\xfa\x7f\x5c\xee\xff\x6f\xeb\x3f\x00\x14\x21\xf5"
  898. "\xbf\x3d\xf7\xff\x22\xfd\x07\x80\x22\xa4\xfe\x2f\xcd\xfd\xbf\x58\xff\x01"
  899. "\xa0\x08\xa9\xff\xc7\xe7\xfe\xff\x8e\xfe\x03\x40\x11\x52\xff\x1f\x92\xfb"
  900. "\xff\xbb\xfa\x0f\x00\x45\x48\xfd\x3f\x21\xf7\xff\xf7\xf4\x1f\x00\x8a\x90"
  901. "\xfa\x7f\x62\xee\xff\x63\xf5\x1f\x00\x8a\x90\xfa\xbf\x2c\xf7\xbf\x5b\xff"
  902. "\x01\xa0\x08\xa9\xff\x27\xe5\xfe\x5f\xa2\xff\x00\x50\x84\xd4\xff\x93\x73"
  903. "\xff\x7b\xf4\x1f\x00\x8a\x90\xfa\x7f\x4a\xee\x7f\xaf\xfe\x03\x40\x11\x52"
  904. "\xff\x97\xe7\xfe\xf7\xe9\x3f\x00\x14\x21\xf5\xff\xd4\xdc\xff\x7e\xfd\x07"
  905. "\x80\x22\xa4\xfe\xaf\xc8\xfd\xdf\xac\xff\x00\x50\x84\xd4\xff\xd3\x72\xff"
  906. "\x2f\xd5\x7f\x00\x28\x42\xea\xff\xca\xdc\xff\x01\xfd\x07\x80\x22\xa4\xfe"
  907. "\x9f\x9e\xfb\xff\x38\xfd\x07\x80\x22\xa4\xfe\x9f\x91\xfb\xff\x78\xfd\x07"
  908. "\x80\x22\xa4\xfe\x3f\x34\xf7\x7f\x8b\xfe\x03\x40\x11\x52\xff\xcf\xcc\xfd"
  909. "\xdf\xaa\xff\x00\x50\x84\xd4\xff\x87\xe5\xfe\x6f\xd3\x7f\x00\x28\x42\xea"
  910. "\xff\x59\xb9\xff\x83\xfa\x0f\x00\x45\xf8\xff\x00\x00\x00\xff\xff\xfd\x9c"
  911. "\x73\x3e",
  912. 5168);
  913. syz_mount_image(/*fs=*/0x200000001440, /*dir=*/0x200000001480, /*flags=*/0,
  914. /*opts=*/0x200000000040, /*chdir=*/3, /*size=*/0x1430,
  915. /*img=*/0x200000001500);
  916. syz_sysconfig_reset__proc_sys_vm_zone_reclaim_mode();
  917. *(uint8_t*)0x200000000000 = 0;
  918. syscall(__NR_prctl, /*option=*/0x3bul, /*mode=*/1ul, /*offset=*/0ul,
  919. /*len=*/0ul, /*selector=*/0x200000000000ul);
  920. syz_sysconfig_reset__proc_sys_net_ipv4_tcp_plb_rehash_rounds();
  921. syz_init_net_socket(/*domain=*/0x10, /*type=*/3, /*proto=*/0x10);
  922. res =
  923. syscall(__NR_socket, /*domain=*/2ul, /*type=SOCK_RAW*/ 3ul, /*proto=*/7);
  924. if (res != -1)
  925. r[2] = res;
  926. *(uint64_t*)0x200000003e00 = 0x200000000000;
  927. *(uint16_t*)0x200000000000 = 2;
  928. *(uint16_t*)0x200000000002 = htobe16(0);
  929. *(uint8_t*)0x200000000004 = 0xac;
  930. *(uint8_t*)0x200000000005 = 0x14;
  931. *(uint8_t*)0x200000000006 = 0x14;
  932. *(uint8_t*)0x200000000007 = 0xbb;
  933. *(uint32_t*)0x200000003e08 = 0x10;
  934. *(uint64_t*)0x200000003e10 = 0;
  935. *(uint64_t*)0x200000003e18 = 0;
  936. *(uint64_t*)0x200000003e20 = 0;
  937. *(uint64_t*)0x200000003e28 = 0;
  938. *(uint32_t*)0x200000003e30 = 0;
  939. *(uint32_t*)0x200000003e38 = 0;
  940. *(uint64_t*)0x200000003e40 = 0x200000000b00;
  941. *(uint16_t*)0x200000000b00 = 2;
  942. *(uint16_t*)0x200000000b02 = htobe16(0);
  943. *(uint8_t*)0x200000000b04 = 0xac;
  944. *(uint8_t*)0x200000000b05 = 0x14;
  945. *(uint8_t*)0x200000000b06 = 0x14;
  946. *(uint8_t*)0x200000000b07 = 0xbb;
  947. *(uint32_t*)0x200000003e48 = 0x10;
  948. *(uint64_t*)0x200000003e50 = 0;
  949. *(uint64_t*)0x200000003e58 = 0;
  950. *(uint64_t*)0x200000003e60 = 0x200000001e40;
  951. *(uint64_t*)0x200000001e40 = 0x10;
  952. *(uint32_t*)0x200000001e48 = 0;
  953. *(uint32_t*)0x200000001e4c = 7;
  954. *(uint64_t*)0x200000003e68 = 0x10;
  955. *(uint32_t*)0x200000003e70 = 0;
  956. *(uint32_t*)0x200000003e78 = 0;
  957. syscall(__NR_sendmmsg, /*fd=*/r[2], /*mmsg=*/0x200000003e00ul, /*vlen=*/2ul,
  958. /*f=MSG_ZEROCOPY|MSG_MORE|MSG_EOR*/ 0x4008080ul);
  959. syz_init_net_socket(/*domain=*/0x10, /*type=*/3, /*proto=*/0x10);
  960. res = syscall(__NR_socket, /*domain=*/2ul,
  961. /*type=SOCK_STREAM|0x4000000000000000*/ 0x4000000000000001ul,
  962. /*proto=*/0);
  963. if (res != -1)
  964. r[3] = res;
  965. *(uint32_t*)0x200000000140 = 0;
  966. syscall(__NR_setsockopt, /*fd=*/r[3], /*level=*/1,
  967. /*optname=SO_MAX_PACING_RATE*/ 0x2f, /*optval=*/0x200000000140ul,
  968. /*optlen=*/4ul);
  969. res = syscall(__NR_socket, /*domain=AF_NETLINK*/ 0x10ul,
  970. /*type=SOCK_NONBLOCK|SOCK_RAW*/ 0x803ul, /*proto=*/0);
  971. if (res != -1)
  972. r[4] = res;
  973. syz_sysconfig_set__proc_sys_vm_zone_reclaim_mode(/*val=*/0x685e);
  974. memcpy((void*)0x200000000040,
  975. "\x26\x00\x00\x00\x22\x00\x47\x01\x05\x00\x07\x00\x89\x80\xe8\xff\x06"
  976. "\x00\x6d\x20\x00\x2b\x1f\x00\xc0\xe9\xff\x09\x4a\x51\xf1\x01\x01\xc7"
  977. "\x03\x35\x00\xb0",
  978. 38);
  979. syscall(__NR_write, /*fd=*/r[4], /*buf=*/0x200000000040ul, /*count=*/0x26ul);
  980. *(uint32_t*)0x200000d9bffc = 0;
  981. syscall(__NR_setsockopt, /*fd=*/r[4], /*level=*/1, /*optname=SO_RCVBUF*/ 8,
  982. /*optval=*/0x200000d9bffcul, /*optlen=*/4ul);
  983. memcpy((void*)0x2000000005c0,
  984. "\x12\x00\x00\x00\x12\x00\xe7\xef\x00\x7b\x00\x00\x00\x00\x00\x00\x00"
  985. "\xa1",
  986. 18);
  987. syscall(__NR_sendto, /*fd=*/r[4], /*buf=*/0x2000000005c0ul, /*len=*/0x12ul,
  988. /*f=*/0ul, /*addr=*/0ul, /*addrlen=*/0x45ul);
  989. *(uint64_t*)0x200000002500 = 0;
  990. *(uint32_t*)0x200000002508 = 0;
  991. *(uint64_t*)0x200000002510 = 0;
  992. *(uint64_t*)0x200000002518 = 0;
  993. *(uint64_t*)0x200000002520 = 0;
  994. *(uint64_t*)0x200000002528 = 0;
  995. *(uint32_t*)0x200000002530 = 0;
  996. syscall(__NR_recvmsg, /*fd=*/r[4], /*msg=*/0x200000002500ul, /*f=*/0ul, 0);
  997. *(uint64_t*)0x200000002540 = 0;
  998. *(uint32_t*)0x200000002548 = 0;
  999. *(uint64_t*)0x200000002550 = 0x2000000003c0;
  1000. *(uint64_t*)0x2000000003c0 = 0x200000000440;
  1001. *(uint64_t*)0x2000000003c8 = 0xf5;
  1002. *(uint64_t*)0x2000000003d0 = 0x200000000300;
  1003. *(uint64_t*)0x2000000003d8 = 0xaa;
  1004. *(uint64_t*)0x2000000003e0 = 0x200000000600;
  1005. *(uint64_t*)0x2000000003e8 = 0x72;
  1006. *(uint64_t*)0x2000000003f0 = 0x2000000027c0;
  1007. *(uint64_t*)0x2000000003f8 = 0xcc;
  1008. *(uint64_t*)0x200000000400 = 0x200000001040;
  1009. *(uint64_t*)0x200000000408 = 0x1000;
  1010. *(uint64_t*)0x200000000410 = 0x200000000880;
  1011. *(uint64_t*)0x200000000418 = 0xb8;
  1012. *(uint64_t*)0x200000002558 = 6;
  1013. *(uint64_t*)0x200000002560 = 0;
  1014. *(uint64_t*)0x200000002568 = 0;
  1015. *(uint32_t*)0x200000002570 = 0;
  1016. *(uint32_t*)0x200000002578 = 0;
  1017. *(uint64_t*)0x200000002580 = 0;
  1018. *(uint32_t*)0x200000002588 = 0;
  1019. *(uint64_t*)0x200000002590 = 0;
  1020. *(uint64_t*)0x200000002598 = 0;
  1021. *(uint64_t*)0x2000000025a0 = 0;
  1022. *(uint64_t*)0x2000000025a8 = 0;
  1023. *(uint32_t*)0x2000000025b0 = 0;
  1024. *(uint32_t*)0x2000000025b8 = 0;
  1025. syscall(__NR_recvmmsg, /*fd=*/r[4], /*mmsg=*/0x200000002540ul, /*vlen=*/2ul,
  1026. /*f=*/0ul, /*timeout=*/0ul);
  1027. syz_sysconfig_reset__proc_sys_vm_zone_reclaim_mode();
  1028. *(uint64_t*)0x200000003140 = 0x200000000000;
  1029. *(uint32_t*)0x200000003148 = 0x80;
  1030. *(uint64_t*)0x200000003150 = 0;
  1031. *(uint64_t*)0x200000003158 = 2;
  1032. *(uint64_t*)0x200000003160 = 0;
  1033. *(uint64_t*)0x200000003168 = 0;
  1034. *(uint32_t*)0x200000003170 = 0;
  1035. *(uint32_t*)0x200000003178 = 0;
  1036. syscall(__NR_recvmmsg, /*fd=*/-1, /*mmsg=*/0x200000003140ul, /*vlen=*/1ul,
  1037. /*f=*/0ul, /*timeout=*/0ul);
  1038. syscall(__NR_fcntl, /*fd=*/-1, /*cmd=*/4ul, /*flags=*/0ul);
  1039. res = syscall(__NR_socket, /*domain=*/2ul, /*type=*/2ul, /*proto=*/0x88);
  1040. if (res != -1)
  1041. r[5] = res;
  1042. memcpy((void*)0x200000000280,
  1043. "lo\000\000\000\000\000\000\000\000\000\000\000\000\000\000", 16);
  1044. *(uint64_t*)0x200000000290 = 0x200000000040;
  1045. *(uint32_t*)0x200000000040 = 0x48;
  1046. *(uint32_t*)0x200000000044 = 0;
  1047. *(uint32_t*)0x200000000048 = 0;
  1048. *(uint32_t*)0x20000000004c = 0;
  1049. syscall(__NR_ioctl, /*fd=*/r[5], /*cmd=*/0x8946, /*arg=*/0x200000000280ul);
  1050. syz_sysconfig_set__proc_sys_net_netfilter_nf_conntrack_tcp_timeout_established(
  1051. /*val=*/0);
  1052. res = syscall(__NR_inotify_init1, /*flags=*/0ul);
  1053. if (res != -1)
  1054. r[6] = res;
  1055. syscall(__NR_fcntl, /*fd=*/r[6], /*cmd=*/8ul, /*pid=*/-1);
  1056. res = syscall(__NR_fcntl, /*fd=*/r[6], /*cmd=*/0x10ul,
  1057. /*arg=*/0x200000000080ul);
  1058. if (res != -1)
  1059. r[7] = *(uint32_t*)0x200000000084;
  1060. syscall(__NR_ptrace, /*req=PTRACE_SEIZE*/ 0x4206ul, /*pid=*/r[7],
  1061. /*ignored=*/0ul, /*flags=*/0ul);
  1062. syscall(__NR_ptrace, /*req=PTRACE_INTERRUPT*/ 0x4207ul, /*pid=*/r[7], 0, 0);
  1063. syscall(__NR_ptrace, /*req=*/0x1eul, /*pid=*/r[7], /*arg=*/0ul,
  1064. /*code=*/0x1001ul);
  1065. memcpy((void*)0x200000000100, "net/tcp6\000", 9);
  1066. res = -1;
  1067. res = syz_open_procfs(/*pid=*/r[7], /*file=*/0x200000000100);
  1068. if (res != -1)
  1069. r[8] = res;
  1070. syscall(__NR_socket, /*domain=*/0xaul, /*type=*/2ul, /*proto=*/0);
  1071. syscall(__NR_ioctl, /*fd=*/-1, /*cmd=*/0x8946, /*arg=*/0ul);
  1072. *(uint64_t*)0x2000000000c0 = 0x2000000002c0;
  1073. *(uint64_t*)0x2000000000c8 = 0xef;
  1074. syscall(__NR_preadv, /*fd=*/r[8], /*vec=*/0x2000000000c0ul, /*vlen=*/1ul,
  1075. /*off_low=*/0xfffffffc, /*off_high=*/0xfffffffd);
  1076. return 0;
  1077. }
  1078.  
Advertisement
Add Comment
Please, Sign In to add comment