X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=fs%2Fcachefiles%2Fnamei.c;h=c4b893453e0eefda8475b3537e934f2bfc46d268;hb=727cde6c3af38ebb2dbc40e0b32499a55051851d;hp=fc1056f5c96a3c750c3c5c9009048b234a7fd745;hpb=5b7f00a5967a3fdd8654ba6926930e672710ef63;p=firefly-linux-kernel-4.4.55.git diff --git a/fs/cachefiles/namei.c b/fs/cachefiles/namei.c index fc1056f5c96a..c4b893453e0e 100644 --- a/fs/cachefiles/namei.c +++ b/fs/cachefiles/namei.c @@ -655,6 +655,8 @@ lookup_again: aops = d_backing_inode(object->dentry)->i_mapping->a_ops; if (!aops->bmap) goto check_error; + if (object->dentry->d_sb->s_blocksize > PAGE_SIZE) + goto check_error; object->backer = object->dentry; } else {