From: sashiko-bot@kernel.org
To: "Petr Vaněk" <petr.vanek@e2b.dev>
Cc: linux-ext4@vger.kernel.org, tytso@mit.edu
Subject: Re: [PATCH] ext4: recompute the inode checksum after restoring inline data
Date: Wed, 25 Nov 2026 14:46:12 +0000 [thread overview]
Message-ID: <sashiko-outbox-233584@kernel.org> (raw)
In-Reply-To: <20261125143841.928615-1-petr.vanek@e2b.dev>
> ext4_restore_inline_data() recreates the system.data xattr with
> ext4_create_inline_data(), which marks the inode dirty and so sets its
> checksum, and only then copies the saved bytes into the raw inode with
> ext4_write_inline_data(). Unless something dirties the inode again
> before it is written out, the inode reaches the disk with a checksum
> that does not match its contents.
>
> Failed inline data conversions take this path, for example an mmap write
> to a small inline file on a full filesystem:
>
> mkfs.ext4 -O inline_data /dev/vdb 64M
> mount /dev/vdb /mnt
> xfs_io -f -c "pwrite -S 0x61 0 42" /mnt/small
> xfs_io -f -c "falloc 0 64m" /mnt/fill # ENOSPC, fs is full
> xfs_io -c "mmap -rw 0 42" -c "mwrite 0 1" /mnt/small # SIGBUS
> [ ... ]
> were not tested.
>
> Fixes: 3c47d54170b6 ("ext4: let add_dir_entry handle inline data properly")
> Cc: stable@vger.kernel.org
> Signed-off-by: Petr Vaněk <petr.vanek@e2b.dev>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261125143841.928615-1-petr.vanek@e2b.dev?part=1
prev parent reply other threads:[~2026-11-25 14:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 14:38 [PATCH] ext4: recompute the inode checksum after restoring inline data Petr Vaněk
2026-11-25 14:46 ` sashiko-bot [this message]
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=sashiko-outbox-233584@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-ext4@vger.kernel.org \
--cc=petr.vanek@e2b.dev \
--cc=sashiko-reviews@lists.linux.dev \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox