| // WARNING in __xlate_proc_name (2) |
| // https://syzkaller.appspot.com/bug?id=2c0ac0ec1fad20a0c844ee6e2c74bcdddb3a75ca |
| // status:dup |
| // autogenerated by syzkaller (https://github.com/google/syzkaller) |
| |
| #define _GNU_SOURCE |
| |
| #include <endian.h> |
| #include <stdint.h> |
| #include <stdio.h> |
| #include <stdlib.h> |
| #include <string.h> |
| #include <sys/syscall.h> |
| #include <sys/types.h> |
| #include <unistd.h> |
| |
| int main(void) |
| { |
| syscall(__NR_mmap, 0x20000000ul, 0x1000000ul, 3ul, 0x32ul, -1, 0); |
| |
| memcpy((void*)0x20000200, "./file0\000", 8); |
| syscall(__NR_mkdir, 0x20000200ul, 0ul); |
| memcpy((void*)0x20000240, |
| "\x23\x9a\xfe\x2f\x5d\x75\x77\x4f\x2c\x22\xb9\x16\x63\xd0\x41\x63\xdd" |
| "\xb5\x82\x95\xb4\x5b\xb2\x18\x24\xd0\x93\x35\x78\x7e\xb5\x53\xde\x26" |
| "\xc6\xa1\x54\x57\x7d\xd9\xaa\x99\x7a\x15\xba\x43\x50\x12\x28\x3a", |
| 50); |
| memcpy((void*)0x20000140, "./file0\000", 8); |
| memcpy((void*)0x20000180, "afs\000", 4); |
| syscall(__NR_mount, 0x20000240ul, 0x20000140ul, 0x20000180ul, 0ul, 0ul); |
| return 0; |
| } |