Tang-ZW

BUG: Address NUM:NUM:ac14:14bb::bb on device lo is missing its host route-C reproducer

May 15th, 2025
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 75.90 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_io_uring_register
  26. #define __NR_io_uring_register 427
  27. #endif
  28. #ifndef __NR_io_uring_setup
  29. #define __NR_io_uring_setup 425
  30. #endif
  31. #ifndef __NR_memfd_create
  32. #define __NR_memfd_create 319
  33. #endif
  34.  
  35. static unsigned long long procid;
  36. static long syz_sysconfig_set__proc_sys_vm_zone_reclaim_mode(volatile long val)
  37. {
  38. char command[256];
  39. sprintf(command, "echo %ld > /proc/sys/vm/zone_reclaim_mode", val);
  40. int ret = system(command);
  41. if (ret != 0) {
  42. return 0;
  43. }
  44. return 0;
  45. }
  46.  
  47. static long syz_sysconfig_reset__proc_sys_vm_zone_reclaim_mode()
  48. {
  49. char command[256];
  50. sprintf(command, "echo 0 > /proc/sys/vm/zone_reclaim_mode");
  51. int ret = system(command);
  52. if (ret != 0) {
  53. return 0;
  54. }
  55. return 0;
  56. }
  57. static long syz_sysconfig_set__proc_sys_vm_stat_interval(volatile long val)
  58. {
  59. char command[256];
  60. sprintf(command, "echo %ld > /proc/sys/vm/stat_interval", val);
  61. int ret = system(command);
  62. if (ret != 0) {
  63. return 0;
  64. }
  65. return 0;
  66. }
  67. static long syz_sysconfig_reset__proc_sys_vm_stat_interval()
  68. {
  69. char command[256];
  70. sprintf(command, "echo 1 > /proc/sys/vm/stat_interval");
  71. int ret = system(command);
  72. if (ret != 0) {
  73. return 0;
  74. }
  75. return 0;
  76. }
  77. static long syz_sysconfig_set__proc_sys_vm_swappiness(volatile long val)
  78. {
  79. char command[256];
  80. sprintf(command, "echo %ld > /proc/sys/vm/swappiness", val);
  81. int ret = system(command);
  82. if (ret != 0) {
  83. return 0;
  84. }
  85. return 0;
  86. }
  87. static long syz_sysconfig_reset__proc_sys_vm_swappiness()
  88. {
  89. char command[256];
  90. sprintf(command, "echo 60 > /proc/sys/vm/swappiness");
  91. int ret = system(command);
  92. if (ret != 0) {
  93. return 0;
  94. }
  95. return 0;
  96. }
  97.  
  98. #define BITMASK(bf_off, bf_len) (((1ull << (bf_len)) - 1) << (bf_off))
  99. #define STORE_BY_BITMASK(type, htobe, addr, val, bf_off, bf_len) \
  100. *(type*)(addr) = \
  101. htobe((htobe(*(type*)(addr)) & ~BITMASK((bf_off), (bf_len))) | \
  102. (((type)(val) << (bf_off)) & BITMASK((bf_off), (bf_len))))
  103.  
  104. static long syz_open_dev(volatile long a0, volatile long a1, volatile long a2)
  105. {
  106. if (a0 == 0xc || a0 == 0xb) {
  107. char buf[128];
  108. sprintf(buf, "/dev/%s/%d:%d", a0 == 0xc ? "char" : "block", (uint8_t)a1,
  109. (uint8_t)a2);
  110. return open(buf, O_RDWR, 0);
  111. } else {
  112. char buf[1024];
  113. char* hash;
  114. strncpy(buf, (char*)a0, sizeof(buf) - 1);
  115. buf[sizeof(buf) - 1] = 0;
  116. while ((hash = strchr(buf, '#'))) {
  117. *hash = '0' + (char)(a1 % 10);
  118. a1 /= 10;
  119. }
  120. return open(buf, a2, 0);
  121. }
  122. }
  123.  
  124. static long syz_open_procfs(volatile long a0, volatile long a1)
  125. {
  126. char buf[128];
  127. memset(buf, 0, sizeof(buf));
  128. if (a0 == 0) {
  129. snprintf(buf, sizeof(buf), "/proc/self/%s", (char*)a1);
  130. } else if (a0 == -1) {
  131. snprintf(buf, sizeof(buf), "/proc/thread-self/%s", (char*)a1);
  132. } else {
  133. snprintf(buf, sizeof(buf), "/proc/self/task/%d/%s", (int)a0, (char*)a1);
  134. }
  135. int fd = open(buf, O_RDWR);
  136. if (fd == -1)
  137. fd = open(buf, O_RDONLY);
  138. return fd;
  139. }
  140.  
  141. //% This code is derived from puff.{c,h}, found in the zlib development. The
  142. //% original files come with the following copyright notice:
  143.  
  144. //% Copyright (C) 2002-2013 Mark Adler, all rights reserved
  145. //% version 2.3, 21 Jan 2013
  146. //% This software is provided 'as-is', without any express or implied
  147. //% warranty. In no event will the author be held liable for any damages
  148. //% arising from the use of this software.
  149. //% Permission is granted to anyone to use this software for any purpose,
  150. //% including commercial applications, and to alter it and redistribute it
  151. //% freely, subject to the following restrictions:
  152. //% 1. The origin of this software must not be misrepresented; you must not
  153. //% claim that you wrote the original software. If you use this software
  154. //% in a product, an acknowledgment in the product documentation would be
  155. //% appreciated but is not required.
  156. //% 2. Altered source versions must be plainly marked as such, and must not be
  157. //% misrepresented as being the original software.
  158. //% 3. This notice may not be removed or altered from any source distribution.
  159. //% Mark Adler [email protected]
  160.  
  161. //% BEGIN CODE DERIVED FROM puff.{c,h}
  162.  
  163. #define MAXBITS 15
  164. #define MAXLCODES 286
  165. #define MAXDCODES 30
  166. #define MAXCODES (MAXLCODES + MAXDCODES)
  167. #define FIXLCODES 288
  168.  
  169. struct puff_state {
  170. unsigned char* out;
  171. unsigned long outlen;
  172. unsigned long outcnt;
  173. const unsigned char* in;
  174. unsigned long inlen;
  175. unsigned long incnt;
  176. int bitbuf;
  177. int bitcnt;
  178. jmp_buf env;
  179. };
  180. static int puff_bits(struct puff_state* s, int need)
  181. {
  182. long val = s->bitbuf;
  183. while (s->bitcnt < need) {
  184. if (s->incnt == s->inlen)
  185. longjmp(s->env, 1);
  186. val |= (long)(s->in[s->incnt++]) << s->bitcnt;
  187. s->bitcnt += 8;
  188. }
  189. s->bitbuf = (int)(val >> need);
  190. s->bitcnt -= need;
  191. return (int)(val & ((1L << need) - 1));
  192. }
  193. static int puff_stored(struct puff_state* s)
  194. {
  195. s->bitbuf = 0;
  196. s->bitcnt = 0;
  197. if (s->incnt + 4 > s->inlen)
  198. return 2;
  199. unsigned len = s->in[s->incnt++];
  200. len |= s->in[s->incnt++] << 8;
  201. if (s->in[s->incnt++] != (~len & 0xff) ||
  202. s->in[s->incnt++] != ((~len >> 8) & 0xff))
  203. return -2;
  204. if (s->incnt + len > s->inlen)
  205. return 2;
  206. if (s->outcnt + len > s->outlen)
  207. return 1;
  208. for (; len--; s->outcnt++, s->incnt++) {
  209. if (s->in[s->incnt])
  210. s->out[s->outcnt] = s->in[s->incnt];
  211. }
  212. return 0;
  213. }
  214. struct puff_huffman {
  215. short* count;
  216. short* symbol;
  217. };
  218. static int puff_decode(struct puff_state* s, const struct puff_huffman* h)
  219. {
  220. int first = 0;
  221. int index = 0;
  222. int bitbuf = s->bitbuf;
  223. int left = s->bitcnt;
  224. int code = first = index = 0;
  225. int len = 1;
  226. short* next = h->count + 1;
  227. while (1) {
  228. while (left--) {
  229. code |= bitbuf & 1;
  230. bitbuf >>= 1;
  231. int count = *next++;
  232. if (code - count < first) {
  233. s->bitbuf = bitbuf;
  234. s->bitcnt = (s->bitcnt - len) & 7;
  235. return h->symbol[index + (code - first)];
  236. }
  237. index += count;
  238. first += count;
  239. first <<= 1;
  240. code <<= 1;
  241. len++;
  242. }
  243. left = (MAXBITS + 1) - len;
  244. if (left == 0)
  245. break;
  246. if (s->incnt == s->inlen)
  247. longjmp(s->env, 1);
  248. bitbuf = s->in[s->incnt++];
  249. if (left > 8)
  250. left = 8;
  251. }
  252. return -10;
  253. }
  254. static int puff_construct(struct puff_huffman* h, const short* length, int n)
  255. {
  256. int len;
  257. for (len = 0; len <= MAXBITS; len++)
  258. h->count[len] = 0;
  259. int symbol;
  260. for (symbol = 0; symbol < n; symbol++)
  261. (h->count[length[symbol]])++;
  262. if (h->count[0] == n)
  263. return 0;
  264. int left = 1;
  265. for (len = 1; len <= MAXBITS; len++) {
  266. left <<= 1;
  267. left -= h->count[len];
  268. if (left < 0)
  269. return left;
  270. }
  271. short offs[MAXBITS + 1];
  272. offs[1] = 0;
  273. for (len = 1; len < MAXBITS; len++)
  274. offs[len + 1] = offs[len] + h->count[len];
  275. for (symbol = 0; symbol < n; symbol++)
  276. if (length[symbol] != 0)
  277. h->symbol[offs[length[symbol]]++] = symbol;
  278. return left;
  279. }
  280. static int puff_codes(struct puff_state* s, const struct puff_huffman* lencode,
  281. const struct puff_huffman* distcode)
  282. {
  283. static const short lens[29] = {3, 4, 5, 6, 7, 8, 9, 10, 11, 13,
  284. 15, 17, 19, 23, 27, 31, 35, 43, 51, 59,
  285. 67, 83, 99, 115, 131, 163, 195, 227, 258};
  286. static const short lext[29] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2,
  287. 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0};
  288. static const short dists[30] = {
  289. 1, 2, 3, 4, 5, 7, 9, 13, 17, 25,
  290. 33, 49, 65, 97, 129, 193, 257, 385, 513, 769,
  291. 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577};
  292. static const short dext[30] = {0, 0, 0, 0, 1, 1, 2, 2, 3, 3,
  293. 4, 4, 5, 5, 6, 6, 7, 7, 8, 8,
  294. 9, 9, 10, 10, 11, 11, 12, 12, 13, 13};
  295. int symbol;
  296. do {
  297. symbol = puff_decode(s, lencode);
  298. if (symbol < 0)
  299. return symbol;
  300. if (symbol < 256) {
  301. if (s->outcnt == s->outlen)
  302. return 1;
  303. if (symbol)
  304. s->out[s->outcnt] = symbol;
  305. s->outcnt++;
  306. } else if (symbol > 256) {
  307. symbol -= 257;
  308. if (symbol >= 29)
  309. return -10;
  310. int len = lens[symbol] + puff_bits(s, lext[symbol]);
  311. symbol = puff_decode(s, distcode);
  312. if (symbol < 0)
  313. return symbol;
  314. unsigned dist = dists[symbol] + puff_bits(s, dext[symbol]);
  315. if (dist > s->outcnt)
  316. return -11;
  317. if (s->outcnt + len > s->outlen)
  318. return 1;
  319. while (len--) {
  320. if (dist <= s->outcnt && s->out[s->outcnt - dist])
  321. s->out[s->outcnt] = s->out[s->outcnt - dist];
  322. s->outcnt++;
  323. }
  324. }
  325. } while (symbol != 256);
  326. return 0;
  327. }
  328. static int puff_fixed(struct puff_state* s)
  329. {
  330. static int virgin = 1;
  331. static short lencnt[MAXBITS + 1], lensym[FIXLCODES];
  332. static short distcnt[MAXBITS + 1], distsym[MAXDCODES];
  333. static struct puff_huffman lencode, distcode;
  334. if (virgin) {
  335. lencode.count = lencnt;
  336. lencode.symbol = lensym;
  337. distcode.count = distcnt;
  338. distcode.symbol = distsym;
  339. short lengths[FIXLCODES];
  340. int symbol;
  341. for (symbol = 0; symbol < 144; symbol++)
  342. lengths[symbol] = 8;
  343. for (; symbol < 256; symbol++)
  344. lengths[symbol] = 9;
  345. for (; symbol < 280; symbol++)
  346. lengths[symbol] = 7;
  347. for (; symbol < FIXLCODES; symbol++)
  348. lengths[symbol] = 8;
  349. puff_construct(&lencode, lengths, FIXLCODES);
  350. for (symbol = 0; symbol < MAXDCODES; symbol++)
  351. lengths[symbol] = 5;
  352. puff_construct(&distcode, lengths, MAXDCODES);
  353. virgin = 0;
  354. }
  355. return puff_codes(s, &lencode, &distcode);
  356. }
  357. static int puff_dynamic(struct puff_state* s)
  358. {
  359. static const short order[19] = {16, 17, 18, 0, 8, 7, 9, 6, 10, 5,
  360. 11, 4, 12, 3, 13, 2, 14, 1, 15};
  361. int nlen = puff_bits(s, 5) + 257;
  362. int ndist = puff_bits(s, 5) + 1;
  363. int ncode = puff_bits(s, 4) + 4;
  364. if (nlen > MAXLCODES || ndist > MAXDCODES)
  365. return -3;
  366. short lengths[MAXCODES];
  367. int index;
  368. for (index = 0; index < ncode; index++)
  369. lengths[order[index]] = puff_bits(s, 3);
  370. for (; index < 19; index++)
  371. lengths[order[index]] = 0;
  372. short lencnt[MAXBITS + 1], lensym[MAXLCODES];
  373. struct puff_huffman lencode = {lencnt, lensym};
  374. int err = puff_construct(&lencode, lengths, 19);
  375. if (err != 0)
  376. return -4;
  377. index = 0;
  378. while (index < nlen + ndist) {
  379. int symbol;
  380. int len;
  381. symbol = puff_decode(s, &lencode);
  382. if (symbol < 0)
  383. return symbol;
  384. if (symbol < 16)
  385. lengths[index++] = symbol;
  386. else {
  387. len = 0;
  388. if (symbol == 16) {
  389. if (index == 0)
  390. return -5;
  391. len = lengths[index - 1];
  392. symbol = 3 + puff_bits(s, 2);
  393. } else if (symbol == 17)
  394. symbol = 3 + puff_bits(s, 3);
  395. else
  396. symbol = 11 + puff_bits(s, 7);
  397. if (index + symbol > nlen + ndist)
  398. return -6;
  399. while (symbol--)
  400. lengths[index++] = len;
  401. }
  402. }
  403. if (lengths[256] == 0)
  404. return -9;
  405. err = puff_construct(&lencode, lengths, nlen);
  406. if (err && (err < 0 || nlen != lencode.count[0] + lencode.count[1]))
  407. return -7;
  408. short distcnt[MAXBITS + 1], distsym[MAXDCODES];
  409. struct puff_huffman distcode = {distcnt, distsym};
  410. err = puff_construct(&distcode, lengths + nlen, ndist);
  411. if (err && (err < 0 || ndist != distcode.count[0] + distcode.count[1]))
  412. return -8;
  413. return puff_codes(s, &lencode, &distcode);
  414. }
  415. static int puff(unsigned char* dest, unsigned long* destlen,
  416. const unsigned char* source, unsigned long sourcelen)
  417. {
  418. struct puff_state s = {
  419. .out = dest,
  420. .outlen = *destlen,
  421. .outcnt = 0,
  422. .in = source,
  423. .inlen = sourcelen,
  424. .incnt = 0,
  425. .bitbuf = 0,
  426. .bitcnt = 0,
  427. };
  428. int err;
  429. if (setjmp(s.env) != 0)
  430. err = 2;
  431. else {
  432. int last;
  433. do {
  434. last = puff_bits(&s, 1);
  435. int type = puff_bits(&s, 2);
  436. err = type == 0 ? puff_stored(&s)
  437. : (type == 1 ? puff_fixed(&s)
  438. : (type == 2 ? puff_dynamic(&s) : -1));
  439. if (err != 0)
  440. break;
  441. } while (!last);
  442. }
  443. *destlen = s.outcnt;
  444. return err;
  445. }
  446.  
  447. //% END CODE DERIVED FROM puff.{c,h}
  448.  
  449. #define ZLIB_HEADER_WIDTH 2
  450.  
  451. static int puff_zlib_to_file(const unsigned char* source,
  452. unsigned long sourcelen, int dest_fd)
  453. {
  454. if (sourcelen < ZLIB_HEADER_WIDTH)
  455. return 0;
  456. source += ZLIB_HEADER_WIDTH;
  457. sourcelen -= ZLIB_HEADER_WIDTH;
  458. const unsigned long max_destlen = 132 << 20;
  459. void* ret = mmap(0, max_destlen, PROT_WRITE | PROT_READ,
  460. MAP_PRIVATE | MAP_ANON, -1, 0);
  461. if (ret == MAP_FAILED)
  462. return -1;
  463. unsigned char* dest = (unsigned char*)ret;
  464. unsigned long destlen = max_destlen;
  465. int err = puff(dest, &destlen, source, sourcelen);
  466. if (err) {
  467. munmap(dest, max_destlen);
  468. errno = -err;
  469. return -1;
  470. }
  471. if (write(dest_fd, dest, destlen) != (ssize_t)destlen) {
  472. munmap(dest, max_destlen);
  473. return -1;
  474. }
  475. return munmap(dest, max_destlen);
  476. }
  477.  
  478. static int setup_loop_device(unsigned char* data, unsigned long size,
  479. const char* loopname, int* loopfd_p)
  480. {
  481. int err = 0, loopfd = -1;
  482. int memfd = syscall(__NR_memfd_create, "syzkaller", 0);
  483. if (memfd == -1) {
  484. err = errno;
  485. goto error;
  486. }
  487. if (puff_zlib_to_file(data, size, memfd)) {
  488. err = errno;
  489. goto error_close_memfd;
  490. }
  491. loopfd = open(loopname, O_RDWR);
  492. if (loopfd == -1) {
  493. err = errno;
  494. goto error_close_memfd;
  495. }
  496. if (ioctl(loopfd, LOOP_SET_FD, memfd)) {
  497. if (errno != EBUSY) {
  498. err = errno;
  499. goto error_close_loop;
  500. }
  501. ioctl(loopfd, LOOP_CLR_FD, 0);
  502. usleep(1000);
  503. if (ioctl(loopfd, LOOP_SET_FD, memfd)) {
  504. err = errno;
  505. goto error_close_loop;
  506. }
  507. }
  508. close(memfd);
  509. *loopfd_p = loopfd;
  510. return 0;
  511.  
  512. error_close_loop:
  513. close(loopfd);
  514. error_close_memfd:
  515. close(memfd);
  516. error:
  517. errno = err;
  518. return -1;
  519. }
  520.  
  521. static void reset_loop_device(const char* loopname)
  522. {
  523. int loopfd = open(loopname, O_RDWR);
  524. if (loopfd == -1) {
  525. return;
  526. }
  527. if (ioctl(loopfd, LOOP_CLR_FD, 0)) {
  528. }
  529. close(loopfd);
  530. }
  531.  
  532. static long syz_mount_image(volatile long fsarg, volatile long dir,
  533. volatile long flags, volatile long optsarg,
  534. volatile long change_dir,
  535. volatile unsigned long size, volatile long image)
  536. {
  537. unsigned char* data = (unsigned char*)image;
  538. int res = -1, err = 0, need_loop_device = !!size;
  539. char* mount_opts = (char*)optsarg;
  540. char* target = (char*)dir;
  541. char* fs = (char*)fsarg;
  542. char* source = NULL;
  543. char loopname[64];
  544. if (need_loop_device) {
  545. int loopfd;
  546. memset(loopname, 0, sizeof(loopname));
  547. snprintf(loopname, sizeof(loopname), "/dev/loop%llu", procid);
  548. if (setup_loop_device(data, size, loopname, &loopfd) == -1)
  549. return -1;
  550. close(loopfd);
  551. source = loopname;
  552. }
  553. mkdir(target, 0777);
  554. char opts[256];
  555. memset(opts, 0, sizeof(opts));
  556. if (strlen(mount_opts) > (sizeof(opts) - 32)) {
  557. }
  558. strncpy(opts, mount_opts, sizeof(opts) - 32);
  559. if (strcmp(fs, "iso9660") == 0) {
  560. flags |= MS_RDONLY;
  561. } else if (strncmp(fs, "ext", 3) == 0) {
  562. bool has_remount_ro = false;
  563. char* remount_ro_start = strstr(opts, "errors=remount-ro");
  564. if (remount_ro_start != NULL) {
  565. char after = *(remount_ro_start + strlen("errors=remount-ro"));
  566. char before = remount_ro_start == opts ? '\0' : *(remount_ro_start - 1);
  567. has_remount_ro = ((before == '\0' || before == ',') &&
  568. (after == '\0' || after == ','));
  569. }
  570. if (strstr(opts, "errors=panic") || !has_remount_ro)
  571. strcat(opts, ",errors=continue");
  572. } else if (strcmp(fs, "xfs") == 0) {
  573. strcat(opts, ",nouuid");
  574. }
  575. res = mount(source, target, fs, flags, opts);
  576. if (res == -1) {
  577. err = errno;
  578. goto error_clear_loop;
  579. }
  580. res = open(target, O_RDONLY | O_DIRECTORY);
  581. if (res == -1) {
  582. err = errno;
  583. goto error_clear_loop;
  584. }
  585. if (change_dir) {
  586. res = chdir(target);
  587. if (res == -1) {
  588. err = errno;
  589. }
  590. }
  591.  
  592. error_clear_loop:
  593. if (need_loop_device)
  594. reset_loop_device(loopname);
  595. errno = err;
  596. return res;
  597. }
  598.  
  599. uint64_t r[17] = {0x0,
  600. 0xffffffffffffffff,
  601. 0x0,
  602. 0xffffffffffffffff,
  603. 0xffffffffffffffff,
  604. 0xffffffffffffffff,
  605. 0xffffffffffffffff,
  606. 0xffffffffffffffff,
  607. 0xffffffffffffffff,
  608. 0xffffffffffffffff,
  609. 0xffffffffffffffff,
  610. 0xffffffffffffffff,
  611. 0xffffffffffffffff,
  612. 0xffffffffffffffff,
  613. 0xffffffffffffffff,
  614. 0xffffffffffffffff,
  615. 0xffffffffffffffff};
  616.  
  617. int main(void)
  618. {
  619. syscall(__NR_mmap, /*addr=*/0x1ffffffff000ul, /*len=*/0x1000ul, /*prot=*/0ul,
  620. /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1,
  621. /*offset=*/0ul);
  622. syscall(__NR_mmap, /*addr=*/0x200000000000ul, /*len=*/0x1000000ul,
  623. /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/ 7ul,
  624. /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1,
  625. /*offset=*/0ul);
  626. syscall(__NR_mmap, /*addr=*/0x200001000000ul, /*len=*/0x1000ul, /*prot=*/0ul,
  627. /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1,
  628. /*offset=*/0ul);
  629. const char* reason;
  630. (void)reason;
  631. intptr_t res = 0;
  632. if (write(1, "executing program\n", sizeof("executing program\n") - 1)) {
  633. }
  634. memcpy((void*)0x2000000004c0, "ext4\000", 5);
  635. memcpy((void*)0x200000000500, "./file0\000", 8);
  636. memcpy((void*)0x200000000140, "nobarrier", 9);
  637. *(uint8_t*)0x200000000149 = 0x2c;
  638. *(uint8_t*)0x20000000014a = 0;
  639. memcpy(
  640. (void*)0x200000000a80,
  641. "\x78\x9c\xec\xdd\xcf\x6f\x13\x57\x1e\x00\xf0\xaf\x6d\x12\x92\x90\xe5\xd7"
  642. "\x2e\xd2\xc2\x61\x41\xcb\xee\xb2\x3f\x44\x4c\x1c\x05\xa4\x15\x97\xaa\x07"
  643. "\x0e\x15\x55\x55\xa4\x5e\x69\x48\x4c\x84\xf2\xc3\x51\xec\x50\x12\x71\x08"
  644. "\xbd\x71\xab\xaa\x4a\xad\xd4\x53\xff\x80\xfe\x0f\x91\x7a\xeb\xa1\xe7\x22"
  645. "\xf5\xd0\x43\x4f\x48\xa8\x20\x2a\xd2\x4a\x95\x5c\xcd\xd8\x0e\x49\x88\x53"
  646. "\xd3\x06\x5b\xcd\x7c\x3e\xd2\xe0\x37\xf3\x06\x7f\xdf\xc3\xfa\x3e\xc6\x6f"
  647. "\x66\x3c\x01\x64\xd6\x99\xe4\x8f\x5c\xc4\x70\x44\x7c\x15\x11\x47\x1a\xab"
  648. "\x5b\x77\x38\xd3\x78\x79\xf6\xe4\xee\xe4\xfa\x93\xbb\x93\xb9\xa8\xd7\xaf"
  649. "\x7d\x9f\x4b\xf7\x4b\xb6\xb5\x76\x6d\xfd\xbd\x43\x11\xb1\x1a\x11\x03\x11"
  650. "\xf1\xf6\x95\x88\x1b\xb9\x17\xe3\x56\x97\x57\x66\x26\xfa\xa2\xbc\xd8\x5c"
  651. "\x2f\xd6\xe6\x16\x8a\xd5\xe5\x95\xf3\xb7\xe6\x26\xa6\xcb\xd3\xe5\xf9\xd2"
  652. "\xc5\xf1\xd2\xe8\xa5\xf1\xb1\xd2\xde\xf5\xf5\xc6\xe5\x2f\xbf\xb8\xff\xfe"
  653. "\x1b\xf5\xd5\xc7\xaf\x7f\xb0\x70\xe5\xcd\xc3\x49\xb3\x86\x9b\x75\x9b\xfb"
  654. "\xb1\x97\x1a\x5d\xef\x8b\x63\x9b\xb6\x1d\x88\x88\xcb\xaf\x22\x58\x0f\x14"
  655. "\x9a\xfd\x19\xec\x75\x43\xf8\x4d\x92\xcf\xef\xcf\x11\x71\x36\xcd\xff\x23"
  656. "\x51\x48\x3f\x4d\x20\x0b\xea\xf5\x7a\xfd\xe7\xfa\xc1\x76\xd5\xab\x75\x60"
  657. "\xdf\xca\xa7\xc7\xc0\xb9\xfc\x48\x44\x34\xca\xf9\xfc\xc8\x48\xe3\x18\xfe"
  658. "\x2f\x31\x94\x9f\xad\x54\x6b\xff\xbb\x59\x59\x9a\x9f\x6a\x1c\x2b\x1f\x8d"
  659. "\xbe\xfc\xcd\x5b\xb3\xe5\x0b\xcd\xef\x0a\x47\xa3\x2f\x97\xac\x8f\xa6\xe5"
  660. "\xe7\xeb\xa5\x6d\xeb\x63\x11\xe9\x31\xf0\x47\x85\xc1\x74\x7d\x64\xb2\x32"
  661. "\x3b\xd5\xdd\xa1\x0e\xd8\xe6\xd0\xb6\xfc\xff\xa1\xd0\xc8\x7f\x20\x23\x7c"
  662. "\xe5\x87\xec\x92\xff\x90\x5d\xf2\x1f\xb2\x4b\xfe\x43\x76\xc9\x7f\xc8\x2e"
  663. "\xf9\x0f\xd9\x25\xff\x21\xbb\xe4\x3f\x64\x97\xfc\x87\xec\xda\x94\xff\x03"
  664. "\xbd\x6c\x07\xd0\x7d\xfe\xff\x87\x4c\x7a\xeb\xea\xd5\x64\xa9\xaf\x37\xef"
  665. "\x7f\x9f\xba\xbd\xbc\x34\x53\xb9\x7d\x7e\xaa\x5c\x9d\x19\x99\x5b\x9a\xcc"
  666. "\x47\x65\x71\x61\x64\xba\x52\x99\x4e\xef\xd9\x99\xfb\xb5\xf7\x9b\xad\x54"
  667. "\x16\x46\x4b\xb1\x74\xa7\x58\x2b\x57\x6b\xc5\xea\xf2\xca\xf5\xb9\xca\xd2"
  668. "\x7c\xed\x7a\x7a\x5f\xff\xf5\x72\x5f\x57\x7a\x05\x74\xe2\xd8\xe9\xb5\x07"
  669. "\xb9\x88\x58\xfd\xff\x60\xba\x24\xfa\x9b\x75\x72\x15\xf6\xb7\x7a\x3d\x17"
  670. "\xbd\xbe\x07\x19\xe8\x8d\xc2\xcb\x0c\x16\x6d\x7f\x26\x04\xf8\x23\x32\xf5"
  671. "\x07\xd9\xe5\x3b\x3e\xb0\xc3\x4f\xf4\x6e\xd1\xf6\xba\x80\x85\xbd\x6f\x0b"
  672. "\xd0\x1d\xf9\x5e\x37\x00\xe8\x99\x73\x27\xd7\x1e\xe4\xfa\x9d\xff\x83\x2c"
  673. "\x7a\xa9\xf9\x7f\x60\x5f\x31\xff\x0f\xd9\xe5\x18\x1f\x30\xff\x0f\xd9\x63"
  674. "\xfe\x1f\xb2\x6b\xb8\xcd\xf3\xbf\xfe\xb4\xe9\xd9\x5d\x17\x22\xe2\x70\x44"
  675. "\x7c\x5d\xe8\x3b\xd8\x7a\xd6\x17\xb0\x1f\xe4\x1f\xe6\x9a\xc7\xff\xe7\x8e"
  676. "\xfc\x63\x78\x7b\x6d\x7f\xee\xc7\xf4\x14\x41\x7f\x44\xbc\xf7\xe9\xb5\x8f"
  677. "\xef\x4c\xd4\x6a\x8b\xa3\xc9\xf6\xc7\x1b\xdb\x6b\x9f\x34\xb7\xef\xe1\xb3"
  678. "\xba\x81\xbd\xd7\xca\xd3\x56\x1e\x03\x00\xd9\xf5\xec\xc9\xdd\xc9\xd6\xd2"
  679. "\xcd\xb8\x8f\x5e\x6b\x5c\x84\x90\xc4\x5d\x6f\x2e\x8d\x9a\x03\xcd\xb9\xc9"
  680. "\x81\xf4\x1c\xe5\xd0\xd3\xdc\x96\x6b\x15\x72\x7b\x74\xed\xc2\xea\xbd\x88"
  681. "\xf8\xeb\x4e\xfd\xcf\x35\x9f\x77\xde\x38\xf3\x31\xf4\xb4\xf0\x42\xfc\xe3"
  682. "\xcd\xd7\x5c\xe3\x2d\xd2\xf6\x1e\x48\x9f\x9b\xde\x9d\xf8\x27\x37\xc5\xff"
  683. "\xdb\xa6\xf8\xa7\x7e\xf7\xbf\x0a\x64\xc3\x5a\x32\xfe\x5c\xd8\x29\xff\xf2"
  684. "\x69\x4e\xc7\x46\xfe\x6d\x1d\x7f\x86\xf7\xe8\xda\x89\xd6\xf8\xb7\xfe\xc2"
  685. "\xf8\x97\xdf\x18\xff\x0a\x6d\xc6\xbf\xd3\x1d\xc6\x38\x31\xbc\xf4\x4d\xdb"
  686. "\xf8\xf7\x22\x4e\xed\x18\xbf\x15\x6f\x20\x8d\xb5\x3d\x7e\xd2\xb6\x73\x1d"
  687. "\xc6\x1f\xfd\xf0\xea\x44\xbb\xba\xfa\x67\x11\xff\x8a\x9d\xe3\xb7\x24\xa5"
  688. "\x62\x6d\x6e\xa1\x58\x5d\x5e\x39\x9f\xfe\x8e\xdc\x74\x79\xbe\x74\x71\xbc"
  689. "\x34\x7a\x69\x7c\xac\x54\x4c\xa7\xa8\x8b\xad\x89\xea\x1d\xdc\xff\xf6\xa7"
  690. "\xb5\xdd\xfa\x3f\xd4\x26\xfe\x6e\xfd\x4f\xb6\xfd\xa7\xc3\xfe\xbf\xf3\x5d"
  691. "\xdf\xc3\x33\xbb\xc4\xff\xf7\xd9\x9d\x3f\xff\xe3\xbb\xc4\x1f\x8c\x88\xff"
  692. "\x76\x18\xff\x9f\xef\x96\x4f\xb4\xab\x4b\xe2\x4f\xb5\xe9\x7f\x7e\x97\xf8"
  693. "\xc9\xb6\xb1\x0e\xe3\x3f\xfa\xfb\xfd\xcf\x3b\xdc\x15\x00\xe8\x82\xea\xf2"
  694. "\xca\xcc\xc4\xec\x6c\x79\x51\x41\x41\x41\x61\xa3\xd0\xeb\x91\x09\x78\xd5"
  695. "\x9e\x27\x7d\xaf\x5b\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x74\xaa\x1b"
  696. "\x97\x13\xf7\xba\x8f\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\xfb\xc1\x2f\x01\x00\x00\xff\xff"
  708. "\x62\xa3\xd2\xfc",
  709. 1210);
  710. syz_mount_image(/*fs=*/0x2000000004c0, /*dir=*/0x200000000500, /*flags=*/0,
  711. /*opts=*/0x200000000140, /*chdir=*/1, /*size=*/0x4ba,
  712. /*img=*/0x200000000a80);
  713. memcpy((void*)0x200000000080, "./file0\000", 8);
  714. memcpy((void*)0x200000000940, "tmpfs\000", 6);
  715. syscall(__NR_mount, /*src=*/0ul, /*dst=*/0x200000000080ul,
  716. /*type=*/0x200000000940ul, /*flags=*/0ul, /*data=*/0ul);
  717. memcpy((void*)0x200000000300, "./file0\000", 8);
  718. syscall(__NR_chdir, /*dir=*/0x200000000300ul);
  719. res = syscall(__NR_getpid);
  720. if (res != -1)
  721. r[0] = res;
  722. *(uint8_t*)0x200000000000 = 0;
  723. syscall(__NR_prctl, /*option=*/0x3bul, /*mode=*/1ul, /*offset=*/0ul,
  724. /*len=*/0ul, /*selector=*/0x200000000000ul);
  725. syscall(__NR_fchown, /*fd=*/-1, /*uid=*/0, /*gid=*/0xee01);
  726. syscall(__NR_ptrace, /*req=PTRACE_SETREGS*/ 0xdul, /*pid=*/r[0],
  727. /*ignored=*/0xf96ul, /*data=*/0x200000000000ul);
  728. *(uint32_t*)0x200000000100 = 1;
  729. *(uint32_t*)0x200000000104 = 0x80;
  730. *(uint8_t*)0x200000000108 = 0;
  731. *(uint8_t*)0x200000000109 = 0;
  732. *(uint8_t*)0x20000000010a = 1;
  733. *(uint8_t*)0x20000000010b = 6;
  734. *(uint32_t*)0x20000000010c = 0;
  735. *(uint64_t*)0x200000000110 = 0x41c1;
  736. *(uint64_t*)0x200000000118 = 0;
  737. *(uint64_t*)0x200000000120 = 4;
  738. STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 0, 1);
  739. STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 1, 1);
  740. STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 2, 1);
  741. STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 3, 1);
  742. STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 4, 1);
  743. STORE_BY_BITMASK(uint64_t, , 0x200000000128, 1, 5, 1);
  744. STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 6, 1);
  745. STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 7, 1);
  746. STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 8, 1);
  747. STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 9, 1);
  748. STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 10, 1);
  749. STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 11, 1);
  750. STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 12, 1);
  751. STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 13, 1);
  752. STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 14, 1);
  753. STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 15, 2);
  754. STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 17, 1);
  755. STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 18, 1);
  756. STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 19, 1);
  757. STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 20, 1);
  758. STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 21, 1);
  759. STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 22, 1);
  760. STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 23, 1);
  761. STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 24, 1);
  762. STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 25, 1);
  763. STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 26, 1);
  764. STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 27, 1);
  765. STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 28, 1);
  766. STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 29, 1);
  767. STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 30, 1);
  768. STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 31, 1);
  769. STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 32, 1);
  770. STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 33, 1);
  771. STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 34, 1);
  772. STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 35, 1);
  773. STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 36, 1);
  774. STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 37, 1);
  775. STORE_BY_BITMASK(uint64_t, , 0x200000000128, 0, 38, 26);
  776. *(uint32_t*)0x200000000130 = 0;
  777. *(uint32_t*)0x200000000134 = 0;
  778. *(uint64_t*)0x200000000138 = 0x200000000000;
  779. *(uint64_t*)0x200000000140 = 0;
  780. *(uint64_t*)0x200000000148 = 0;
  781. *(uint64_t*)0x200000000150 = 0;
  782. *(uint32_t*)0x200000000158 = 0;
  783. *(uint32_t*)0x20000000015c = 2;
  784. *(uint64_t*)0x200000000160 = 0;
  785. *(uint32_t*)0x200000000168 = 0;
  786. *(uint16_t*)0x20000000016c = 0;
  787. *(uint16_t*)0x20000000016e = 0;
  788. *(uint32_t*)0x200000000170 = 0;
  789. *(uint32_t*)0x200000000174 = 0;
  790. *(uint64_t*)0x200000000178 = 0xfffffffffffffc00;
  791. syscall(__NR_perf_event_open, /*attr=*/0x200000000100ul, /*pid=*/0,
  792. /*cpu=*/-1, /*group=*/-1, /*flags=*/0ul);
  793. res = syscall(__NR_socket, /*domain=*/2ul, /*type=SOCK_STREAM*/ 1ul,
  794. /*proto=*/0);
  795. if (res != -1)
  796. r[1] = res;
  797. syscall(__NR_getpriority, /*which=PRIO_PGRP*/ 1ul, /*who=*/0);
  798. *(uint32_t*)0x2000000001c0 = 0x169;
  799. syscall(__NR_setsockopt, /*fd=*/-1, /*level=*/6, /*optname=TCP_MAXSEG*/ 2,
  800. /*optval=*/0x2000000001c0ul, /*optlen=*/4ul);
  801. *(uint16_t*)0x200000000340 = 2;
  802. *(uint16_t*)0x200000000342 = htobe16(0);
  803. *(uint32_t*)0x200000000344 = htobe32(-1);
  804. *(uint8_t*)0x2000000003c0 = 0;
  805. *(uint8_t*)0x2000000003c1 = 9;
  806. *(uint16_t*)0x2000000003c2 = 0;
  807. *(uint32_t*)0x2000000003c4 = 0;
  808. memset((void*)0x2000000003c8, 0, 80);
  809. syscall(__NR_setsockopt, /*fd=*/r[1], /*level=*/6, /*optname=*/0xe,
  810. /*optval=*/0x200000000340ul, /*optlen=*/0xd8ul);
  811. res = syscall(__NR_getpgid, /*pid=*/0);
  812. if (res != -1)
  813. r[2] = res;
  814. syscall(__NR_getpgid, /*pid=*/0);
  815. memcpy((void*)0x200000000b80, "ext4\000", 5);
  816. memcpy((void*)0x200000000140, "./file1\000", 8);
  817. memcpy((void*)0x200000000000, "init_itable", 11);
  818. *(uint8_t*)0x20000000000b = 0x2c;
  819. memcpy((void*)0x20000000000c, "errors=remount-ro", 17);
  820. *(uint8_t*)0x20000000001d = 0x2c;
  821. memcpy((void*)0x20000000001e, "jqfmt=vfsold", 12);
  822. *(uint8_t*)0x20000000002a = 0x2c;
  823. memcpy((void*)0x20000000002b, "block_validity", 14);
  824. *(uint8_t*)0x200000000039 = 0x2c;
  825. memcpy((void*)0x20000000003a, "dioread_lock", 12);
  826. *(uint8_t*)0x200000000046 = 0x2c;
  827. *(uint8_t*)0x200000000047 = 0;
  828. memcpy(
  829. (void*)0x200000000bc0,
  830. "\x78\x9c\xec\xdc\x4d\x6b\x5c\xd5\x1b\x00\xf0\xe7\xde\xbc\x34\x69\xf2\x6f"
  831. "\xd2\xff\x42\x6d\x11\x0c\x48\xad\x28\x4e\xd3\xa6\x28\x74\xd5\xba\x16\x15"
  832. "\x74\xd1\x65\x63\x32\x29\x21\xd3\x17\x93\x08\x26\x14\x9c\xd6\xbd\xba\x10"
  833. "\x71\x51\x90\x7e\x04\xc1\xbd\x75\xe1\x4a\x70\x51\x17\x5a\x3f\x41\x11\x8b"
  834. "\x14\xdd\xb4\x2e\x46\xee\xbc\xa4\x63\x92\x49\x62\x3b\xd3\xd3\x97\xdf\x0f"
  835. "\x4e\xee\x39\x73\x66\xe6\x79\x9e\xb9\xcc\xbd\xe7\xc2\xdc\x04\xf0\xc4\x9a"
  836. "\x28\xfe\xe4\x11\xfb\x22\xe2\x54\x16\x31\xd6\x7c\x3c\x8f\x88\xc1\x7a\x6f"
  837. "\x28\xa2\xda\x78\xde\x9d\x5b\x17\x66\x8a\x96\x45\xad\xf6\xce\x1f\x59\x64"
  838. "\x11\x71\xfb\xd6\x85\x99\xd6\x7b\x65\xcd\xed\x48\x73\x30\x14\x11\xd7\x5e"
  839. "\xcf\xe2\xff\x1f\x6f\x8c\xbb\xb4\xb2\xba\x30\x5d\xa9\x94\x17\x9b\xe3\x43"
  840. "\xcb\x67\xce\x1f\x5a\x5a\x59\x7d\x65\xfe\xcc\xf4\xe9\xf2\xe9\xf2\xd9\xa3"
  841. "\x53\xaf\x1d\x9d\x7a\x75\x6a\xaa\x8b\xb5\xde\x38\xff\xde\x97\xcf\xfe\xf4"
  842. "\xe6\x0b\x97\xae\x7c\x32\xf9\xd6\x17\x7b\x7e\xc8\xe2\x78\x8c\x36\xe7\xda"
  843. "\xeb\xe8\x96\x89\x98\x58\xfb\x4c\xda\xf5\x47\xc4\x74\xb7\x83\x25\xd2\xd7"
  844. "\xac\xa7\xbd\xce\xac\x3f\x61\x42\x00\x00\x6c\x29\x6f\x5b\xc3\x3d\x15\x63"
  845. "\xd1\x17\x77\x17\x6f\x63\xf1\xfd\xcf\x49\x93\x03\x00\x00\x00\xba\xa2\xd6"
  846. "\x17\x51\x03\x00\x00\x00\x1e\x73\x99\xeb\x7f\x00\x00\x00\x78\xcc\xb5\x7e"
  847. "\x07\x70\xfb\xd6\x85\x99\x56\x4b\xfb\x8b\x84\x07\xeb\xe6\x89\x88\x18\x6f"
  848. "\xd4\xdf\xba\xbf\xb9\x31\xd3\x1f\xd5\xfa\x76\x28\x06\x22\x62\xf7\x9f\x59"
  849. "\xb4\xdf\xd6\x9a\x35\x5e\x76\xdf\x26\x8a\x48\xdf\xfc\x58\x2e\x5a\xf4\xe8"
  850. "\x3e\xe4\xad\x54\x2f\x46\xc4\x33\x9b\xed\xff\xac\x5e\xff\x78\xfd\x2e\xee"
  851. "\x8d\xf5\xe7\x11\x31\xd9\x85\xf8\x13\xeb\xc6\x8f\x52\xfd\xc7\xbb\x10\x3f"
  852. "\x75\xfd\x00\x3c\x99\xae\x9e\x68\x9c\xc8\x36\x9e\xff\xf2\xb5\xf5\x4f\x6c"
  853. "\x72\xfe\xeb\xdf\xe4\xdc\x75\x2f\x36\x3d\xff\xe5\x5d\x78\xe3\x1d\x6a\xad"
  854. "\xff\xee\x6c\x58\xff\xdd\xad\xbf\x2f\x22\x86\xd7\xbd\xae\x58\xff\xbd\xbd"
  855. "\xc3\x18\xfb\xff\x7e\xe9\xda\xba\x87\x06\x5b\x9d\xf6\xf5\xdf\xc9\x4f\x7f"
  856. "\x9d\x2d\xe2\x17\xdb\xfb\x2a\xea\x3f\xb8\x79\x31\x62\x7f\xff\x66\xf5\x67"
  857. "\x6b\xf5\x67\x1d\xd6\xbf\xa7\x76\x18\x63\x64\xe6\xc6\xe5\x4e\x73\x45\xfd"
  858. "\x45\xbd\xad\xf6\xa0\xeb\xaf\x5d\x89\x38\x10\x9b\xd7\xdf\x92\x6d\xf5\xff"
  859. "\x89\x0e\xcd\xcd\x57\xca\x93\x8d\xbf\x1d\x62\x1c\xf8\xee\xe4\xc1\x4e\xf1"
  860. "\xdb\xf7\x7f\xd1\x8a\xf8\xad\x6b\x81\x07\xa1\xd8\xff\xbb\x3b\xd4\xbf\xdd"
  861. "\xfe\x3f\xbf\xc3\x18\xe3\x4f\xff\xbe\xaf\xd3\xdc\xf6\xf5\xe7\xbf\x0d\x66"
  862. "\xef\xd6\x7b\xad\x2f\xcd\x87\xd3\xcb\xcb\x8b\x87\x23\x06\xb3\x37\x36\x3e"
  863. "\x7e\x64\xeb\x5c\x5a\xcf\x69\xbd\x47\x51\xff\x8b\xcf\x6f\xfd\xfd\xaf\x7d"
  864. "\xb4\xb1\xfe\xe2\x98\x50\x6d\x7e\x0e\xc5\xe1\xea\x62\x73\x5b\x8c\x2f\xad"
  865. "\x8b\x39\x72\xe0\xc8\xd7\xf7\x5e\x7f\x6f\x15\xf5\xcf\xde\xe3\xfe\xff\x6c"
  866. "\x87\x31\xbe\xfa\xf6\xf2\xfb\x9d\xe6\x52\xd7\x0f\x00\x00\x00\x00\x00\x00"
  867. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  868. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  869. "\xc0\xa3\x21\x8f\x88\xd1\xc8\xf2\xd2\x5a\x3f\xcf\x4b\xc5\xa0\x5a\xab\xab"
  870. "\x9c\x5b\x5a\x7e\x79\xee\xdc\x07\x67\x67\x8b\xb9\x88\xf1\x18\xc8\xe7\xe6"
  871. "\x2b\xe5\xc9\x88\x18\x6b\x8c\xb3\x62\x7c\xb8\xde\xbf\x3b\x3e\xb2\x6e\x3c"
  872. "\x15\x11\x7b\x23\xe2\xf3\xb1\xe1\xfa\xb8\x34\x73\xae\x32\x9b\xba\x78\x00"
  873. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  874. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  875. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  876. "\x00\x00\x00\x00\x00\x00\x00\x00\xd6\x8c\x44\xc4\x68\x64\x79\x29\x22\xf2"
  877. "\x88\xf8\x6b\x2c\xcf\x4b\xa5\xd4\x59\x01\x00\x00\x00\x5d\x37\x9e\x3a\x01"
  878. "\x00\x00\x00\xa0\xe7\x5c\xff\x03\x00\x00\xc0\xe3\xcf\xf5\x3f\x00\x00\x00"
  879. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  880. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  881. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x3d\xb6\xf7\xb9\xab\xd7"
  882. "\xb3\x88\xa8\x1e\x1b\xae\xb7\xc2\x60\x73\x6e\x20\x69\x66\x40\xaf\xe5\xa9"
  883. "\x13\x00\x92\xe9\x4b\x9d\x00\x90\x4c\x7f\xea\x04\x80\x64\x5c\xe3\x03\xd9"
  884. "\x36\xf3\x43\x1d\x67\x76\x75\x3d\x17\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  885. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  886. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  887. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1e\x5e\x07\xf7\x5d"
  888. "\xbd\x9e\x45\x44\xf5\xd8\x70\xbd\x15\x06\x9b\x73\x03\xff\x7a\xe6\x4c\x82"
  889. "\xec\x80\x5e\xca\x53\x27\x00\x24\xd3\x97\x3a\x01\x20\x99\xfe\xd4\x09\x00"
  890. "\xc9\x0c\xa4\x4e\x00\x48\x2e\xdb\x66\x7e\xa8\xe3\xcc\xae\xae\xe7\x02\x00"
  891. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  892. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  893. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  894. "\x00\x00\xc0\xc3\x6b\xb4\xde\xb2\xbc\x14\x11\x79\xbd\x9f\xe7\xa5\x52\xc4"
  895. "\xff\x22\x62\x3c\x06\xb2\xb9\xf9\x4a\x79\x32\x22\xf6\x44\xc4\x2f\x63\x03"
  896. "\xbb\x8a\xf1\xe1\xd4\x49\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  897. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  898. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  899. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xd0\x75\x4b"
  900. "\x2b\xab\x0b\xd3\x95\x4a\x79\x51\x47\x47\x47\x67\xad\x93\xfa\xc8\x04\x00"
  901. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  902. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  903. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  904. "\x00\x00\x00\x00\x00\x00\x40\x0a\x4b\x2b\xab\x0b\xd3\x95\x4a\x79\x71\x29"
  905. "\x75\x26\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  906. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  907. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  908. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  909. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  910. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  911. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  912. "\x00\x00\x40\x6a\x4b\x2b\xab\x0b\xd3\x95\x4a\x79\xb1\x87\x9d\xd4\x35\x02"
  913. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  914. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  915. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  916. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  917. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  918. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  919. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  920. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  921. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  922. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  923. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  924. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  925. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  926. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  927. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  928. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  929. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  930. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  931. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  932. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  933. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  934. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  935. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  936. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  937. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  938. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  939. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  940. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  941. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  942. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  943. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  944. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  945. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  946. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  947. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  948. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  949. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  950. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  951. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  952. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  953. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  954. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  955. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  956. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  957. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  958. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  959. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  960. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  961. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  962. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  963. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  964. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  965. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  966. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  967. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  968. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  969. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  970. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  971. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  972. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  973. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  974. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  975. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  976. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  977. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  978. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  979. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  980. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  981. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  982. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  983. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  984. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  985. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  986. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  987. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  988. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  989. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  990. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  991. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  992. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  993. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  994. "\x00\x90\xce\x3f\x01\x00\x00\xff\xff\x05\x17\x0d\x57",
  995. 2965);
  996. syz_mount_image(/*fs=*/0x200000000b80, /*dir=*/0x200000000140, /*flags=*/0,
  997. /*opts=*/0x200000000000, /*chdir=*/1, /*size=*/0xb95,
  998. /*img=*/0x200000000bc0);
  999. syscall(__NR_creat, /*file=*/0ul, /*mode=*/0ul);
  1000. memcpy((void*)0x200000000880, "/dev/loop#\000", 11);
  1001. res = -1;
  1002. res = syz_open_dev(/*dev=*/0x200000000880, /*id=*/0, /*flags=*/0);
  1003. if (res != -1)
  1004. r[3] = res;
  1005. syscall(__NR_ioctl, /*fd=*/r[3], /*cmd=*/0x4c03, /*arg=*/0x200000000080ul);
  1006. syscall(__NR_gettid);
  1007. *(uint32_t*)0x200000000700 = 2;
  1008. *(uint32_t*)0x200000000704 = 0x80;
  1009. *(uint8_t*)0x200000000708 = 0;
  1010. *(uint8_t*)0x200000000709 = 0;
  1011. *(uint8_t*)0x20000000070a = 0;
  1012. *(uint8_t*)0x20000000070b = 0;
  1013. *(uint32_t*)0x20000000070c = 0;
  1014. *(uint64_t*)0x200000000710 = 0x50d;
  1015. *(uint64_t*)0x200000000718 = 0x21008;
  1016. *(uint64_t*)0x200000000720 = 0;
  1017. STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 0, 1);
  1018. STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 1, 1);
  1019. STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 2, 1);
  1020. STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 3, 1);
  1021. STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 4, 1);
  1022. STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 5, 1);
  1023. STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 6, 1);
  1024. STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 7, 1);
  1025. STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 8, 1);
  1026. STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 9, 1);
  1027. STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 10, 1);
  1028. STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 11, 1);
  1029. STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 12, 1);
  1030. STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 13, 1);
  1031. STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 14, 1);
  1032. STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 15, 2);
  1033. STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 17, 1);
  1034. STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 18, 1);
  1035. STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 19, 1);
  1036. STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 20, 1);
  1037. STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 21, 1);
  1038. STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 22, 1);
  1039. STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 23, 1);
  1040. STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 24, 1);
  1041. STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 25, 1);
  1042. STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 26, 1);
  1043. STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 27, 1);
  1044. STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 28, 1);
  1045. STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 29, 1);
  1046. STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 30, 1);
  1047. STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 31, 1);
  1048. STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 32, 1);
  1049. STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 33, 1);
  1050. STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 34, 1);
  1051. STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 35, 1);
  1052. STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 36, 1);
  1053. STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 37, 1);
  1054. STORE_BY_BITMASK(uint64_t, , 0x200000000728, 0, 38, 26);
  1055. *(uint32_t*)0x200000000730 = 0;
  1056. *(uint32_t*)0x200000000734 = 0;
  1057. *(uint64_t*)0x200000000738 = 0x200000000000;
  1058. *(uint64_t*)0x200000000740 = 0;
  1059. *(uint64_t*)0x200000000748 = 0;
  1060. *(uint64_t*)0x200000000750 = 0;
  1061. *(uint32_t*)0x200000000758 = 0;
  1062. *(uint32_t*)0x20000000075c = 0;
  1063. *(uint64_t*)0x200000000760 = 0;
  1064. *(uint32_t*)0x200000000768 = 0;
  1065. *(uint16_t*)0x20000000076c = -1;
  1066. *(uint16_t*)0x20000000076e = 0;
  1067. *(uint32_t*)0x200000000770 = 0;
  1068. *(uint32_t*)0x200000000774 = 0;
  1069. *(uint64_t*)0x200000000778 = 0;
  1070. syscall(__NR_perf_event_open, /*attr=*/0x200000000700ul, /*pid=*/r[2],
  1071. /*cpu=*/-1, /*group=*/-1, /*flags=*/0ul);
  1072. *(uint32_t*)0x200000000080 = 2;
  1073. *(uint32_t*)0x200000000084 = 0x80;
  1074. *(uint8_t*)0x200000000088 = 0xcc;
  1075. *(uint8_t*)0x200000000089 = 0x9d;
  1076. *(uint8_t*)0x20000000008a = 0;
  1077. *(uint8_t*)0x20000000008b = 3;
  1078. *(uint32_t*)0x20000000008c = 0;
  1079. *(uint64_t*)0x200000000090 = 7;
  1080. *(uint64_t*)0x200000000098 = 0x8002;
  1081. *(uint64_t*)0x2000000000a0 = 0;
  1082. STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 1, 0, 1);
  1083. STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 0, 1, 1);
  1084. STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 1, 2, 1);
  1085. STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 0, 3, 1);
  1086. STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 1, 4, 1);
  1087. STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 1, 5, 1);
  1088. STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 0, 6, 1);
  1089. STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 0, 7, 1);
  1090. STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 0, 8, 1);
  1091. STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 0, 9, 1);
  1092. STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 1, 10, 1);
  1093. STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 1, 11, 1);
  1094. STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 0, 12, 1);
  1095. STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 0, 13, 1);
  1096. STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 0, 14, 1);
  1097. STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 1, 15, 2);
  1098. STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 1, 17, 1);
  1099. STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 0, 18, 1);
  1100. STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 0, 19, 1);
  1101. STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 1, 20, 1);
  1102. STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 1, 21, 1);
  1103. STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 0, 22, 1);
  1104. STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 1, 23, 1);
  1105. STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 0, 24, 1);
  1106. STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 1, 25, 1);
  1107. STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 1, 26, 1);
  1108. STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 1, 27, 1);
  1109. STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 0, 28, 1);
  1110. STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 0, 29, 1);
  1111. STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 7, 30, 1);
  1112. STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 0, 31, 1);
  1113. STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 0, 32, 1);
  1114. STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 0x30c0, 33, 1);
  1115. STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 0xfffffffffffffffa, 34, 1);
  1116. STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 5, 35, 1);
  1117. STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 2, 36, 1);
  1118. STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 0x10000, 37, 1);
  1119. STORE_BY_BITMASK(uint64_t, , 0x2000000000a8, 4, 38, 26);
  1120. *(uint32_t*)0x2000000000b0 = 0xa82;
  1121. *(uint32_t*)0x2000000000b4 = 1;
  1122. *(uint64_t*)0x2000000000b8 = 0x200000000000;
  1123. *(uint64_t*)0x2000000000c0 = 0;
  1124. *(uint64_t*)0x2000000000c8 = 0x100;
  1125. *(uint64_t*)0x2000000000d0 = 0x10000;
  1126. *(uint32_t*)0x2000000000d8 = 0;
  1127. *(uint32_t*)0x2000000000dc = 0;
  1128. *(uint64_t*)0x2000000000e0 = 0;
  1129. *(uint32_t*)0x2000000000e8 = 0;
  1130. *(uint16_t*)0x2000000000ec = 2;
  1131. *(uint16_t*)0x2000000000ee = 0;
  1132. *(uint32_t*)0x2000000000f0 = 0;
  1133. *(uint32_t*)0x2000000000f4 = 0;
  1134. *(uint64_t*)0x2000000000f8 = 0;
  1135. syscall(__NR_perf_event_open, /*attr=*/0x200000000080ul, /*pid=*/r[2],
  1136. /*cpu=*/0ul, /*group=*/-1,
  1137. /*flags=PERF_FLAG_FD_CLOEXEC|PERF_FLAG_FD_OUTPUT*/ 0xaul);
  1138. *(uint16_t*)0x200000000040 = 2;
  1139. *(uint16_t*)0x200000000042 = htobe16(0x4e23);
  1140. *(uint32_t*)0x200000000044 = htobe32(0xe0000002);
  1141. syscall(__NR_bind, /*fd=*/-1, /*addr=*/0x200000000040ul, /*addrlen=*/0x10ul);
  1142. res = syscall(__NR_socket, /*domain=*/2ul, /*type=*/2ul, /*proto=*/0);
  1143. if (res != -1)
  1144. r[4] = res;
  1145. *(uint16_t*)0x200000000080 = 2;
  1146. *(uint16_t*)0x200000000082 = htobe16(0);
  1147. *(uint32_t*)0x200000000084 = htobe32(-1);
  1148. syscall(__NR_connect, /*fd=*/r[4], /*addr=*/0x200000000080ul,
  1149. /*addrlen=*/0x10ul);
  1150. syscall(__NR_sendmmsg, /*fd=*/r[4], /*mmsg=*/0ul, /*vlen=*/0ul, /*f=*/0ul);
  1151. *(uint64_t*)0x200000000200 = htobe64(0);
  1152. *(uint64_t*)0x200000000208 = htobe64(1);
  1153. memset((void*)0x200000000210, 0, 16);
  1154. *(uint16_t*)0x200000000220 = htobe16(0x4e24);
  1155. *(uint16_t*)0x200000000222 = htobe16(0);
  1156. *(uint16_t*)0x200000000224 = htobe16(0x4e21);
  1157. *(uint16_t*)0x200000000226 = htobe16(1);
  1158. *(uint16_t*)0x200000000228 = 0xa;
  1159. *(uint8_t*)0x20000000022a = 0x20;
  1160. *(uint8_t*)0x20000000022b = 0x80;
  1161. *(uint8_t*)0x20000000022c = 0;
  1162. *(uint32_t*)0x200000000230 = 0;
  1163. *(uint32_t*)0x200000000234 = 0;
  1164. *(uint64_t*)0x200000000238 = 4;
  1165. *(uint64_t*)0x200000000240 = 0;
  1166. *(uint64_t*)0x200000000248 = -1;
  1167. *(uint64_t*)0x200000000250 = 0x7ff;
  1168. *(uint64_t*)0x200000000258 = 0xffffffff;
  1169. *(uint64_t*)0x200000000260 = 2;
  1170. *(uint64_t*)0x200000000268 = 2;
  1171. *(uint64_t*)0x200000000270 = 0;
  1172. *(uint64_t*)0x200000000278 = 3;
  1173. *(uint64_t*)0x200000000280 = 0x80;
  1174. *(uint64_t*)0x200000000288 = 5;
  1175. *(uint64_t*)0x200000000290 = 4;
  1176. *(uint32_t*)0x200000000298 = 0x156;
  1177. *(uint32_t*)0x20000000029c = 0x6e6bb5;
  1178. *(uint8_t*)0x2000000002a0 = 1;
  1179. *(uint8_t*)0x2000000002a1 = 1;
  1180. *(uint8_t*)0x2000000002a2 = 1;
  1181. *(uint8_t*)0x2000000002a3 = 3;
  1182. memcpy((void*)0x2000000002a8,
  1183. " \001\000\000\000\000\000\000\000\000\000\000\000\000\000\000", 16);
  1184. *(uint32_t*)0x2000000002b8 = htobe32(0);
  1185. *(uint8_t*)0x2000000002bc = 0x33;
  1186. *(uint16_t*)0x2000000002c0 = 2;
  1187. memset((void*)0x2000000002c4, 0, 10);
  1188. memset((void*)0x2000000002ce, 255, 2);
  1189. *(uint32_t*)0x2000000002d0 = htobe32(0xa010102);
  1190. *(uint32_t*)0x2000000002d4 = 0x3501;
  1191. *(uint8_t*)0x2000000002d8 = 3;
  1192. *(uint8_t*)0x2000000002d9 = 1;
  1193. *(uint8_t*)0x2000000002da = 2;
  1194. *(uint32_t*)0x2000000002dc = 6;
  1195. *(uint32_t*)0x2000000002e0 = 6;
  1196. *(uint32_t*)0x2000000002e4 = 8;
  1197. syscall(__NR_setsockopt, /*fd=*/r[4], /*level=*/0, /*optname=*/0x11,
  1198. /*optval=*/0x200000000200ul, /*optlen=*/0xe8ul);
  1199. *(uint16_t*)0x200000000300 = 2;
  1200. *(uint16_t*)0x200000000302 = htobe16(0x4e23);
  1201. *(uint8_t*)0x200000000304 = 0xac;
  1202. *(uint8_t*)0x200000000305 = 0x14;
  1203. *(uint8_t*)0x200000000306 = 0x14;
  1204. *(uint8_t*)0x200000000307 = 0xaa;
  1205. syscall(
  1206. __NR_sendto, /*fd=*/r[1], /*buf=*/0ul, /*len=*/0ul,
  1207. /*f=MSG_FASTOPEN|MSG_MORE|MSG_EOR|MSG_DONTROUTE|0x10728*/ 0x200187acul,
  1208. /*addr=*/0x200000000300ul, /*addrlen=*/0x10ul);
  1209. memcpy((void*)0x200000000540, "#! ", 3);
  1210. memcpy((void*)0x200000000543, "./file0", 7);
  1211. *(uint8_t*)0x20000000054a = 0x20;
  1212. memcpy(
  1213. (void*)0x20000000054b,
  1214. "#,/"
  1215. "*&*\205\251\322\325\207\320\276\356\245F&\326\367\344d\311^"
  1216. "\255\213\327\242\tE\020\376\026\257\333\373sv\372\266\232\234\223x\234"
  1217. "\261\024\350\311Z\264l\204\332\v\315\321,\034\340."
  1218. "\t\201\243\205p\031\210~\374\311\314\371,H\021\360\323n\312\374:"
  1219. "\263A\325rkg&b\351Q\264\235U\020\'M\252<\315\250\300t]\213\031\177\363{"
  1220. "\026\303T4\27106\203\250\364\245$"
  1221. "\321\205cg\221\233\276\030\240\333\242\365\310u\017\026X.\246\277\026&"
  1222. "p\206\204l\237f\366\267\325;\257\262\210\036q\003\343#\377\235e\'\332",
  1223. 166);
  1224. *(uint8_t*)0x2000000005f1 = 0xa;
  1225. syscall(__NR_write, /*fd=*/r[1], /*data=*/0x200000000540ul, /*len=*/0xb2ul);
  1226. memcpy((void*)0x2000000001c0, "./file0\000", 8);
  1227. syscall(__NR_mkdir, /*path=*/0x2000000001c0ul, /*mode=*/0ul);
  1228. memcpy((void*)0x2000000009c0, "./file1\000", 8);
  1229. syscall(__NR_mkdir, /*path=*/0x2000000009c0ul, /*mode=*/0ul);
  1230. res = syscall(__NR_socket, /*domain=*/0x11ul, /*type=SOCK_DGRAM*/ 2ul,
  1231. /*proto=*/0x300);
  1232. if (res != -1)
  1233. r[5] = res;
  1234. *(uint32_t*)0x200000000040 = 0x10000;
  1235. *(uint32_t*)0x200000000044 = 1;
  1236. *(uint32_t*)0x200000000048 = 0x10000;
  1237. *(uint32_t*)0x20000000004c = 1;
  1238. *(uint32_t*)0x200000000050 = 0;
  1239. *(uint32_t*)0x200000000054 = 0;
  1240. *(uint32_t*)0x200000000058 = 0;
  1241. syscall(__NR_setsockopt, /*fd=*/r[5], /*level=*/0x107, /*optname=*/0xd,
  1242. /*optval=*/0x200000000040ul, /*optlen=*/0x1cul);
  1243. *(uint64_t*)0x200000001440 = 0x200000000240;
  1244. *(uint16_t*)0x200000000240 = 0x1e;
  1245. *(uint8_t*)0x200000000242 = 1;
  1246. *(uint8_t*)0x200000000243 = 0;
  1247. *(uint32_t*)0x200000000244 = 2;
  1248. *(uint32_t*)0x200000000248 = 0;
  1249. *(uint32_t*)0x20000000024c = 0;
  1250. *(uint32_t*)0x200000001448 = 0x80;
  1251. *(uint64_t*)0x200000001450 = 0;
  1252. *(uint64_t*)0x200000001458 = 0;
  1253. *(uint64_t*)0x200000001460 = 0;
  1254. *(uint64_t*)0x200000001468 = 0;
  1255. *(uint32_t*)0x200000001470 = 0;
  1256. *(uint32_t*)0x200000001478 = 0;
  1257. syscall(__NR_sendmmsg, /*fd=*/r[5], /*mmsg=*/0x200000001440ul, /*vlen=*/1ul,
  1258. /*f=*/0ul);
  1259. syz_sysconfig_set__proc_sys_vm_zone_reclaim_mode(/*val=*/6);
  1260. *(uint32_t*)0x200000000040 = 2;
  1261. *(uint32_t*)0x200000000044 = 0x80;
  1262. *(uint8_t*)0x200000000048 = 0xb8;
  1263. *(uint8_t*)0x200000000049 = 0;
  1264. *(uint8_t*)0x20000000004a = 0;
  1265. *(uint8_t*)0x20000000004b = 0;
  1266. *(uint32_t*)0x20000000004c = 0;
  1267. *(uint64_t*)0x200000000050 = 0;
  1268. *(uint64_t*)0x200000000058 = 0;
  1269. *(uint64_t*)0x200000000060 = 0;
  1270. STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 0, 1);
  1271. STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 1, 1);
  1272. STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 2, 1);
  1273. STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 3, 1);
  1274. STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 4, 1);
  1275. STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 5, 1);
  1276. STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 6, 1);
  1277. STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 7, 1);
  1278. STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 8, 1);
  1279. STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 9, 1);
  1280. STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 10, 1);
  1281. STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 11, 1);
  1282. STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 12, 1);
  1283. STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 13, 1);
  1284. STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 14, 1);
  1285. STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 15, 2);
  1286. STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 17, 1);
  1287. STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 18, 1);
  1288. STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 19, 1);
  1289. STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 20, 1);
  1290. STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 21, 1);
  1291. STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 22, 1);
  1292. STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 23, 1);
  1293. STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 24, 1);
  1294. STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 25, 1);
  1295. STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 26, 1);
  1296. STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 27, 1);
  1297. STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 28, 1);
  1298. STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 29, 1);
  1299. STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 30, 1);
  1300. STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 31, 1);
  1301. STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 32, 1);
  1302. STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 33, 1);
  1303. STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 34, 1);
  1304. STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 35, 1);
  1305. STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 36, 1);
  1306. STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 37, 1);
  1307. STORE_BY_BITMASK(uint64_t, , 0x200000000068, 0, 38, 26);
  1308. *(uint32_t*)0x200000000070 = 0;
  1309. *(uint32_t*)0x200000000074 = 0;
  1310. *(uint64_t*)0x200000000078 = 0;
  1311. *(uint64_t*)0x200000000080 = 0;
  1312. *(uint64_t*)0x200000000088 = 0;
  1313. *(uint64_t*)0x200000000090 = 0;
  1314. *(uint32_t*)0x200000000098 = 0;
  1315. *(uint32_t*)0x20000000009c = 0;
  1316. *(uint64_t*)0x2000000000a0 = 0;
  1317. *(uint32_t*)0x2000000000a8 = 0;
  1318. *(uint16_t*)0x2000000000ac = 0;
  1319. *(uint16_t*)0x2000000000ae = 0;
  1320. *(uint32_t*)0x2000000000b0 = 0;
  1321. *(uint32_t*)0x2000000000b4 = 0;
  1322. *(uint64_t*)0x2000000000b8 = 0;
  1323. syscall(__NR_perf_event_open, /*attr=*/0x200000000040ul, /*pid=*/0,
  1324. /*cpu=*/-1, /*group=*/-1, /*flags=*/0ul);
  1325. syscall(__NR_symlink, /*old=*/0ul, /*new=*/0ul);
  1326. syz_sysconfig_reset__proc_sys_vm_zone_reclaim_mode();
  1327. syz_sysconfig_set__proc_sys_vm_stat_interval(/*val=*/8);
  1328. memcpy((void*)0x200000000140, "msdos\000", 6);
  1329. memcpy((void*)0x200000000180, "./file0\000", 8);
  1330. memcpy(
  1331. (void*)0x200000000500,
  1332. "\x6e\x6f\x64\x6f\x74\x73\x2c\x6e\x6f\x64\x6f\x74\x73\x2c\x6e\x6f\x64\x6f"
  1333. "\x74\x73\x2c\x64\x6f\x74\x73\x2c\x61\x6c\x6c\x6f\x77\x5f\x75\x74\x69\x6d"
  1334. "\x65\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30"
  1335. "\x30\x30\x30\x30\x30\x30\x32\x2c\x61\x6c\x6c\x6f\x77\x5f\x75\x74\x69\x6d"
  1336. "\x65\x3d\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30"
  1337. "\x30\x30\x30\x30\x33\x37\x37\x2c\x64\x6f\x74\x73\x2c\x6e\x6f\x63\x61\x73"
  1338. "\x65\x2c\x64\x6f\x74\x73\x2c\x6e\x6f\x64\x6f\x49\x9f\x4e\xfe\x80\x11\x62"
  1339. "\xa9\x50\x6f\x00\x4c\xd8\x74\x73\x2c\x6e\x6f\x64\x6f\x74\x73\x2c\x00",
  1340. 143);
  1341. memcpy(
  1342. (void*)0x2000000001c0,
  1343. "\x78\x9c\xec\xdb\x31\x0b\x12\x61\x18\x07\xf0\x47\xb3\xb4\x5a\x9c\xa3\xe1"
  1344. "\xa0\xa5\x49\x2a\xfa\x00\x46\x18\x44\x07\x41\xe1\x50\x53\x81\xb5\x68\x04"
  1345. "\xb9\x5c\x4d\x7e\x94\xbe\x60\x10\x4e\x6e\x6f\x5c\x67\x5a\x92\x83\xc3\x79"
  1346. "\x57\xfe\x7e\x8b\x0f\xfc\x11\x9e\xe7\xe0\xbd\x7b\xdf\x83\x7b\x73\xfb\xc3"
  1347. "\x7c\xf6\x71\xf9\x7e\xf1\x70\x1d\x83\x4e\x27\xba\xe3\xc8\x62\xd3\x89\x61"
  1348. "\x74\xe3\x97\x55\x00\x00\xff\x93\x4d\x4a\xf1\x3d\xa5\x94\xfa\xab\xb8\xfe"
  1349. "\x35\x52\x4a\x4d\x77\x04\x00\xd4\xcd\xf3\x1f\x00\x2e\xcf\xcb\x57\xaf\x9f"
  1350. "\x3d\xca\xf3\xc9\x8b\x2c\x1b\x44\x7c\x5b\x15\xd3\x62\x5a\xfd\x56\xf9\x93"
  1351. "\xa7\xf9\xe4\x5e\xf6\xd3\x70\xff\xaf\x75\x51\x4c\xfb\xbb\xfc\x7e\x95\x67"
  1352. "\x7f\xe6\x57\xe3\xc6\x36\x7f\xf0\xd7\xfc\x5a\xdc\xbd\x53\xe5\x65\xf6\xf8"
  1353. "\x79\x7e\x90\xdf\x8c\x59\xfd\xe3\x03\x00\x00\xc0\x45\x18\x65\x3b\x07\xe7"
  1354. "\xfb\x2b\x55\x3e\x3a\x96\x57\xd5\x6f\xef\x07\x0e\xce\xef\xbd\xb8\xd5\x3b"
  1355. "\xdb\x18\x00\xc0\x09\x96\x9f\xbf\xcc\xdf\x2e\x16\xef\x3e\xb5\xb4\x28\x77"
  1356. "\x21\x2d\x68\x63\x5b\x94\x57\xac\xdc\xd4\xb4\xa5\x9f\x53\x8b\x71\x44\xb4"
  1357. "\xa0\x8d\x7f\xa7\xe8\xb6\x7e\x81\xd4\x56\x34\x7d\x67\x02\xea\xb6\x5f\xf4"
  1358. "\x4d\x77\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1c\x73\x8e\xcf"
  1359. "\x89\x9a\x9e\x11\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1360. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1361. "\x00\x00\x00\x00\x80\xcb\xf3\x23\x00\x00\xff\xff\xf1\x8b\x32\x42",
  1362. 340);
  1363. syz_mount_image(/*fs=*/0x200000000140, /*dir=*/0x200000000180, /*flags=*/0,
  1364. /*opts=*/0x200000000500, /*chdir=*/1, /*size=*/0x154,
  1365. /*img=*/0x2000000001c0);
  1366. memcpy((void*)0x2000000001c0, "memory.current\000", 15);
  1367. res = syscall(__NR_openat, /*fd=*/0xffffff9c, /*file=*/0x2000000001c0ul,
  1368. /*flags=*/0x275a, /*mode=*/0);
  1369. if (res != -1)
  1370. r[6] = res;
  1371. memcpy((void*)0x200000000000, "#! ", 3);
  1372. *(uint8_t*)0x200000000003 = 0xa;
  1373. syscall(__NR_write, /*fd=*/r[6], /*data=*/0x200000000000ul, /*len=*/4ul);
  1374. memcpy((void*)0x200000000180, "pagemap\000", 8);
  1375. res = -1;
  1376. res = syz_open_procfs(/*pid=*/0, /*file=*/0x200000000180);
  1377. if (res != -1)
  1378. r[7] = res;
  1379. syscall(__NR_mmap, /*addr=*/0x2000005eb000ul, /*len=*/0x4000ul,
  1380. /*prot=PROT_GROWSUP|PROT_GROWSDOWN|PROT_WRITE|PROT_EXEC*/ 0x3000006ul,
  1381. /*flags=MAP_FIXED|MAP_SHARED*/ 0x11ul, /*fd=*/r[7], /*offset=*/0ul);
  1382. memcpy((void*)0x200000000080, "./bus\000", 6);
  1383. res = syscall(__NR_creat, /*file=*/0x200000000080ul, /*mode=S_IROTH*/ 4ul);
  1384. if (res != -1)
  1385. r[8] = res;
  1386. syscall(__NR_ftruncate, /*fd=*/r[8], /*len=*/0x208200ul);
  1387. memcpy((void*)0x200000000280, "./bus\000", 6);
  1388. res = syscall(__NR_open, /*file=*/0x200000000280ul, /*flags=*/0ul,
  1389. /*mode=*/0ul);
  1390. if (res != -1)
  1391. r[9] = res;
  1392. syscall(__NR_keyctl, /*code=*/0x1ful, /*buffer=*/0ul, /*buflen=*/0ul, 0, 0);
  1393. res = syscall(__NR_socket, /*domain=*/0xaul,
  1394. /*type=SOCK_STREAM|0x401000000000*/ 0x401000000001ul,
  1395. /*proto=*/0);
  1396. if (res != -1)
  1397. r[10] = res;
  1398. syscall(__NR_close, /*fd=*/r[10]);
  1399. memcpy((void*)0x200000000400, "./bus\000", 6);
  1400. res = syscall(
  1401. __NR_open, /*file=*/0x200000000400ul,
  1402. /*flags=O_SYNC|O_NOATIME|O_DIRECT|O_CREAT|O_RDWR|0x1000000*/ 0x1145042ul,
  1403. /*mode=*/0ul);
  1404. if (res != -1)
  1405. r[11] = res;
  1406. syscall(__NR_fstat, /*fd=*/-1, /*statbuf=*/0x2000000000c0ul);
  1407. syscall(__NR_fcntl, /*fd=*/-1, /*cmd=*/0x10ul, /*arg=*/0x200000000040ul);
  1408. syscall(__NR_sendfile, /*fdout=*/r[10], /*fdin=*/r[11], /*off=*/0ul,
  1409. /*count=*/0xffffdffaul);
  1410. syscall(__NR_read, /*fd=*/r[9], /*buf=*/0x200000000180ul,
  1411. /*count=*/0xfffffe47ul);
  1412. syz_sysconfig_reset__proc_sys_vm_stat_interval();
  1413. *(uint32_t*)0x200000000180 = 2;
  1414. *(uint32_t*)0x200000000184 = 0x80;
  1415. *(uint8_t*)0x200000000188 = 0x66;
  1416. *(uint8_t*)0x200000000189 = 1;
  1417. *(uint8_t*)0x20000000018a = 0;
  1418. *(uint8_t*)0x20000000018b = 0;
  1419. *(uint32_t*)0x20000000018c = 0;
  1420. *(uint64_t*)0x200000000190 = 0;
  1421. *(uint64_t*)0x200000000198 = 0;
  1422. *(uint64_t*)0x2000000001a0 = 0;
  1423. STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 0, 1);
  1424. STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 1, 1);
  1425. STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 2, 1);
  1426. STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 3, 1);
  1427. STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 4, 1);
  1428. STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 5, 1);
  1429. STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 6, 1);
  1430. STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 7, 1);
  1431. STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 8, 1);
  1432. STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 9, 1);
  1433. STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 10, 1);
  1434. STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 11, 1);
  1435. STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 12, 1);
  1436. STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 13, 1);
  1437. STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 14, 1);
  1438. STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 15, 2);
  1439. STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 17, 1);
  1440. STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 18, 1);
  1441. STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 19, 1);
  1442. STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 20, 1);
  1443. STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 21, 1);
  1444. STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 22, 1);
  1445. STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 23, 1);
  1446. STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 24, 1);
  1447. STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 25, 1);
  1448. STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 26, 1);
  1449. STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 27, 1);
  1450. STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 28, 1);
  1451. STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 29, 1);
  1452. STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 30, 1);
  1453. STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 31, 1);
  1454. STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 32, 1);
  1455. STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 33, 1);
  1456. STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 34, 1);
  1457. STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 35, 1);
  1458. STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 36, 1);
  1459. STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 37, 1);
  1460. STORE_BY_BITMASK(uint64_t, , 0x2000000001a8, 0, 38, 26);
  1461. *(uint32_t*)0x2000000001b0 = 0;
  1462. *(uint32_t*)0x2000000001b4 = 0;
  1463. *(uint64_t*)0x2000000001b8 = 0;
  1464. *(uint64_t*)0x2000000001c0 = 0;
  1465. *(uint64_t*)0x2000000001c8 = 0;
  1466. *(uint64_t*)0x2000000001d0 = 0;
  1467. *(uint32_t*)0x2000000001d8 = 0;
  1468. *(uint32_t*)0x2000000001dc = 0;
  1469. *(uint64_t*)0x2000000001e0 = 0;
  1470. *(uint32_t*)0x2000000001e8 = 0;
  1471. *(uint16_t*)0x2000000001ec = 0;
  1472. *(uint16_t*)0x2000000001ee = 0;
  1473. *(uint32_t*)0x2000000001f0 = 0;
  1474. *(uint32_t*)0x2000000001f4 = 0;
  1475. *(uint64_t*)0x2000000001f8 = 0;
  1476. syscall(__NR_perf_event_open, /*attr=*/0x200000000180ul, /*pid=*/0,
  1477. /*cpu=*/0ul, /*group=*/-1, /*flags=*/0ul);
  1478. memcpy((void*)0x200000000080, "smaps_rollup\000", 13);
  1479. res = -1;
  1480. res = syz_open_procfs(/*pid=*/0, /*file=*/0x200000000080);
  1481. if (res != -1)
  1482. r[12] = res;
  1483. *(uint32_t*)0x200000000280 = 2;
  1484. *(uint32_t*)0x200000000284 = 0x70;
  1485. *(uint8_t*)0x200000000288 = 0x12;
  1486. *(uint8_t*)0x200000000289 = 1;
  1487. *(uint8_t*)0x20000000028a = 0;
  1488. *(uint8_t*)0x20000000028b = 0;
  1489. *(uint32_t*)0x20000000028c = 0;
  1490. *(uint64_t*)0x200000000290 = 0;
  1491. *(uint64_t*)0x200000000298 = 0;
  1492. *(uint64_t*)0x2000000002a0 = 0;
  1493. STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 0, 1);
  1494. STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 1, 1);
  1495. STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 2, 1);
  1496. STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 3, 1);
  1497. STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 4, 1);
  1498. STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, -1, 5, 1);
  1499. STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 6, 1);
  1500. STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 7, 1);
  1501. STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 8, 1);
  1502. STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 9, 1);
  1503. STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 10, 1);
  1504. STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 11, 1);
  1505. STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 12, 1);
  1506. STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 13, 1);
  1507. STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 14, 1);
  1508. STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 15, 2);
  1509. STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 17, 1);
  1510. STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 18, 1);
  1511. STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 19, 1);
  1512. STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 20, 1);
  1513. STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 21, 1);
  1514. STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 22, 1);
  1515. STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 23, 1);
  1516. STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 24, 1);
  1517. STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 25, 1);
  1518. STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 26, 1);
  1519. STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 27, 1);
  1520. STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 28, 1);
  1521. STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 29, 1);
  1522. STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 30, 1);
  1523. STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 31, 1);
  1524. STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 32, 1);
  1525. STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 33, 1);
  1526. STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 34, 1);
  1527. STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 35, 1);
  1528. STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 36, 1);
  1529. STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 37, 1);
  1530. STORE_BY_BITMASK(uint64_t, , 0x2000000002a8, 0, 38, 26);
  1531. *(uint32_t*)0x2000000002b0 = 0;
  1532. *(uint32_t*)0x2000000002b4 = 0;
  1533. *(uint64_t*)0x2000000002b8 = 0x200000000000;
  1534. *(uint64_t*)0x2000000002c0 = 0;
  1535. *(uint64_t*)0x2000000002c8 = 0;
  1536. *(uint64_t*)0x2000000002d0 = 0;
  1537. *(uint32_t*)0x2000000002d8 = 0;
  1538. *(uint32_t*)0x2000000002dc = 0;
  1539. *(uint64_t*)0x2000000002e0 = 0;
  1540. *(uint32_t*)0x2000000002e8 = 0;
  1541. *(uint16_t*)0x2000000002ec = 0;
  1542. *(uint16_t*)0x2000000002ee = 0;
  1543. *(uint32_t*)0x2000000002f0 = 0;
  1544. *(uint32_t*)0x2000000002f4 = 0;
  1545. *(uint64_t*)0x2000000002f8 = 0;
  1546. syscall(__NR_perf_event_open, /*attr=*/0x200000000280ul, /*pid=*/0,
  1547. /*cpu=*/0ul, /*group=*/-1, /*flags=*/0ul);
  1548. res = syscall(__NR_socket, /*domain=AF_PACKET*/ 0x11ul,
  1549. /*type=SOCK_DGRAM*/ 2ul, /*proto=*/0);
  1550. if (res != -1)
  1551. r[13] = res;
  1552. memcpy((void*)0x200000000080,
  1553. "\x01\x00\x00\x00\x00\x00\x06\x00\x00\x07\x1a\x80\x00\x00\x01\xcc",
  1554. 16);
  1555. syscall(__NR_setsockopt, /*fd=*/r[13], /*level=*/0x107, /*optname=*/1,
  1556. /*optval=*/0x200000000080ul, /*optlen=*/0x10ul);
  1557. syscall(__NR_close, /*fd=*/r[13]);
  1558. res = syscall(__NR_socket, /*domain=*/0xaul, /*type=SOCK_RAW*/ 3ul,
  1559. /*proto=*/8);
  1560. if (res != -1)
  1561. r[14] = res;
  1562. *(uint16_t*)0x200000000000 = 0xa;
  1563. *(uint16_t*)0x200000000002 = htobe16(0);
  1564. *(uint32_t*)0x200000000004 = htobe32(0);
  1565. *(uint8_t*)0x200000000008 = -1;
  1566. *(uint8_t*)0x200000000009 = 1;
  1567. memset((void*)0x20000000000a, 0, 13);
  1568. *(uint8_t*)0x200000000017 = 1;
  1569. *(uint32_t*)0x200000000018 = 0x1fab;
  1570. syscall(__NR_bind, /*fd=*/r[14], /*addr=*/0x200000000000ul,
  1571. /*addrlen=*/0x1cul);
  1572. *(uint16_t*)0x200000000040 = 0xa;
  1573. *(uint16_t*)0x200000000042 = htobe16(0);
  1574. *(uint32_t*)0x200000000044 = htobe32(0);
  1575. *(uint8_t*)0x200000000048 = 0xfe;
  1576. *(uint8_t*)0x200000000049 = 0x80;
  1577. memset((void*)0x20000000004a, 0, 13);
  1578. *(uint8_t*)0x200000000057 = 0xbb;
  1579. *(uint32_t*)0x200000000058 = 4;
  1580. syscall(__NR_connect, /*fd=*/r[14], /*addr=*/0x200000000040ul,
  1581. /*addrlen=*/0x1cul);
  1582. syscall(__NR_mmap, /*addr=*/0x200000ffe000ul, /*len=*/0x2000ul,
  1583. /*prot=PROT_GROWSDOWN|PROT_SEM|PROT_READ|PROT_EXEC*/ 0x100000dul,
  1584. /*flags=MAP_STACK|MAP_FIXED*/ 0x20010ul, /*fd=*/r[14],
  1585. /*offset=*/0x419db000ul);
  1586. syscall(__NR_sendmsg, /*fd=*/r[13], /*msg=*/0ul, /*f=*/0ul);
  1587. *(uint32_t*)0x200000000200 = 1;
  1588. *(uint32_t*)0x200000000204 = 0x80;
  1589. *(uint8_t*)0x200000000208 = 2;
  1590. *(uint8_t*)0x200000000209 = 0;
  1591. *(uint8_t*)0x20000000020a = 0;
  1592. *(uint8_t*)0x20000000020b = 0;
  1593. *(uint32_t*)0x20000000020c = 0;
  1594. *(uint64_t*)0x200000000210 = 0x7b;
  1595. *(uint64_t*)0x200000000218 = 0x90521;
  1596. *(uint64_t*)0x200000000220 = 0;
  1597. STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 0, 1);
  1598. STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 1, 1);
  1599. STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 2, 1);
  1600. STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 3, 1);
  1601. STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 4, 1);
  1602. STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 5, 1);
  1603. STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 6, 1);
  1604. STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 7, 1);
  1605. STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 8, 1);
  1606. STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 9, 1);
  1607. STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 10, 1);
  1608. STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 11, 1);
  1609. STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 12, 1);
  1610. STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 13, 1);
  1611. STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 14, 1);
  1612. STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 15, 2);
  1613. STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 17, 1);
  1614. STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 18, 1);
  1615. STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 19, 1);
  1616. STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 20, 1);
  1617. STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 21, 1);
  1618. STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 22, 1);
  1619. STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 23, 1);
  1620. STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 24, 1);
  1621. STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 25, 1);
  1622. STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 26, 1);
  1623. STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 27, 1);
  1624. STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 28, 1);
  1625. STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 29, 1);
  1626. STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 30, 1);
  1627. STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 31, 1);
  1628. STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 32, 1);
  1629. STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 33, 1);
  1630. STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 34, 1);
  1631. STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 35, 1);
  1632. STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 36, 1);
  1633. STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 37, 1);
  1634. STORE_BY_BITMASK(uint64_t, , 0x200000000228, 0, 38, 26);
  1635. *(uint32_t*)0x200000000230 = 0;
  1636. *(uint32_t*)0x200000000234 = 0;
  1637. *(uint64_t*)0x200000000238 = 0;
  1638. *(uint64_t*)0x200000000240 = 0;
  1639. *(uint64_t*)0x200000000248 = 0;
  1640. *(uint64_t*)0x200000000250 = 0;
  1641. *(uint32_t*)0x200000000258 = 0;
  1642. *(uint32_t*)0x20000000025c = 0;
  1643. *(uint64_t*)0x200000000260 = 0;
  1644. *(uint32_t*)0x200000000268 = 0;
  1645. *(uint16_t*)0x20000000026c = 0;
  1646. *(uint16_t*)0x20000000026e = 0;
  1647. *(uint32_t*)0x200000000270 = 0;
  1648. *(uint32_t*)0x200000000274 = 0;
  1649. *(uint64_t*)0x200000000278 = 0;
  1650. syscall(__NR_perf_event_open, /*attr=*/0x200000000200ul, /*pid=*/0,
  1651. /*cpu=*/0ul, /*group=*/-1, /*flags=*/0ul);
  1652. syscall(__NR_open, /*file=*/0ul, /*flags=*/0ul, /*mode=*/0ul);
  1653. memcpy((void*)0x200000000300, "/dev/vga_arbiter\000", 17);
  1654. res = syscall(__NR_openat, /*fd=*/0xffffffffffffff9cul,
  1655. /*file=*/0x200000000300ul, /*flags=O_CREAT|O_WRONLY*/ 0x41,
  1656. /*mode=*/0);
  1657. if (res != -1)
  1658. r[15] = res;
  1659. syz_sysconfig_set__proc_sys_vm_swappiness(/*val=*/0);
  1660. memcpy((void*)0x200000000080, "target ", 7);
  1661. memcpy((void*)0x200000000087, "PCI:", 4);
  1662. memset((void*)0x20000000008b, 48, 1);
  1663. memset((void*)0x20000000008c, 58, 1);
  1664. memset((void*)0x20000000008d, 48, 1);
  1665. memset((void*)0x20000000008e, 58, 1);
  1666. memset((void*)0x20000000008f, 51, 1);
  1667. memset((void*)0x200000000090, 46, 1);
  1668. memcpy((void*)0x200000000091, "10", 2);
  1669. *(uint8_t*)0x200000000093 = 0;
  1670. syscall(__NR_write, /*fd=*/r[15], /*data=*/0x200000000080ul, /*len=*/0x14ul);
  1671. *(uint32_t*)0x200000001844 = 0;
  1672. *(uint32_t*)0x200000001848 = 0x40;
  1673. *(uint32_t*)0x20000000184c = 0;
  1674. *(uint32_t*)0x200000001850 = 0;
  1675. *(uint32_t*)0x200000001858 = -1;
  1676. memset((void*)0x20000000185c, 0, 12);
  1677. res = syscall(__NR_io_uring_setup, /*entries=*/0x6630,
  1678. /*params=*/0x200000001840ul);
  1679. if (res != -1)
  1680. r[16] = res;
  1681. syscall(__NR_io_uring_register, /*fd=*/r[16], /*opcode=*/0xbul,
  1682. /*arg=*/0x2000000018c0ul, /*nr_args=*/0ul);
  1683. *(uint64_t*)0x200000001600 = 0x200000000300;
  1684. *(uint64_t*)0x200000001608 = 0x4c;
  1685. syscall(__NR_preadv, /*fd=*/r[12], /*vec=*/0x200000001600ul, /*vlen=*/1ul,
  1686. /*off_low=*/0, /*off_high=*/0);
  1687. syz_sysconfig_reset__proc_sys_vm_swappiness();
  1688. return 0;
  1689. }
  1690.  
Advertisement
Add Comment
Please, Sign In to add comment