Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000005

Viewed 134

i'm trying to implement dm-verity in the rpi3 b+. so i've cloned repo from the git but after making all the changes and following instructions i get this error. i've given the kernal log below, it seems whenever it start the init script in initramfs, its showing that error.

Starting kernel ...

I/TC: Secondary CPU 1 initializing
I/TC: Secondary CPU 1 switching to normal world boot
I/TC: Secondary CPU 2 initializing
I/TC: Secondary CPU 2 switching to normal world boot
I/TC: Secondary CPU 3 initializing
I/TC: Secondary CPU 3 switching to normal world boot
D/TC:2   tee_entry_exchange_capabilities:100 Asynchronous notifications are disabled
D/TC:2   tee_entry_exchange_capabilities:109 Dynamic shared memory is disabled
D/TC:? 0 tee_ta_init_pseudo_ta_session:296 Lookup pseudo TA 7011a688-ddde-4053-a5a9-7b3c4ddf13b8
D/TC:? 0 tee_ta_init_pseudo_ta_session:309 Open device.pta
D/TC:? 0 tee_ta_init_pseudo_ta_session:326 device.pta : 7011a688-ddde-4053-a5a9-7b3c4ddf13b8
D/TC:? 0 tee_ta_close_session:511 csess 0x10186b20 id 1
D/TC:? 0 tee_ta_close_session:530 Destroy session
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.4.83-v8 (kalai@zs-l-106) (gcc version 10.2.1 20201103 (GNU Toolchain for the A-profile Architecture 10.2-2020.11 (arm-10.16))) #1 SMP PREEMPT Sat Sep 10 15:16:35 IST 2022
[    0.000000] Machine model: Raspberry Pi 3 Model B+
[    0.000000] printk: debug: ignoring loglevel setting.
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created CMA memory pool at 0x0000000036c00000, size 64 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] On node 0 totalpages: 242688
[    0.000000]   DMA zone: 3792 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 242688 pages, LIFO batch:63
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] psci: SMC Calling Convention v1.0
[    0.000000] percpu: Embedded 31 pages/cpu s87000 r8192 d31784 u126976
[    0.000000] pcpu-alloc: s87000 r8192 d31784 u126976 alloc=31*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] CPU features: detected: ARM erratum 843419
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 238896
[    0.000000] Kernel command line: console=tty0 console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootfs=ext4 smsc95xx.macaddr=b8:27:eb:66:76:b3 ignore_loglevel dma.dmachans=0x7f35 rootwait 8250.nr_uarts=1 elevator=0
[    0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 821120K/970752K available (9340K kernel code, 1022K rwdata, 3116K rodata, 49088K init, 930K bss, 84096K reserved, 65536K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 29672 entries in 116 pages
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 100 jiffies.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] [Firmware Bug]: Bootloader left irq enabled: bank 1 irq 9
[    0.000000] random: get_random_bytes called from start_kernel+0x32c/0x4bc with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 19.20MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[    0.000006] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[    0.000260] Console: colour dummy device 80x25
[    0.001173] printk: console [tty0] enabled
[    0.001250] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=19200)
[    0.001301] pid_max: default: 32768 minimum: 301
[    0.001509] LSM: Security Framework initializing
[    0.001787] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.001846] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.003426] Disabling memory control group subsystem
[    0.005502] ASID allocator initialised with 32768 entries
[    0.005815] rcu: Hierarchical SRCU implementation.
[    0.006530] EFI services will not be available.
[    0.007222] smp: Bringing up secondary CPUs ...
[    0.016521] Detected VIPT I-cache on CPU1
[    0.016591] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.026019] Detected VIPT I-cache on CPU2
[    0.026069] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.035392] Detected VIPT I-cache on CPU3
[    0.035439] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.035641] smp: Brought up 1 node, 4 CPUs
[    0.035784] SMP: Total of 4 processors activated.
[    0.035816] CPU features: detected: 32-bit EL0 Support
[    0.035849] CPU features: detected: CRC32 instructions
[    0.063472] CPU: All CPU(s) started at EL2
[    0.063561] alternatives: patching kernel code
[    0.065356] devtmpfs: initialized
[    0.082648] Enabled cp15_barrier support
[    0.082715] Enabled setend support
[    0.083315] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.083386] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.087089] pinctrl core: initialized pinctrl subsystem
[    0.087584] DMI not present or invalid.
[    0.088075] NET: Registered protocol family 16
[    0.097765] DMA: preallocated 256 KiB pool for atomic allocations
[    0.097881] audit: initializing netlink subsys (disabled)
[    0.098322] audit: type=2000 audit(0.096:1): state=initialized audit_enabled=0 res=1
[    0.099071] cpuidle: using governor menu
[    0.099447] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.099805] Serial: AMBA PL011 UART driver
[    0.102942] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
[    0.112476] raspberrypi-firmware soc:firmware: Attached to firmware from 2019-03-27 15:45, variant start
[    0.113489] raspberrypi-firmware soc:firmware: Firmware hash is 2e98b31d18547962e564bdf88e57b3df7085c29b
[    0.159606] bcm2835-dma 3f007000.dma: DMA legacy API manager, dmachans=0x1
[    0.162256] SCSI subsystem initialized
[    0.162598] usbcore: registered new interface driver usbfs
[    0.162692] usbcore: registered new interface driver hub
[    0.162880] usbcore: registered new device driver usb
[    0.164868] clocksource: Switched to clocksource arch_sys_counter
[    1.457332] VFS: Disk quotas dquot_6.6.0
[    1.457487] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    1.457728] FS-Cache: Loaded
[    1.458170] CacheFiles: Loaded
[    1.471662] thermal_sys: Registered thermal governor 'step_wise'
[    1.472158] NET: Registered protocol family 2
[    1.473298] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes, linear)
[    1.473376] TCP established hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    1.473523] TCP bind hash table entries: 8192 (order: 5, 131072 bytes, linear)
[    1.473746] TCP: Hash tables configured (established 8192 bind 8192)
[    1.474097] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    1.474177] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    1.474558] NET: Registered protocol family 1
[    1.475733] RPC: Registered named UNIX socket transport module.
[    1.475769] RPC: Registered udp transport module.
[    1.475798] RPC: Registered tcp transport module.
[    1.475827] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    5.621062] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[    5.623223] Initialise system trusted keyrings
[    5.623650] workingset: timestamp_bits=46 max_order=18 bucket_order=0
[    5.637361] FS-Cache: Netfs 'nfs' registered for caching
[    5.638413] NFS: Registering the id_resolver key type
[    5.638481] Key type id_resolver registered
[    5.638511] Key type id_legacy registered
[    5.638553] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    5.640347] Key type asymmetric registered
[    5.640382] Asymmetric key parser 'x509' registered
[    5.640466] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    5.640507] io scheduler mq-deadline registered
[    5.640538] io scheduler kyber registered
[    5.644678] raspberrypi-firmware soc:firmware: Request 0x00040013 returned status 0x80000001
[    5.644732] bcm2708_fb soc:fb: Unable to determine number of FBs. Disabling driver.
[    5.644791] bcm2708_fb: probe of soc:fb failed with error -2
[    5.648818] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
[    5.651821] bcm2835-rng 3f104000.rng: hwrng registered
[    5.652497] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[    5.653559] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
[    5.654056] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    5.669954] brd: module loaded
[    5.687422] loop: module loaded
[    5.689202] Loading iSCSI transport class v2.0-870.
[    5.690355] libphy: Fixed MDIO Bus: probed
[    5.690527] usbcore: registered new interface driver lan78xx
[    5.690623] usbcore: registered new interface driver smsc95xx
[    5.690669] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    5.892794] Core Release: 2.80a
[    5.892835] Setting default values for core params
[    5.892920] Finished setting default values for core params
[    6.093911] Using Buffer DMA mode
[    6.093942] Periodic Transfer Interrupt Enhancement - disabled
[    6.093973] Multiprocessor Interrupt Enhancement - disabled
[    6.094005] OTG VER PARAM: 0, OTG VER FLAG: 0
[    6.094039] Dedicated Tx FIFOs mode
[    6.094228] dwc_otg: Microframe scheduler enabled
[    6.094297] dwc_otg 3f980000.usb: DWC OTG Controller
[    6.094352] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[    6.094430] dwc_otg 3f980000.usb: irq 41, io mem 0x00000000
[    6.094503] Init: Port Power? op_state=1
[    6.094531] Init: Power Port (0)
[    6.095022] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    6.095069] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.095109] usb usb1: Product: DWC OTG Controller
[    6.095141] usb usb1: Manufacturer: Linux 5.4.83-v8 dwc_otg_hcd
[    6.095176] usb usb1: SerialNumber: 3f980000.usb
[    6.096044] hub 1-0:1.0: USB hub found
[    6.096141] hub 1-0:1.0: 1 port detected
[    6.097121] dwc_otg: FIQ disabled
[    6.097151] dwc_otg: NAK holdoff disabled
[    6.097180] dwc_otg: FIQ split-transaction FSM disabled
[    6.097215] Module dwc_common_port init
[    6.098104] usbcore: registered new interface driver usb-storage
[    6.099657] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[    6.100261] device-mapper: ioctl: 4.41.0-ioctl (2019-09-16) initialised: dm-devel@redhat.com
[    6.104631] sdhci: Secure Digital Host Controller Interface driver
[    6.104676] sdhci: Copyright(c) Pierre Ossman
[    6.105420] mmc-bcm2835 3f300000.mmcnr: could not get clk, deferring probe
[    6.106222] sdhost-bcm2835 3f202000.mmc: could not get clk, deferring probe
[    6.106525] sdhci-pltfm: SDHCI platform and OF driver helper
[    6.108580] ledtrig-cpu: registered to indicate activity on CPUs
[    6.109075] hidraw: raw HID events driver (C) Jiri Kosina
[    6.109308] usbcore: registered new interface driver usbhid
[    6.109341] usbhid: USB HID core driver
[    6.109500] optee: probing for conduit method from DT.
[    6.109564] optee: revision 3.17 (f9e55014)
[    6.157022] optee: initialized driver
[    6.157389] Initializing XFRM netlink socket
[    6.157457] NET: Registered protocol family 17
[    6.157653] Key type dns_resolver registered
[    6.158351] registered taskstats version 1
[    6.158394] Loading compiled-in X.509 certificates
[    6.158819] Key type ._fscrypt registered
[    6.158898] Key type .fscrypt registered
[    6.175042] uart-pl011 3f201000.serial: cts_event_workaround enabled
[    6.175219] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 66, base_baud = 0) is a PL011 rev2
[    6.178341] printk: console [ttyS0] disabled
[    6.178456] 3f215040.serial: ttyS0 at MMIO 0x0 (irq = 61, base_baud = 31250000) is a 16550
[    6.306053] Indeed it is in host mode hprt0 = 00021501
[    6.306594] printk: console [ttyS0] enabled
[    6.483916] usb 1-1: new high-speed USB device number 2 using dwc_otg                                              
[    6.485653] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver                                     
[    6.494136] Indeed it is in host mode hprt0 = 00001101                                                             
[    6.503492] mmc-bcm2835 3f300000.mmcnr: mmc_debug:0 mmc_debug2:0                                                   
[    6.706614] usb 1-1: New USB device found, idVendor=0424, idProduct=2514, bcdDevice= b.b3
[    6.712168] mmc-bcm2835 3f300000.mmcnr: DMA channel allocated
[    6.717625] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    6.749125] sdhost: log_buf @ (____ptrval____) (f262b000)
[    6.752835] hub 1-1:1.0: USB hub found
[    6.814506] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[    6.828666] hub 1-1:1.0: 4 ports detected
[    6.841222] of_cfs_init
[    6.859263] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    6.863416] of_cfs_init: OK
[    6.883871] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    6.895514] Warning: unable to open an initial console.
[    6.917055] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    7.016032] Freeing unused kernel memory: 49088K
[    7.025863] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    7.030377] Run /init as init process
[    7.052653] mmc0: host does not support reading read-only switch, assuming write-enable
[    7.057151] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000005
[    7.387679] CPU: 3 PID: 1 Comm: init Not tainted 5.4.83-v8 #1
[    7.393521] Hardware name: Raspberry Pi 3 Model B+ (DT)
[    7.398833] Call trace:
[    7.401331]  dump_backtrace+0x0/0x144
[    7.405057]  show_stack+0x28/0x3c
[    7.408434]  dump_stack+0xd8/0x160
[    7.411896]  panic+0x168/0x36c
[    7.415006]  do_exit+0x954/0x9b0
[    7.418291]  do_group_exit+0x40/0xa0
[    7.421931]  get_signal+0x104/0x82c
[    7.425480]  do_notify_resume+0x224/0x95c
[    7.429560]  work_pending+0x8/0x14
[    7.433027] SMP: stopping secondary CPUs
[    7.437022] Kernel Offset: disabled
[    7.440569] CPU features: 0x0002,24002004
[    7.444643] Memory Limit: none
[    7.447760] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000005 ]---


which part is making this error, and can some one suggest a solution for the issue. and what does the error code represent?

0 Answers
Related