/linux-6.3-rc2/include/trace/events/ |
A D | huge_memory.h | 55 TP_PROTO(struct mm_struct *mm, struct page *page, bool writable, 58 TP_ARGS(mm, page, writable, referenced, none_or_zero, status, unmapped), 63 __field(bool, writable) 73 __entry->writable = writable; 83 __entry->writable, 117 int referenced, bool writable, int status), 119 TP_ARGS(page, none_or_zero, referenced, writable, status), 125 __field(bool, writable) 133 __entry->writable = writable; 141 __entry->writable,
|
/linux-6.3-rc2/drivers/infiniband/hw/usnic/ |
A D | usnic_uiom.c | 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() 374 (writable) ? IOMMU_WRITE : 0, in usnic_uiom_reg_get() [all …]
|
/linux-6.3-rc2/tools/testing/selftests/bpf/progs/ |
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-6.3-rc2/drivers/crypto/ccp/ |
A D | sev-dev.c | 561 if (!writable) in sev_ioctl_do_reset() 611 if (!writable) in sev_ioctl_do_pek_pdh_gen() 632 if (!writable) in sev_ioctl_do_pek_csr() 827 if (!writable) in sev_ioctl_do_pek_import() 982 if (!writable) in sev_ioctl_do_pdh_export() 1066 bool writable = file->f_mode & FMODE_WRITE; in sev_ioctl() local 1085 ret = sev_ioctl_do_reset(&input, writable); in sev_ioctl() 1091 ret = sev_ioctl_do_pek_pdh_gen(SEV_CMD_PEK_GEN, &input, writable); in sev_ioctl() 1097 ret = sev_ioctl_do_pek_csr(&input, writable); in sev_ioctl() 1100 ret = sev_ioctl_do_pek_import(&input, writable); in sev_ioctl() [all …]
|
/linux-6.3-rc2/security/loadpin/ |
A D | loadpin.c | 89 static void report_writable(struct super_block *mnt_sb, bool writable) in report_writable() argument 95 writable ? "writable" : "read-only"); in report_writable() 99 if (!writable) in report_writable() 109 bool writable = true; in sb_is_writable() local 112 writable = !bdev_read_only(mnt_sb->s_bdev); in sb_is_writable() 114 return writable; in sb_is_writable()
|
/linux-6.3-rc2/Documentation/mm/ |
A D | arch_pgtable_helpers.rst | 29 | pte_write | Tests a writable PTE | 49 | pte_mkwrite | Creates a writable PTE | 101 | pmd_write | Tests a writable PMD | 121 | pmd_mkwrite | Creates a writable PMD | 175 | pud_write | Tests a writable PUD | 187 | pud_mkwrite | Creates a writable PUD | 221 | huge_pte_write | Tests a writable HugeTLB | 225 | huge_pte_mkwrite | Creates a writable HugeTLB |
|
/linux-6.3-rc2/tools/testing/selftests/bpf/bpf_testmod/ |
A D | bpf_testmod.c | 179 struct bpf_testmod_test_writable_ctx writable = { in bpf_testmod_test_read() local 182 trace_bpf_testmod_test_writable_bare(&writable); in bpf_testmod_test_read() 183 if (writable.early_ret) in bpf_testmod_test_read() 184 return snprintf(buf, len, "%d\n", writable.val); in bpf_testmod_test_read()
|
/linux-6.3-rc2/arch/riscv/kvm/ |
A D | mmu.c | 348 bool writable, bool in_atomic) in kvm_riscv_gstage_ioremap() argument 365 if (!writable) in kvm_riscv_gstage_ioremap() 460 bool writable; in kvm_arch_prepare_memory_region() local 479 writable = !(new->flags & KVM_MEM_READONLY); in kvm_arch_prepare_memory_region() 506 if (writable && !(vma->vm_flags & VM_WRITE)) { in kvm_arch_prepare_memory_region() 530 writable, false); in kvm_arch_prepare_memory_region() 621 bool writable; in kvm_riscv_gstage_map() local 669 hfn = gfn_to_pfn_prot(kvm, gfn, is_write, &writable); in kvm_riscv_gstage_map() 683 writable = false; in kvm_riscv_gstage_map() 690 if (writable) { in kvm_riscv_gstage_map()
|
A D | vcpu_exit.c | 18 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.3-rc2/drivers/mfd/ |
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-6.3-rc2/Documentation/virt/kvm/ |
A D | locking.rst | 70 What we use to avoid all the race 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 readonly, 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.3-rc2/drivers/infiniband/hw/hfi1/ |
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-6.3-rc2/Documentation/devicetree/bindings/nvmem/ |
A D | qcom,qfprom.yaml | 41 # needs to be provided. If the QFPROM is writable then all 4 regions 52 # Clock must be provided if QFPROM is writable from the OS image. 58 # Supply reference must be provided if QFPROM is writable from the OS image.
|
/linux-6.3-rc2/drivers/infiniband/sw/siw/ |
A D | siw_mem.c | 78 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.3-rc2/fs/fuse/ |
A D | dax.c | 56 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.3-rc2/drivers/infiniband/core/ |
A D | umem.c | 50 bool make_dirty = umem->writable && dirty; in __ib_umem_release() 186 umem->writable = ib_access_writable(access); in ib_umem_get() 213 if (umem->writable) in ib_umem_get()
|
A D | umem_odp.c | 131 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.3-rc2/virt/kvm/ |
A D | kvm_main.c | 2502 if (writable) in hva_to_pfn_fast() 2503 *writable = true; in hva_to_pfn_fast() 2523 if (writable) in hva_to_pfn_slow() 2542 *writable = true; in hva_to_pfn_slow() 2606 if (writable) in hva_to_pfn_remapped() 2669 writable, &pfn); in hva_to_pfn() 2713 if (writable) in __gfn_to_pfn_memslot() 2719 if (writable) in __gfn_to_pfn_memslot() 2726 *writable = false; in __gfn_to_pfn_memslot() 2727 writable = NULL; in __gfn_to_pfn_memslot() [all …]
|
/linux-6.3-rc2/drivers/iommu/iommufd/ |
A D | io_pagetable.h | 199 bool writable:1; member 210 bool writable);
|
/linux-6.3-rc2/arch/arm/ |
A D | Kconfig-nommu | 50 vectors to be mapped to writable memory, say 'n' here. 54 the writable versions located at DRAM_BASE.
|
/linux-6.3-rc2/arch/arm64/kvm/ |
A D | mmu.c | 894 phys_addr_t pa, unsigned long size, bool writable) in kvm_phys_addr_ioremap() argument 902 (writable ? KVM_PGTABLE_PROT_W : 0); in kvm_phys_addr_ioremap() 1194 bool write_fault, writable, force_pte = false; in user_mem_abort() local 1305 write_fault, &writable, NULL); in user_mem_abort() 1330 writable = false; in user_mem_abort() 1365 if (writable) in user_mem_abort() 1391 if (writable && !ret) { in user_mem_abort() 1437 bool is_iabt, write_fault, writable; in kvm_handle_guest_abort() local 1495 hva = gfn_to_hva_memslot_prot(memslot, gfn, &writable); in kvm_handle_guest_abort() 1497 if (kvm_is_error_hva(hva) || (write_fault && !writable)) { in kvm_handle_guest_abort()
|
/linux-6.3-rc2/include/linux/ |
A D | mm_types_task.h | 70 bool writable; member
|
/linux-6.3-rc2/Documentation/ABI/testing/ |
A D | sysfs-kernel-livepatch | 24 A writable attribute that indicates whether the patched 41 A writable attribute that allows administrator to affect the
|
/linux-6.3-rc2/Documentation/admin-guide/mm/ |
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-6.3-rc2/Documentation/security/ |
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
|