Advertisement
xiaoy1

Untitled

May 9th, 2025
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 50.35 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. static long syz_sysconfig_set__proc_sys_vm_percpu_pagelist_high_fraction(volatile long val)
  29. {
  30. char command[256];
  31. sprintf(command, "echo %ld > /proc/sys/vm/percpu_pagelist_high_fraction", val);
  32. int ret = system(command);
  33. if (ret != 0) {
  34. return 0;
  35. }
  36. return 0;
  37. }
  38.  
  39.  
  40. static long syz_sysconfig_reset__proc_sys_vm_percpu_pagelist_high_fraction()
  41. {
  42. char command[256];
  43. sprintf(command, "echo 0 > /proc/sys/vm/percpu_pagelist_high_fraction");
  44. int ret = system(command);
  45. if (ret != 0) {
  46. return 0;
  47. }
  48. return 0;
  49. }
  50.  
  51. static long syz_sysconfig_set__proc_sys_vm_dirty_background_ratio(volatile long val)
  52. {
  53. char command[256];
  54. sprintf(command, "echo %ld > /proc/sys/vm/dirty_background_ratio", val);
  55. int ret = system(command);
  56. if (ret != 0) {
  57. return 0;
  58. }
  59. return 0;
  60. }
  61.  
  62.  
  63. static long syz_sysconfig_reset__proc_sys_vm_dirty_background_ratio()
  64. {
  65. char command[256];
  66. sprintf(command, "echo 10 > /proc/sys/vm/dirty_background_ratio");
  67. int ret = system(command);
  68. if (ret != 0) {
  69. return 0;
  70. }
  71. return 0;
  72. }
  73.  
  74. static long syz_sysconfig_set__proc_sys_vm_watermark_boost_factor(volatile long val)
  75. {
  76. char command[256];
  77. sprintf(command, "echo %ld > /proc/sys/vm/watermark_boost_factor", val);
  78. int ret = system(command);
  79. if (ret != 0) {
  80. return 0;
  81. }
  82. return 0;
  83. }
  84.  
  85.  
  86. static long syz_sysconfig_reset__proc_sys_vm_watermark_boost_factor()
  87. {
  88. char command[256];
  89. sprintf(command, "echo 15000 > /proc/sys/vm/watermark_boost_factor");
  90. int ret = system(command);
  91. if (ret != 0) {
  92. return 0;
  93. }
  94. return 0;
  95. }
  96. static unsigned long long procid;
  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[10] = {0xffffffffffffffff, 0xffffffffffffffff,
  600. 0xffffffffffffffff, 0x0,
  601. 0xffffffffffffffff, 0xffffffffffffffff,
  602. 0xffffffffffffffff, 0xffffffffffffffff,
  603. 0xffffffffffffffff, 0xffffffffffffffff};
  604.  
  605. int main(void)
  606. {
  607. syscall(__NR_mmap, /*addr=*/0x1ffff000ul, /*len=*/0x1000ul, /*prot=*/0ul,
  608. /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1,
  609. /*offset=*/0ul);
  610. syscall(__NR_mmap, /*addr=*/0x20000000ul, /*len=*/0x1000000ul,
  611. /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/ 7ul,
  612. /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1,
  613. /*offset=*/0ul);
  614. syscall(__NR_mmap, /*addr=*/0x21000000ul, /*len=*/0x1000ul, /*prot=*/0ul,
  615. /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1,
  616. /*offset=*/0ul);
  617. intptr_t res = 0;
  618. memcpy((void*)0x20000140, "./bus\000", 6);
  619. res = syscall(__NR_creat, /*file=*/0x20000140ul, /*mode=*/0ul);
  620. if (res != -1)
  621. r[0] = res;
  622. syscall(__NR_fcntl, /*fd=*/r[0], /*cmd=*/4ul,
  623. /*flags=O_NONBLOCK|O_NOATIME|O_DIRECT|FASYNC|0x2*/ 0x46802ul);
  624. *(uint32_t*)0x20000100 = 1;
  625. *(uint32_t*)0x20000104 = 0x70;
  626. *(uint8_t*)0x20000108 = 0;
  627. *(uint8_t*)0x20000109 = 0;
  628. *(uint8_t*)0x2000010a = 0;
  629. *(uint8_t*)0x2000010b = 0;
  630. *(uint32_t*)0x2000010c = 0;
  631. *(uint64_t*)0x20000110 = 0x3c43;
  632. *(uint64_t*)0x20000118 = 0;
  633. *(uint64_t*)0x20000120 = 0;
  634. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 0, 1);
  635. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 1, 1);
  636. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 2, 1);
  637. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 3, 1);
  638. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 4, 1);
  639. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 5, 1);
  640. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 6, 1);
  641. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 7, 1);
  642. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 8, 1);
  643. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 9, 1);
  644. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 10, 1);
  645. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 11, 1);
  646. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 12, 1);
  647. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 13, 1);
  648. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 14, 1);
  649. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 15, 2);
  650. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 17, 1);
  651. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 18, 1);
  652. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 19, 1);
  653. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 20, 1);
  654. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 21, 1);
  655. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 22, 1);
  656. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 23, 1);
  657. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 24, 1);
  658. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 25, 1);
  659. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 26, 1);
  660. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 27, 1);
  661. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 28, 1);
  662. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 29, 1);
  663. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 30, 1);
  664. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 31, 1);
  665. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 32, 1);
  666. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 33, 1);
  667. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 34, 1);
  668. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 35, 1);
  669. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 36, 1);
  670. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 37, 1);
  671. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 38, 26);
  672. *(uint32_t*)0x20000130 = 0;
  673. *(uint32_t*)0x20000134 = 0;
  674. *(uint64_t*)0x20000138 = 0x20000000;
  675. *(uint64_t*)0x20000140 = 0;
  676. *(uint64_t*)0x20000148 = 0;
  677. *(uint64_t*)0x20000150 = 0;
  678. *(uint32_t*)0x20000158 = 0;
  679. *(uint32_t*)0x2000015c = 0;
  680. *(uint64_t*)0x20000160 = 0;
  681. *(uint32_t*)0x20000168 = 0;
  682. *(uint16_t*)0x2000016c = 0;
  683. *(uint16_t*)0x2000016e = 0;
  684. *(uint32_t*)0x20000170 = 0;
  685. *(uint32_t*)0x20000174 = 0;
  686. *(uint64_t*)0x20000178 = 0;
  687. res = syscall(__NR_perf_event_open, /*attr=*/0x20000100ul, /*pid=*/0,
  688. /*cpu=*/-1, /*group=*/-1, /*flags=*/0ul);
  689. if (res != -1)
  690. r[1] = res;
  691. memcpy((void*)0x20000200, "./bus\000", 6);
  692. syscall(__NR_truncate, /*file=*/0x20000200ul, /*len=*/1ul);
  693. memcpy(
  694. (void*)0x20000940,
  695. "Y\377\377\000\000\000\000\000K\262\002\200B\351\350\314\336\006\000l\250"
  696. "\032J\257\262M\272\270_\005U\315<|>\236\354^\016\276\030+-"
  697. "\233\2113\002\000\246\037+\263\305\220z5\340\337i\267\237\264QUw!"
  698. "j\221\016W\311\311\222\003\t\000\000\000\000\000\262\017\356\276\f8\314"
  699. "\177\000\000\000Z\201\000\000\000\000\030I\023\361\242x\004\201R\3245R"
  700. "\256\204_M^dQ:\274\257q\210\031nSF|;]\341\2604A\214\212\230\327|"
  701. "\334LF\r\261\375\277\213\307u\314P\335\023~\211\317\205\312\240%"
  702. "\306\307\021\000\000\000\000\000\000\000?M9\\\av~\'\331\260\254dya]"
  703. "8\235\267\v\3639\305{\234\203\347\ng\207\3313<"
  704. "u\276\352g\322\004e\362s\336}o#\220\332\234s,r\375:"
  705. "\313\307\vTmPZJ\254\213\320\300\274RK\313\0368\316\275[N\260\264<"
  706. "\253\206[\354\217\024\n\203\236&\\\267!\355\240\303,"
  707. "\220m\017\000\000\000\000\000\000\377\320\263\224\000\000\000\000\000"
  708. "\000\000\235H\370\377Ro\243W\341\355\216Z\256X\223\177\323\271a\344\340"
  709. "\275\331\365\344e\371\312m\343\003\344\255\325&"
  710. "A\002\310\251\376\313\207\331\323\214\f\3008T~\304\275\220?"
  711. "\037\234\2330\031 "
  712. "\237\321p`\300/"
  713. "\000u\031\035\254\350%"
  714. "\267\t\2374\273\211\351\301\201\260\326\367\005\026\271\351\334~\323-"
  715. "s\346;\224\034^\006\332v;\314D\225sj\340\325\276S\254\345N\352\236yl[["
  716. "\3165\356\a\234\226\253J^c\367\031\264\330\344\207\235p\352?/"
  717. "\313\232\2525\'Q\fuG\201\212@\227M=v\376\a\253p\363\223\341\177@"
  718. "9\300\322\361#\347N\211\370\350+"
  719. "\241\202\023\262\251\357\245\370\213k\263\236v\222\016\321\037\027Dx["
  720. "\255\260\235/"
  721. "\226\3442mO\237h\352\363\024\315\226\211_)\033\342\326\b\224b\257;"
  722. "\222T\257z\224\237G\373\375|$k\003\327;\232y\356\371W?\263\371\370I."
  723. "E4\303eWq\372\":$\320\027Q\224\365\345mk\216&\361+#z\357*"
  724. "\316\231\276\271\220\274\271#-"
  725. "\215i\256\305\337\023\322K\213\365\f\262x\335\325\264\251^~O<"
  726. "\022\343\303P|7\251\310\261r0Z\230\207^\310C["
  727. "\226\264lsyF\305\274\377OE\351\3270\347\376p\203\343["
  728. "\004\214\247\241\331\344\272\222\027\277\340\341\001\267\213\030j\031n"
  729. "\310\377\351\364\364\317 "
  730. "a\327_w\017\235F\256\314A-"
  731. "\017\203\253U\325\2778\244O\264\357\310\314H\321=\276\265O\025\307;"
  732. "Lb\316\032\314\230\350\351e\340\302N\347\327\035\222\207F8\236\367\335"
  733. "\332W\365X\200\240f\316o\330\177\300\226\bSB\316&"
  734. "\004bA\355\374i\306\324/"
  735. "{i\035\002\020\306C\001^\317\223?"
  736. "w\001\204\240\326\242\020\244\374G\253D\326dGZ\262Cx\033\375D9\027\346"
  737. "\312uM\343\005)\342[\342j$F1n@\336\n%t.[\255\265\f<"
  738. "o\333\244\220\304\320I\246\226\241\000\273\335\224\000t/"
  739. "1YekG\177\275rI\036\2124=\242\351\3701\255\356\365\244\005#"
  740. "\177\250\037\037\266\353\206\302\352\030\024\304\300\253\350\3628\363"
  741. "\346}-\302Q\241\223\225\t\321\243\370\020\022\213#"
  742. "Cf\r\332\364\211\340\337\257W\bz6\352\227\241\276j4/"
  743. "\001\021\023\204\240O<"
  744. "\0372\2565\247\243\254\353\020\031\362\031\001\262;\313_\374\321dk\301%"
  745. "\316\373\005\230\373\2176\362o\n`\261*\225\262q\246\244q{\366F`\370_"
  746. "\301\375E\'",
  747. 952);
  748. res = syscall(__NR_memfd_create, /*name=*/0x20000940ul, /*flags=*/0ul);
  749. if (res != -1)
  750. r[2] = res;
  751. *(uint32_t*)0x20000040 = r[2];
  752. *(uint64_t*)0x20000048 = 5;
  753. *(uint64_t*)0x20000050 = 0x80000001;
  754. *(uint64_t*)0x20000058 = 0x90000;
  755. syscall(__NR_ioctl, /*fd=*/r[1], /*cmd=*/0xc020f509, /*arg=*/0x20000040ul);
  756. syscall(__NR_mmap, /*addr=*/0x20200000ul, /*len=*/0x400000ul,
  757. /*prot=PROT_READ*/ 1ul,
  758. /*flags=MAP_LOCKED|MAP_FIXED|MAP_PRIVATE*/ 0x2012ul, /*fd=*/r[2],
  759. /*offset=*/0ul);
  760. *(uint16_t*)0x20000000 = 0;
  761. *(uint16_t*)0x20000002 = 0;
  762. *(uint64_t*)0x20000008 = 0;
  763. *(uint64_t*)0x20000010 = 1;
  764. *(uint32_t*)0x20000018 = 0;
  765. *(uint32_t*)0x2000001c = 0;
  766. memset((void*)0x20000020, 0, 16);
  767. syscall(__NR_ioctl, /*fd=*/r[2], /*cmd=*/0x40305828, /*arg=*/0x20000000ul);
  768. res = syscall(__NR_io_setup, /*n=*/2, /*ctx=*/0x20000400ul);
  769. if (res != -1)
  770. r[3] = *(uint64_t*)0x20000400;
  771. memcpy((void*)0x20000300, "./file0\000", 8);
  772. syscall(__NR_mkdir, /*path=*/0x20000300ul, /*mode=*/0ul);
  773. syscall(__NR_umount2, /*path=*/0ul, /*flags=UMOUNT_NOFOLLOW|MNT_FORCE*/ 9ul);
  774. memcpy((void*)0x20000080, "./file0\000", 8);
  775. memcpy((void*)0x200000c0, "ramfs\000", 6);
  776. syscall(__NR_mount, /*src=*/0ul, /*dst=*/0x20000080ul, /*type=*/0x200000c0ul,
  777. /*flags=*/0ul, /*data=*/0ul);
  778. memcpy((void*)0x20021000, "./file0\000", 8);
  779. res = syscall(__NR_open, /*file=*/0x20021000ul, /*flags=*/0ul, /*mode=*/0ul);
  780. if (res != -1)
  781. r[4] = res;
  782. memcpy((void*)0x200002c0, "./file0\000", 8);
  783. syscall(__NR_mkdir, /*path=*/0x200002c0ul, /*mode=S_IWOTH|S_IXUSR*/ 0x42ul);
  784. memcpy((void*)0x200001c0, "./file0\000", 8);
  785. memcpy((void*)0x20000200, "trusted.overlay.upper\000", 22);
  786. memcpy((void*)0x20000240,
  787. "\x00\xfb\x6b\x00\x00\x99\x78\x9d\x3a\xaa\xd6\xae\xe6\x9b\x49\xae\x7c"
  788. "\xc9\xa7\x09\x56\x96\x7d\x16\x6e\xce\x83\xed\xa8\x85\xa7\x30\x2b\xc1"
  789. "\x63\xbf\xf3\xed",
  790. 38);
  791. syscall(__NR_setxattr, /*path=*/0x200001c0ul, /*name=*/0x20000200ul,
  792. /*val=*/0x20000240ul, /*size=*/0x6bul, /*flags=*/0ul);
  793. syscall(__NR_fchdir, /*fd=*/r[4]);
  794. *(uint32_t*)0x20000100 = 1;
  795. *(uint32_t*)0x20000104 = 0x70;
  796. *(uint8_t*)0x20000108 = 0;
  797. *(uint8_t*)0x20000109 = 0;
  798. *(uint8_t*)0x2000010a = 0;
  799. *(uint8_t*)0x2000010b = 0;
  800. *(uint32_t*)0x2000010c = 0;
  801. *(uint64_t*)0x20000110 = 0x3c43;
  802. *(uint64_t*)0x20000118 = 0;
  803. *(uint64_t*)0x20000120 = 0;
  804. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 0, 1);
  805. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 1, 1);
  806. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 2, 1);
  807. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 3, 1);
  808. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 4, 1);
  809. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 5, 1);
  810. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 6, 1);
  811. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 7, 1);
  812. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 8, 1);
  813. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 9, 1);
  814. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 10, 1);
  815. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 11, 1);
  816. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 12, 1);
  817. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 13, 1);
  818. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 14, 1);
  819. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 15, 2);
  820. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 17, 1);
  821. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 18, 1);
  822. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 19, 1);
  823. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 20, 1);
  824. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 21, 1);
  825. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 22, 1);
  826. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 23, 1);
  827. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 24, 1);
  828. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 25, 1);
  829. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 26, 1);
  830. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 27, 1);
  831. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 28, 1);
  832. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 29, 1);
  833. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 30, 1);
  834. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 31, 1);
  835. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 32, 1);
  836. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 33, 1);
  837. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 34, 1);
  838. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 35, 1);
  839. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 36, 1);
  840. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 37, 1);
  841. STORE_BY_BITMASK(uint64_t, , 0x20000128, 0, 38, 26);
  842. *(uint32_t*)0x20000130 = 0;
  843. *(uint32_t*)0x20000134 = 0;
  844. *(uint64_t*)0x20000138 = 0x20000000;
  845. *(uint64_t*)0x20000140 = 0;
  846. *(uint64_t*)0x20000148 = 0;
  847. *(uint64_t*)0x20000150 = 0;
  848. *(uint32_t*)0x20000158 = 0;
  849. *(uint32_t*)0x2000015c = 0;
  850. *(uint64_t*)0x20000160 = 0;
  851. *(uint32_t*)0x20000168 = 0;
  852. *(uint16_t*)0x2000016c = 0;
  853. *(uint16_t*)0x2000016e = 0;
  854. *(uint32_t*)0x20000170 = 0;
  855. *(uint32_t*)0x20000174 = 0;
  856. *(uint64_t*)0x20000178 = 0;
  857. syscall(__NR_perf_event_open, /*attr=*/0x20000100ul, /*pid=*/0, /*cpu=*/-1,
  858. /*group=*/-1, /*flags=*/0ul);
  859. memcpy((void*)0x20000040, "./bus\000", 6);
  860. res = syscall(__NR_creat, /*file=*/0x20000040ul, /*mode=*/0ul);
  861. if (res != -1)
  862. r[5] = res;
  863. syscall(__NR_ftruncate, /*fd=*/r[5], /*len=*/1ul);
  864. syscall(__NR_lseek, /*fd=*/r[5], /*offset=*/0x1200ul, /*whence=*/0ul);
  865. memcpy((void*)0x20000000, "./bus\000", 6);
  866. res = syscall(__NR_open, /*file=*/0x20000000ul, /*flags=*/0ul, /*mode=*/0ul);
  867. if (res != -1)
  868. r[6] = res;
  869. syscall(__NR_sendfile, /*fdout=*/r[5], /*fdin=*/r[6], /*off=*/0ul,
  870. /*count=*/0x8400fffffffaul);
  871. memcpy((void*)0x20000080, "/dev/sg#\000", 9);
  872. res = -1;
  873. res = syz_open_dev(/*dev=*/0x20000080, /*id=*/0,
  874. /*flags=O_NONBLOCK|O_LARGEFILE|O_RDWR*/ 0x8802);
  875. if (res != -1)
  876. r[7] = res;
  877. memcpy((void*)0x20000000,
  878. "\xb6\x3d\xb8\x5e\x1e\x8d\x02\x00\x00\x00\x00\x00\x00\x3e\xf0\x01\x1d"
  879. "\xcc\x82\x6a\x01\x00\x00\x80\x70\xcc\xd2\x87\x72\x18\xce\xbc\x9b\x97"
  880. "\xae\x21\xa1\x4d\x87\x2c\x67\x8c\xe2\x2c\x9b\x16\x00\x96",
  881. 48);
  882. syscall(__NR_write, /*fd=*/r[7], /*buf=*/0x20000000ul, /*count=*/0x30ul);
  883. syz_sysconfig_set__proc_sys_vm_percpu_pagelist_high_fraction(/*val=*/8);
  884. syz_open_procfs(/*pid=*/-1, /*file=*/0);
  885. *(uint64_t*)0x20000280 = 0x20000180;
  886. *(uint64_t*)0x20000288 = 0x92;
  887. *(uint64_t*)0x20000290 = 0x200012c0;
  888. *(uint64_t*)0x20000298 = 0x1000;
  889. *(uint64_t*)0x200002a0 = 0;
  890. *(uint64_t*)0x200002a8 = 0;
  891. syscall(__NR_readv, /*fd=*/r[7], /*vec=*/0x20000280ul, /*vlen=*/3ul);
  892. memcpy((void*)0x20000140, "./bus\000", 6);
  893. syscall(__NR_creat, /*file=*/0x20000140ul, /*mode=*/0ul);
  894. *(uint64_t*)0x20000540 = 0x200000c0;
  895. *(uint64_t*)0x200000c0 = 0xffffff7f;
  896. *(uint32_t*)0x200000c8 = 0x79000000;
  897. *(uint32_t*)0x200000cc = 0;
  898. *(uint16_t*)0x200000d0 = 1;
  899. *(uint16_t*)0x200000d2 = 0;
  900. *(uint32_t*)0x200000d4 = r[0];
  901. *(uint64_t*)0x200000d8 = 0x20000000;
  902. *(uint64_t*)0x200000e0 = 0x1a31e3fd987a7d49;
  903. *(uint64_t*)0x200000e8 = 0;
  904. *(uint64_t*)0x200000f0 = 0;
  905. *(uint32_t*)0x200000f8 = 0;
  906. *(uint32_t*)0x200000fc = -1;
  907. syscall(__NR_io_submit, /*ctx=*/r[3], /*nr=*/0x1bul, /*iocbpp=*/0x20000540ul);
  908. syz_sysconfig_reset__proc_sys_vm_percpu_pagelist_high_fraction();
  909. *(uint64_t*)0x20000100 = 0;
  910. *(uint32_t*)0x20000108 = 4;
  911. *(uint64_t*)0x20000110 = 0;
  912. syscall(__NR_sigaltstack, /*ss=*/0x20000100ul, /*oss=*/0ul);
  913. syz_sysconfig_set__proc_sys_vm_dirty_background_ratio(/*val=*/8);
  914. res = -1;
  915. res = syz_open_dev(/*dev=*/0xc, /*major=*/4, /*minor=*/1);
  916. if (res != -1)
  917. r[8] = res;
  918. syscall(__NR_ioctl, /*fd=*/r[8], /*cmd=*/0x5437, /*arg=*/0ul);
  919. *(uint8_t*)0x20000080 = 0;
  920. *(uint8_t*)0x20000081 = 0;
  921. *(uint16_t*)0x20000082 = 0x48d1;
  922. syscall(__NR_ioctl, /*fd=*/r[8], /*cmd=*/0x5452, /*arg=*/0x20000080ul);
  923. memcpy((void*)0x20000240, "ext2\000", 5);
  924. memcpy((void*)0x20000280, "mnt\000", 4);
  925. *(uint8_t*)0x20000080 = 0;
  926. memcpy(
  927. (void*)0x20000540,
  928. "\x78\x9c\xec\xdd\x4f\x68\x14\x57\x1c\x07\xf0\xdf\xcc\xee\x36\xcd\x1f\x4a"
  929. "\x9a\x5e\x0a\x85\xb6\x50\x4a\x69\x03\x21\xbd\xf5\xd6\x94\x42\x0b\x81\x12"
  930. "\x42\xe9\xa5\x2d\xa4\x94\xd2\x4b\x4b\x52\x48\x13\x7a\xcb\xf6\xe4\xc5\x83"
  931. "\x9e\x55\x72\xf2\x12\xc4\x9b\xd1\xa3\xe4\x12\xbc\x28\x82\xa7\xa8\x39\xc4"
  932. "\x8b\xa0\xc1\x83\xc1\x83\x1e\x56\x66\x37\xd1\xc5\xac\x18\x77\x93\x9d\x98"
  933. "\xf9\x7c\x60\x98\x99\xe4\x3d\x7e\x6f\xd8\xf9\xbe\xd9\xcb\xbc\x0d\xa0\xb0"
  934. "\x06\x23\x62\x2c\x22\x4a\x11\x31\x1c\x11\x95\x88\x48\x9a\x1b\x7c\xdc\xd8"
  935. "\x06\xb7\x4f\x17\x7b\x57\xa7\x6a\x0b\xb5\xda\x8f\x0f\x92\x7a\xbb\xec\x7c"
  936. "\xa7\xe9\x4e\xbf\xfe\x88\xa8\x46\xc4\x57\x11\xb1\x92\x26\xf1\x57\x39\x62"
  937. "\x7e\xf9\x97\x8d\x47\x6b\xdf\x7f\x76\x7c\xae\xf2\xe9\xd9\xe5\x9f\x7b\xbb"
  938. "\x7a\x91\xdb\x36\x37\xd6\x7f\xd8\x3a\x33\x71\xec\xc2\xf8\x97\xf3\xd7\x6e"
  939. "\xdc\x9b\x48\x62\x2c\x06\x9a\xae\xeb\x20\x6a\x26\x2d\xfe\x56\x4e\x22\x86"
  940. "\x0e\xa2\xd8\x21\x91\x94\xf3\x1e\x01\x7b\x31\xf9\xdf\xf9\x9b\x59\xee\xdf"
  941. "\x8b\x88\x4f\xea\xf9\xaf\x44\x1a\x8d\x0f\xef\xc4\xec\x5b\x2b\x95\xf8\xe2"
  942. "\x74\x8b\x6e\xf5\x5b\xfa\xe4\xfd\xeb\x1f\x74\x7b\xbc\xc0\xfe\xaa\xd5\x2a"
  943. "\xd9\x33\xb0\x5a\x03\x0a\x27\x8d\x88\x81\x48\xd2\x91\x88\x68\x1c\xa7\xe9"
  944. "\xc8\x48\xe3\x3b\xfc\xad\x52\x5f\xfa\xf7\xcc\xec\xbf\xc3\x7f\xce\xcc\x4d"
  945. "\xff\x91\xf7\x4c\x05\xec\x97\x81\x88\xf5\xef\x2e\xf5\x5c\xec\x7f\x21\xff"
  946. "\x77\x4b\x8d\xfc\x03\x47\x57\x96\xff\x9f\x26\x97\x6e\x67\xc7\x5b\xa5\xbc"
  947. "\x47\x03\x74\x53\x96\xff\xe1\xdf\x16\x3e\x0f\xf9\x87\x37\xd7\xd0\xb7\x6d"
  948. "\x75\x6b\x3b\xff\x5f\xb7\x55\x0e\x38\x44\x3c\xff\xa1\xb8\xe4\x1f\x8a\x4b"
  949. "\xfe\xa1\xb8\xe4\x1f\x8e\x8e\xb7\x5f\xb3\xbd\xfc\x43\x71\xc9\x3f\x14\x97"
  950. "\xfc\x43\x71\xc9\x3f\x1c\x0d\x69\x1b\x7d\x9a\xf3\x0f\x00\x14\x4b\xad\x27"
  951. "\xef\x37\x90\x81\xbc\xe4\x3d\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  952. "\x00\x00\x00\x00\x00\xbb\x2d\xf6\xae\x4e\xed\x6c\xdd\xaa\x79\xe5\x54\xc4"
  953. "\xe6\x37\x11\x51\x6e\x55\xbf\xb4\xbd\xae\x51\x63\x65\xe3\xbe\x87\x49\xd6"
  954. "\xec\x99\xa4\xd1\xed\x65\xaa\x7b\xa9\xff\xeb\x47\x9d\x8c\xbe\x73\xe7\x72"
  955. "\x7e\xfb\xfa\x9d\x3b\xf9\xd6\xbf\xfa\x61\xbe\xf5\x17\xa6\x23\xaa\xff\x47"
  956. "\xc4\x68\xb9\xbc\xfb\xfe\x4b\xda\x5a\x57\xab\xd9\xbb\xaf\xf8\x7f\xe5\xf7"
  957. "\x0e\x0b\x74\x28\xef\x9f\xf2\x7b\xb2\x94\x6f\xfd\xf1\xb5\x88\xcb\xd9\xfc"
  958. "\x33\xda\x6a\xfe\x49\xe3\xfd\xfa\xbe\xc5\xfc\x53\xa9\xaf\x9f\x96\xed\xda"
  959. "\xf0\x3c\xf4\xff\x3c\xee\xf0\x02\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\xe8"
  961. "\x9a\xa7\x01\x00\x00\xff\xff\x91\x67\x70\x77",
  962. 605);
  963. syz_mount_image(/*fs=*/0x20000240, /*dir=*/0x20000280,
  964. /*flags=MS_SILENT|MS_RDONLY|MS_MANDLOCK|0x100*/ 0x8141,
  965. /*opts=*/0x20000080, /*chdir=*/0, /*size=*/0x25d,
  966. /*img=*/0x20000540);
  967. syz_sysconfig_reset__proc_sys_vm_dirty_background_ratio();
  968. syscall(__NR_setfsgid, /*fsgid=*/0xee01);
  969. memcpy((void*)0x20000b80, "ext4\000", 5);
  970. memcpy((void*)0x20000bc0, "./bus\000", 6);
  971. *(uint8_t*)0x20000040 = 0;
  972. memcpy(
  973. (void*)0x20000c40,
  974. "\x78\x9c\xec\xdc\xcb\x6b\x5c\x55\x18\x00\xf0\xef\xde\x3c\x9a\x36\xb1\x93"
  975. "\x8a\xa8\x2d\x82\x01\xa9\x15\xc5\x69\xda\x14\x85\xae\x5a\xd7\xa2\x82\x2e"
  976. "\xba\xec\x98\x4c\x4a\xc8\xf4\x61\x26\x82\x09\x5d\xa4\x75\xaf\x2e\x44\x5c"
  977. "\x14\xa4\x7f\x82\xe0\xde\xba\x70\x25\xb8\xa8\x0b\xad\x7f\x41\x11\x8b\x14"
  978. "\xdd\xb4\x2e\x22\x77\x1e\xe9\xd0\x64\x92\xd8\xce\xf4\xf4\xf1\xfb\xc1\x99"
  979. "\x7b\xce\x9c\xe9\x7c\xdf\x37\x97\xce\x3d\x07\xe6\x26\x80\x27\xd6\x44\xf1"
  980. "\x90\x47\xec\x8d\x88\x93\x59\x44\xa9\xf5\x7c\x1e\x11\xc3\x8d\xde\x48\xc4"
  981. "\x4a\xf3\x75\xb7\x6f\x9e\x9f\x2e\x5a\x16\xab\xab\xef\xff\x95\x45\x16\x11"
  982. "\xb7\x6e\x9e\x9f\x6e\xbf\x57\xd6\x3a\x8e\xb6\x06\x23\x11\x71\xf5\xad\x2c"
  983. "\x9e\xfe\x74\x7d\xdc\xfa\xd2\xf2\x7c\xa5\x56\xab\x2e\xb4\xc6\x07\x17\x4f"
  984. "\x9f\x3b\x58\x5f\x5a\x7e\x7d\xee\x74\xe5\x54\xf5\x54\xf5\xcc\x91\xa9\x37"
  985. "\x8f\x4c\xbd\x31\x35\xd5\xc3\x5a\xaf\x9f\xfb\xf0\xeb\x17\x7e\x79\xe7\xe5"
  986. "\x8b\x97\x3f\x9b\x7c\xf7\xab\xdd\x3f\x65\x71\x2c\xc6\x5a\x73\x9d\x75\xf4"
  987. "\xca\x44\x4c\xac\x7d\x26\x9d\x06\x23\xa2\xd2\xeb\x60\x89\x0c\xb4\xea\xe9"
  988. "\xac\x33\x1b\x4c\x98\x10\x00\x00\x9b\xca\x3b\xd6\x70\xcf\x46\x29\x06\xe2"
  989. "\xce\xe2\xad\x14\x3f\xfe\x9a\x34\x39\x00\x00\x00\xa0\x27\x56\x07\x22\x56"
  990. "\x01\x00\x00\x80\xc7\x5c\x66\xff\x0f\x00\x00\x00\x8f\xb9\xf6\xef\x00\x6e"
  991. "\xdd\x3c\x3f\xdd\x6e\x69\x7f\x91\xf0\x60\xdd\x38\x1e\x11\xe3\xcd\xfa\xdb"
  992. "\xf7\x37\x37\x67\x06\x63\xa5\x71\x1c\x89\xa1\x88\xd8\xf5\x77\x16\x9d\xb7"
  993. "\xb5\x66\xcd\x7f\x76\xdf\x26\x8a\x48\xdf\xfd\x5c\x2d\x5a\xf4\xe9\x3e\xe4"
  994. "\xcd\xac\x5c\x88\x88\xe7\x37\x3a\xff\x59\xa3\xfe\xf1\xc6\x5d\xdc\xeb\xeb"
  995. "\xcf\x23\x62\xb2\x07\xf1\x27\xee\x1a\x3f\x4a\xf5\x1f\xeb\x41\xfc\xd4\xf5"
  996. "\x03\xf0\x64\xba\x72\xbc\x79\x21\x5b\x7f\xfd\xcb\xd7\xd6\x3f\xb1\xc1\xf5"
  997. "\x6f\x70\x83\x6b\xd7\xbd\x48\x7d\xfd\x6b\xaf\xff\x6e\xaf\x5b\xff\xdd\xa9"
  998. "\x7f\xa0\xcb\xfa\xef\xbd\x6d\xc6\xd8\xf7\xef\xab\x57\xbb\xcd\x75\xae\xff"
  999. "\x4e\x7c\xfe\xfb\x4c\x11\xbf\x38\xde\x57\x51\xff\xc3\x8d\x0b\x11\xfb\x06"
  1000. "\x37\xaa\x3f\x5b\xab\x3f\xeb\x52\xff\xc9\x6d\xc6\x18\x9d\xbe\x7e\xa9\xdb"
  1001. "\x5c\x51\x7f\x51\x6f\xbb\x3d\xe8\xfa\x57\x2f\x47\xec\x8f\x8d\xeb\x6f\xcb"
  1002. "\x36\xfb\xfb\x44\x07\x67\xe7\x6a\xd5\xc9\xe6\x63\x97\x18\xfb\x7f\x38\x71"
  1003. "\xa0\x5b\xfc\xce\xf3\x5f\xb4\x22\x7e\x7b\x2f\xf0\x20\x14\xe7\x7f\x57\x97"
  1004. "\xfa\xb7\x3a\xff\xe7\xb6\x19\x63\xfc\xb9\x3f\xf7\x76\x9b\xdb\xba\xfe\xfc"
  1005. "\x8f\xe1\xec\x83\x46\x6f\xb8\xf5\xcc\x27\x95\xc5\xc5\x85\x43\x11\xc3\xd9"
  1006. "\xdb\xeb\x9f\x3f\xbc\x79\x2e\xed\xd7\xb4\xdf\xa3\xa8\xff\x95\x97\x36\xff"
  1007. "\xff\xbf\x51\xfd\xc5\x77\xc2\x4a\xeb\x73\x28\xf6\x02\x17\x5a\xc7\x62\x7c"
  1008. "\xf1\xae\x98\xa3\xfb\x0f\x7f\x7b\xef\xf5\xf7\x57\x51\xff\xcc\x3d\x9e\xff"
  1009. "\x2f\xb6\x19\xe3\x9b\xef\x2f\x7d\xd4\x6d\x2e\x75\xfd\x00\x00\x00\x00\x00"
  1010. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1011. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1012. "\x00\x00\x3c\x1a\xf2\x88\x18\x8b\x2c\x2f\xaf\xf5\xf3\xbc\x5c\x8e\x18\x8d"
  1013. "\x88\x67\x62\x57\x5e\x3b\x5b\x5f\x7c\x6d\xf6\xec\xc7\x67\x66\x8a\xb9\x88"
  1014. "\xf1\x18\xca\x67\xe7\x6a\xd5\xc9\x88\x28\x35\xc7\x59\x31\x3e\xd4\xe8\xdf"
  1015. "\x19\x1f\xbe\x6b\x3c\x15\x11\x7b\x22\xe2\xcb\xd2\xce\xc6\xb8\x3c\x7d\xb6"
  1016. "\x36\x93\xba\x78\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1017. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1018. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1019. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xd6\x8c\x46\xc4\x58"
  1020. "\x64\x79\x39\x22\xf2\x88\xf8\xa7\x94\xe7\xe5\x72\xea\xac\x00\x00\x00\x80"
  1021. "\x9e\x1b\x4f\x9d\x00\x00\x00\x00\xd0\x77\xf6\xff\x00\x00\x00\xf0\xf8\xb3"
  1022. "\xff\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1023. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1024. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xa0\xcf"
  1025. "\xf6\xbc\x78\xe5\x5a\x16\x11\x2b\x47\x77\x36\x5a\x61\xb8\x35\x37\x94\x34"
  1026. "\x33\xa0\xdf\xf2\xd4\x09\x00\xc9\x0c\xa4\x4e\x00\x48\x66\x30\x75\x02\x40"
  1027. "\x32\xf6\xf8\x40\xb6\xc5\xfc\x48\xd7\x99\x1d\x3d\xcf\x05\x00\x00\x00\x00"
  1028. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1029. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1030. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80"
  1031. "\x87\xd7\x81\xbd\x57\xae\x65\x11\xb1\x72\x74\x67\xa3\x15\x86\x5b\x73\x43"
  1032. "\x49\x33\x03\xfa\x2d\x4f\x9d\x00\x90\xcc\x40\xea\x04\x80\x64\x06\x53\x27"
  1033. "\x00\x24\x63\x8f\x0f\x64\x5b\xcc\x8f\x74\x9d\xd9\xd1\xf3\x5c\x00\x00\x00"
  1034. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1035. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1036. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1037. "\x00\x78\x78\x8d\x35\x5a\x96\x97\x23\x22\x6f\xf4\xf3\xbc\x5c\x8e\x78\x2a"
  1038. "\x22\xc6\x63\x28\x9b\x9d\xab\x55\x27\x23\x62\x77\x44\xfc\x56\x1a\xda\x51"
  1039. "\x8c\x0f\xa5\x4e\x1a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1040. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1041. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1042. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x9e\xab\x2f\x2d"
  1043. "\xcf\x57\x6a\xb5\xea\x82\x8e\x8e\x8e\xce\x5a\x27\xf5\x37\x13\x00\x00\x00"
  1044. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1045. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1046. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1047. "\x00\x00\x00\x00\x00\x29\xd4\x97\x96\xe7\x2b\xb5\x5a\x75\xa1\x9e\x3a\x13"
  1048. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1049. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1050. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1051. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1052. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1053. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1054. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1055. "\x20\xb5\xfa\xd2\xf2\x7c\xa5\x56\xab\x2e\xf4\xb1\x93\xba\x46\x00\x00\x00"
  1056. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1057. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1058. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1059. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1060. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1061. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1062. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1063. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1064. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1065. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1066. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1067. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1068. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1069. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1070. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1071. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1072. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1073. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1074. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1075. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1076. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1077. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1078. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1079. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1080. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1081. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1082. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1083. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1084. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1085. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1086. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1087. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1088. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1089. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1090. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1091. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1092. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1093. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1094. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1095. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1096. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1097. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1098. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1099. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1100. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1101. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1102. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1103. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1104. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1105. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1106. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1107. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1108. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1109. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1110. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1111. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1112. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1113. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1114. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1115. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1116. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1117. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1118. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1119. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1120. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1121. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1122. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1123. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1124. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1125. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1126. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1127. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1128. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1129. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1130. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1131. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1132. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1133. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1134. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1135. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1136. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xd2"
  1137. "\xf9\x2f\x00\x00\xff\xff\xb3\x35\x06\x19",
  1138. 2944);
  1139. syz_mount_image(/*fs=*/0x20000b80, /*dir=*/0x20000bc0, /*flags=*/0,
  1140. /*opts=*/0x20000040, /*chdir=*/1, /*size=*/0xb80,
  1141. /*img=*/0x20000c40);
  1142. memcpy((void*)0x20000100, "./cgroup/cgroup.procs\000", 22);
  1143. syscall(__NR_truncate, /*file=*/0x20000100ul, /*len=*/0ul);
  1144. syz_sysconfig_set__proc_sys_vm_watermark_boost_factor(/*val=*/9);
  1145. memcpy((void*)0x20000000, "./bus\000", 6);
  1146. syscall(__NR_creat, /*file=*/0x20000000ul, /*mode=*/0ul);
  1147. res = -1;
  1148. res = syz_open_dev(/*dev=*/0xc, /*major=*/4, /*minor=*/1);
  1149. if (res != -1)
  1150. r[9] = res;
  1151. memcpy(
  1152. (void*)0x20000140,
  1153. "\x1b\x5b\x07\x07\x31\x00\x31\x6d\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1154. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x40\x00\x00\x00"
  1155. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1156. "\x38\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1157. "\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
  1158. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x09\x00\x00\x00\x00\x00\x00\x00"
  1159. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x85\x29\x2f\x0d\xec\x14"
  1160. "\xd1\x6e\x93\xe0\xeb\x53\x0e\x47\x66\x44\xfc\x95\x85\xdc\x7b\x31\xcc\xc9"
  1161. "\xbf\x97\xb3\xa4\x5e\x14\x5b\x20\x52\x92\x7d\x00\x00\x00\x00\xe4\x71\x4e"
  1162. "\x70\x57\xb1\x92\x2b\x03\x5c\xb4\x27\xfa\x50\x8e\x57\x64\x1a\x56\x22\x1b"
  1163. "\x6b\xc5\x70\xdc\x11\x15\xbf\xc3\xe3\x0e\x65\x21\xaf\x1f\x23",
  1164. 195);
  1165. syscall(__NR_write, /*fd=*/r[9], /*data=*/0x20000140ul, /*len=*/0x78ul);
  1166. syz_sysconfig_reset__proc_sys_vm_watermark_boost_factor();
  1167. return 0;
  1168. }
  1169.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement