linux kernel 6.1.0.15 causing crashes in mx linux 23.1 flagship Xfce edition?

Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
User avatar
MadMax
Posts: 483
Joined: Wed Aug 04, 2021 3:25 pm

Re: linux kernel 6.1.0.15 causing crashes in mx linux 23.1 flagship Xfce edition?

#51 Post by MadMax »

Yup, I'm running the update just right now ;) I will definitely make sure to keep -13 around as well, just in case... :bagoverhead:
If it ain't broke, don't fix it.
Main: MX 23 | Second: Mint 22 | HTPC: Linux Lite 7 | VM Machine: Debian 12 | Testrig: Arch/FreeBSD 14 | Work: RHEL 8

Franky13
Posts: 50
Joined: Sat Mar 27, 2021 3:04 am

Re: linux kernel 6.1.0.15 causing crashes in mx linux 23.1 flagship Xfce edition?

#52 Post by Franky13 »

@MadMax I do that as well. :smile:

Charlie Brown

Re: linux kernel 6.1.0.15 causing crashes in mx linux 23.1 flagship Xfce edition?

#53 Post by Charlie Brown »

PlatinumArts wrote: Thu Dec 14, 2023 1:02 pm... any commands or anything I can do to help restore the filesystem if any thing was damaged?
fsck

You can also do this: If you're able to boot to a live session: GParted , right-click on partition(s) : "Check".

User avatar
l0dr3
Posts: 463
Joined: Wed Jun 28, 2023 11:06 am

Re: linux kernel 6.1.0.15 causing crashes in mx linux 23.1 flagship Xfce edition?

#54 Post by l0dr3 »

Charlie Brown wrote: Fri Dec 15, 2023 12:47 pm
PlatinumArts wrote: Thu Dec 14, 2023 1:02 pm... any commands or anything I can do to help restore the filesystem if any thing was damaged?
fsck

You can also do this: If you're able to boot to a live session: GParted , right-click on partition(s) : "Check".
:exclamation: Due too the special nature and the potential damage sparked by the ext4-bug :mad:, a classic 'fsck' will report nothing serious (/impe/), have a look at this post on the bugtracker

https://bugs.debian.org/cgi-bin/bugrepo ... 1057843#98
:
Then I used `last` to identify the time between the problematic reboot into 6.1.0-14 and the deliberate reboot (back in to 6.1.0-13)

This showed me that the 'problem time' was between 2023-12-10 06:00:00 and 2023-12-10 19:00:00 (UTC).

From there, I ran the followin gcommand to show me all files that were modified more or less between that time. I ignore a bunch of things I don't care about such as /var/log and other volatile parts of the filesystem.

find / -type f -newermt "2023-12-10 05:59:00" \! -newermt "2023-12-10 19:00:00" | egrep -v "/proc|/run|/sys|/var/log"

At least this gave me a somewhat small subset of files to manually check, which made it feel less daunting. Naturally it depends on your filesystem what files might've changed.

I was fortunate that none of the client applications I use, seem to use O_DIRECT, so I found no corrupted files (so far).
:
:crossfingers: :goodluck: lodr3 (on whos two affected boxes, that have been ~18h on the way with the problematic 6.1.64 and 6.1.65 kernels :bawling: ): no data corruption detected :happy: (thus far ...)

edit (sorry): :needcoffee: still :confused: w#all that versioning (esp.: bcof of contemporaneous :zfs-bug: )
Last edited by l0dr3 on Fri Dec 15, 2023 1:26 pm, edited 1 time in total.

User avatar
MadMax
Posts: 483
Joined: Wed Aug 04, 2021 3:25 pm

Re: linux kernel 6.1.0.15 causing crashes in mx linux 23.1 flagship Xfce edition?

#55 Post by MadMax »

fsck won't hurt (I actually did it on all my disks after booting into 6.1.0-15 before I knew further details about the bug), but it will not detect errors created by the faulty kernels. These errors are all within file data, not metadata and since ext4 has no built-in checksums, there is really no way to find the errors. The only way to go about it is to isolate files that have been changed while the kernel was active and manually check them.

On the bright side, the error would only happen if the writing program used O_DIRECT which is really, really uncommon for desktop applications. O_DIRECT means the program tells the kernel to bybass all kernel caching and write directly to the disk. That means that program has to take care of caching itself which really is only beneficial for specialized applications like databases (MySQL, MariaDB etc). Regular desktop applications will almost always use kernel caching with something like fsync. Same goes for system tools like apt, so I'm not really worried that installing the 12.4 update including 6.1.0-15 while running 6.1.0-14 could have damaged anything in the root filesystem.

One way to examine further whether you might have affected files is to check the programs you use via strace and search in their actual syscall for O_DIRECT (also don't panic if you grep for it, there is a syscall named O_DIRECTORY which has nothing to do with the former one).
If it ain't broke, don't fix it.
Main: MX 23 | Second: Mint 22 | HTPC: Linux Lite 7 | VM Machine: Debian 12 | Testrig: Arch/FreeBSD 14 | Work: RHEL 8

Charlie Brown

Re: linux kernel 6.1.0.15 causing crashes in mx linux 23.1 flagship Xfce edition?

#56 Post by Charlie Brown »

If you do the fsck / e2fsck / GParted on live session with an official iso (as suggested above):

The kernel is 6.1.0.10 (on MX-23) and 6.1.0.13 (on MX-23.1) or other non-buggy ones with previous releases.

User avatar
l0dr3
Posts: 463
Joined: Wed Jun 28, 2023 11:06 am

Re: linux kernel 6.1.0.15 causing crashes in mx linux 23.1 flagship Xfce edition?

#57 Post by l0dr3 »

MadMax wrote: Fri Dec 15, 2023 1:19 pm fsck won't hurt (I actually did it on all my disks after booting into 6.1.0-15 before I knew further details about the bug), but it will not detect errors created by the faulty kernels. These errors are all within file data, not metadata and since ext4 has no built-in checksums, there is really no way to find the errors. The only way to go about it is to isolate files that have been changed while the kernel was active and manually check them.

On the bright side, the error would only happen if the writing program used O_DIRECT which is really, really uncommon for desktop applications. O_DIRECT means the program tells the kernel to bybass all kernel caching and write directly to the disk. That means that program has to take care of caching itself which really is only beneficial for specialized applications like databases (MySQL, MariaDB etc). Regular desktop applications will almost always use kernel caching with something like fsync. Same goes for system tools like apt, so I'm not really worried that installing the 12.4 update including 6.1.0-15 while running 6.1.0-14 could have damaged anything in the root filesystem.

One way to examine further whether you might have affected files is to check the programs you use via strace and search in their actual syscall for O_DIRECT (also don't panic if you grep for it, there is a syscall named O_DIRECTORY which has nothing to do with the former one).
:number1: thx for this detailed explanation!

My greatest concern about direct-i/o and O_DIRECT was 'rsync', bcof i used heavily timeshift-snapshots, taken during the period, the faulty kernels were running, to solve my ZFS issues, but - fortunately - 'rsync' does not use O_DIRECT, as far as i have g00gled! OR?

SimplyFojin
Posts: 36
Joined: Sun Aug 20, 2023 3:28 pm

Re: linux kernel 6.1.0.15 causing crashes in mx linux 23.1 flagship Xfce edition?

#58 Post by SimplyFojin »

Charlie Brown wrote: Fri Dec 15, 2023 1:27 pm If you do the fsck / e2fsck / GParted on live session with an official iso (as suggested above):

The kernel is 6.1.0.10 (on MX-23) and 6.1.0.13 (on MX-23.1) or other non-buggy ones with previous releases.
Luckily after I updated today, 6.1.0-13 and -10 are still there. Even though 6.1.0-16 works, 6.1.0-15 still shows up. And thats very problematic given that kernel version crashes my computer.

Charlie Brown

Re: linux kernel 6.1.0.15 causing crashes in mx linux 23.1 flagship Xfce edition?

#59 Post by Charlie Brown »

When booted with -10 or -13 or -16 you can remove the -14 and -15 simply with 2 clicks with "MX Cleanup" - 'Kernel Removal Tool' below the window :)

PlatinumArts
Posts: 55
Joined: Wed Mar 07, 2018 12:08 pm

Re: linux kernel 6.1.0.15 causing crashes in mx linux 23.1 flagship Xfce edition?

#60 Post by PlatinumArts »

Charlie Brown wrote: Fri Dec 15, 2023 7:50 pm When booted with -10 or -13 or -16 you can remove the -14 and -15 simply with 2 clicks with "MX Cleanup" - 'Kernel Removal Tool' below the window :)
16 is working perfectly and MX cleanup removed 15 easily, thank you so much for the tip and for all of your help!
- Mike

Post Reply

Return to “MX Help”