Home
last modified time | relevance | path

Searched refs:rights (Results 1 - 25 of 71) sorted by relevance

123

/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/mm/
H A Dpkey_exec_prot.c105 unsigned long rights; in test() local
154 rights = PKEY_DISABLE_EXECUTE; in test()
155 pkey = sys_pkey_alloc(0, rights); in test()
181 pkey_rights(rights)); in test()
198 pkey_rights(rights)); in test()
203 rights |= PKEY_DISABLE_ACCESS; in test()
217 pkey_set_rights(pkey, rights); in test()
219 pkey_rights(rights)); in test()
234 pkey_set_rights(pkey, rights); in test()
236 pkey_rights(rights)); in test()
[all...]
H A Dpkey_siginfo.c31 static volatile sig_atomic_t rights, fault_count; variable
71 * If the current fault occurred due to lack of execute rights, in segv_handler()
73 * rights cannot be changed directly for the faulting pkey as in segv_handler()
77 * read-write rights, change the AMR permission bits for the in segv_handler()
82 if (rights == PKEY_DISABLE_EXECUTE && in segv_handler()
92 unsigned long rights; member
99 unsigned long rights; in protect() local
110 rights = 0; in protect()
112 printf("tid %d, pkey permissions are %s\n", tid, pkey_rights(rights)); in protect()
115 perm_pkey = sys_pkey_alloc(0, rights); in protect()
227 reset_pkeys(unsigned long rights) reset_pkeys() argument
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/mm/
H A Dpkey_exec_prot.c105 unsigned long rights; in test() local
154 rights = PKEY_DISABLE_EXECUTE; in test()
155 pkey = sys_pkey_alloc(0, rights); in test()
181 pkey_rights(rights)); in test()
198 pkey_rights(rights)); in test()
203 rights |= PKEY_DISABLE_ACCESS; in test()
217 pkey_set_rights(pkey, rights); in test()
219 pkey_rights(rights)); in test()
234 pkey_set_rights(pkey, rights); in test()
236 pkey_rights(rights)); in test()
[all...]
H A Dpkey_siginfo.c31 static volatile sig_atomic_t rights, fault_count; variable
71 * If the current fault occurred due to lack of execute rights, in segv_handler()
73 * rights cannot be changed directly for the faulting pkey as in segv_handler()
77 * read-write rights, change the AMR permission bits for the in segv_handler()
82 if (rights == PKEY_DISABLE_EXECUTE && in segv_handler()
92 unsigned long rights; member
99 unsigned long rights; in protect() local
110 rights = 0; in protect()
112 printf("tid %d, pkey permissions are %s\n", tid, pkey_rights(rights)); in protect()
115 perm_pkey = sys_pkey_alloc(0, rights); in protect()
227 reset_pkeys(unsigned long rights) reset_pkeys() argument
[all...]
H A Dexec_prot.c85 static int check_exec_fault(int rights) in check_exec_fault() argument
95 if (!(rights & PROT_EXEC)) in check_exec_fault()
98 FAIL_IF(mprotect(insns, pgsize, rights) != 0); in check_exec_fault()
102 if (!(rights & PROT_EXEC)) in check_exec_fault()
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/include/
H A Dpkeys.h15 * Older versions of libc use the Intel-specific access rights.
52 void pkey_set_rights(int pkey, unsigned long rights) in pkey_set_rights() argument
59 amr |= (rights & PKEY_BITS_MASK) << shift; in pkey_set_rights()
68 int sys_pkey_alloc(unsigned long flags, unsigned long rights) in sys_pkey_alloc() argument
70 return syscall(__NR_pkey_alloc, flags, rights); in sys_pkey_alloc()
121 unsigned long next_pkey_rights(unsigned long rights)
123 if (rights == PKEY_DISABLE_ACCESS)
125 else if (rights == (PKEY_DISABLE_ACCESS | PKEY_DISABLE_EXECUTE))
128 if ((rights & PKEY_BITS_MASK) == 0)
129 rights |
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/include/
H A Dpkeys.h15 * Older versions of libc use the Intel-specific access rights.
52 void pkey_set_rights(int pkey, unsigned long rights) in pkey_set_rights() argument
59 amr |= (rights & PKEY_BITS_MASK) << shift; in pkey_set_rights()
68 int sys_pkey_alloc(unsigned long flags, unsigned long rights) in sys_pkey_alloc() argument
70 return syscall(__NR_pkey_alloc, flags, rights); in sys_pkey_alloc()
121 unsigned long next_pkey_rights(unsigned long rights)
123 if (rights == PKEY_DISABLE_ACCESS)
125 else if (rights == (PKEY_DISABLE_ACCESS | PKEY_DISABLE_EXECUTE))
128 if ((rights & PKEY_BITS_MASK) == 0)
129 rights |
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/livepatch/
H A Dfunctions.sh317 # expected_rights - expected access rights
324 local rights=$(/bin/stat --format '%A' "$path")
325 if test "$rights" != "$expected_rights" ; then
326 die "Unexpected access rights of $path: $expected_rights vs. $rights"
/kernel/linux/linux-5.10/drivers/infiniband/sw/siw/
H A Dsiw_verbs.h69 u64 rnic_va, int rights, struct ib_udata *udata);
72 struct ib_mr *siw_get_dma_mr(struct ib_pd *base_pd, int rights);
H A Dsiw_mem.h23 u64 start, u64 len, int rights);
H A Dsiw_mem.c90 u64 start, u64 len, int rights) in siw_mr_add_mem()
106 mem->perms = rights & IWARP_ACCESS_MASK; in siw_mr_add_mem()
208 * Check SGE for access rights in given interval
89 siw_mr_add_mem(struct siw_mr *mr, struct ib_pd *pd, void *mem_obj, u64 start, u64 len, int rights) siw_mr_add_mem() argument
/kernel/linux/linux-6.6/drivers/infiniband/sw/siw/
H A Dsiw_verbs.h68 u64 rnic_va, int rights, struct ib_udata *udata);
71 struct ib_mr *siw_get_dma_mr(struct ib_pd *base_pd, int rights);
H A Dsiw_mem.h23 u64 start, u64 len, int rights);
H A Dsiw_mem.c90 u64 start, u64 len, int rights) in siw_mr_add_mem()
106 mem->perms = rights & IWARP_ACCESS_MASK; in siw_mr_add_mem()
208 * Check SGE for access rights in given interval
89 siw_mr_add_mem(struct siw_mr *mr, struct ib_pd *pd, void *mem_obj, u64 start, u64 len, int rights) siw_mr_add_mem() argument
/kernel/liteos_m/arch/arm/cortex-m3/keil/
H A Dlos_startup.s2 ; Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
3 ; Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
H A Dlos_dispatch.S2 ; Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
3 ; Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
H A Dlos_exc.S2 ; Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
3 ; Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
/kernel/liteos_m/arch/arm/cortex-m33/iar/NTZ/
H A Dlos_dispatch.S2 ; Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
3 ; Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
/kernel/liteos_m/arch/arm/cortex-m33/iar/TZ/non_secure/
H A Dlos_dispatch.S2 ; Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
3 ; Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
/kernel/liteos_m/arch/arm/cortex-m4/iar/
H A Dlos_dispatch.S2 ; Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
3 ; Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
/kernel/liteos_m/arch/arm/cortex-m55/iar/NTZ/
H A Dlos_dispatch.S2 ; Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
3 ; Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
/kernel/liteos_m/arch/arm/cortex-m55/iar/TZ/non_secure/
H A Dlos_dispatch.S2 ; Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
3 ; Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
/kernel/liteos_m/arch/arm/cortex-m7/iar/
H A Dlos_dispatch.S2 ; Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
3 ; Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
/kernel/linux/linux-5.10/arch/powerpc/platforms/ps3/
H A Ddevice-init.c51 &dev->lpm.rights); in ps3_register_lpm_devices()
68 if (!(dev->lpm.rights & PS3_LPM_RIGHTS_USE_LPM)) { in ps3_register_lpm_devices()
69 pr_debug("%s:%d: don't have rights to use lpm\n", in ps3_register_lpm_devices()
75 pr_debug("%s:%d: pu_id %llu, rights %llu(%llxh)\n", in ps3_register_lpm_devices()
76 __func__, __LINE__, dev->lpm.pu_id, dev->lpm.rights, in ps3_register_lpm_devices()
77 dev->lpm.rights); in ps3_register_lpm_devices()
/kernel/linux/linux-6.6/arch/powerpc/platforms/ps3/
H A Ddevice-init.c51 &dev->lpm.rights); in ps3_register_lpm_devices()
68 if (!(dev->lpm.rights & PS3_LPM_RIGHTS_USE_LPM)) { in ps3_register_lpm_devices()
69 pr_debug("%s:%d: don't have rights to use lpm\n", in ps3_register_lpm_devices()
75 pr_debug("%s:%d: pu_id %llu, rights %llu(%llxh)\n", in ps3_register_lpm_devices()
76 __func__, __LINE__, dev->lpm.pu_id, dev->lpm.rights, in ps3_register_lpm_devices()
77 dev->lpm.rights); in ps3_register_lpm_devices()

Completed in 10 milliseconds

123