// https://syzkaller.appspot.com/bug?id=aa27963b7265b5050eaa6b3a79e1c184fddde33a // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #include #include #include #include #include #ifndef __NR_seccomp #define __NR_seccomp 317 #endif int main(void) { syscall(__NR_mmap, /*addr=*/0x1ffff000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x20000000ul, /*len=*/0x1000000ul, /*prot=*/7ul, /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul); syscall(__NR_mmap, /*addr=*/0x21000000ul, /*len=*/0x1000ul, /*prot=*/0ul, /*flags=*/0x32ul, /*fd=*/-1, /*offset=*/0ul); *(uint16_t*)0x20000000 = 4; *(uint64_t*)0x20000008 = 0x20000180; *(uint16_t*)0x20000180 = 0x3d; *(uint8_t*)0x20000182 = 0; *(uint8_t*)0x20000183 = 1; *(uint32_t*)0x20000184 = 1; *(uint16_t*)0x20000188 = 6; *(uint8_t*)0x2000018a = 0; *(uint8_t*)0x2000018b = 0; *(uint32_t*)0x2000018c = 0; *(uint16_t*)0x20000190 = 0; *(uint8_t*)0x20000192 = 0; *(uint8_t*)0x20000193 = 0; *(uint32_t*)0x20000194 = 0; *(uint16_t*)0x20000198 = 6; *(uint8_t*)0x2000019a = 0; *(uint8_t*)0x2000019b = 0xb5; *(uint32_t*)0x2000019c = 0; syscall(__NR_seccomp, /*op=*/1ul, /*flags=*/0ul, /*arg=*/0x20000000ul); return 0; }