All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Deepanshu Kartikey <kartikey406@gmail.com>
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
Date: Wed, 11 Feb 2026 07:46:16 -0800	[thread overview]
Message-ID: <aYykSCvhtYRGxCi3@infradead.org> (raw)
In-Reply-To: <20260207043607.1175976-1-kartikey406@gmail.com>

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?


  reply	other threads:[~2026-02-11 15:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-07  4:36 [PATCH] ext4: convert inline data to extents when truncate exceeds inline size Deepanshu Kartikey
2026-02-11 15:46 ` Christoph Hellwig [this message]
2026-02-12  1:14   ` Deepanshu Kartikey
2026-03-10  1:50 ` Deepanshu Kartikey
2026-03-26 11:57 ` Theodore Ts'o

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aYykSCvhtYRGxCi3@infradead.org \
    --to=hch@infradead.org \
    --cc=adilger.kernel@dilger.ca \
    --cc=kartikey406@gmail.com \
    --cc=linux-ext4@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=syzbot+7de5fe447862fc37576f@syzkaller.appspotmail.com \
    --cc=tytso@mit.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.