lkml.org 
[lkml]   [2018]   [Feb]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCHv2 1/1] ext4: don't put symlink in pagecache into highmem
On Tue, Feb 06, 2018 at 11:09:37AM -0800, Jin Qian wrote:
> From: Jin Qian <jinqian@google.com>
>
> partial backport from 21fc61c73c3903c4c312d0802da01ec2b323d174 upstream
> to v4.4 to prevent virt_to_page on highmem.
>
> ext4_encrypted_follow_link uses kmap() for cpage
> caddr = kmap(cpage);
>
> _ext4_fname_disk_to_usr calls virt_to_page on the kmapped address.
> _ext4_fname_disk_to_usr()
> ext4_fname_decrypt()
> sg_init_one()
> sg_init_one(&src_sg, iname->name, iname->len);
> sg_set_page(sg, virt_to_page(buf), buflen, offset_in_page(buf));
>
> Cc: stable@vger.kernel.org
> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
> Signed-off-by: Jin Qian <jinqian@google.com>
> Signed-off-by: Jin Qian <jinqian@android.com>

Ted, any objection to this patch?

thanks,

greg k-h

\
 
 \ /
  Last update: 2018-02-06 21:40    [W:1.375 / U:0.416 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site