Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp479879rwr; Thu, 4 May 2023 23:33:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5OI1ziJnCzWwU7WH8PYxnY9/47GP3a88DQkKfr8jvm+oChIgCveFNTQlNHT2I4RV+PtXsF X-Received: by 2002:a17:903:41c2:b0:1a9:498a:1da2 with SMTP id u2-20020a17090341c200b001a9498a1da2mr408521ple.56.1683268380352; Thu, 04 May 2023 23:33:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683268380; cv=none; d=google.com; s=arc-20160816; b=fqN7yoOAlcFnToZleJUamMSdZT8X8HqffoWXoAp6rYiXh5xiapTBYjA1kQIx0tZFbI AcnjU5d0wbGcbP+R3rZvaBlRzklKPOtM3uBiL+kSAZ7ueaB/S5P+rXVY1QX/LltjtX86 GNsut8dGk+L7TQvWoGvah6P2QBApdJJPB6RnnlPWAkDnKOw5AGH3NqjxVmuC+PBl2MHi s8LHRtJ1r6jiROEMALd1SqP5zE2vbQiGfVTA0zxWzYnEDNC70W83aJjerfYMueY6E6Hx 30XtgjZnOYxqLqxoG9Mng3oKxbVm2t33jguVPx0/gRzZQudEPyYwckkqsaMPC6lBeeaQ fh5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:references :in-reply-to:mime-version:dkim-signature; bh=i6VbKtyf+yMSId8pn6ebc3jTkMwVGlZ/HaUQnQ4smKA=; b=ChcZRM6u7c5+u7iYYw4DNqA29ZPmyCvNrq3DZHaAH6uvY5rkEpujBmzxl+ng/BkFKs VY+JuQ4mQrDexh/ZkqUW+MUofhF0Bfspc57AJ5OuGTK9QBZ4S6Yh3R4emAmNY4wZF1SN 87qFZpPw5v8oyT3eani4eeqcZC/QfAIOxg1IObtFlFarF4QukebSOKAATzAT2razSZG1 2olMj+J7xHLh9IALdONVWGa0mTiX0czDIt01eQYUmRQM4AjbS5iBLter+n6mfH9LZiKm eFJM+mbCby1RCij9yOYshaFliZDFAmyPQgMoPzBkoRNa6QHe9UgjvVLVAFpnagXA0/Rv 7o7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=o1qf7cQd; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n17-20020a170902d2d100b001ab19e023a1si1070864plc.375.2023.05.04.23.32.45; Thu, 04 May 2023 23:33:00 -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=@kernel.org header.s=k20201202 header.b=o1qf7cQd; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230104AbjEEGSA (ORCPT + 99 others); Fri, 5 May 2023 02:18:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229577AbjEEGR6 (ORCPT ); Fri, 5 May 2023 02:17:58 -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 BE7AFAD38 for ; Thu, 4 May 2023 23:17:57 -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 502C463B52 for ; Fri, 5 May 2023 06:17:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A8EC9C433A7 for ; Fri, 5 May 2023 06:17:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683267476; bh=s0Q8w+nZ3D0tRHQQ0NfVXIwOgzbtcIUS0LMXlLCVPlE=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=o1qf7cQdVwokJTmvHOUCzh1Ufx8A7z0mfp+Syr2QumpBf+BULm85uYhxTrHFDWbUw VHQp29hxAkwn8iiQW296pvqPyqZbuNcBhcpfPaAxZb7yDHKs+ndks4eB8+cP4gCaAM MFShDD/D/Xj9dPRMCmJjGvxSDq6K13LipD8RWK6/cXu0pb568dq+wMNmKChbW9yX3r vyIlzRvG3drFvnfcqMPFXawsh9RprNsAXAd2E7i9RPfuiEl15oWMA/QEMk3LUqwgrx Wymj7LusMUXonXZaeJowV759+ZK2g9f9r1QO9iTi/oLalolYF5XP0NFYppPRbx/5hk 6cejNlJw0FSbQ== Received: by mail-oa1-f44.google.com with SMTP id 586e51a60fabf-192cfb46e75so606908fac.3 for ; Thu, 04 May 2023 23:17:56 -0700 (PDT) X-Gm-Message-State: AC+VfDwh68avzxed065GHzJHya5vkjXvktB4MUgQ4SGqe+Hi8pIw5iog 3qydyAC8VO9WhWf4bj5Pw6DBaUpDlwa/C/RempY= X-Received: by 2002:a05:6870:5141:b0:176:4c90:a172 with SMTP id z1-20020a056870514100b001764c90a172mr295547oak.56.1683267475770; Thu, 04 May 2023 23:17:55 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ac9:7858:0:b0:4d3:d9bf:b562 with HTTP; Thu, 4 May 2023 23:17:55 -0700 (PDT) In-Reply-To: <20230503140609.e65bdc2b0e55ba6f49bbb620@linux-foundation.org> References: <20230407194433.25659-1-listdansp@mail.ru> <20230503140609.e65bdc2b0e55ba6f49bbb620@linux-foundation.org> From: Namjae Jeon Date: Fri, 5 May 2023 15:17:55 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: ntfs orphan? (was Re: [PATCH] ntfs: do not dereference a null ctx on error) To: Andrew Morton Cc: Bagas Sanjaya , Danila Chernetsov , Anton Altaparmakov , linux-ntfs-dev@lists.sourceforge.net, linux-kernel@vger.kernel.org, lvc-project@linuxtesting.org, Linux Memory Management , Konstantin Komarov , Christian Brauner Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 2023-05-04 6:06 GMT+09:00, Andrew Morton : > On Wed, 3 May 2023 11:16:02 +0700 Bagas Sanjaya > wrote: > >> On Fri, Apr 07, 2023 at 07:44:33PM +0000, Danila Chernetsov wrote: >> > In ntfs_mft_data_extend_allocation_nolock(), if an error condition >> > occurs >> > prior to 'ctx' being set to a non-NULL value, avoid dereferencing the >> > NULL >> > 'ctx' pointer in error handling. >> > >> > Found by Linux Verification Center (linuxtesting.org) with SVACE. >> >> Duplicate of 10-years-old outstanding patch at [1]. > > Well, the patches are actually quite different. Is Danila's longer one > better? Danila's patch is better than old one. old patch doesn't free allocated cluster in error handling. And Christian will apply this to his queue if you drop this patch. > >> I'm not speaking of the patch itself but rather on unfortunate state >> of ntfs subsystem. It seems like the maintainer is MIA (has not >> responding to patch submissions for a long time). Some trivial >> patches, however, are merged through mm tree. >> >> Konstantin (from newer ntfs3 subsystem), Andrew, would you like to take a >> look on this orphaned subsystem (and help reviewing)? I'd like to send >> MAINTAINERS update if it turns out to be the case. >> > > Sure, I can join linux-ntfs-dev@lists.sourceforge.net and hendle things > which come along. > > Or Christian may want to do that? > >> >> [1]: >> https://lore.kernel.org/all/1358389709-20561-1-git-send-email-nickolai@csail.mit.edu/ > > >