From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 E2369318BAD; Wed, 11 Feb 2026 15:46:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770824779; cv=none; b=cFO7VslbGVM3sBfUgOUFVIh4OUWACowyfu7mMuAO+JkzMqjUJVkhBKyz31934bu61ZeSlmFUTt2zFOe+EZJ6JOWNR9qZknq9nzA6ZD/6NaxAwk423e1PdYJHDosQAsVF3CeAPFxnztN3gFKNGENx4SkRJWB0XLj1ryh0rYRNirk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770824779; c=relaxed/simple; bh=KdIZZJ88SvP9Tk3iR4fcy9Q/6ze1Z+PzjdA+RdQAdAo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Vh3Xpvg6laYOW7bh6CGPqCeTInT3SnxR5RqP94oh8z4+D6yR75FY3HyOn7s9rcZKacMBsHrYKgc5PZ05apF+IrsonjNfFyW0khsnLkWxDLesioUZcJLRyIfZNF06rv5mA2lROHt2B3rQoVcvuvBg7+tfxuQlKxH0fTIPAnNq8CE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=KNvq8zWk; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="KNvq8zWk" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=VhZyVU+J7igPP7q7YswMX72L/8p/d6PGDV31GmNPguI=; b=KNvq8zWk3bCBBRLgg/n+FFiDgZ MAU11kK4bJ6fSPMQtF4hAVoi0I8jmRgE4+KfR9tQb2HsXq27DlHH9uOKOabejHnMu7mydXN35vkyZ YkXFGkYlTZYhEriIEnJHFZ1YXjoJH1ddzvPoNfsg4ul1Crk9AFiJkS6SR7sroubfklB7KlK/1DiNR YPJWhwu8+Aa5IFD7Dp63HenaV3VA98N5tFLYjPZNlGvS34HvpvmeIR05gyXQZeXBNvA1Li+VdiB7x emo0u0Z5tIpJq59hsLubkMhM3u0WPKx3o3fKgaImYOUmlQLAOWbSMuOdpIrJ5AjwNnboLtPoYbqGu qSbYpWPA==; Received: from hch by bombadil.infradead.org with local (Exim 4.98.2 #2 (Red Hat Linux)) id 1vqCPw-00000000o1b-3ttz; Wed, 11 Feb 2026 15:46:16 +0000 Date: Wed, 11 Feb 2026 07:46:16 -0800 From: Christoph Hellwig To: Deepanshu Kartikey Cc: tytso@mit.edu, adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, syzbot+7de5fe447862fc37576f@syzkaller.appspotmail.com Subject: Re: [PATCH] ext4: convert inline data to extents when truncate exceeds inline size Message-ID: References: <20260207043607.1175976-1-kartikey406@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260207043607.1175976-1-kartikey406@gmail.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Sat, Feb 07, 2026 at 10:06:07AM +0530, Deepanshu Kartikey wrote: > Without this fix, the following sequence causes a kernel BUG_ON(): > > 1. Mount filesystem with inode that has inline flag set and small size > 2. truncate(file, 50MB) - grows size but inline flag remains set > 3. sendfile() attempts to write data > 4. ext4_write_inline_data() hits BUG_ON(write_size > inline_capacity) Can you wirte this up in an xfstests test, please?