Home
last modified time | relevance | path

Searched refs:writable (Results 1 – 25 of 163) sorted by relevance

1234567

/linux-6.6.21/include/trace/events/
Dhuge_memory.h58 TP_PROTO(struct mm_struct *mm, struct page *page, bool writable,
61 TP_ARGS(mm, page, writable, referenced, none_or_zero, status, unmapped),
66 __field(bool, writable)
76 __entry->writable = writable;
86 __entry->writable,
120 int referenced, bool writable, int status),
122 TP_ARGS(page, none_or_zero, referenced, writable, status),
128 __field(bool, writable)
136 __entry->writable = writable;
144 __entry->writable,
/linux-6.6.21/Documentation/mm/
Darch_pgtable_helpers.rst29 | pte_write | Tests a writable PTE |
49 | pte_mkwrite | Creates a writable PTE of the type specified by |
52 | pte_mkwrite_novma | Creates a writable PTE, of the conventional type |
53 | | of writable. |
105 | pmd_write | Tests a writable PMD |
125 | pmd_mkwrite | Creates a writable PMD of the type specified by |
128 | pmd_mkwrite_novma | Creates a writable PMD, of the conventional type |
129 | | of writable. |
183 | pud_write | Tests a writable PUD |
195 | pud_mkwrite | Creates a writable PUD |
[all …]
/linux-6.6.21/drivers/infiniband/hw/usnic/
Dusnic_uiom.c84 static int usnic_uiom_get_pages(unsigned long addr, size_t size, int writable, in usnic_uiom_get_pages() argument
134 if (writable) in usnic_uiom_get_pages()
216 int writable = 0; in __usnic_uiom_reg_release() local
230 writable = 1; in __usnic_uiom_reg_release()
235 usnic_uiom_put_pages(&uiomr->chunk_list, dirty & writable); in __usnic_uiom_reg_release()
254 flags |= (uiomr->writable) ? IOMMU_WRITE : 0; in usnic_uiom_map_sorted_intervals()
331 int writable, int dmasync) in usnic_uiom_reg_get() argument
346 writable = 1; in usnic_uiom_reg_get()
361 uiomr->writable = writable; in usnic_uiom_reg_get()
364 err = usnic_uiom_get_pages(addr, size, writable, dmasync, in usnic_uiom_reg_get()
[all …]
/linux-6.6.21/tools/testing/selftests/bpf/progs/
Dtest_module_attach.c36 struct bpf_testmod_test_writable_ctx *writable) in BPF_PROG() argument
38 raw_tp_writable_bare_in_val = writable->val; in BPF_PROG()
39 writable->early_ret = raw_tp_writable_bare_early_ret; in BPF_PROG()
40 writable->val = raw_tp_writable_bare_out_val; in BPF_PROG()
/linux-6.6.21/security/loadpin/
Dloadpin.c83 static void report_writable(struct super_block *mnt_sb, bool writable) in report_writable() argument
89 writable ? "writable" : "read-only"); in report_writable()
93 if (!writable) in report_writable()
103 bool writable = true; in sb_is_writable() local
106 writable = !bdev_read_only(mnt_sb->s_bdev); in sb_is_writable()
108 return writable; in sb_is_writable()
/linux-6.6.21/drivers/crypto/ccp/
Dsev-dev.c569 static int sev_ioctl_do_reset(struct sev_issue_cmd *argp, bool writable) in sev_ioctl_do_reset() argument
573 if (!writable) in sev_ioctl_do_reset()
618 static int sev_ioctl_do_pek_pdh_gen(int cmd, struct sev_issue_cmd *argp, bool writable) in sev_ioctl_do_pek_pdh_gen() argument
623 if (!writable) in sev_ioctl_do_pek_pdh_gen()
635 static int sev_ioctl_do_pek_csr(struct sev_issue_cmd *argp, bool writable) in sev_ioctl_do_pek_csr() argument
644 if (!writable) in sev_ioctl_do_pek_csr()
831 static int sev_ioctl_do_pek_import(struct sev_issue_cmd *argp, bool writable) in sev_ioctl_do_pek_import() argument
839 if (!writable) in sev_ioctl_do_pek_import()
982 static int sev_ioctl_do_pdh_export(struct sev_issue_cmd *argp, bool writable) in sev_ioctl_do_pdh_export() argument
994 if (!writable) in sev_ioctl_do_pdh_export()
[all …]
/linux-6.6.21/arch/riscv/kvm/
Dmmu.c348 bool writable, bool in_atomic) in kvm_riscv_gstage_ioremap() argument
365 if (!writable) in kvm_riscv_gstage_ioremap()
454 bool writable; in kvm_arch_prepare_memory_region() local
473 writable = !(new->flags & KVM_MEM_READONLY); in kvm_arch_prepare_memory_region()
500 if (writable && !(vma->vm_flags & VM_WRITE)) { in kvm_arch_prepare_memory_region()
524 writable, false); in kvm_arch_prepare_memory_region()
615 bool writable; in kvm_riscv_gstage_map() local
670 hfn = gfn_to_pfn_prot(kvm, gfn, is_write, &writable); in kvm_riscv_gstage_map()
684 writable = false; in kvm_riscv_gstage_map()
691 if (writable) { in kvm_riscv_gstage_map()
Dvcpu_exit.c18 bool writable; in gstage_page_fault() local
25 hva = gfn_to_hva_memslot_prot(memslot, gfn, &writable); in gstage_page_fault()
28 (trap->scause == EXC_STORE_GUEST_PAGE_FAULT && !writable)) { in gstage_page_fault()
/linux-6.6.21/drivers/mfd/
Dwm8350-regmap.c19 u16 writable; /* Mask of writable bits */ member
298 return wm8350_reg_io_map[reg].writable; in wm8350_writeable()
/linux-6.6.21/Documentation/virt/kvm/
Dlocking.rst70 What we use to avoid all the races is the Host-writable bit and MMU-writable bit
73 - Host-writable means the gfn is writable in the host kernel page tables and in
75 - MMU-writable means the gfn is writable in the guest's mmu and it is not
135 - The pfn is writable and therefore it cannot be shared between different gfns
147 writable between reading spte and updating spte. Like below case:
194 If the spte is updated from writable to read-only, we should flush all TLBs,
196 writable spte might be cached on a CPU's TLB.
198 As mentioned before, the spte can be updated to writable out of mmu-lock on
/linux-6.6.21/drivers/infiniband/hw/hfi1/
Duser_pages.c81 bool writable, struct page **pages) in hfi1_acquire_user_pages() argument
84 unsigned int gup_flags = FOLL_LONGTERM | (writable ? FOLL_WRITE : 0); in hfi1_acquire_user_pages()
/linux-6.6.21/Documentation/devicetree/bindings/nvmem/
Dqcom,qfprom.yaml48 # needs to be provided. If the QFPROM is writable then all 4 regions
59 # Clock must be provided if QFPROM is writable from the OS image.
65 # Supply reference must be provided if QFPROM is writable from the OS image.
/linux-6.6.21/drivers/infiniband/sw/siw/
Dsiw_mem.c78 umem->writable && dirty); in siw_umem_release()
365 struct siw_umem *siw_umem_get(u64 start, u64 len, bool writable) in siw_umem_get() argument
390 umem->writable = writable; in siw_umem_get()
394 if (writable) in siw_umem_get()
/linux-6.6.21/fs/fuse/
Ddax.c56 bool writable; member
183 struct fuse_dax_mapping *dmap, bool writable, in fuse_setup_one_mapping() argument
203 if (writable) in fuse_setup_one_mapping()
213 dmap->writable = writable; in fuse_setup_one_mapping()
440 bool writable = flags & IOMAP_WRITE; in fuse_setup_new_dax_mapping() local
488 writable, false); in fuse_setup_new_dax_mapping()
542 if (dmap->writable) { in fuse_upgrade_dax_mapping()
568 bool writable = flags & IOMAP_WRITE; in fuse_iomap_begin() local
592 if (writable && !dmap->writable) { in fuse_iomap_begin()
/linux-6.6.21/drivers/infiniband/core/
Dumem.c50 bool make_dirty = umem->writable && dirty; in __ib_umem_release()
181 umem->writable = ib_access_writable(access); in ib_umem_get()
208 if (umem->writable) in ib_umem_get()
Dumem_odp.c131 umem->writable = ib_access_writable(access); in ib_umem_odp_alloc_implicit()
180 umem->writable = root->umem.writable; in ib_umem_odp_alloc_child()
240 umem_odp->umem.writable = ib_access_writable(access); in ib_umem_odp_get()
/linux-6.6.21/tools/testing/selftests/bpf/bpf_testmod/
Dbpf_testmod.c286 struct bpf_testmod_test_writable_ctx writable = { in bpf_testmod_test_read() local
289 trace_bpf_testmod_test_writable_bare(&writable); in bpf_testmod_test_read()
290 if (writable.early_ret) in bpf_testmod_test_read()
291 return snprintf(buf, len, "%d\n", writable.val); in bpf_testmod_test_read()
/linux-6.6.21/virt/kvm/
Dkvm_main.c2478 gfn_t gfn, bool *writable) in gfn_to_hva_memslot_prot() argument
2482 if (!kvm_is_error_hva(hva) && writable) in gfn_to_hva_memslot_prot()
2483 *writable = !memslot_is_readonly(slot); in gfn_to_hva_memslot_prot()
2488 unsigned long gfn_to_hva_prot(struct kvm *kvm, gfn_t gfn, bool *writable) in gfn_to_hva_prot() argument
2492 return gfn_to_hva_memslot_prot(slot, gfn, writable); in gfn_to_hva_prot()
2495 unsigned long kvm_vcpu_gfn_to_hva_prot(struct kvm_vcpu *vcpu, gfn_t gfn, bool *writable) in kvm_vcpu_gfn_to_hva_prot() argument
2499 return gfn_to_hva_memslot_prot(slot, gfn, writable); in kvm_vcpu_gfn_to_hva_prot()
2516 bool *writable, kvm_pfn_t *pfn) in hva_to_pfn_fast() argument
2525 if (!(write_fault || writable)) in hva_to_pfn_fast()
2531 if (writable) in hva_to_pfn_fast()
[all …]
/linux-6.6.21/arch/arm/
DKconfig-nommu50 vectors to be mapped to writable memory, say 'n' here.
54 the writable versions located at DRAM_BASE.
/linux-6.6.21/drivers/iommu/iommufd/
Dio_pagetable.h199 bool writable:1; member
210 bool writable);
/linux-6.6.21/include/linux/
Dmm_types_task.h70 bool writable; member
/linux-6.6.21/Documentation/admin-guide/mm/
Dsoft-dirty.rst22 Internally, to do this tracking, the writable bit is cleared from PTEs
30 the kernel does is finds this fact out and puts both writable and soft-dirty
/linux-6.6.21/Documentation/ABI/testing/
Dsysfs-kernel-livepatch24 A writable attribute that indicates whether the patched
41 A writable attribute that allows administrator to affect the
/linux-6.6.21/Documentation/security/
Dself-protection.rst37 APIs hard to use incorrectly, minimizing the areas of writable kernel
43 When all of kernel memory is writable, it becomes trivial for attacks
47 Executable code and read-only data must not be writable
50 Any areas of the kernel with executable memory must not be writable.
56 made writable during the update, and then returned to the original
61 writable, data is not executable, and read-only data is neither writable
70 Function pointers and sensitive variables must not be writable
/linux-6.6.21/arch/powerpc/kvm/
Dbook3s_32_mmu_host.c145 bool writable; in kvmppc_mmu_map_page() local
148 hpaddr = kvmppc_gpa_to_pfn(vcpu, orig_pte->raddr, iswrite, &writable); in kvmppc_mmu_map_page()
198 if (orig_pte->may_write && writable) { in kvmppc_mmu_map_page()

1234567