Searched refs:kgsl_fd (Results 1 – 2 of 2) sorted by relevance
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-11282/ |
D | poc.c | 38 int kgsl_fd; in main() local 40 kgsl_fd = open("/dev/kgsl-3d0", 0); in main() 41 if (kgsl_fd < 0) { in main() 48 if (ioctl(kgsl_fd, IOCTL_KGSL_DEVICE_GETPROPERTY, param) < 0) { in main() 54 MAP_PRIVATE, kgsl_fd, shadowprop.gpuaddr); in main() 58 kgsl_fd, shadowprop.gpuaddr); in main()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2021-1906/ |
D | poc.c | 154 int kgsl_fd = kgsl_init(); in main() local 158 FAIL_CHECK(!(kgsl_fd < 0)); in main() 160 if (create_code_page(kgsl_fd, 4 * PAGE_SIZE, &code_page_cpu_addr, in main() 162 close(kgsl_fd); in main() 166 next_gpu_addr = gpu_mem_alloc(kgsl_fd, PAGE_SIZE, 0); in main() 167 gpu_sharedmem_free(kgsl_fd, next_gpu_addr); in main() 168 trigger(kgsl_fd, next_gpu_addr, EXPLOIT_VULN_ADDR); in main() 169 gpu_addr = gpu_mem_alloc(kgsl_fd, 0x600000, 0); in main() 171 close(kgsl_fd); in main()
|