Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2979161pxb; Sun, 3 Oct 2021 11:05:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzj+L0pHVTGEvDwmMOZdS3LSKfxMEJ8DRzGXbfaLkJzwiyfvGkmCjWqxHa35cAA5SqXLDZY X-Received: by 2002:a17:906:269a:: with SMTP id t26mr12547484ejc.20.1633284300123; Sun, 03 Oct 2021 11:05:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633284300; cv=none; d=google.com; s=arc-20160816; b=j2fvcOzxB6endnzPnRL3xJjzviTRntMEiGrEMe3ytnUa6gnivjb5xEJOf7cqgJXMtu EtijIxox23+oL/4xft2D2dd9yQEuOg69MFrRsasnPYM/c893cr2sr6s2ZCscAFU2UssH vnq/NzHSkWWqNT2k5rdCA+O0Y/JZMUvrnalJswGDKNMwnDt+R+IbcvV0JSLtqIdX9MVq zVga49s1Lzawt8sj7eyYc18LGQuHXku6BO6zmyfM/+tQK8rJlpWfsqWFSpsQ09Ad2rBA 5AcgfdNpMjeZd09J9G3UzlTawPccbUAo5j1pEEu1wJqGNZVUd58CnRcbKkYCW2Foa5A3 zA4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=2iMRuCjPLsINVQw+OgaPjcThJGWw/f8kcZvZZDA75bY=; b=DN46qujM36cjm35YXIZ+B8Tto2opcorgM4guVYyqr72pyEu0wEGOW73S6sASJqTG2/ TSsWlA2P38tXfq+pxHXlYRE9JMI/70YObwkFxafDAb2GXVey+iwbwDUbhFWFA6RiLAeW emsqkn2jMLSlVsVOBDQ/hw8Mgq2anc3fnw3l5UudWItrr/6RLI065CLLWMvZZG5+bxuP JBiiOJo/QfxeqMC+NmM3qgLOR2V0pxPcAaH58F6odG1+Tn3vFOzATiIfL0zMncMX+BqF RSATUOXmOBtgXh4W6+yTWKBJ6q5iX+hFKqcWx/zdMpELL9S5ocARHXp+u0qWrlc2+oSe st+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Ti8jNCJp; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c17si7736573ejc.333.2021.10.03.11.04.35; Sun, 03 Oct 2021 11:05:00 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Ti8jNCJp; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231331AbhJCRw2 (ORCPT + 99 others); Sun, 3 Oct 2021 13:52:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231290AbhJCRw2 (ORCPT ); Sun, 3 Oct 2021 13:52:28 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 754F5C0613EC; Sun, 3 Oct 2021 10:50:40 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id e15so61759796lfr.10; Sun, 03 Oct 2021 10:50:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=2iMRuCjPLsINVQw+OgaPjcThJGWw/f8kcZvZZDA75bY=; b=Ti8jNCJp7ftb5ZrVviV6F0dR394sfOd1XZx5L3D1+TNsORPhLlnohkACLN6QDEcqqN HjcCqTf880v1TLqU6hh00Dq66wzYD3U2X9qFqG0hwAROrstAglfP/OtRvul76tmepjrx F6sceIh0NyBOMwMCnjGrUy/HmhKLCeCFJ6gAuWVobaYJZcOfLIwg6kN0WEESZt/xgzWF ub6Tcy+V5ug985Lz4UYzUuWwX98X+8OlgO7wUf/oX/q5QiKvTuOYATkOb9XkPf/4rtO1 n4lUR6KZRUxx0NZ7zUcmFZzS5oI5B3LwSz5TEO7p3KQf7bcC5rKhsOAEVGqzUQNBBMok xlBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=2iMRuCjPLsINVQw+OgaPjcThJGWw/f8kcZvZZDA75bY=; b=fGRh4tjy5zi+B29/gwMqY4un9JSich/S/ojPMBSx1D+OxeDHp+eDcvEZkK/HbJ2GGP 059f7Mb0Ankxz4flkB6W0EX5cxaCaygZ3Bfpf67NAhxSaBMJjQ1kPj/tuSe5TqhHEtPQ Ms4iaj58S5ZkaY5ft09qfC+mxcsdzI3j4+x5YOdbiC2Fizlz8AJ5h4egka4a8egu0e0n miHzkIYREvxrzo61W5MOo/fihQ90S39PWXFABn67P2YnAxuCuKVoKxeJ9KSDl6GvCxIy kAzE22FNb9ZmXBPvNZqfAv4C4taPX8NV34Bs01//v1riSUynyDwxK4u12sk+Pwv7gxvH ARoA== X-Gm-Message-State: AOAM533S7INfthwnLlMucTw7whZ3tcFCjk0NNu+z1tf0slvGM9b8EX4v Iffego0UdRWuoY24UzyNJlc= X-Received: by 2002:a05:6512:463:: with SMTP id x3mr9974290lfd.103.1633283438739; Sun, 03 Oct 2021 10:50:38 -0700 (PDT) Received: from kari-VirtualBox (85-23-89-224.bb.dnainternet.fi. [85.23.89.224]) by smtp.gmail.com with ESMTPSA id b22sm1378191lfv.286.2021.10.03.10.50.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Oct 2021 10:50:38 -0700 (PDT) Date: Sun, 3 Oct 2021 20:50:36 +0300 From: Kari Argillander To: Konstantin Komarov , Mohammad Rasim Cc: ntfs3@lists.linux.dev, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH] fs/ntfs3: Check for NULL if ATTR_EA_INFO is incorrect Message-ID: <20211003175036.ly4m3lw2bjoippsh@kari-VirtualBox> References: <227c13e3-5a22-0cba-41eb-fcaf41940711@paragon-software.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <227c13e3-5a22-0cba-41eb-fcaf41940711@paragon-software.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 29, 2021 at 07:35:43PM +0300, Konstantin Komarov wrote: > This can be reason for reported panic. > Fixes: 4342306f0f0d ("fs/ntfs3: Add file operations and implementation") I see that you have include this to devel branch but you did not send V2 [1]. I also included Mohammad Rasim to this thread. Maybe they can test this patch. Rasim can you test [2] if your problem will be fixed with this tree. Or just test this patch if you prefer that way. [1]: github.com/Paragon-Software-Group/linux-ntfs3/commit/35afb70dcfe4eb445060dd955e5b67d962869ce5 [2]: github.com/Paragon-Software-Group/linux-ntfs3/tree/devel > Signed-off-by: Konstantin Komarov > --- > fs/ntfs3/frecord.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/fs/ntfs3/frecord.c b/fs/ntfs3/frecord.c > index 9a53f809576d..007602badd90 100644 > --- a/fs/ntfs3/frecord.c > +++ b/fs/ntfs3/frecord.c > @@ -3080,7 +3080,9 @@ static bool ni_update_parent(struct ntfs_inode *ni, struct NTFS_DUP_INFO *dup, > const struct EA_INFO *info; > > info = resident_data_ex(attr, sizeof(struct EA_INFO)); > - dup->ea_size = info->size_pack; > + /* If ATTR_EA_INFO exists 'info' can't be NULL. */ > + if (info) > + dup->ea_size = info->size_pack; > } > } > > -- > 2.33.0 >