| /linux/Documentation/mm/ |
| H A D | arch_pgtable_helpers.rst | 27 | pte_write | Tests a writable PTE | 45 | pte_mkwrite | Creates a writable PTE of the type specified by | 48 | pte_mkwrite_novma | Creates a writable PTE, of the conventional type | 49 | | of writable. | 97 | pmd_write | Tests a writable PMD | 115 | pmd_mkwrite | Creates a writable PMD of the type specified by | 118 | pmd_mkwrite_novma | Creates a writable PMD, of the conventional type | 119 | | of writable. | 170 | pud_write | Tests a writable PUD | 180 | pud_mkwrite | Creates a writable PUD | [all …]
|
| /linux/drivers/infiniband/hw/usnic/ |
| H A D | usnic_uiom.c | 84 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/tools/testing/selftests/bpf/progs/ |
| H A D | test_module_attach.c | 36 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/arch/riscv/kvm/ |
| H A D | mmu.c | 39 unsigned long size, bool writable, bool in_atomic) in kvm_riscv_mmu_ioremap() argument 67 if (!writable) in kvm_riscv_mmu_ioremap() 177 bool writable; in kvm_arch_prepare_memory_region() local 195 writable = !(new->flags & KVM_MEM_READONLY); in kvm_arch_prepare_memory_region() 222 if (writable && !(vma->vm_flags & VM_WRITE)) { in kvm_arch_prepare_memory_region() 314 bool writable; in kvm_riscv_mmu_map() local 380 &writable, &page); in kvm_riscv_mmu_map() 394 writable = false; in kvm_riscv_mmu_map() 401 if (writable) { in kvm_riscv_mmu_map() 414 kvm_release_faultin_page(kvm, page, ret && ret != -EEXIST, writable); in kvm_riscv_mmu_map()
|
| H A D | vcpu_exit.c | 21 bool writable; in gstage_page_fault() local 28 hva = gfn_to_hva_memslot_prot(memslot, gfn, &writable); in gstage_page_fault() 31 (trap->scause == EXC_STORE_GUEST_PAGE_FAULT && !writable)) { in gstage_page_fault()
|
| /linux/arch/powerpc/kvm/ |
| H A D | e500_mmu_host.c | 48 static inline u32 e500_shadow_mas3_attrib(u32 mas3, bool writable, int usermode) in e500_shadow_mas3_attrib() argument 53 if (!writable) in e500_shadow_mas3_attrib() 251 bool writable) in kvmppc_e500_ref_setup() argument 255 if (writable) in kvmppc_e500_ref_setup() 312 bool writable = !!(ref->flags & E500_TLB_WRITABLE); in kvmppc_e500_setup_stlbe() local 320 e500_shadow_mas3_attrib(gtlbe->mas7_3, writable, pr); in kvmppc_e500_setup_stlbe() 341 bool writable = false; in kvmppc_e500_shadow_map() local 358 pfn = __kvm_faultin_pfn(slot, gfn, FOLL_WRITE, &writable, &page); in kvmppc_e500_shadow_map() 458 kvmppc_e500_ref_setup(ref, gtlbe, pfn, wimg, writable); in kvmppc_e500_shadow_map() 461 writable = tlbe_is_writable(stlbe); in kvmppc_e500_shadow_map() [all …]
|
| /linux/security/loadpin/ |
| H A D | loadpin.c | 83 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/drivers/mfd/ |
| H A D | wm8350-regmap.c | 19 u16 writable; /* Mask of writable bits */ member 298 return wm8350_reg_io_map[reg].writable; in wm8350_writeable()
|
| /linux/drivers/iommu/iommufd/ |
| H A D | io_pagetable.h | 241 bool writable:1; member 267 unsigned long length, bool writable); 271 unsigned long length, bool writable); 276 unsigned long length, bool writable);
|
| H A D | pages.c | 715 to_unpin, pages->writable); in batch_unpin() 796 if (pages->writable) in pfn_reader_user_init() 1363 unsigned long length, bool writable) in iopt_alloc_pages() argument 1386 pages->writable = writable; in iopt_alloc_pages() 1398 unsigned long length, bool writable) in iopt_alloc_user_pages() argument 1408 pages = iopt_alloc_pages(uptr - uptr_down, length, writable); in iopt_alloc_user_pages() 1419 unsigned long length, bool writable) in iopt_alloc_file_pages() argument 1424 pages = iopt_alloc_pages(start_byte, length, writable); in iopt_alloc_file_pages() 1524 unsigned long length, bool writable) in iopt_alloc_dmabuf_pages() argument 1537 pages = iopt_alloc_pages(start_byte, length, writable); in iopt_alloc_dmabuf_pages() [all …]
|
| /linux/arch/arm64/kvm/ |
| H A D | mmu.c | 1177 phys_addr_t pa, unsigned long size, bool writable) in kvm_phys_addr_ioremap() argument 1186 (writable ? KVM_PGTABLE_PROT_W : 0); in kvm_phys_addr_ioremap() 1547 bool *writable) in adjust_nested_fault_perms() argument 1549 *writable &= kvm_s2_trans_writable(nested); in adjust_nested_fault_perms() 1572 bool write_fault, exec_fault, writable; in gmem_abort() local 1609 writable = !(memslot->flags & KVM_MEM_READONLY); in gmem_abort() 1612 adjust_nested_fault_perms(nested, &prot, &writable); in gmem_abort() 1614 if (writable) in gmem_abort() 1634 kvm_release_faultin_page(kvm, page, !!ret, writable); in gmem_abort() 1637 if (writable && !ret) in gmem_abort() [all …]
|
| /linux/drivers/crypto/ccp/ |
| H A D | sev-dev.c | 1756 static int sev_ioctl_do_reset(struct sev_issue_cmd *argp, bool writable) in sev_ioctl_do_reset() argument 1760 if (!writable) in sev_ioctl_do_reset() 1805 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 1811 if (!writable) in sev_ioctl_do_pek_pdh_gen() 1828 static int sev_ioctl_do_pek_csr(struct sev_issue_cmd *argp, bool writable) in sev_ioctl_do_pek_csr() argument 1838 if (!writable) in sev_ioctl_do_pek_csr() 2127 static int sev_ioctl_do_pek_import(struct sev_issue_cmd *argp, bool writable) in sev_ioctl_do_pek_import() argument 2136 if (!writable) in sev_ioctl_do_pek_import() 2282 static int sev_ioctl_do_pdh_export(struct sev_issue_cmd *argp, bool writable) in sev_ioctl_do_pdh_export() argument 2334 if (!writable) { in sev_ioctl_do_pdh_export() [all …]
|
| /linux/drivers/infiniband/hw/hfi1/ |
| H A D | user_pages.c | 81 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/drivers/virt/acrn/ |
| H A D | mm.c | 180 bool writable; in acrn_vm_ram_map() local 200 writable = args.writable; in acrn_vm_ram_map() 204 if (!writable && in acrn_vm_ram_map()
|
| /linux/drivers/infiniband/core/ |
| H A D | umem.c | 52 bool make_dirty = umem->writable && dirty; in __ib_umem_release() 203 umem->writable = ib_access_writable(access); in ib_umem_get() 230 if (umem->writable) in ib_umem_get()
|
| H A D | umem_odp.c | 148 umem->writable = ib_access_writable(access); in ib_umem_odp_alloc_implicit() 191 umem->writable = root->umem.writable; in ib_umem_odp_alloc_child() 251 umem_odp->umem.writable = ib_access_writable(access); in ib_umem_odp_get()
|
| /linux/arch/arm/ |
| H A D | Kconfig-nommu | 50 vectors to be mapped to writable memory, say 'n' here. 54 the writable versions located at DRAM_BASE.
|
| /linux/Documentation/security/ |
| H A D | self-protection.rst | 37 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/Documentation/admin-guide/mm/ |
| H A D | soft-dirty.rst | 22 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/arch/riscv/include/asm/ |
| H A D | kvm_mmu.h | 12 unsigned long size, bool writable, bool in_atomic);
|
| /linux/drivers/md/dm-vdo/ |
| H A D | block-map.h | 175 bool writable; member 303 bool writable, void *parent, vdo_action_fn callback,
|
| /linux/include/linux/ |
| H A D | mm_types_task.h | 87 bool writable; member
|
| /linux/Documentation/userspace-api/media/v4l/ |
| H A D | vidioc-g-audioout.rst | 45 Audio outputs have no writable properties. Nevertheless, to select the 47 ``reserved`` array (which in the future may contain writable properties)
|
| /linux/rust/kernel/mm/ |
| H A D | virt.rs | 339 pub fn writable(&self) -> bool { in writable() method 352 if self.writable() { in try_clear_maywrite()
|
| /linux/mm/ |
| H A D | rmap.c | 627 tlb_ubc->writable = false; in try_to_unmap_flush() 635 if (tlb_ubc->writable) in try_to_unmap_flush_dirty() 654 bool writable = pte_dirty(pteval); in set_tlb_ubc_flush_pending() local 686 if (writable) in set_tlb_ubc_flush_pending() 687 tlb_ubc->writable = true; in set_tlb_ubc_flush_pending() 2287 bool anon_exclusive, writable, ret = true; in try_to_migrate_one() local 2437 writable = pte_write(pteval); in try_to_migrate_one() 2458 writable = pte_write(pteval); in try_to_migrate_one() 2464 writable = softleaf_is_device_private_write(entry); in try_to_migrate_one() 2467 VM_WARN_ON_FOLIO(writable && folio_test_anon(folio) && in try_to_migrate_one() [all …]
|