OpenSBI v0.8 ____ _____ ____ _____ / __ \ / ____| _ \_ _| | | | |_ __ ___ _ __ | (___ | |_) || | | | | | '_ \ / _ \ '_ \ \___ \| _ < | | | |__| | |_) | __/ | | |____) | |_) || |_ \____/| .__/ \___|_| |_|_____/|____/_____| | | |_| Platform Name : riscv-virtio,qemu Platform Features : timer,mfdeleg Platform HART Count : 4 Boot HART ID : 1 Boot HART ISA : rv64imafdcsu BOOT HART Features : pmp,scounteren,mcounteren,time BOOT HART PMP Count : 16 Firmware Base : 0x80000000 Firmware Size : 116 KB Runtime SBI Version : 0.2 MIDELEG : 0x0000000000000222 MEDELEG : 0x000000000000b109 PMP0 : 0x0000000080000000-0x000000008001ffff (A) PMP1 : 0x0000000000000000-0xffffffffffffffff (A,R,W,X) U-Boot 2020.04+dfsg-2ubuntu1 (May 16 2020 - 01:02:53 +0000) CPU: rv64imafdcsu Model: riscv-virtio,qemu DRAM: 2 GiB In: uart@10000000 Out: uart@10000000 Err: uart@10000000 Net: Warning: virtio-net#1 using MAC address from ROM eth0: virtio-net#1 Hit any key to stop autoboot: 0 Device 0: QEMU VirtIO Block Device Type: Hard Disk Capacity: 14336.0 MB = 14.0 GB (29360128 x 512) ... is now current device Scanning virtio 0:1... Found /boot/extlinux/extlinux.conf Retrieving file: /boot/extlinux/extlinux.conf 1641 bytes read in 2 ms (800.8 KiB/s) U-Boot menu 1: Debian GNU/Linux kernel 5.8.0-9-generic 2: Debian GNU/Linux kernel 5.8.0-9-generic (rescue target) 3: Debian GNU/Linux kernel 5.4.0-37-generic 4: Debian GNU/Linux kernel 5.4.0-37-generic (rescue target) 5: Debian GNU/Linux kernel 5.4.0-24-generic 6: Debian GNU/Linux kernel 5.4.0-24-generic (rescue target) Enter choice: 1 1: Debian GNU/Linux kernel 5.8.0-9-generic Retrieving file: /boot/initrd.img-5.8.0-9-generic 115435198 bytes read in 206 ms (534.4 MiB/s) Retrieving file: /boot/vmlinuz-5.8.0-9-generic 24288740 bytes read in 31 ms (747.2 MiB/s) append: root=LABEL=ubuntu-rootfs earlycon ro noquiet root=LABEL=ubuntu-rootfs ## Flattened Device Tree blob at ff73fa40 Booting using the fdt blob at 0xff73fa40 Using Device Tree in place at 00000000ff73fa40, end 00000000ff743d9d Starting kernel ... [ 0.000000] OF: fdt: Ignoring memory range 0x80000000 - 0x80200000 [ 0.000000] Linux version 5.8.0-9-generic (buildd@riscv64-qemu-lcy01-082) (gcc (Ubuntu 10.2.0-13ubuntu1) 10.2.0, GNU ld (GNU Binutils for Ubuntu) 2.35.1) #11-Ubuntu SMP Fri Nov 13 09:51:01 UTC 2020 (Ubuntu 5.8.0-9.11-generic 5.8.17) [ 0.000000] earlycon: ns16550a0 at MMIO 0x0000000010000000 (options '') [ 0.000000] printk: bootconsole [ns16550a0] enabled [ 0.000000] Initial ramdisk at: 0x(____ptrval____) (115437568 bytes) [ 0.000000] Zone ranges: [ 0.000000] DMA32 [mem 0x0000000080200000-0x00000000ffffffff] [ 0.000000] Normal empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000080200000-0x00000000ffffffff] [ 0.000000] Zeroed struct page in unavailable ranges: 512 pages [ 0.000000] Initmem setup node 0 [mem 0x0000000080200000-0x00000000ffffffff] [ 0.000000] software IO TLB: mapped [mem 0xf8600000-0xfc600000] (64MB) [ 0.000000] SBI specification v0.2 detected [ 0.000000] SBI implementation ID=0x1 Version=0x8 [ 0.000000] SBI v0.2 TIME extension detected [ 0.000000] SBI v0.2 IPI extension detected [ 0.000000] SBI v0.2 RFENCE extension detected [ 0.000000] SBI v0.2 HSM extension detected [ 0.000000] riscv: ISA extensions acdfimsu [ 0.000000] riscv: ELF capabilities acdfim [ 0.000000] percpu: Embedded 26 pages/cpu s69464 r8192 d28840 u106496 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 515592 [ 0.000000] Kernel command line: root=LABEL=ubuntu-rootfs earlycon ro noquiet root=LABEL=ubuntu-rootfs [ 0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear) [ 0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear) [ 0.000000] Sorting __ex_table... [ 0.000000] mem auto-init: stack:off, heap alloc:on, heap free:off [ 0.000000] Memory: 1838972K/2095104K available (11066K kernel code, 4228K rwdata, 8192K rodata, 691K init, 996K bss, 256132K reserved, 0K cma-reserved) [ 0.000000] random: get_random_u64 called from kmem_cache_open+0x38/0x288 with crng_init=0 [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] ftrace: allocating 36883 entries in 145 pages [ 0.000000] ftrace: allocated 145 pages with 3 groups [ 0.000000] rcu: Hierarchical RCU implementation. [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4. [ 0.000000] Trampoline variant of Tasks RCU enabled. [ 0.000000] Rude variant of Tasks RCU enabled. [ 0.000000] Tracing variant of Tasks RCU enabled. [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies. [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4 [ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0 [ 0.000000] riscv-intc: 64 local interrupts mapped [ 0.000000] plic: interrupt-controller@c000000: mapped 53 interrupts with 4 handlers for 8 contexts. [ 0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [1] [ 0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns [ 0.000169] sched_clock: 64 bits at 10MHz, resolution 100ns, wraps every 4398046511100ns [ 0.004979] Console: colour dummy device 80x25 [ 0.005247] printk: console [tty0] enabled [ 0.005653] printk: bootconsole [ns16550a0] disabled [ 0.000000] OF: fdt: Ignoring memory range 0x80000000 - 0x80200000 [ 0.000000] Linux version 5.8.0-9-generic (buildd@riscv64-qemu-lcy01-082) (gcc (Ubuntu 10.2.0-13ubuntu1) 10.2.0, GNU ld (GNU Binutils for Ubuntu) 2.35.1) #11-Ubuntu SMP Fri Nov 13 09:51:01 UTC 2020 (Ubuntu 5.8.0-9.11-generic 5.8.17) [ 0.000000] earlycon: ns16550a0 at MMIO 0x0000000010000000 (options '') [ 0.000000] printk: bootconsole [ns16550a0] enabled [ 0.000000] Initial ramdisk at: 0x(____ptrval____) (115437568 bytes) [ 0.000000] Zone ranges: [ 0.000000] DMA32 [mem 0x0000000080200000-0x00000000ffffffff] [ 0.000000] Normal empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000080200000-0x00000000ffffffff] [ 0.000000] Zeroed struct page in unavailable ranges: 512 pages [ 0.000000] Initmem setup node 0 [mem 0x0000000080200000-0x00000000ffffffff] [ 0.000000] software IO TLB: mapped [mem 0xf8600000-0xfc600000] (64MB) [ 0.000000] SBI specification v0.2 detected [ 0.000000] SBI implementation ID=0x1 Version=0x8 [ 0.000000] SBI v0.2 TIME extension detected [ 0.000000] SBI v0.2 IPI extension detected [ 0.000000] SBI v0.2 RFENCE extension detected [ 0.000000] SBI v0.2 HSM extension detected [ 0.000000] riscv: ISA extensions acdfimsu [ 0.000000] riscv: ELF capabilities acdfim [ 0.000000] percpu: Embedded 26 pages/cpu s69464 r8192 d28840 u106496 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 515592 [ 0.000000] Kernel command line: root=LABEL=ubuntu-rootfs earlycon ro noquiet root=LABEL=ubuntu-rootfs [ 0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear) [ 0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear) [ 0.000000] Sorting __ex_table... [ 0.000000] mem auto-init: stack:off, heap alloc:on, heap free:off [ 0.000000] Memory: 1838972K/2095104K available (11066K kernel code, 4228K rwdata, 8192K rodata, 691K init, 996K bss, 256132K reserved, 0K cma-reserved) [ 0.000000] random: get_random_u64 called from kmem_cache_open+0x38/0x288 with crng_init=0 [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] ftrace: allocating 36883 entries in 145 pages [ 0.000000] ftrace: allocated 145 pages with 3 groups [ 0.000000] rcu: Hierarchical RCU implementation. [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4. [ 0.000000] Trampoline variant of Tasks RCU enabled. [ 0.000000] Rude variant of Tasks RCU enabled. [ 0.000000] Tracing variant of Tasks RCU enabled. [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies. [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4 [ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0 [ 0.000000] riscv-intc: 64 local interrupts mapped [ 0.000000] plic: interrupt-controller@c000000: mapped 53 interrupts with 4 handlers for 8 contexts. [ 0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [1] [ 0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns [ 0.000169] sched_clock: 64 bits at 10MHz, resolution 100ns, wraps every 4398046511100ns [ 0.004979] Console: colour dummy device 80x25 [ 0.005247] printk: console [tty0] enabled [ 0.005653] printk: bootconsole [ns16550a0] disabled [ 0.010686] Calibrating delay loop (skipped), value calculated using timer frequency.. 20.00 BogoMIPS (lpj=40000) [ 0.010880] pid_max: default: 32768 minimum: 301 [ 0.011931] LSM: Security Framework initializing [ 0.013027] Yama: becoming mindful. [ 0.015442] AppArmor: AppArmor initialized [ 0.017253] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear) [ 0.017309] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear) [ 0.056167] rcu: Hierarchical SRCU implementation. [ 0.064673] smp: Bringing up secondary CPUs ... [ 0.078267] smp: Brought up 1 node, 4 CPUs [ 0.094315] devtmpfs: initialized [ 0.105310] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns [ 0.105520] futex hash table entries: 1024 (order: 4, 65536 bytes, linear) [ 0.108909] pinctrl core: initialized pinctrl subsystem [ 0.117629] thermal_sys: Registered thermal governor 'fair_share' [ 0.117698] thermal_sys: Registered thermal governor 'bang_bang' [ 0.117743] thermal_sys: Registered thermal governor 'step_wise' [ 0.117764] thermal_sys: Registered thermal governor 'user_space' [ 0.126509] NET: Registered protocol family 16 [ 0.128975] audit: initializing netlink subsys (disabled) [ 0.130692] audit: type=2000 audit(0.112:1): state=initialized audit_enabled=0 res=1 [ 0.170542] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages [ 0.170618] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages [ 0.201294] fbcon: Taking over console [ 0.202587] iommu: Default domain type: Translated [ 0.208930] SCSI subsystem initialized [ 0.213716] vgaarb: loaded [ 0.214947] usbcore: registered new interface driver usbfs [ 0.215427] usbcore: registered new interface driver hub [ 0.215844] usbcore: registered new device driver usb [ 0.216437] pps_core: LinuxPPS API ver. 1 registered [ 0.216481] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti [ 0.216604] PTP clock support registered [ 0.218111] EDAC MC: Ver: 3.0.0 [ 0.229800] NetLabel: Initializing [ 0.229860] NetLabel: domain hash size = 128 [ 0.229893] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO [ 0.230975] NetLabel: unlabeled traffic allowed by default [ 0.235654] clocksource: Switched to clocksource riscv_clocksource [ 0.405465] VFS: Disk quotas dquot_6.6.0 [ 0.405698] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes) [ 0.411016] AppArmor: AppArmor Filesystem Enabled [ 0.454404] NET: Registered protocol family 2 [ 0.461272] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear) [ 0.461538] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear) [ 0.461984] TCP bind hash table entries: 16384 (order: 6, 262144 bytes, linear) [ 0.462274] TCP: Hash tables configured (established 16384 bind 16384) [ 0.465548] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear) [ 0.465991] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear) [ 0.468630] NET: Registered protocol family 1 [ 0.469101] NET: Registered protocol family 44 [ 0.469343] PCI: CLS 0 bytes, default 64 [ 0.475032] Trying to unpack rootfs image as initramfs... [ 10.065014] Freeing initrd memory: 112728K [ 10.068189] Initialise system trusted keyrings [ 10.070009] Key type blacklist registered [ 10.071072] workingset: timestamp_bits=46 max_order=19 bucket_order=0 [ 10.082378] zbud: loaded [ 10.087401] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 10.090432] fuse: init (API version 7.31) [ 10.093565] integrity: Platform Keyring initialized [ 10.120183] Key type asymmetric registered [ 10.120338] Asymmetric key parser 'x509' registered [ 10.120564] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244) [ 10.121604] io scheduler mq-deadline registered [ 10.126736] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4 [ 10.130059] pci-host-generic 30000000.pci: host bridge /soc/pci@30000000 ranges: [ 10.130808] pci-host-generic 30000000.pci: IO 0x0003000000..0x000300ffff -> 0x0000000000 [ 10.131307] pci-host-generic 30000000.pci: MEM 0x0040000000..0x007fffffff -> 0x0040000000 [ 10.133334] pci-host-generic 30000000.pci: ECAM at [mem 0x30000000-0x3fffffff] for [bus 00-ff] [ 10.134315] pci-host-generic 30000000.pci: PCI host bridge to bus 0000:00 [ 10.134484] pci_bus 0000:00: root bus resource [bus 00-ff] [ 10.134614] pci_bus 0000:00: root bus resource [io 0x0000-0xffff] [ 10.134650] pci_bus 0000:00: root bus resource [mem 0x40000000-0x7fffffff] [ 10.135645] pci 0000:00:00.0: [1b36:0008] type 00 class 0x060000 [ 10.150221] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled [ 10.180289] 10000000.uart: ttyS0 at MMIO 0x10000000 (irq = 2, base_baud = 230400) is a 16550A [ 10.194893] printk: console [ttyS0] enabled [ 10.240290] loop: module loaded [ 10.246850] libphy: Fixed MDIO Bus: probed [ 10.247032] tun: Universal TUN/TAP device driver, 1.6 [ 10.248233] PPP generic driver version 2.4.2 [ 10.249609] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 10.249890] ehci-pci: EHCI PCI platform driver [ 10.250263] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 10.250521] ohci-pci: OHCI PCI platform driver [ 10.251790] uhci_hcd: USB Universal Host Controller Interface driver [ 10.256025] mousedev: PS/2 mouse device common for all mice [ 10.260794] goldfish_rtc 101000.rtc: registered as rtc0 [ 10.262035] goldfish_rtc 101000.rtc: setting system clock to 2020-11-19T18:39:42 UTC (1605811182) [ 10.262479] i2c /dev entries driver [ 10.267355] syscon-poweroff poweroff: pm_power_off already claimed (____ptrval____) sbi_shutdown [ 10.269733] syscon-poweroff: probe of poweroff failed with error -16 [ 10.270947] device-mapper: uevent: version 1.0.3 [ 10.273053] device-mapper: ioctl: 4.42.0-ioctl (2020-02-27) initialised: dm-devel@redhat.com [ 10.275136] EDAC DEVICE0: Giving out device to module Sifive ECC Manager controller sifive_edac.0: DEV sifive_edac.0 (INTERRUPT) [ 10.281436] ledtrig-cpu: registered to indicate activity on CPUs [ 10.282602] drop_monitor: Initializing network drop monitor service [ 10.285584] NET: Registered protocol family 10 [ 10.656270] Segment Routing with IPv6 [ 10.656866] NET: Registered protocol family 17 [ 10.657977] Key type dns_resolver registered [ 10.658572] registered taskstats version 1 [ 10.658979] Loading compiled-in X.509 certificates [ 10.671915] Loaded X.509 cert 'Build time autogenerated kernel key: ac8051605ada06959b76952dab9a7f8a6f0fa79a' [ 10.674016] zswap: loaded using pool lzo/zbud [ 10.677073] Key type ._fscrypt registered [ 10.677277] Key type .fscrypt registered [ 10.677369] Key type fscrypt-provisioning registered [ 10.816455] Key type encrypted registered [ 10.816635] AppArmor: AppArmor sha1 policy hashing enabled [ 10.817113] ima: No TPM chip found, activating TPM-bypass! [ 10.817313] ima: Allocated hash algorithm: sha1 [ 10.818760] ima: No architecture policies found [ 10.819209] evm: Initialising EVM extended attributes: [ 10.819311] evm: security.selinux [ 10.819391] evm: security.SMACK64 [ 10.819853] evm: security.SMACK64EXEC [ 10.819928] evm: security.SMACK64TRANSMUTE [ 10.820000] evm: security.SMACK64MMAP [ 10.820065] evm: security.apparmor [ 10.820126] evm: security.ima [ 10.820183] evm: security.capability [ 10.820263] evm: HMAC attrs: 0x1 [ 12.902313] Freeing unused kernel memory: 688K [ 12.914819] ------------[ cut here ]------------ [ 12.915289] riscv/mm: Found insecure W+X mapping at address (____ptrval____)/0xffffffdff8000000 [ 12.915992] WARNING: CPU: 2 PID: 1 at arch/riscv/mm/ptdump.c:200 note_page+0x24c/0x252 [ 12.916263] Modules linked in: [ 12.916559] CPU: 2 PID: 1 Comm: swapper/0 Not tainted 5.8.0-9-generic #11-Ubuntu [ 12.916813] epc: ffffffe000208f18 ra : ffffffe000208f18 sp : ffffffe07f7afb30 [ 12.916956] gp : ffffffe001728ee0 tp : ffffffe07f7bc500 t0 : ffffffe00173ee38 [ 12.917115] t1 : ffffffe00173edd0 t2 : 000000007fcb1000 s0 : ffffffe07f7afb80 [ 12.917257] s1 : ffffffe07f7afe10 a0 : 0000000000000053 a1 : 0000000000000020 [ 12.917400] a2 : ffffffe07f7af870 a3 : 0000000000000000 a4 : ffffffe0016200f8 [ 12.917558] a5 : ffffffe0016200f8 a6 : 00000000000000b8 a7 : ffffffe0006f2806 [ 12.917702] s2 : ffffffdff8001000 s3 : 0000000000000000 s4 : 0000000000000004 [ 12.917854] s5 : 0000000000000000 s6 : 0000000000000000 s7 : ffffffe07f7afd20 [ 12.918005] s8 : ffffffdff8001000 s9 : ffffffe00172a148 s10: ffffffdff8002000 [ 12.918148] s11: ffffffe000c16e20 t3 : 000000000003ce10 t4 : 000000000003ce10 [ 12.918290] t5 : 0000000000000000 t6 : ffffffe001739462 [ 12.918417] status: 0000000000000120 badaddr: 0000000000000000 cause: 0000000000000003 [ 12.918615] ---[ end trace 603d3effd340bb87 ]--- [ 12.919208] Checked W+X mappings: failed, 513 W+X pages found [ 12.919778] Run /init as init process [ 12.920653] usercopy: Kernel memory overwrite attempt detected to kernel text (offset 708583, size 11)! [ 12.920917] ------------[ cut here ]------------ [ 12.921037] kernel BUG at mm/usercopy.c:99! [ 12.921921] Kernel BUG [#1] [ 12.922029] Modules linked in: [ 12.922164] CPU: 2 PID: 1 Comm: swapper/0 Tainted: G W 5.8.0-9-generic #11-Ubuntu [ 12.922340] epc: ffffffe0003d8d4c ra : ffffffe0003d8d4c sp : ffffffe07f7afca0 [ 12.922462] gp : ffffffe001728ee0 tp : ffffffe07f7bc500 t0 : ffffffe00173f518 [ 12.922596] t1 : ffffffe00173f4a8 t2 : 0000000000000000 s0 : ffffffe07f7afcf0 [ 12.922729] s1 : ffffffe000f253e8 a0 : 000000000000005b a1 : 0000000000000020 [ 12.922863] a2 : ffffffe07f7afa00 a3 : 0000000000000000 a4 : ffffffe0016200f8 [ 12.922996] a5 : ffffffe0016200f8 a6 : 00000000000000d1 a7 : ffffffe0006f2806 [ 12.923129] s2 : ffffffe000ebb228 s3 : 00000000000acfe7 s4 : 000000000000000b [ 12.923272] s5 : 0000000000000000 s6 : ffffffe000e91a60 s7 : fffffffffffff000 [ 12.923399] s8 : 0000003ffffff000 s9 : ffffffe077d5fa00 s10: 000000000000000b [ 12.923578] s11: ffffffcf0200ab00 t3 : 000000000003c738 t4 : 000000000003c738 [ 12.923718] t5 : 0000000000000000 t6 : ffffffe00173946a [ 12.923821] status: 0000000000000120 badaddr: 0000000000000000 cause: 0000000000000003 [ 12.924368] ---[ end trace 603d3effd340bb88 ]--- [ 12.924639] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b [ 12.924959] SMP: stopping secondary CPUs [ 12.925478] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b ]---