lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Fri, 1 Jul 2022 15:05:34 +0800 From: Zhang Jiaming <jiaming@...china.com> To: dave.hansen@...ux.intel.com, luto@...nel.org, peterz@...radead.org, tglx@...utronix.de, mingo@...hat.com, bp@...en8.de, x86@...nel.org, hpa@...or.com Cc: linux-kernel@...r.kernel.org, liqiong@...china.com, renyu@...china.com, Zhang Jiaming <jiaming@...china.com> Subject: [PATCH] mm/pgtable: Fix typo in comments There are 2 typo (writeable) in init.c and pgtable.c's comments. Fix it. Signed-off-by: Zhang Jiaming <jiaming@...china.com> --- arch/x86/mm/init.c | 2 +- arch/x86/mm/pgtable.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/mm/init.c b/arch/x86/mm/init.c index d8cfce221275..e027239406d5 100644 --- a/arch/x86/mm/init.c +++ b/arch/x86/mm/init.c @@ -893,7 +893,7 @@ void free_init_pages(const char *what, unsigned long begin, unsigned long end) /* * We just marked the kernel text read only above, now that * we are going to free part of that, we need to make that - * writeable and non-executable first. + * writable and non-executable first. */ set_memory_nx(begin, (end - begin) >> PAGE_SHIFT); set_memory_rw(begin, (end - begin) >> PAGE_SHIFT); diff --git a/arch/x86/mm/pgtable.c b/arch/x86/mm/pgtable.c index a932d7712d85..95f930104deb 100644 --- a/arch/x86/mm/pgtable.c +++ b/arch/x86/mm/pgtable.c @@ -480,7 +480,7 @@ void pgd_free(struct mm_struct *mm, pgd_t *pgd) * Used to set accessed or dirty bits in the page table entries * on other architectures. On x86, the accessed and dirty bits * are tracked by hardware. However, do_wp_page calls this function - * to also make the pte writeable at the same time the dirty bit is + * to also make the pte writable at the same time the dirty bit is * set. In that case we do actually need to write the PTE. */ int ptep_set_access_flags(struct vm_area_struct *vma, -- 2.25.1
Powered by blists - more mailing lists