Received: from relayaws-01.paragon-software.com (relayaws-01.paragon-software.com [35.157.23.187]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2076E389444 for ; Tue, 7 Apr 2026 17:14:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=35.157.23.187 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775582065; cv=none; b=B9Cn9BoZ5rOMJylBBX8JlXfYuKCpVoJ+yBm8P82spTWIuMkZd5aBoqfLm5IO6GX4+zJIurz76VpnruaEFWbMhUR55ZlJ5rtmluGvbcL46w4MxlX4lhAGe+sVvTC0q7cXWqGw7kU1I4l08B+SvuEBd+JzGs92g68dv2T44RqMoXA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775582065; c=relaxed/simple; bh=Az6n79hhiqk7aBJn10d4PCcix54Lq9frw6cPVc1U9nE=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=Nn+QihH8W+c35giSYvunjMBQsYaMedgqWtlNUoLoxHw5hcuLja2UFzgvLG3COaoKSpdVfgRhxrxqaeYSmaj8kqM2ZqztjTFr84SzLYmwt/b+eInvtvGqKuNV2yTGJakLiUTou9n/WJaqg9QAsM7tAJ8tL5imE5TwFxqvesH/cBI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=paragon-software.com; spf=pass smtp.mailfrom=paragon-software.com; dkim=pass (1024-bit key) header.d=paragon-software.com header.i=@paragon-software.com header.b=QKORaN5V; arc=none smtp.client-ip=35.157.23.187 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=paragon-software.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=paragon-software.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=paragon-software.com header.i=@paragon-software.com header.b="QKORaN5V" Received: from relayfre-01.paragon-software.com (relayfre-01.paragon-software.com [176.12.100.13]) by relayaws-01.paragon-software.com (Postfix) with ESMTPS id 3084B1D43; Tue, 7 Apr 2026 17:14:29 +0000 (UTC) Authentication-Results: relayaws-01.paragon-software.com; dkim=pass (1024-bit key; unprotected) header.d=paragon-software.com header.i=@paragon-software.com header.b=QKORaN5V; dkim-atps=neutral Received: from dlg2.mail.paragon-software.com (vdlg-exch-02.paragon-software.com [172.30.1.105]) by relayfre-01.paragon-software.com (Postfix) with ESMTPS id DD209213F; Tue, 7 Apr 2026 17:14:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paragon-software.com; s=mail; t=1775582056; bh=zKjyC9MlHkl2eIU1b8iYvnVaHQdMg290hSjrhz0gc0Y=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=QKORaN5Vrr0VoEgbKN8jk20yRs8L6tNwda2uvK13nzObZefW3ydviAG+dJlqlMuZa 5h7LHMoLUv5VJmtDeNdzopahbWuhR7qP34YE77En1fYjU95k828diZfUl7ZRG2fM+1 002JYamAdtyazocaqskgWHCjMVf9IG97l57TN7Zg= Received: from [192.168.95.128] (172.30.20.204) by vdlg-exch-02.paragon-software.com (172.30.1.105) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Tue, 7 Apr 2026 20:14:15 +0300 Message-ID: <0ac12b04-bf6c-4812-9965-d84df621b7fc@paragon-software.com> Date: Tue, 7 Apr 2026 19:14:13 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] fs/ntfs3: fix $LXDEV xattr lookup To: Zhan Xusheng CC: , Zhan Xusheng References: <20260327032454.101579-1-zhanxusheng@xiaomi.com> Content-Language: en-US From: Konstantin Komarov In-Reply-To: <20260327032454.101579-1-zhanxusheng@xiaomi.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: vdlg-exch-02.paragon-software.com (172.30.1.105) To vdlg-exch-02.paragon-software.com (172.30.1.105) On 3/27/26 04:24, Zhan Xusheng wrote: > [You don't often get email from zhanxusheng1024@gmail.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] > > Use correct xattr name ("$LXDEV") and buffer size when calling > ntfs_get_ea(), otherwise the attribute may not be read. > > Signed-off-by: Zhan Xusheng > --- > fs/ntfs3/xattr.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/ntfs3/xattr.c b/fs/ntfs3/xattr.c > index 3fffda784892..9eeac0ab2b71 100644 > --- a/fs/ntfs3/xattr.c > +++ b/fs/ntfs3/xattr.c > @@ -1031,7 +1031,7 @@ void ntfs_get_wsl_perm(struct inode *inode) > i_gid_write(inode, (gid_t)le32_to_cpu(value[1])); > inode->i_mode = le32_to_cpu(value[2]); > > - if (ntfs_get_ea(inode, "$LXDEV", sizeof("$$LXDEV") - 1, > + if (ntfs_get_ea(inode, "$LXDEV", sizeof("$LXDEV") - 1, > &value[0], sizeof(value), > &sz) == sizeof(value[0])) { > inode->i_rdev = le32_to_cpu(value[0]); > -- > 2.43.0 > Hello, Thanks, your patch is applied. Regards, Konstantin