linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bug 216317] New: "ext4: lblock 0 mapped to illegal pblock" after upgrading to 5.19.0
@ 2022-08-02  5:49 bugzilla-daemon
  2022-08-02  5:50 ` [Bug 216317] " bugzilla-daemon
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: bugzilla-daemon @ 2022-08-02  5:49 UTC (permalink / raw)
  To: linux-ext4

https://bugzilla.kernel.org/show_bug.cgi?id=216317

            Bug ID: 216317
           Summary: "ext4: lblock 0 mapped to illegal pblock" after
                    upgrading to 5.19.0
           Product: File System
           Version: 2.5
    Kernel Version: 5.19.0
          Hardware: All
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: high
          Priority: P1
         Component: ext4
          Assignee: fs_ext4@kernel-bugs.osdl.org
          Reporter: gerbilsoft@gerbilsoft.com
        Regression: No

On upgrading to kernel 5.19.0, I hit a bunch of warnings and inaccessible
files. Attempting to access e.g. /etc/alsa/conf.d/51-pulseaudio-probe.conf
(symlink to ../../../usr/share/alsa/alsa.conf.d/51-pulseaudio-probe.conf)
resulted in a "Structure needs cleaning" error. Checking dmesg shows the
following:

Aug 02 01:10:43 [kernel] [   12.037708] EXT4-fs error (device dm-2):
ext4_map_blocks:599: inode #14680223: block 774843950: comm alsactl: lblock 0
mapped to illegal pblock 774843950 (length 1)
Aug 02 01:10:43 [kernel] [   12.039070] EXT4-fs error (device dm-2):
ext4_map_blocks:599: inode #14680223: block 774843950: comm alsactl: lblock 0
mapped to illegal pblock 774843950 (length 1)
Aug 02 01:10:43 [kernel] [   12.041453] EXT4-fs error (device dm-2):
ext4_map_blocks:599: inode #14680223: block 774843950: comm alsactl: lblock 0
mapped to illegal pblock 774843950 (length 1)
Aug 02 01:10:43 [kernel] [   12.043086] EXT4-fs error (device dm-2):
ext4_map_blocks:599: inode #14680223: block 774843950: comm alsactl: lblock 0
mapped to illegal pblock 774843950 (length 1)
Aug 02 01:10:43 [kernel] [   12.045207] EXT4-fs error (device dm-2):
ext4_map_blocks:599: inode #14680223: block 774843950: comm alsactl: lblock 0
mapped to illegal pblock 774843950 (length 1)

Lots of other files were also showing the same issue. Reverting to 5.18.10 (and
running fsck) fixed it with no noticeable corruption.

Rootfs is ext4, using LVM-on-LUKS. (/dev/sda2 is a LUKS volume that contains an
LVM physical volume.) I have inline data turned on; the symlink is 60 bytes, so
it could be an inline data issue, but other symlinks in /etc/alsa/conf.d/
weren't showing the problem.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug 216317] "ext4: lblock 0 mapped to illegal pblock" after upgrading to 5.19.0
  2022-08-02  5:49 [Bug 216317] New: "ext4: lblock 0 mapped to illegal pblock" after upgrading to 5.19.0 bugzilla-daemon
@ 2022-08-02  5:50 ` bugzilla-daemon
  2022-08-02  5:58 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: bugzilla-daemon @ 2022-08-02  5:50 UTC (permalink / raw)
  To: linux-ext4

https://bugzilla.kernel.org/show_bug.cgi?id=216317

--- Comment #1 from David Korth (gerbilsoft@gerbilsoft.com) ---
Distribution is Gentoo Linux amd64, 17.1 hardened profile.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug 216317] "ext4: lblock 0 mapped to illegal pblock" after upgrading to 5.19.0
  2022-08-02  5:49 [Bug 216317] New: "ext4: lblock 0 mapped to illegal pblock" after upgrading to 5.19.0 bugzilla-daemon
  2022-08-02  5:50 ` [Bug 216317] " bugzilla-daemon
@ 2022-08-02  5:58 ` bugzilla-daemon
  2022-08-02  6:14 ` bugzilla-daemon
  2022-08-17 14:59 ` bugzilla-daemon
  3 siblings, 0 replies; 5+ messages in thread
From: bugzilla-daemon @ 2022-08-02  5:58 UTC (permalink / raw)
  To: linux-ext4

https://bugzilla.kernel.org/show_bug.cgi?id=216317

--- Comment #2 from David Korth (gerbilsoft@gerbilsoft.com) ---
After doing some searching, it looks like this commit may fix the issue:

https://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git/commit/?h=dev&id=f50f5a5eac8092fb9b3365ca4b1d7407cdab8427

ext4: fix reading leftover inlined symlinks
Since commit 6493792d3299 ("ext4: convert symlink external data block
mapping to bdev"), create new symlink with inline_data is not supported,
but it missing to handle the leftover inlined symlinks, which could
cause below error message and fail to read symlink.

 ls: cannot read symbolic link 'foo': Structure needs cleaning

 EXT4-fs error (device sda): ext4_map_blocks:605: inode #12: block
 2021161080: comm ls: lblock 0 mapped to illegal pblock 2021161080
 (length 1)

Fix this regression by adding ext4_read_inline_link(), which read the
inline data directly and convert it through a kmalloced buffer.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug 216317] "ext4: lblock 0 mapped to illegal pblock" after upgrading to 5.19.0
  2022-08-02  5:49 [Bug 216317] New: "ext4: lblock 0 mapped to illegal pblock" after upgrading to 5.19.0 bugzilla-daemon
  2022-08-02  5:50 ` [Bug 216317] " bugzilla-daemon
  2022-08-02  5:58 ` bugzilla-daemon
@ 2022-08-02  6:14 ` bugzilla-daemon
  2022-08-17 14:59 ` bugzilla-daemon
  3 siblings, 0 replies; 5+ messages in thread
From: bugzilla-daemon @ 2022-08-02  6:14 UTC (permalink / raw)
  To: linux-ext4

https://bugzilla.kernel.org/show_bug.cgi?id=216317

--- Comment #3 from David Korth (gerbilsoft@gerbilsoft.com) ---
Reading the various commits, it seems that ext4's inline_data option previously
supported inlining symlinks, but as of v5.19.0, that's no longer supported. The
patch restores read-only compatibility, but new symlinks will not be inlined.
Is there any particular reason why symlink inlining was removed, and/or does
the new method work better than inlining?

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug 216317] "ext4: lblock 0 mapped to illegal pblock" after upgrading to 5.19.0
  2022-08-02  5:49 [Bug 216317] New: "ext4: lblock 0 mapped to illegal pblock" after upgrading to 5.19.0 bugzilla-daemon
                   ` (2 preceding siblings ...)
  2022-08-02  6:14 ` bugzilla-daemon
@ 2022-08-17 14:59 ` bugzilla-daemon
  3 siblings, 0 replies; 5+ messages in thread
From: bugzilla-daemon @ 2022-08-17 14:59 UTC (permalink / raw)
  To: linux-ext4

https://bugzilla.kernel.org/show_bug.cgi?id=216317

Artem S. Tashkinov (aros@gmx.com) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |CODE_FIX

--- Comment #4 from Artem S. Tashkinov (aros@gmx.com) ---
This must be fixed in just released 5.19.2.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-08-17 15:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-02  5:49 [Bug 216317] New: "ext4: lblock 0 mapped to illegal pblock" after upgrading to 5.19.0 bugzilla-daemon
2022-08-02  5:50 ` [Bug 216317] " bugzilla-daemon
2022-08-02  5:58 ` bugzilla-daemon
2022-08-02  6:14 ` bugzilla-daemon
2022-08-17 14:59 ` bugzilla-daemon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).