Announcement

Collapse
No announcement yet.

Kubuntu UBSAN array-index-out-of-bounds error bricked my system (update to kernel 6.5)

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • claydoh
    replied
    Originally posted by sodgian View Post
    But at least now the GUI starts normally
    You can ignore this, it probably is just a 'leakage', as only actual errors or failures are normally seen - this doesn't show either tag, so it is informational. The hard part is that this is what is shown on the screen when you see your problems, which doesn't necessarily reflect the actual cause of a boot failure.

    Leave a comment:


  • sodgian
    replied
    Ooops... I am still getting the UBSAN message while booting:



    But at least now the GUI starts normally (fingers crossed).

    As far as I know this is a well-known issue and hopefully it will be fixed soon.

    Leave a comment:


  • Schwarzer Kater
    replied
    Originally posted by sodgian View Post
    This command...:

    sudo apt update && sudo apt install --install-recommends linux-generic-hwe-22.04​

    ...reinstalled kernel 6.5!

    […]
    And that's exactly why I suggested to use the --dry-run flag with apt install - so you could see that it would reinstall it…

    But I am glad that it works now nevertheless.
    Last edited by Schwarzer Kater; Feb 17, 2024, 05:14 AM.

    Leave a comment:


  • sodgian
    replied
    This command...:

    sudo apt update && sudo apt install --install-recommends linux-generic-hwe-22.04​

    ...reinstalled kernel 6.5!

    Fortunately, I am using another NVIDIA graphics card with a different NVIDIA driver version (535) and now all seems to be working fine.

    So, on my system, there was definitely some issue with my old NVIDIA graphics card, NVIDIA driver version 390 and kernel 6.5.

    Now I have removed all the previous kernels to free up space:

    Leave a comment:


  • claydoh
    replied
    Originally posted by sodgian View Post
    Should I execute these commands to enable again kernel updates (without installing kernel 6.5)?:
    No, this WILL bring back the 6.5. But it also won't remove a 5.15 if you still happen to have that.
    And , since the 6.2 was the previous HWE, it will eventually want to get removed as the 6.5 is updated - apt wants to keep three kernels installed before auto-removing.

    if you want to stick to the original (GA) kernel 5.15, then :
    sudo apt install --install-recommends linux-generic


    Extra tip:
    Update first, then install packages, just for a good habit:
    sudo apt update && sudo apt install --install-recommends linux-generic-hwe-22.04​

    To keep the specific 6.2 kernel from being auto-removed, then you will want to mark it as manually installed:

    sudo apt mark manual linux-image-6.2.0-39-generic
    Or whatever specific one you are using


    if you do install the HWE kernel, you still will need to select the desired kernel version in Grub, else modify that configuration to use a specific entry as the main boot option.
    ​

    Leave a comment:


  • Schwarzer Kater
    replied
    Originally posted by sodgian View Post
    […]
    Should I execute these commands to enable again kernel updates (without installing kernel 6.5)?:

    Code:
    sudo apt install linux-image-generic-hwe-22.04 linux-headers-generic-hwe-22.04 linux-generic-hwe-22.04
    Code:
    sudo apt update
    Thanks in advance
    You can add the --dry-run flag to simulate the installation without actually installing anything - see what will happen and decide for yourself:
    sudo apt install --dry-run linux-image-generic-hwe-22.04 linux-headers-generic-hwe-22.04 linux-generic-hwe-22.04

    If I understood you correctly you want to use the 5.15 LTS or 6.2.x kernel until the hwe kernel for 22.04 is at least version 6.6.x …
    Last edited by Schwarzer Kater; Feb 16, 2024, 02:58 PM.

    Leave a comment:


  • sodgian
    replied
    OK, this solved the issue that I originally had with kernel 6.5 (Kubuntu failed to start):

    Code:
    sudo apt remove --purge linux-modules-6.5.0-14-generic linux-image-6.5.0-14-generic linux-headers-6.5.0-14-generic linux-modules-extra-6.5.0-14-generic
    Code:
    sudo apt remove --purge linux-image-generic-hwe-22.04 linux-headers-generic-hwe-22.04 linux-generic-hwe-22.04
    Code:
    sudo apt update
    ​

    Should I execute these commands to enable again kernel updates (without installing kernel 6.5)?:

    Code:
    sudo apt install linux-image-generic-hwe-22.04 linux-headers-generic-hwe-22.04 linux-generic-hwe-22.04
    Code:
    sudo apt update

    Thanks in advance

    Leave a comment:


  • claydoh
    replied
    Up to you. Mainline (vanilla) kernel builds have zero security support, just new versions, which may or may not fix a particular hole.
    Any kernel via Mainline has no real relation to what will be in Ubuntu releases, these are just basic, unmodified kernel builds as opposed to ones that have been built specifically for distro release to fit into the systems well and have some hardware support baked in properly.
    They are good for testing general hardware support, so there is no reason to wait for 6.8, try some others and see if other versions may work.

    Also, removing the HWE stack of course removes the chance that that you will get a fixed 6.5.0, or a grub kernel config edit is needed for your specific hardware.
    Last edited by claydoh; Feb 15, 2024, 05:18 PM.

    Leave a comment:


  • sodgian
    replied
    Do you think that is a good idea to wait until kernel 6.8 is released and install it using Mainline kernels (now that I have removed linux-generic, linux-generic-hwe-22.04, linux-image, linux-header,... and will not see any security nor kernel updates)?:

    Leave a comment:


  • claydoh
    replied
    6.2 has already been superceded by 6.5.
    6.2 is the kernel from Lunar 23.04. which reached EOL at the end of January.

    For LTS releases, the original kernel is supported for the full 5 year support cycle - 5.15 for 22.04
    Newer kernels via the HWE don't have long support cycles, once a new major version comes out. The same lifespan as the Ubuntu releases they came from.
    https://ubuntu.com/kernel/lifecycle
    As 6.2 has already reached eol, and shouldn't see any more security patches.

    Once the next HWE kernel update happens to 22.04 (to be the upcoming 6.8 expected in 24.04LTS), that will have support for the remainder of Jammy's life cycle, and beyond.
    Last edited by claydoh; Feb 15, 2024, 12:48 PM.

    Leave a comment:


  • sodgian
    replied
    For how long will I receive security updates in Kubuntu 22.04 LTS with kernel version 6.2?

    Leave a comment:


  • claydoh
    replied
    Originally posted by dejjanku View Post
    I bet that --purge will remove break something. See you in a few days...
    No, not really. the purge option just removes any system level configuration files specific to an application or something that would normally have been left behind. Here is a good example.

    Leave a comment:


  • dejjanku
    replied
    I bet that --purge will remove break something. See you in a few days...

    edit: no, purged 5* kernels just fine
    5* kernels were reporting some errors while booting and refusing to shut down sometimes. I feel relief!
    Last edited by dejjanku; Jan 31, 2024, 08:30 AM.

    Leave a comment:


  • claydoh
    replied
    Originally posted by dejjanku View Post
    For old hardware it does not make sense to upgrade kernel every week, as long as it works.
    Those updates are not new kernel versions, mostly. The version *upgrades* do come regularly, approx every 6 months on LTS, after their first year, for a period of time.
    The weekly updates are not new versions at all, but security patches for the the existing kernel version(s), as are the vast majority of all the other updates one sees in an LTS release. This has been an ongoing feature of Ubuntu LTS for at least 12 years now, and enabled by default on desktop installs since 16.04.

    One can revert to the original LTS kernel and never see full upgrades again, if they wish to do so. Basically, one removes installs linux-generic, uninstalls linux-generic-hwe-22.04 and then removes any linux-image and linux-header packages for anything but a 5.15 kernel.
    Last edited by claydoh; Jan 30, 2024, 09:51 AM.

    Leave a comment:


  • dejjanku
    replied
    Originally posted by jglen490 View Post

    Sorry, but the frequency of upgrades does not break systems. However, the quality of the updated drivers and other software can break a system.

    My laptop is on kernel 6.5, I've installed every update since Day 1, zero problems. The BIG difference, my laptop does not have Nvidia graphics.
    Frequent, bad and unnecessary updates break systems that worked previously just fine. For old hardware it does not make sense to upgrade kernel every week, as long as it works.
    That being said, 6.5 kernel is way better for my laptop as well. Kernel 5.x series had frequent issues last year, working on and off, intermittently during the year, dependent on sub version or what ever.
    Also no problem with Nvidia on two laptops (one older and one newer, older i5 3rd gen even better with Fedora than K/Ubuntu). Both seems to be working at lower temperature and no unnecessarily CPU ramp up at idle with 6.5 kernel.

    So, lets upgrade as frequently as possible, as long as it works...
    Last edited by dejjanku; Jan 30, 2024, 08:03 AM.

    Leave a comment:

Users Viewing This Topic

Collapse

There are 0 users viewing this topic.

Working...
X