Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp2153031imi; Sun, 24 Jul 2022 09:07:18 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s7u5um+EREPXFPabtlP6+P55VUmMfYQx65yMLnQ8N8i03LeHYYNNdreYCbpyMBKQnRwo7F X-Received: by 2002:a17:906:a402:b0:72b:8e6e:64ea with SMTP id l2-20020a170906a40200b0072b8e6e64eamr7136256ejz.469.1658678838325; Sun, 24 Jul 2022 09:07:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658678838; cv=none; d=google.com; s=arc-20160816; b=hxZlKo/zee5etb+K9nAN3i9OrqHUBfI8/uKVDzDBwmRHqU9fwCPESIFe1bJlJUbdKI tsuhiZ2GwhhoVpUzTCu9okFlU2WkfN6e02vuFNoSpjeEd/RoIHkSL1YT2Lk3ZkTRlTeP e/QcHgaM53ioiU7h92PKoDuePAIIkxrMZceXigMyyk6HZ07FQKbXCcOYfXhFplCtdXaI G4EwiFBxkegKHlYgZ3l8CsbeWxOKc+c3M1h4Yz4/yujqaAy8edlDzxwjQB/0YYKjewTy KB2GoYP1jLmlVm7N94ow0HqBgx5Mgn3AVNXXcNnjP5AQqxpoTuJCok6BkQIaOuZBvs7Z zysA== 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=SIg234m0D759NLUsv7glQXl1vjvGR6SMH+6to8Z4L/4=; b=r7gwap8XJ5paWyJcz5Cfdq1MI6XRCSnCvWhVY1dDQ3W+L3FgYKxGCmewgqdECcyysK sjD2nz1yCTSfgftiwLLVTx2K2peRxawNYT5mTfwdSKhwkypw8S6rwwW0AWVnFdxBqUQD pW1iuwUZGm75f6bm7lqgt7/RJPPdtw1Ptg20tGxCX9aeeJyqvNiBY47RigplaG++0D/b 5YO5327gKFmZAsKHeFNqWK7UiYZNC933/VylJKoFU9ukKkTfhaf1WDbFXy5VjQib8qmt wJ93V8xLRgT72pgpPuyNX+d6b4e6V0NK+Xd3um5DEiafFoIH7yggDVMHITtEX/oyr0s0 MWUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="V1hr/UNi"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hv11-20020a17090760cb00b0072b6a009383si11871833ejc.826.2022.07.24.09.06.52; Sun, 24 Jul 2022 09:07:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="V1hr/UNi"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233145AbiGXPys (ORCPT + 99 others); Sun, 24 Jul 2022 11:54:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232918AbiGXPyr (ORCPT ); Sun, 24 Jul 2022 11:54:47 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B8BDFD2D for ; Sun, 24 Jul 2022 08:54:46 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3A8BB61151 for ; Sun, 24 Jul 2022 15:54:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 524B4C3411E; Sun, 24 Jul 2022 15:54:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1658678085; bh=/UIhFasVDsu284cyUeg7xTTVzwT3e9W7ftFk8kfS56s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=V1hr/UNinQvJiEBZ4rYIIgce1UdeQD0du5OQbHSvKh3PhYvMLnXb4q7rOgeB0ihdf DZZWUVn4DYRM/ROA3DhKFQrigI4pTTBeEWAPJ+T9z+7zF0wlYlhvVL5xFeTWSyjdyo Cm4EqGshnNXKe3ReBXEgmf3ygOeWn5n5iI2tldiY= Date: Sun, 24 Jul 2022 17:54:43 +0200 From: Greg KH To: Soumya Negi Cc: Anton Altaparmakov , Shuah Khan , linux-ntfs-dev@lists.sourceforge.net, linux-kernel-mentees@lists.linuxfoundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ntfs: Ensure $Extend is a directory Message-ID: References: <20220724132107.1163-1-soumya.negi97@gmail.com> <20220724153448.GA2608@Negi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220724153448.GA2608@Negi> X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 24, 2022 at 08:34:48AM -0700, Soumya Negi wrote: > On Sun, Jul 24, 2022 at 03:47:01PM +0200, Greg KH wrote: > > On Sun, Jul 24, 2022 at 06:21:07AM -0700, Soumya Negi wrote: > > > Fixes Syzbot bug: kernel BUG in ntfs_lookup_inode_by_name > > > https://syzkaller.appspot.com/bug?id=32cf53b48c1846ffc25a185a2e92e170d1a95d71 > > > > > > Check whether $Extend is a directory or not( for NTFS3.0+) while loading > > > system files. If it isn't(as in the case of this bug where the mft record for > > > $Extend contains a regular file), load_system_files() returns false. > > > > Please wrap your changelog text at 72 columns like your editor asked you > > to when writing this :) > > I will correct the changelog(Don't think I can wrap the bug report > link. Checkpatch will still give a warning. Is that okay?). Yes, do not wrap links. > > > Reported-by: syzbot+30b7f850c6d98ea461d2@syzkaller.appspotmail.com > > > Signed-off-by: Soumya Negi > > > > What commit caused this problem? What Fixes: tag should go here? > > I don't think this was caused by any specific commit.The $Extend > directory check is not present in any previous releases. Syzbot has > also not been able to produce a cause bisection for the bug. So no fixes > tag(please correct me if I am wrong). > > > Should it go to stable kernels? If so, how far back? > > Since the NTFS extension file was new to NTFS 3.0, perhaps the patch > should apply all the way back to the first release with NTFS3.0 support? Yes, mark it there. thanks, greg k-h