Home
last modified time | relevance | path

Searched refs:invalid_kern_ptr (Results 1 – 1 of 1) sorted by relevance

/tools/testing/selftests/bpf/progs/
A Dstring_kfuncs_failure1.c10 char *invalid_kern_ptr = (char *)-1; variable
70 …al(-EFAULT) int test_strcmp_pagefault1(void *ctx) { return bpf_strcmp(invalid_kern_ptr, "hello"); } in test_strcmp_pagefault1()
71 …al(-EFAULT) int test_strcmp_pagefault2(void *ctx) { return bpf_strcmp("hello", invalid_kern_ptr); } in test_strcmp_pagefault2()
72 …_retval(-EFAULT) int test_strchr_pagefault(void *ctx) { return bpf_strchr(invalid_kern_ptr, 'a'); } in test_strchr_pagefault()
74 …al(-EFAULT) int test_strnchr_pagefault(void *ctx) { return bpf_strnchr(invalid_kern_ptr, 1, 'a'); } in test_strnchr_pagefault()
75 …etval(-EFAULT) int test_strrchr_pagefault(void *ctx) { return bpf_strrchr(invalid_kern_ptr, 'a'); } in test_strrchr_pagefault()
76 …l") __retval(-EFAULT) int test_strlen_pagefault(void *ctx) { return bpf_strlen(invalid_kern_ptr); } in test_strlen_pagefault()
77 …_retval(-EFAULT) int test_strnlen_pagefault(void *ctx) { return bpf_strnlen(invalid_kern_ptr, 1); } in test_strnlen_pagefault()
78 …al(-EFAULT) int test_strspn_pagefault1(void *ctx) { return bpf_strspn(invalid_kern_ptr, "hello"); } in test_strspn_pagefault1()
79 …al(-EFAULT) int test_strspn_pagefault2(void *ctx) { return bpf_strspn("hello", invalid_kern_ptr); } in test_strspn_pagefault2()
[all …]

Completed in 3 milliseconds