Received: by 10.223.185.116 with SMTP id b49csp6852671wrg; Wed, 28 Feb 2018 17:18:06 -0800 (PST) X-Google-Smtp-Source: AG47ELt8g+uNTDMmFcBvIAw38uerAZkuUDuFjokqTadR15e059aLcxpZ885tHsKYqCFiQWiMptJb X-Received: by 10.98.64.146 with SMTP id f18mr118532pfd.30.1519867086829; Wed, 28 Feb 2018 17:18:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519867086; cv=none; d=google.com; s=arc-20160816; b=HiT/Z071XDSO6ObGr+jGL7AYAGyzskO5aoaEW229NVa7u056uW3bj41fX3QwTp4oIk 2lbgS3zt1wHkxH0YXEfKpKgsahk5nMlnZVzJnPgBQDI3kci7Mjfo9iSYw1aJmeqCPnTm XJ7jUjejOS3qvF3u10wkhRV93JPZpOWNaIkw9nobcS+wBAJe3QnmmoqXwM5geBq6QE+E Hq/o4XeqTqg3DIn0G4m+KSyo1CIlfvQ4tF/r5ub+n0WkkAD6Cfc2R91Fj+QcKu+yDqZV gc7Bdi/F5uSCxxTk0pVzwjMsY88fOtjnPebxPr7gtLD3Ub1iUtJQ97fZp9/jXcOFgHfa F6eQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=aGJ2RjqbfmG0KeQaHX2L1Fazs/cwJfC7DqiLL6tiU4Q=; b=UF3ydcec/1kh3ppMFCkG4zdiBi1MFZ+xiuuQKAzu+ZJQ1mpIBMpCq+vcfrRc/Z4qtz Ek1SAcap7AUq5amh/GRkIQA+QbL/5pzxdwQgDljxtRBwzqHRZTmp54JTjop9YhujbIqk oJ1slZPvB+Bs6OK2Qzpc8Kij9WL0ByAug0pu5kTWro3pAJrg9cnbakr0Y1sn/qkMPmZy GIzxHbwCqs4cAzEiHt+S1Rfz5QSqhVDvj6CgR5sNw7cib4z08sI0zGzQBaBUT9QRo8yb QQnvJLOs0Cb0K1OsLvOwXEmG6iLHOlcMKDRjuXpB+Pt1EfNpkv+1vI2V1Zr+j+CeDx8T tpgA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k80si2105892pfh.260.2018.02.28.17.17.52; Wed, 28 Feb 2018 17:18:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752285AbeCABRH (ORCPT + 99 others); Wed, 28 Feb 2018 20:17:07 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:55965 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1750775AbeCABRG (ORCPT ); Wed, 28 Feb 2018 20:17:06 -0500 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id A820FBB7B4B8A; Thu, 1 Mar 2018 09:17:02 +0800 (CST) Received: from [127.0.0.1] (10.134.22.195) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.361.1; Thu, 1 Mar 2018 09:16:56 +0800 Subject: Re: [PATCH] f2fs: don't put dentry page in pagecache into highmem To: Yunlong Song , , , CC: , , , , , References: <1519821112-137593-1-git-send-email-yunlong.song@huawei.com> From: Chao Yu Message-ID: Date: Thu, 1 Mar 2018 09:20:56 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <1519821112-137593-1-git-send-email-yunlong.song@huawei.com> Content-Type: text/plain; charset="windows-1252" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.134.22.195] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018/2/28 20:31, Yunlong Song wrote: > Previous dentry page uses highmem, which will cause panic in platforms > using highmem (such as arm), since the address space of dentry pages > from highmem directly goes into the decryption path via the function > fscrypt_fname_disk_to_usr. But sg_init_one assumes the address is not > from highmem, and then cause panic since it doesn't call kmap_high but > kunmap_high is triggered at the end. To fix this problem in a simple > way, this patch avoids to put dentry page in pagecache into highmem. > > Signed-off-by: Yunlong Song Reviewed-by: Chao Yu Thanks,