Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

0 votes
0 answers
42 views
Getting error while installing Garuda linux
I am getting error while installing Garuda Linux.It gets stuck at this point(image) [![It stucks at this point while installing Garuda linux][1]][1] [![It stucks at this point while installing Garuda linux][2]][2] [1]: https://i.sstatic.net/LhMog2Gd.jpg [2]: https://i.sstatic.net/0kxyMxsC.jpg I have...
I am getting error while installing Garuda Linux.It gets stuck at this point(image) It stucks at this point while installing Garuda linux It stucks at this point while installing Garuda linux I have used ventoy to create bootable of 'Garuda Dr460nized' iso file and choose grub2 mode with Nvidia drivers(proprietary) How to fix this?
Praveen Kumar (1 rep)
May 26, 2025, 05:18 PM • Last activity: May 26, 2025, 07:09 PM
1 votes
0 answers
35 views
Load new version of non-removable running kernel module
I have an embedded Linux device (Ubiquiti EdgeRouter-X, see [this thread](https://community.ui.com/questions/SCTP-support-for-EdgeOSv2/7b50504f-8966-45f2-a1dd-f5571d3a7873#answer/cf43a3bd-d7e5-4eda-a31f-73be9f434e9f) for more detail) for which I cross-compiled the kernel module `nf_conntrack.ko` (pa...
I have an embedded Linux device (Ubiquiti EdgeRouter-X, see [this thread](https://community.ui.com/questions/SCTP-support-for-EdgeOSv2/7b50504f-8966-45f2-a1dd-f5571d3a7873#answer/cf43a3bd-d7e5-4eda-a31f-73be9f434e9f) for more detail) for which I cross-compiled the kernel module nf_conntrack.ko (part of netfilter) to support a protocol that was not built into the inbox module. This module is loaded and being used as soon as the device becomes accessible over SSH. The OS is debian-based, FWIW. I want to try out this version of the module, but it could be faulty and crash the kernel (happened in another module I compiled at the same time). If I could reload at runtime, then a crash would merely result in a reboot, which is fine. But I can't find a way to load a different version side-by-side with the running module. Or else, I'd have to unload the running module, and load the new one, but I'm just unable to do that with rmmod or modprobe -r or even rmmod -f. I've checked multiple questions like [this](https://unix.stackexchange.com/questions/645427/remove-kernel-module-in-use) and none of the subtle variants helped. But if I modify the boot configuration to load this module and reboot to test it, I'm scared that it might be stuck in a bootloop. The device does not have a physical console port so it really does need to boot up fully to be accessible. Is there a way to set the OS to load a module only once, and skip if it doesn't work, or else load the known-working version? Any way I can avoid saving a risky boot configuration to disk but still find out if the module can be loaded?
Milind R (111 rep)
Apr 23, 2025, 05:57 PM • Last activity: May 7, 2025, 11:58 AM
1 votes
2 answers
7054 views
"Forcing" a kernel panic from the terminal on Linux
I'm using Solus 4.0 (in a VM) and trying to make screenshots of "typical" kernel panic output ("BSOD"). The init system in Solus is `systemd`. I tried the following commands in the terminal without success: `$ kill -6 1` Doesn't do anything (no echo). `$ sudo kill -SEGV 1` Also does nothing... `# ec...
I'm using Solus 4.0 (in a VM) and trying to make screenshots of "typical" kernel panic output ("BSOD"). The init system in Solus is systemd. I tried the following commands in the terminal without success: $ kill -6 1 Doesn't do anything (no echo). $ sudo kill -SEGV 1 Also does nothing... # echo c > /proc/sysrq-trigger Freezes the system but it's not what I need. Any ideas? I'd like to see the stack calls and all. It's not about freezing the system with a fork bomb. **References used:** - https://unix.stackexchange.com/questions/85357/intentional-kernel-panic-under-linux - https://unix.stackexchange.com/questions/66197/how-to-cause-kernel-panic-with-a-single-command - https://unix.stackexchange.com/questions/66698/how-does-systemd-survive-a-kill-9 - https://stackoverflow.com/questions/49655943/how-to-create-a-kernel-panic-in-rhel-without-rebooting-after-panic
Frederik (11 rep)
Apr 16, 2019, 03:56 PM • Last activity: May 4, 2025, 07:03 PM
0 votes
1 answers
1989 views
kernel panic in Debian
I'm not good in English!! my friend has Windows 11 and Debian seed, dual boot on his laptop, today he decide to add an HDD to his laptop. when Windows is hibernated he opened the laptop and add the HDD. he can boot to windows but when he try to boot Debian he got this screen: [![enter image descript...
I'm not good in English!! my friend has Windows 11 and Debian seed, dual boot on his laptop, today he decide to add an HDD to his laptop. when Windows is hibernated he opened the laptop and add the HDD. he can boot to windows but when he try to boot Debian he got this screen: enter image description here
Mohammad javad (1 rep)
Jan 13, 2023, 04:01 PM • Last activity: Apr 29, 2025, 10:02 AM
1 votes
1 answers
69 views
How to debug the Linux kernel or device driver if the motherboard has no serial port?
I am used to debug Linux device driver through the serial port on the motherboard to see the real-time message before the system hang. But now I have a brand-new server board, MSI MPG Z890 CARBON WIFI, which has no serial port. Are there any alternatives to do the same thing?
I am used to debug Linux device driver through the serial port on the motherboard to see the real-time message before the system hang. But now I have a brand-new server board, MSI MPG Z890 CARBON WIFI, which has no serial port. Are there any alternatives to do the same thing?
codexplorer (343 rep)
Apr 22, 2025, 10:02 AM • Last activity: Apr 22, 2025, 11:43 AM
1 votes
2 answers
2241 views
Red Hat Kernel Upgrade problem
I'm using a Red Hat 4 Enterprise Linux. But, when I upgrade the kernel, an error occurred. And after, when computer is booting with new kernel (red hat enterprıse 2.6.9-100.el), I receive the following the error. mkrootdev: label /1 not found mount: error 2 mountıng ext 3 mount: error 2 mountıng non...
I'm using a Red Hat 4 Enterprise Linux. But, when I upgrade the kernel, an error occurred. And after, when computer is booting with new kernel (red hat enterprıse 2.6.9-100.el), I receive the following the error. mkrootdev: label /1 not found mount: error 2 mountıng ext 3 mount: error 2 mountıng none switchroot : mount failed :22 umount /initrd/dev failed :2 kernel panic -not syncing :Attemped to kill init! After, when I try to boot the system with old kernel (red hat enterprıse 2.6.9-42.el), the system successfully booted. My question is; when I rebooted the system, it attempt to boot with new kernel every time and so I have got to choose the old kernel with hand all the time. How to get rid from this problem?How can I uninstall the new kernel without problem? or How can I use the new kernel without problem? something like this grub.conf; "default=0 timeout=5 splashimage=(hd0,0)/boot/grub/splash.xpm.gz hiddenmenu title Red Hat Enterprise Linux ES (2.6.9-100.ELsmp) root (hd0,0) kernel /boot/vmlinuz-2.6.9-100.ELsmp ro root=LABEL=/1 rhgb quiet initrd /boot/initrd-2.6.9-100.ELsmp.img title Red Hat Enterprise Linux ES (2.6.9-100.EL) root (hd0,0) kernel /boot/vmlinuz-2.6.9-100.EL ro root=LABEL=/1 rhgb quiet initrd /boot/initrd-2.6.9-100.EL.img title Red Hat Enterprise Linux ES (2.6.9-42.ELsmp) root (hd0,0)"
Cell-o (515 rep)
Jun 13, 2011, 06:33 AM • Last activity: Mar 6, 2025, 10:41 PM
1 votes
0 answers
196 views
Kernel panic not syncing: No working init found. (Debian sid)
On a dual-boot system: Fedora rawhide with Debian sid, the system will not boot. Fedora is operational, Debian is unable to boot. grub is being updated from within Fedora (entries refreshed properly). Kernel panic message: --------------------- Initramfs unpacking failed: ZSTD-compressed data is cor...
On a dual-boot system: Fedora rawhide with Debian sid, the system will not boot. Fedora is operational, Debian is unable to boot. grub is being updated from within Fedora (entries refreshed properly). Kernel panic message: --------------------- Initramfs unpacking failed: ZSTD-compressed data is corrupt Failed to execute /init (error -2) CPU: 1 UID: 0 PID: 1 Comm: swapper/0 Not tainted 6.12.15-amd64 #1 Kernel panic not syncing: No working init found. Try passing init option to kernel. See Linux Documentation/admin-guide/init.rst for guidance. Things I have tried: -------------------- 1. chroot into the system from GParted Live: - chroot commands:
sudo mount /dev/sda1 /mnt
        sudo mount --bind /dev /mnt/dev
        sudo mount --bind /dev/pts /mnt/dev/pts
        sudo mount --bind /proc /mnt/proc
        sudo mount --bind /sys /mnt/sys
        sudo chroot /mnt
-
update && apt upgrade
-
--reinstall install linux-image-amd64
-
-initramfs -u -k all
2. GRUB: - Provide
=/bin/init
- Boot from command-line. 3. Lower Kernel version. 4. Documentation/admin-guide/init.rst : -
-d |grep NEEDED
is satisfied. - There was no
/bin/init
at all.
algonell (23 rep)
Feb 23, 2025, 01:17 PM • Last activity: Feb 28, 2025, 10:43 AM
1 votes
1 answers
2287 views
Kernel Panic after repartitioning disk with gparted
I have a Dell Inspiron 5523, which has two drives. One is an HDD (call it sda) and one an SSD (call it sdb). My system is dual boot UEFI with a large part of it being Windows 8 (around 332GB) and a the rest Linux Mint (72GB). My system had a swap space on sdb and on sda I have two partitions: sda9 h...
I have a Dell Inspiron 5523, which has two drives. One is an HDD (call it sda) and one an SSD (call it sdb). My system is dual boot UEFI with a large part of it being Windows 8 (around 332GB) and a the rest Linux Mint (72GB). My system had a swap space on sdb and on sda I have two partitions: sda9 has all the system files and sda10 has the home folder files. Recently, I wanted to pass some space from sda9 to sda10 because the first was set up with 60GB and the second with only 7.7GB. So I used gparted live CD and moved 30 GB from sda9 to sda10. After the procedure finished with no problem, when rebooting again and choosing the Linux Mint Cinammon option, I got a kernel panic printing the following: Kernel panic - not syncing: Attempted to kill init! exitcode:0x00007f00 CPU: 2 PID: 1 Comm: sh Not tainted 3.16.0-38-generic #52~14.04.1-Ubuntu Call Trace: dump_stack +0x45/0x56 panic+0xc8/0x1fc do_exit+0xa57/0xa60 do_group_exit+0x3f/0xa0 SyS_exit_group+0x14/0x20 System_call_fastpath+0x1a/0x1f Kernel Offset: 0x0 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff) drm_kms_helper: panic ocurred, switching back to text console I have tried to fix grub with grub repair but after successfully doing that I've seen no change (the error stays the same). When trying to boot manually following these instructions , I get the following error: Targeted filesystem doesn't have requested /sbin/init. /bin/sh: 0: can't access tty: Job control turned off # Note that when I write ls on the GRUB command line, I get partitions in the form of (hd0,gpt9) -> sda9
mint@mint ~ $ sudo parted -l
Model: ATA ST500LT012-9WS14 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Number  Start   End     Size    File system  Name                          Flags
 1      1049kB  525MB   524MB   fat32        EFI system partition          boot
 2      525MB   567MB   41.9MB  fat32        Basic data partition          hidden
 3      567MB   701MB   134MB                Microsoft reserved partition  msftres
 4      701MB   1226MB  524MB   ntfs         Basic data partition          hidden, diag
 5      1226MB  395GB   394GB   ntfs         Basic data partition          msftdata
 8      395GB   395GB   1049kB  fat32                                      boot
 9      395GB   421GB   26.0GB  ext4                                       boot
10      421GB   487GB   65.3GB  ext4
 6      487GB   487GB   473MB   ntfs                                       hidden, diag
 7      487GB   500GB   13.0GB  ntfs         Microsoft recovery partition  hidden, diag
Model: ATA LITEONIT LMT-32L (scsi)
Disk /dev/sdb: 32.0GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number  Start   End     Size    File system     Name                  Flags
 1      1049kB  8589MB  8588MB                  Basic data partition
 2      8589MB  9613MB  1024MB  linux-swap(v1)
 3      9614MB  22.1GB  12.5GB  fat32                                 msftdata
Warning: Unable to open /dev/sr0 read-write (Read-only file system).  /dev/sr0
has been opened read-only.
Error: Can't have a partition outside the disk!
John (11 rep)
Nov 22, 2015, 04:33 PM • Last activity: Feb 17, 2025, 07:09 AM
2 votes
3 answers
3900 views
Kernel panic: No working init found
I am trying to make a small media server out of an old PC. I installed the OS (I decided to try Linux Mint for this) and everything was fine. Done some setup, all good. Then, out of the blue, I got this and not sure what to do. [![Kernel Panic][1]][1] Things worked fine and I did not install or chan...
I am trying to make a small media server out of an old PC. I installed the OS (I decided to try Linux Mint for this) and everything was fine. Done some setup, all good. Then, out of the blue, I got this and not sure what to do. Kernel Panic Things worked fine and I did not install or change anything prior to this. Ideas?
daydr3am3r (131 rep)
Feb 2, 2024, 04:08 PM • Last activity: Jan 22, 2025, 07:57 AM
0 votes
0 answers
72 views
RHEL 7 upgraded minor release but boot menu does not show newly installed kernel
I'm administering a Red Hat Enterprise Linux version 7.8 server host and just did an upgrade of minor release to version 7.9 using RHEL official ISO installation media 7.9, and rebooted after the upgrade. (Please note that is server is running on a VMware vSphere 7 virtual machine.) Now, here's the...
I'm administering a Red Hat Enterprise Linux version 7.8 server host and just did an upgrade of minor release to version 7.9 using RHEL official ISO installation media 7.9, and rebooted after the upgrade. (Please note that is server is running on a VMware vSphere 7 virtual machine.) Now, here's the problem. The output of cat /etc/os-release showed: NAME="Red Hat Enterprise Linux Server" VERSION="7.9 (Maipo)" ID="rhel" ID_LIKE="fedora" VARIANT="Server" VARIANT_ID="server" VERSION_ID="7.9" PRETTY_NAME="Red Hat Enterprise Linux Server 7.9 (Maipo)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:redhat:enterprise_linux:7.9:GA:server" HOME_URL="https://www.redhat.com/ " BUG_REPORT_URL="https://bugzilla.redhat.com/ " REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7" REDHAT_BUGZILLA_PRODUCT_VERSION=7.9 REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux" REDHAT_SUPPORT_PRODUCT_VERSION="7.9" But meanwhile the output of uname -srm showed: Linux 3.10.0-1127.el7.x86_64 x86_64 And the yum list installed kernel said there are two installed kernels, as shown below: Loaded plugins: langpacks, product-id, search-disabled-repos, subscription- : manager Installed Packages kernel.x86_64 3.10.0-1127.el7 @anaconda/7.8 kernel.x86_64 3.10.0-1160.el7 @local-iso I don't get it. Why after an upgrade and reboot, the OS still boots into version 7.8 and the version 7.9 couldn't event showed on boot menu? So, in order to troubleshoot faster, I collected some information from the OS, as listed below, which would be helpful: Output of awk -F\' '==menuentry {print i++ : }' /boot/grub2/grub.cfg: 0 : Red Hat Enterprise Linux Server (3.10.0-1127.el7.x86_64) 7.8 (Maipo) 1 : Red Hat Enterprise Linux Server (0-rescue-71be072259f245f5b1a7cc30b3746e8f) 7.8 (Maipo) Output of grub2-editenv list: saved_entry=Red Hat Enterprise Linux Server (3.10.0-1127.el7.x86_64) 7.8 (Maipo) Output of grubby --info ALL: index=0 kernel=/boot/vmlinuz-3.10.0-1127.el7.x86_64 args="ro crashkernel=auto rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rhgb quiet LANG=en_US.UTF-8" root=/dev/mapper/rhel-root initrd=/boot/initramfs-3.10.0-1127.el7.x86_64.img title=Red Hat Enterprise Linux Server (3.10.0-1127.el7.x86_64) 7.8 (Maipo) index=1 kernel=/boot/vmlinuz-0-rescue-71be072259f245f5b1a7cc30b3746e8f args="ro crashkernel=auto rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rhgb quiet" root=/dev/mapper/rhel-root initrd=/boot/initramfs-0-rescue-71be072259f245f5b1a7cc30b3746e8f.img title=Red Hat Enterprise Linux Server (0-rescue-71be072259f245f5b1a7cc30b3746e8f) 7.8 (Maipo) index=2 non linux entry Output of grubby --info DEFAULT: index=0 kernel=/boot/vmlinuz-3.10.0-1127.el7.x86_64 args="ro crashkernel=auto rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rhgb quiet LANG=en_US.UTF-8" root=/dev/mapper/rhel-root initrd=/boot/initramfs-3.10.0-1127.el7.x86_64.img title=Red Hat Enterprise Linux Server (3.10.0-1127.el7.x86_64) 7.8 (Maipo) Output of lsblk: NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 150G 0 disk ├─sda1 8:1 0 2M 0 part ├─sda2 8:2 0 200M 0 part /boot └─sda3 8:3 0 149.8G 0 part ├─rhel-root 253:0 0 117.8G 0 lvm / └─rhel-swap 253:1 0 32G 0 lvm [SWAP] sdb 8:16 0 300G 0 disk └─dataVG-dataLV 253:3 0 300G 0 lvm /Data sdc 8:32 0 300G 0 disk └─bkpVG-bkpLV 253:2 0 300G 0 lvm /Backup sr0 11:0 1 1024M 0 rom Output of df -Th: Filesystem Type Size Used Avail Use% Mounted on devtmpfs devtmpfs 7.8G 0 7.8G 0% /dev tmpfs tmpfs 7.8G 8.0K 7.8G 1% /dev/shm tmpfs tmpfs 7.8G 13M 7.8G 1% /run tmpfs tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup /dev/mapper/rhel-root xfs 118G 13G 106G 11% / /dev/sda2 xfs 197M 173M 25M 88% /boot /dev/mapper/bkpVG-bkpLV xfs 300G 33M 300G 1% /Backup /dev/mapper/dataVG-dataLV xfs 300G 33M 300G 1% /Data tmpfs tmpfs 1.6G 12K 1.6G 1% /run/user/42 tmpfs tmpfs 1.6G 0 1.6G 0% /run/user/0 Output of ls /boot: config-3.10.0-1127.el7.x86_64 initramfs-0-rescue-71be072259f245f5b1a7cc30b3746e8f.img System.map-3.10.0-1127.el7.x86_64 config-3.10.0-1160.el7.x86_64 initramfs-3.10.0-1127.el7.x86_64.img System.map-3.10.0-1160.el7.x86_64 efi initramfs-3.10.0-1127.el7.x86_64kdump.img vmlinuz-0-rescue-71be072259f245f5b1a7cc30b3746e8f extlinux symvers-3.10.0-1127.el7.x86_64.gz vmlinuz-3.10.0-1127.el7.x86_64 grub2 symvers-3.10.0-1160.el7.x86_64.gz vmlinuz-3.10.0-1160.el7.x86_64 Output of ls /boot/efi/EFI/redhat/: BOOT.CSV BOOTX64.CSV fw fwupia32.efi fwupx64.efi mmx64.efi shim.efi shimx64.efi shimx64-redhat.efi ============================================================================== I tried two methods, One is executing the following 2 commands and reboot system: grub2-set-default 0 grub2-mkconfig -o /boot/grub2/grub.cfg The other one is executing the following 3 commands and reboot system: dracut -f initramfs-3.10.0-1160.el7.x86_64.img grub2-set-default 0 grub2-mkconfig -o /boot/grub2/grub.cfg Please note that the output of grub2-mkconfig -o /boot/grub2/grub.cfg is: Generating grub configuration file ... File descriptor 6 (/dev/pts/0) leaked on vgs invocation. Parent PID 3352: /usr/sbin/grub2-probe File descriptor 6 (/dev/pts/0) leaked on vgs invocation. Parent PID 3352: /usr/sbin/grub2-probe Found linux image: /boot/vmlinuz-3.10.0-1160.el7.x86_64 Found linux image: /boot/vmlinuz-3.10.0-1127.el7.x86_64 Found initrd image: /boot/initramfs-3.10.0-1127.el7.x86_64.img Found linux image: /boot/vmlinuz-0-rescue-71be072259f245f5b1a7cc30b3746e8f Found initrd image: /boot/initramfs-0-rescue-71be072259f245f5b1a7cc30b3746e8f.img File descriptor 6 (/dev/pts/0) leaked on vgs invocation. Parent PID 3651: /usr/sbin/grub2-probe File descriptor 6 (/dev/pts/0) leaked on vgs invocation. Parent PID 3651: /usr/sbin/grub2-probe done Both of these solution eventually failed to make the OS boot into system and the error messages on the screen during the boot are similar that the root fs cannot be mounted, as shown below: Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) CPU: 1 PID: 1 Comm: swapper/0 Not tainted 3.10.0-1160.el7.x86_64 #1 Can anyone provide some tips on troubleshooting why new kernel cannot be booted please?
user53815 (57 rep)
Jan 8, 2025, 02:24 PM
0 votes
0 answers
73 views
Kernel Panic after rescaling VPS from Intel to AMD using Ubuntu 16
After upgrading my VPS from a shared CPU (intel) to a dedicated CPU (amd), I get a kernel panic on bootup, including if I boot into recovery mode. I have managed to use the rescue console to get to the disk (and I'm currently copying the files off it), but what can I try or investigate to get it wor...
After upgrading my VPS from a shared CPU (intel) to a dedicated CPU (amd), I get a kernel panic on bootup, including if I boot into recovery mode. I have managed to use the rescue console to get to the disk (and I'm currently copying the files off it), but what can I try or investigate to get it working again? I also can't find the kernel panic in any logs from rescue mode (and I don't seem to be able to scroll in the console to be able to see what preceded it). Is there any way to get at those logs?
Ben Holness (113 rep)
Jan 7, 2025, 05:06 PM
1 votes
1 answers
636 views
Internal SSD not detected in boot or lsblk
I had a Linux mint system which was working fine until it froze and the "safe restart" of alt+Sysreq+REISUB didn't work, so I had to hard shutdown. After this the bootable SSD stopped getting detected at boot, even as a storage device. I bought a new SSD - it was detected the first time as storage,...
I had a Linux mint system which was working fine until it froze and the "safe restart" of alt+Sysreq+REISUB didn't work, so I had to hard shutdown. After this the bootable SSD stopped getting detected at boot, even as a storage device. I bought a new SSD - it was detected the first time as storage, but the second time it stopped showing in boot. I tried lsblk or fdisk -l with live USB but it failed to show. The live USB works fine so the motherboard is fine, the data cables should be fine too as before the system froze there was no such issue. What other problem can there be?
Spock366373 (23 rep)
Dec 25, 2022, 01:56 AM • Last activity: Jan 2, 2025, 02:01 PM
20 votes
10 answers
68793 views
How to early configure Linux kernel to reboot on panic?
You can put "panic=N" on the kernel command line to make the system reboot N seconds after a panic. But is there a config option to specify this (other than the default kernel command line option) before even boot loader comes into a play? Some kernel option may be?
You can put "panic=N" on the kernel command line to make the system reboot N seconds after a panic. But is there a config option to specify this (other than the default kernel command line option) before even boot loader comes into a play? Some kernel option may be?
Shawn J. Goff (47179 rep)
Jan 20, 2012, 04:22 PM • Last activity: Dec 8, 2024, 09:01 AM
1 votes
0 answers
18 views
Kernel Oops happened in hci_send_acl() in Linux
I am working on an embedded Linux system (kernel-5.10.150), there is an bluetooth+WIFI module in system. By wifi+BT testing, I found there is a kernel `oops` as follows, ``` [ 101.717826] CPU 0 Unable to handle kernel paging request at virtual address 000002d4, epc == 805be290, ra == 805be560 [ 101....
I am working on an embedded Linux system (kernel-5.10.150), there is an bluetooth+WIFI module in system. By wifi+BT testing, I found there is a kernel oops as follows,
[  101.717826] CPU 0 Unable to handle kernel paging request at virtual address 000002d4, epc == 805be290, ra == 805be560
[  101.717838] Oops[#1]:
[  101.717851] CPU: 0 PID: 1763 Comm: bttest Not tainted 5.10.150 #4
[  101.717858] $ 0   : 00000000 00000001 00000010 a8be6d21
[  101.717894] $ 4   : a8be6d21 00000001 81015fa0 005f5000
[  101.717919] $ 8   : 00000000 00000000 05355555 00000000
[  101.717943] $12   : ffffffff 00000000 ffffffea 00000000
[  101.717969] $16   : 8166f000 00000000 8224dd80 00000000
[  101.717995] $20   : 00000000 00000019 81c2f308 81e11020
[  101.718023] $24   : 00000000 8001190c
[  101.718043] $28   : 8224c000 8224dc88 82134380 805be560
[  101.718061] Hi    : 02f5db53
[  101.718066] Lo    : 24a9f11c
[  101.718084] epc   : 805be290 hci_send_acl+0xa0/0x43c
[  101.718093] ra    : 805be560 hci_send_acl+0x370/0x43c
[  101.718098] Status: 34001c03 KERNEL EXL IE
[  101.718115] Cause : 00800008 (ExcCode 02)
[  101.718119] BadVA : 000002d4
[  101.718124] PrId  : 00132000 (MiPs)
[  101.718129] Modules linked in:
[  101.718142] Process bttest (pid: 1763, threadinfo=58765d16, task=15407a97, tls=6f9fd920)
[  101.718147] Stack : 8224ddf0 8166f3c8 00000001 8224dae0 80820000 805e2944 82189c00 00000019
[  101.718175]         8224dd80 8224dd78 00000000 00000019 81c2f308 821f1900 81e11020 805e7b48
[  101.718203]         8224dd08 82189c00 00000019 81d8b0f0 8224dd80 a8be6d21 80bfcc00 81c9d400
[  101.718229]         80990000 805b5298 80990000 81c9d400 a8be6d21 00000001 00000000 6f9f5d28
[  101.718256]         00000000 a8be6d21 82189e04 00000000 8224dd78 00000019 82189c00 00000001
[  101.718281]         ...
[  101.718292] Call Trace:
[  101.718301] [] hci_send_acl+0xa0/0x43c
[  101.718315] [] l2cap_chan_send+0x1f4/0xf34
[  101.718325] [] l2cap_sock_sendmsg+0xac/0x11c
[  101.718333] [] sock_write_iter+0xc8/0x14c
[  101.718344] [] do_iter_readv_writev+0x1c8/0x1ec
[  101.718351] [] do_iter_write+0xb0/0x1f8
[  101.718358] [] vfs_writev+0x80/0x280
[  101.718365] [] do_writev+0x78/0x134
[  101.718375] [] syscall_common+0x34/0x58
[  101.718382]
[  101.718387] Code: 2c441000  148000a5  3c048090  2e821000  144000c8  3c048090  02203825  03c03025
[  101.718422]
[  101.718538] ---[ end trace 87e7cd85f44c4db0 ]---
I think there should be a use-after-free in the kernel BT codes, and I got following links similar to this Oops. https://bugzilla.kernel.org/show_bug.cgi?id=216686 -- I did find the fix to that bug. And, https://groups.google.com/g/syzkaller-bugs/c/SH1vfz5mhtA/m/_nzs-IpaAwAJ -- It seemed using different version of kernel, and I am not sure if there is any backporting of the fix to kernel-5.10, I don't know much about BT, and I don't know how to get the fixes from this link. Is there any offical website of bluetooth-next where I can find the complete commits to fix the issue? So how can I fix this Oops issue in my system?
wangt13 (631 rep)
Dec 5, 2024, 09:21 AM
0 votes
0 answers
29 views
Kernel Panic when trying to write in Flash after kernel update
I recently updated my Linux Kernel from 5.4.104 to 5.15 and after that i cant write anymore on my QSPI NOR FLASH. I did a little research and it seems that the cadence qspi controller started using the spi-mem framework and i suspect that this screwed my QSPI write operations. during kernel bringup...
I recently updated my Linux Kernel from 5.4.104 to 5.15 and after that i cant write anymore on my QSPI NOR FLASH. I did a little research and it seems that the cadence qspi controller started using the spi-mem framework and i suspect that this screwed my QSPI write operations. during kernel bringup it seems that everything is just fine, as it can be seen below:
[    1.400740] spi-nor spi0.0: found n25q128a13, expected n25q512a
[    1.406841] spi-nor spi0.0: n25q128a13 (16384 Kbytes)
[    1.411954] 8 fixed-partitions partitions found on MTD device ff705000.flash.0
[    1.419165] Creating 8 MTD partitions on "ff705000.flash.0":
[    1.424806] 0x000000000000-0x000000001000 : "SPL/u-boot image"
[    1.431977] 0x000000001000-0x000000002000 : "SPL/u-boot dtb"
[    1.438908] 0x000000002000-0x000000003000 : "reserved-0"
[    1.445441] 0x000000003000-0x000000004000 : "reserved-1"
[    1.452053] 0x000000200000-0x000000201000 : "u-boot environment 1"
[    1.459482] 0x000000210000-0x000000211000 : "u-boot environment 2"
[    1.466895] 0x000000800000-0x000000c00000 : "FPGA safe image"
[    1.473928] 0x000000c00000-0x000001000000 : "FPGA user image"
reading seems fine but when i try to read i gives me a kernel panic:
# echo "hello" > /dev/mtdblock7
[ 1146.935881] 8]    lr : []    psr: 20030013
[ 1146.986902] sp : c23899b8  ip : c23899a8  fp : c2389a14
[ 1146.992106] r10: 00000100  r9 : f08e4000  r8 : c1234040
[ 1146.997310] r7 : c1213b80  r6 : c1213b80  r5 : 00000000  r4 : c2389c18
[ 1147.003810] r3 : 00000001  r2 : 00000730  r1 : 00000000  r0 : 00000000
[ 1147.010308] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[ 1147.017419] Control: 10c5387d  Table: 02a1404a  DAC: 00000051
[ 1147.023141] Register r0 information: NULL pointer
[ 1147.027831] Register r1 information: NULL pointer
[ 1147.032518] Register r2 information: non-paged memory
[ 1147.037551] Register r3 information: non-paged memory
[ 1147.042584] Register r4 information: non-slab/vmalloc memory
[ 1147.048223] Register r5 information: NULL pointer
[ 1147.052910] Register r6 information: slab kmalloc-2k start c1213800 pointer offset 896 size 2048
[ 1147.061678] Register r7 information: slab kmalloc-2k start c1213800 pointer offset 896 size 2048
[ 1147.070443] Register r8 information: slab kmalloc-8k start c1234000 pointer offset 64 size 8192
[ 1147.079122] Register r9 information: 0-page vmalloc region starting at 0xf08e4000 allocated at __devm_ioremap_resource+0x170/0x1e8
[ 1147.090823] Register r10 information: non-paged memory
[ 1147.095944] Register r11 information: non-slab/vmalloc memory
[ 1147.101669] Register r12 information: non-slab/vmalloc memory
[ 1147.107395] Process sh (pid: 613, stack limit = 0x4e67e691)
[ 1147.112949] Stack: (0xc23899b8 to 0xc238a000)
[ 1147.117293] 99a0:                                                       c01a5f98 c076e370
.
.
.
Has anyone encountered this kind of problem and knows how to solve it? Any suggestions or insights would be greatly appreciated.
Vitor Woyakewicz (1 rep)
Nov 29, 2024, 07:33 PM
0 votes
1 answers
114 views
Kernel panic - not syncing error | Contabo VM
I have a Contabo server running Ubuntu v22 currently hosting some docker containers that are vital. Contabo is using Proxmox to serve up the VPS. I woke up this morning to my server down and upon not being able to SSH in even after some reboots I logged in via VNC only to find a Kernel panic. I've b...
I have a Contabo server running Ubuntu v22 currently hosting some docker containers that are vital. Contabo is using Proxmox to serve up the VPS. I woke up this morning to my server down and upon not being able to SSH in even after some reboots I logged in via VNC only to find a Kernel panic. I've been reading posts all day on this issue and almost all of them seem to be from updates and changes user induced, however, in this case I didn't do anything! Last time I did any updates was a couple weeks ago and it's been running fine all this time. I'm not versed enough in this situation to understand the information showing in the terminal so I'm hoping someone out there can point me in the right direction. Right now I'm guessing something changed in the hardware maybe or something happened to the kernel but I have zero idea really. I appreciate any and all help! Also, sorry for the image only, I can't seem to copy from the VNC window. kernel panic unable to mount root fs
LeveL7 (3 rep)
Nov 15, 2024, 06:23 AM • Last activity: Nov 15, 2024, 12:09 PM
0 votes
0 answers
60 views
Unable to understand Kernel panic logs from /var/log/kern.log
The ubuntu system that stored these logs crashed. When we later restarted the system and viewed the logs at /var/log/kern.log we found unusual logs starting with "echo 0 > /proc/sys/kernel/hung_task_timeout_secs", which means that there are certain hung processes. But I'm unable to make sense of the...
The ubuntu system that stored these logs crashed. When we later restarted the system and viewed the logs at /var/log/kern.log we found unusual logs starting with "echo 0 > /proc/sys/kernel/hung_task_timeout_secs", which means that there are certain hung processes. But I'm unable to make sense of the
tail -n 10000 /var/log/kern.log | less
.
.                          
 [214064.246177] INFO task systemd1018 blocked for more than 122 seconds.
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" [214064.246186]       Not tainted 6.8.0-48-generic #48~22.04.1-Ubuntu
 [214064.246188] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
 [214064.246189] tasksystemd         stateD stack0     pid1018  tgid1018  ppid1      flags0x00000002
 [214064.246193] Call Trace
 [214064.246196]  
 [214064.246200]  __schedule+0x27c/0x6a0
 [214064.246208]  schedule+0x33/0x110
 [214064.246210]  schedule_preempt_disabled+0x15/0x30
 [214064.246213]  rwsem_down_read_slowpath+0x284/0x4d0
 [214064.246217]  down_read+0x48/0xc0
 [214064.246219]  m_start+0x1f/0x70
 [214064.246223]  seq_read_iter+0x10b/0x4a0
 [214064.246226]  ? security_file_permission+0x36/0x60
 [214064.246230]  vfs_read+0x25c/0x390
 [214064.246234]  ksys_read+0x73/0x100
 [214064.246236]  __x64_sys_read+0x19/0x30
 [214064.246239]  x64_sys_call+0x23f0/0x24b0
 [214064.246242]  do_syscall_64+0x81/0x170
 [214064.246246]  ? switch_fpu_return+0x55/0xf0
 [214064.246249]  ? syscall_exit_to_user_mode+0x83/0x260
 [214064.246252]  ? do_syscall_64+0x8d/0x170
 [214064.246255]  ? ksys_read+0x73/0x100
 [214064.246257]  ? syscall_exit_to_user_mode+0x83/0x260
 [214064.246259]  ? do_syscall_64+0x8d/0x170
 [214064.246262]  ? ksys_read+0x73/0x100
 [214064.246265]  ? syscall_exit_to_user_mode+0x83/0x260
 [214064.246267]  ? do_syscall_64+0x8d/0x170
 [214064.246269]  ? syscall_exit_to_user_mode+0x83/0x260
 [214064.246271]  ? do_syscall_64+0x8d/0x170
 [214064.246273]  ? irqentry_exit_to_user_mode+0x78/0x260
 [214064debug2 channel 0 window 999239 sent adjust 49337
.246275]  ? irqentry_exit+0x43/0x50
 [214064.246276]  entry_SYSCALL_64_after_hwframe+0x78/0x80
 [214064.246279] RIP 00330x754439b147e2
 [214064.246302] RSP 002b00007ffc0ad875d8 EFLAGS 00000246 ORIG_RAX 0000000000000000
 [214064.246304] RAX ffffffffffffffda RBX 00005d7ccfd51fd0 RCX 0000754439b147e2
 [214064.246306] RDX 0000000000000400 RSI 00005d7ccfb63f00 RDI 0000000000000010
 [214064.246307] RBP 0000754439c17600 R08 0000000000000010 R09 00005d7ccfcc0b60
 [214064.246309] R10 0000000000000007 R11 0000000000000246 R12 000000000000039c
 [214064.246310] R13 0000000000000d68 R14 0000754439c16a00 R15 0000000000000d68
 [214064.246314]  
 [214064.246315] INFO task systemd1034 blocked for more than 122 seconds.
 [214064.246317]       Not tainted 6.8.0-48-generic #48~22.04.1-Ubuntu
 [214064.246319] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
 [214064.246321] tasksystemd         stateD stack0     pid1034  tgid1034  ppid1      flags0x00000002
 [214064.246323] Call Trace
 [214064.246324]  
 [214064.246325]  __schedule+0x27c/0x6a0
 [214064.246328]  ? seq_printf+0xa6/0xc0
 [214064.246331]  schedule+0x33/0x110
 [214064.246334]  schedule_preempt_disabled+0x15/0x30
 [214064.246337]  rwsem_down_read_slowpath+0x284/0x4d0
 [214064.246339]  ? psi_group_change+0x24a/0x5a0
 [214064.246343]  down_read+0x48/0xc0
 [214064.246345]  m_start+0x1f/0x70
 [214064.246347]  seq_read_iter+0x10b/0x4a0
 [214064.246349]  ? security_file_permission+0x36/0x60
 [214064.246350]  vfs_read+0x25c/0x390
 [214064.246353]  ksys_read+0x73/0x100
 [214064.246355]  __x64_sys_read+0x19/0x30
 [214064.246357]  x64_sys_call+0x23f0/0x24b0
 [214064.246359]  do_syscall_64+0x81/0x170
 [214064.246362]  ? reweight_entity+0x160/0x270
 [214064.246366]  ? update_load_avg+0x82/0x850
 [214064.246369]  ? enqueue_entity+0xfc/0x570
 [214064.246372]  ? update_load_avg+0x82/0x850
 [214064.246375]  ? update_load_avg+0x82/0x850
 [214064.246378]  ? set_next_entity+0xd7/0x1a0
 [214064.246381]  ? psi_group_change+0x24a/0x5a0
 [214064.246384]  ? os_xsave+0x2e/0x70
 [214064.246394]  ? raw_spin_rq_unlock+0x10/0x40
 [214064.246397]  ? rseq_get_rseq_cs+0x22/0x280
 [214064.246401]  ? rseq_ip_fixup+0x90/0x1f0
 [214064.246404]  ? restore_fpregs_from_fpstate+0x3d/0xd0
 [214064.246407]  ? switch_fpu_return+0x55/0xf0
 [214064.246409]  ? irqentry_exit_to_user_mode+0x78/0x260
 [214064.246411]  ? irqentry_exit+0x43/0x50
 [214064.246413]  entry_SYSCALL_64_after_hwframe+0x78/0x80
 [214064.246415] RIP 00330x7628d87147e2
 [214064.246419] RSP 002b00007ffdc6e07238 EFLAGS 00000246 ORIG_RAX 0000000000000000
 [214064.246421] RAX ffffffffffffffda RBX 0000643e05a60660 RCX 00007628d87147e2
 [214064.246422] RDX 0000000000000400 RSI 0000643e05c688d0 RDI 0000000000000016
 [214064.246423] RBP 00007628d8817600 R08 0000000000000016 R09 0000643e05b09c20
 [214064.246425] R10 0000643e05b09cf0 R11 0000000000000246 R12 0000000000000009
 [214064.246426] R13 0000000000000d68 R14 00007628d8816a00 R15 0000000000000d68
 [214064.246429]  
 [214064.246430] INFO task systemd1037 blocked for more than 122 seconds.
 [214064.246432]       Not tainted 6.8.0-48-generic #48~22.04.1-Ubuntu
 [214064.246433] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
 [214064.246434] tasksystemd         stateD stack0     pid1037  tgid1037  ppid1      flags0x00000002
 [214064.246437] Call Trace
 [214064.246438]  
 [214064.246439]  __schedule+0x27c/0x6a0
 [214064.246443]  schedule+0x33/0x110
 [214064.246447]  schedule_preempt_disabled+0x15/0x30
 [214064.246450]  rwsem_down_read_slowpath+0x284/0x4d0
 [214064.246457]  ? check_heap_object+0x18b/0x1e0
 [214064.246461]  down_read+0x48/0xc0
 [214064.246463]  m_start+0x1f/0x70
 [214064.246465]  seq_read_iter+0x10b/0x4a0
 [214064.246468]  ? security_file_permission+0x36/0x60
 [214064.246471]  vfs_read+0x25c/0x390
 [214064.246473]  ksys_read+0x73/0x100
 [214064.246476]  __x64_sys_read+0x19/0x30
 [214064.246479]  x64_sys_call+0x23f0/0x24b0
 [214064.246481]  do_syscall_64+0x81/0x170
 [214064.246484]  ? mntput+0x24/0x50
 [214064.246486]  ? path_put+0x1e/0x30
 [214064.246489]  ? do_readlinkat+0x10f/0x140
 [214064.246491]  ? syscall_exit_to_user_mode+0x83/0x260
 [214064.246493]  ? do_syscall_64+0x8d/0x170
 [214064.246496]  ? irqentry_exit_to_user_mode+0x78/0x260
 [214064.246498]  ? irqentry_exit+0x43/0x50
ADITHYA L BHAT (1 rep)
Nov 12, 2024, 01:33 PM • Last activity: Nov 12, 2024, 02:28 PM
0 votes
1 answers
92 views
In what buffer the 'dmesg' messages are stored in linux?
I know the dmesg command prints the messaged stored in a ring buffer. But from the linux source code, what is the buffer's name? I want to look into the buffer after the linux is killed without any message. I suspect it's not by a software trap (hence no panic message) but I can examine the memory (...
I know the dmesg command prints the messaged stored in a ring buffer. But from the linux source code, what is the buffer's name? I want to look into the buffer after the linux is killed without any message. I suspect it's not by a software trap (hence no panic message) but I can examine the memory (with some System.map and virtual to physcial address conversion).
Chan Kim (459 rep)
Nov 1, 2024, 06:56 AM • Last activity: Nov 1, 2024, 08:56 AM
5 votes
2 answers
698 views
Why does exception in interrupt always lead to Kernel Panic?
If a CPU exception in kernel, such as bad memory access or invalid opcode, happens in the context of servicing a user process (like syscall or page-in), or in a `kthread` process, then, until `panic_on_oops` was set, useful information will be dumped and the task will just die. No panic. Sometimes t...
If a CPU exception in kernel, such as bad memory access or invalid opcode, happens in the context of servicing a user process (like syscall or page-in), or in a kthread process, then, until panic_on_oops was set, useful information will be dumped and the task will just die. No panic. Sometimes the system remains absolutely usable. Enough for the user to attempt syncing their disks, gracefully terminating programs, and in other ways preparing for the emergency restart. But unfortunately, if the exception happens in atomic context (like interrupt or softirq), the action taken is **always Kernel Panic** (with description "Fatal exception in interrupt") — regardless of any settings or build-time configurations. It is sad. Why it's not possible to simulate a return from interrupt, and keep the system running in hope that some parts will still function? Thanks. I know that I can put an infinite mdelay() in the code path of "exception in interrupt" instead of panic(), to just stall the local CPU instead. But usually not much things can be done after that happens... Even if there are hundred CPUs in machine, they all soon lock up. So not very useful.
melonfsck - she her (150 rep)
Oct 5, 2024, 11:22 AM • Last activity: Oct 26, 2024, 08:51 PM
0 votes
0 answers
197 views
How can uboot-environment change from rootfs with fw_setenv?
my Linux operating system sometimes gives kernel panic while booting. For this, I defined a variable in uboot called mybootcount. It will count every time it boots, if it reaches 3, it will go to the second partition, but after a successful boot, when it goes to rootfs, I need to access my env in Li...
my Linux operating system sometimes gives kernel panic while booting. For this, I defined a variable in uboot called mybootcount. It will count every time it boots, if it reaches 3, it will go to the second partition, but after a successful boot, when it goes to rootfs, I need to access my env in Linux and set the mybootcount value to 0. I created a /etc/fw_env.config file for this. I made vi /dev/mmcblk1p1 0x140000 0x20000 and saved it, then when I do fw_printenv, I get the error warning: bad crc using default environment. But I don't get any warning during uboot loading. my uboot config file CONFIG_ENV_IS_IN_FAT=y CONFIG_ENV_FAT_DEVICE_AND_PART="1" CONFIG_ENV_SIZE=0X20000 CONFIG_ENV_OFFSET=0X140000 my uboot loading U-Boot 2019.04-linux4sam_6.2 (Oct 03 2024 - 10:35:02 +0300) MMC: sdio-host@a0000000: 0, sdio-host@b0000000: 1 Loading Environment from FAT... OK > printenv bootargs=console=ttyS0,115200 earlyprintk root=/dev/mmcblk1p2 rw rootwait rootfstype=ext4 panic=3 atmel.pm_modes=standby,ulp1 bootargs2=console=ttyS0,115200 earlyprintk root=/dev/mmcblk1p3 rw rootwait rootfstype=ext4 panic=3 atmel.pm_modes=standby,ulp1 bootcmd=echo bootcounter: ${mybootcount}; run choose_bootargs; setexpr mybootcount ${mybootcount} + 1; saveenv; fatload mmc 1:1 0x21000000 at91-sama5d27_srcgb_mdm.dtb; fatload mmc 1:1 0x22000000 zImage; bootz 0x22000000 - 0x21000000 ; bootcount=1 bootdelay=3 bootlimit=3 choose_bootargs=if test ${mybootcount} -ge ${bootlimit}; then echo "ROOTFS BACKUP"; setenv bootargs ${bootargs2}; setexpr mybootcount 0; else echo "MAIN ROOTFS"; fi; saveenv; after kernel fw_env.config:/dev/mmcblk1p1 0x140000 0x20000 fw_printenv bootcmd=bootp; setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm bootdelay=5 baudrate=115200 mybootcount=0
Ertugrul Sahin (1 rep)
Oct 7, 2024, 05:37 AM
Showing page 1 of 20 total questions