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: Thu, 22 Sep 2016 16:28:10 +0530 From: "Aneesh Kumar K.V" <aneesh.kumar@...ux.vnet.ibm.com> To: Toshi Kani <toshi.kani@....com>, akpm@...ux-foundation.org Cc: dan.j.williams@...el.com, mawilcox@...rosoft.com, hughd@...gle.com, kirill.shutemov@...ux.intel.com, toshi.kani@....com, linux-nvdimm@...ts.01.org, linux-mm@...ck.org, linux-kernel@...r.kernel.org Subject: Re: [PATCH 1/2] shmem: fix tmpfs to handle the huge= option properly Toshi Kani <toshi.kani@....com> writes: > shmem_get_unmapped_area() checks SHMEM_SB(sb)->huge incorrectly, > which leads to a reversed effect of "huge=" mount option. > > Fix the check in shmem_get_unmapped_area(). > > Note, the default value of SHMEM_SB(sb)->huge remains as > SHMEM_HUGE_NEVER. User will need to specify "huge=" option to > enable huge page mappings. > Any update on getting this merged ? Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@...ux.vnet.ibm.com> > Reported-by: Hillf Danton <hillf.zj@...baba-inc.com> > Signed-off-by: Toshi Kani <toshi.kani@....com> > Cc: Andrew Morton <akpm@...ux-foundation.org> > Cc: Kirill A. Shutemov <kirill.shutemov@...ux.intel.com> > Cc: Hugh Dickins <hughd@...gle.com> > --- > mm/shmem.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/mm/shmem.c b/mm/shmem.c > index fd8b2b5..aec5b49 100644 > --- a/mm/shmem.c > +++ b/mm/shmem.c > @@ -1980,7 +1980,7 @@ unsigned long shmem_get_unmapped_area(struct file *file, > return addr; > sb = shm_mnt->mnt_sb; > } > - if (SHMEM_SB(sb)->huge != SHMEM_HUGE_NEVER) > + if (SHMEM_SB(sb)->huge == SHMEM_HUGE_NEVER) > return addr; > } > > > -- > To unsubscribe, send a message with 'unsubscribe linux-mm' in > the body to majordomo@...ck.org. For more info on Linux MM, > see: http://www.linux-mm.org/ . > Don't email: <a href=mailto:"dont@...ck.org"> email@...ck.org </a>
Powered by blists - more mailing lists