Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp108378pxa; Tue, 11 Aug 2020 19:02:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsc9zQ+iFp9NVWacg8yCpjcbxzZtnEn9MD55TcR0LJJdADEM+ehO8EVKpmbGd0ASAXdPxo X-Received: by 2002:a17:906:4d89:: with SMTP id s9mr27887493eju.365.1597197748913; Tue, 11 Aug 2020 19:02:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597197748; cv=none; d=google.com; s=arc-20160816; b=ljQDT1xGe6qewuj6GONGLNbL93vizFkiAsEcpH2g0ejhEdSxOS2zg0uKT5AQ4I4qCP 00wj50Pzk0BjQYdu6N5TNrE5tWlS7Lo5p8FC6yHojx7mNWWlxidqk4PI80vbaG5T+X3e iLi1zc7avmnel5S9kX0KczdKsFs4xSnGw/qXWk2zqebyMSpzanNpLpmzCV/9bJLKuVLo oJYHAiX84tcBXEddJvuWEDPWQuxbUQaNpsMsbYnNH78uvjL1nTiPXDdOo7BCWY/T74G2 NwnGZEX5bTVS3FlCW59aHvoSwZoRzuGGxfIj6Vy3fOUvET4EfaCL5JjrAWMsWvYmRPUW 7zJA== 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; bh=oeEcNgIXsfrKaDOx259hiFtl1Sv8d18jbRyKInsp070=; b=g8cwz93gn16mVMLLCBE/vJqtviWmEnF/VM+WWQDAVbSujY8AAyVel8+FdFiewVw/Ry IVWrdP66Ymk9w6Un2OC2Uef5I+gqOS6eICBpH/HY7Ihdr+/zPPGHj2S6T/vc+7w1AnDa N6emBOq6XWfwBN/2sLhdNFCutwZjwuAfNZmbEkhhLtDOQKIUxvbulSxyvFfWQwvXVAQS MTe2j4KOolVBiNZXOiWB02Xu9yTlQppcv0vxVjDJt0CwwF95lEDLXQDXMhix1m/jjnvs 4Jd+sogcREY59olGU6bgDih6fVOVHaYKsof/6RZ1v/y0hfP7Ax5sMcZfpRwxdYClLn4u Ohsw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a23si374153edn.432.2020.08.11.19.02.05; Tue, 11 Aug 2020 19:02:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726457AbgHLCBJ (ORCPT + 99 others); Tue, 11 Aug 2020 22:01:09 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:41904 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726235AbgHLCBJ (ORCPT ); Tue, 11 Aug 2020 22:01:09 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id B315B9617494B5F5982D; Wed, 12 Aug 2020 10:01:05 +0800 (CST) Received: from [10.164.122.247] (10.164.122.247) by smtp.huawei.com (10.3.19.214) with Microsoft SMTP Server (TLS) id 14.3.487.0; Wed, 12 Aug 2020 10:01:04 +0800 Subject: Re: [PATCH] erofs: avoid duplicated permission check for "trusted." xattrs To: Gao Xiang , CC: LKML , Chao Yu , Hongyu Jin , References: <20200811070020.6339-1-hsiangkao@redhat.com> From: Chao Yu Message-ID: <18a6a9b7-5967-1929-920a-e34e446944ac@huawei.com> Date: Wed, 12 Aug 2020 10:01:03 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20200811070020.6339-1-hsiangkao@redhat.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.164.122.247] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/8/11 15:00, Gao Xiang wrote: > Don't recheck it since xattr_permission() already > checks CAP_SYS_ADMIN capability. > > Just follow 5d3ce4f70172 ("f2fs: avoid duplicated permission check for "trusted." xattrs") > > Reported-by: Hongyu Jin > [ Gao Xiang: since it could cause some complex Android overlay > permission issue as well on android-5.4+, so it'd be better to > backport to 5.4+ rather than pure cleanup on mainline. ] > Cc: # 5.4+ > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks,