Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp3880483imb; Tue, 5 Mar 2019 23:09:56 -0800 (PST) X-Google-Smtp-Source: APXvYqzLQKtnQYSx3mOllChXnYwIFSzPxNv446ugw4f9glHUNcKOzKoB2MK60QgtLHwKAPFaQlal X-Received: by 2002:a63:6c01:: with SMTP id h1mr5044601pgc.330.1551856196246; Tue, 05 Mar 2019 23:09:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551856196; cv=none; d=google.com; s=arc-20160816; b=rbwfnhDCcJ9ZmsIekbfrmDG5s/YukLCEfvJICEOC9B62FnYfS+ITxBRHjq423MqeYo CHCROSoeOMv1vHc9LJAB9z2wxlN3TLwze17GIE/BtCwyYlKKjoUiMEgxiVy9BeMBjNB3 lbqQo6VGbh1G434pGk6WMxQMFrzgMjhq2yGbCibXggsQPsjeX7JiJfi+YSrI3loTTuWS rsPK/vgwNLqupKAx5eoOjHCRuU4bHv6Ieez2lmhxNJjJPPAOjGoJyQ/GEsmiFWOLyyAJ lKiwdEZryPreX4N7TOz5tLB9KmhLv3bUAhZqQdfgtf9WPUgNZlPbk2zfbUZQKp52kj+9 rXxg== 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:references:cc:to:from:subject; bh=vdEHEM1j6XkYEU8mN72tNn7ytw9lgGwzuqNF5JXlPRc=; b=Kylc6W4bnhXOpOyEVIbNLCryt3Iak47A0hEy76QS89xDKvozZ1SLXV3CbifsdgqRlw GWwSyownrH+81uvfX4rLfLiHsh0VlfXUpPr2pC0SjSlD1ZXUcY5IwuNYcEpLyKtnJu3U KcvIVmPYpXvOq3M64bo4M6mOcZtj8wQYXGuFufM2qufjmyCLasfUm20QmFQeQAqCTHX9 JbTgoITiSJw2cwtrhCEO37MYz1qQuOnBxvhS80PfWAHD4kj+psmLrzLI9zQL857UXTKF KzbY1aDwRzdPvj83Z6agFD3mKSgRgN+L7LU099ZM/FYXqT0hRH/U1Tm+iY+4XCaj/LSt D0lQ== 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 44si826545plf.155.2019.03.05.23.09.41; Tue, 05 Mar 2019 23:09:56 -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 S1727658AbfCFGcs (ORCPT + 99 others); Wed, 6 Mar 2019 01:32:48 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:45340 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726028AbfCFGcr (ORCPT ); Wed, 6 Mar 2019 01:32:47 -0500 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id A39BDAF0C7F041F4D1FD; Wed, 6 Mar 2019 14:32:45 +0800 (CST) Received: from [127.0.0.1] (10.134.22.195) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.408.0; Wed, 6 Mar 2019 14:32:40 +0800 Subject: Re: [f2fs-dev] [PATCH v2] f2fs: fix to check inline_xattr_size boundary correctly From: Chao Yu To: Chao Yu , CC: , References: <20190214160825.4973-1-chao@kernel.org> <82ef0ff8-452c-1894-6776-41c70ad7654b@huawei.com> Message-ID: <6849d9c1-f329-7dff-b866-7ecf78d64399@huawei.com> Date: Wed, 6 Mar 2019 14:32:42 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <82ef0ff8-452c-1894-6776-41c70ad7654b@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 Ping, On 2019/3/4 14:39, Chao Yu wrote: > Hi Jaegeuk, > > On 2019/2/15 0:08, Chao Yu wrote: >> --- >> v2: >> - fix lower bound check, inline xattr size should be larger than >> xattr_header's size at least. > > ... > >> + if (F2FS_OPTION(sbi).inline_xattr_size < >> + sizeof(struct f2fs_xattr_header) / sizeof(__le32) > > No sure we should set this low bound as above... now I guess original > non-zero check is enough. > > How do you think of setting inline_xattr_size range as > (0, MAX_INLINE_XATTR_SIZE]? > > Thanks, > > > > _______________________________________________ > Linux-f2fs-devel mailing list > Linux-f2fs-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel > >