From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=18.9.28.11 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796356872; b=RD04bAAzjv65oQwkDfzbdEJANxQ0ZVDUplrL2hU0Lev4E3S96HdVJCFSWtFdwZvtYofR nPZIDm9Zb4UYnIZzA46O+dEuspQBNTdkEy9KpeWTh8iF3C0e+9doL4zFniDPEwZ9pyMQY 6BFYJ2izzi9cdEZ/hoNMv+W8afQsEHjBJujOy+QvxRBY2ts0VUqOekbstNR2NwNgho1+9 znuVvwlCW0YpsNKtBwx3XqIbv1X7yPNhY3zGF5XOGwqJP0M7Iu4/H62RoJmmuH1nsEpc2 Jhvw2OZYnJuukBXY+khW5p4d9or5JiDLkLG918tHwedT/ohxiZWSRQiklj3WrWaPjJg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796356872; h=DMARC-Filter:Received:DKIM-Signature:Received:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:Content-Transfer-Encoding:In-Reply-To; bh=11ATlGjhSE9GYz8LV79XIUjQJzS4SPxcARj5H3MYmVE=; b=3bPo58HA9uQJ07JAKRVt0/k6Q7YWygwzyh2tHoBsH5YpA/hCLPW0hduMFPrKznh5xRbk vLxVMwiWeBDoFdwHfq7MKsIgT56HXJD4wgaziJYjaLQ9XCYbkaXaBLH5PAxc0YNtb156G vT9cbNPd3GwCKAy3GbJv1X7t1xJM9n4+RSgvbzOxAlpKiXQ0jwJcdVriRgfptuaIUdU0E 5w5tXQn+qkLkborPj+50sPa5z3jd/l8BIp22MW/F+tEtkkXP/7QtdrZLUK4wysYqd81Ht Nf+GhJy8j40JoaECsiHtK0fYnqzQy0uE/Ej7Z5p+HqfAqIn5LpbYEH8IR4KgZo4PFug== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=mit.edu; spf=pass smtp.mailfrom=mit.edu; dkim=pass header.d=mit.edu header.i=@mit.edu header.a=rsa-sha256 header.s=outgoing header.b=PryOWNuA; arc=none smtp.remote-ip=18.9.28.11 Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F2A89606A322 for ; Fri, 4 Dec 2026 04:01:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org F2A89606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mit.edu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mit.edu Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=mit.edu header.i=@mit.edu header.a=rsa-sha256 header.s=outgoing header.b=PryOWNuA Received: from macsyma.thunk.org (pool-108-26-156-184.bstnma.fios.verizon.net [108.26.156.184]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 6B440QEA014700 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 3 Dec 2026 23:00:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mit.edu; s=outgoing; t=1796356830; bh=11ATlGjhSE9GYz8LV79XIUjQJzS4SPxcARj5H3MYmVE=; h=Date:From:Subject:Message-ID:MIME-Version:Content-Type; b=PryOWNuAz+8EYf888syDS+oHD5QHQocBAN7W6X8m0Pbv6iXG71PF8nRAF2zta04/N r2TUiA1BMom/bYb2qLxxU+HlctbdcYfAMs/b6OCPaya91X7ni+XNBv2MWre7CD5ct5 t5P7ISc0dWuUYfUMkh1AMtyR46tmIlLZyBYwmOthjL20KJh66kW+9ZMsge7rrXF9ps Fg/fwIm2GiyHyQjry9SSl+CWc7wk3YqGvPe3iKwxUGcvSFtBf2t5xdn1rabsAzP0xV iOl/zGdcDmw/D3ApXamUWhe16ZFTJp4hyrlgggNKY4xLE+u27vGCIc1Q4ZKXwXxn/7 EQAf7A8U6CPEA== Received: by macsyma.thunk.org (Postfix, from userid 15806) id D14F82AFE677; Thu, 3 Dec 2026 23:00:26 -0500 (EST) Date: Thu, 3 Dec 2026 23:00:26 -0500 From: "Theodore Tso" To: Kyuwon Cho Cc: Andreas Dilger , Jan Kara , Baokun Li , Ojaswin Mujoo , "Ritesh Harjani (IBM)" , Zhang Yi , linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [BUG] ext4: ext4_htree_fill_tree() reads '..' outside the dx root block when '.' has a bad rec_len Message-ID: References: <179485814813.2717208.11773019866458970526@gmail.com> <179607220160.564813.1157455530957726584@gmail.com> X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <179607220160.564813.1157455530957726584@gmail.com> On Thu, Dec 03, 2026 at 08:35:10AM -0500, Kyuwon Cho wrote: > Hi Ted, Andreas, > > Gentle ping on this report. ext4_htree_fill_tree() is unchanged in v7.4-rc5, so the read outside the dx root > block is still there. I am happy to test a fix or to send > more details if that helps. We are absolutely flooded with AI generated bugs and security bugs. Please note from https://docs.kernel.org/process/threat-model.html that maliciously crafted file system is not considered a security bug. In the Linux kernel’s threat model, the following classes of problems are NOT considered Linux Kernel vulnerabilities. However, when it is believed that the kernel could do better, they should be reported, so that they can be reviewed and fixed where reasonably possible, but they will be handled as any regular bug. Some of these bugs may still have a security impact for a few users, for example when their exploitation requires a dedicated network link, a crafted device, or a crafted file system image that only root may mount. For the vast majority of users the impact is null, and such isolated bugs do not represent a target worth writing an exploit for, which is why they are handled publicly (a CVE may still be assigned later by the CVE team). However, publishing a reproducer or an exploit could put the few exposed users at risk. For such bugs, the fix is sent publicly like any regular fix, with a commit message that does not detail how to exploit the bug, while the reproducer and any exploit are only shared privately with the maintainers and are never posted to public lists. In other words. I consider the storage device to be part of the Trusted Computing Base. Someone who takes a USB device that is scattered in the parking lot by a MSS, NSA, or KGB agent and just mounts without running fsck first is committing professional malpractice. And their incompetence does not consitute an emergency on my part. The bottom line is that I and many other kernel developers are absolutely flooded and overloaded with real security bugs, and helping our organizations deal with real bugs. Bugs that involve crafted file systems are simply not a priority. We get enough noise from these from Syzbot. Additional research prototypes generating more such bug reports not really providing much in the way of real world impact, because we have to be fairly ruthless in prioritizing what we work on. I do file such things as bugs on my bug backlog, but it may be many months before I get to it. If you want to try creating a *fix* for a bug, we'll look at it, but if the fix destroys performance or reduces future code maintainability in the name of protecting against malicously crafted file systems, we reserve the right to reject fixes as Not Being Worth It. We are working on trying to improve instructions we can give to AI agents to better create patches, and to improve our patch review to reject terrible patches generated by well-meaning, but ultimately misguided security researchers who seem to think that security for weird-shit corner cases that aren't even part of our recognized threat model is more important than all other considerations, including performance and code maintainability. Many organizations are also looking at tools and have developed tools, for triaging the absolute *flood* of AI slop security reports and fixes. Most of those tend to be fairly specific to their company, and I'm not aware of anyone being willing to make their full security triage pipeline public. But if you are looking for some research directions that will actually help instead of harm upstream kernel developers, perhaps this might be an area of fruitful research. (But if you work for a security company that attempts to inflate the severity of security bugs to claim that debugging tools that are being insufficiently careful constitute a "one click expoit" because obviously a stupid developer will run such commands as root on an untrusted file system --- I know that I can't stop search researchers from publishing such nonsense claims as part of their business model; but I don't have to cooperate with them.) Cheers, - Ted