Re: Clang patch stacks for LTS kernels (v4.4 and v4.9) and status update

From: Sedat Dilek
Date: Tue May 22 2018 - 07:21:44 EST


Hi,

this looks good with attached patchset...

$ egrep -i 'paravirt|stackprotector'
/boot/config-4.14.42-1-iniza-llvmlinux | grep ^CONFIG_
CONFIG_HAVE_CC_STACKPROTECTOR=y
CONFIG_CC_STACKPROTECTOR=y
CONFIG_CC_STACKPROTECTOR_STRONG=y
CONFIG_PARAVIRT=y
CONFIG_PARAVIRT_SPINLOCKS=y
CONFIG_PARAVIRT_CLOCK=y

$ egrep -i paravirt qemu-log.txt
[ 0.000000] Booting paravirtualized kernel on KVM

sdi@iniza:~/src/linux-kernel/important-files$ cat scripts/run_qemu.sh
KPATH=$(pwd)

sudo qemu-system-x86_64 -enable-kvm -M pc -kernel $KPATH/bzImage
-initrd $KPATH/initrd.img -m 512 -net none -serial stdio -append
"root=/dev/ram0 console=ttyS0 hung_task_panic=1
earlyprintk=ttyS0,115200"

sdi@iniza:~/src/linux-kernel/important-files$ ./scripts/run_qemu.sh
Probing EDD (edd=off to disable)... ok
[ 0.000000] Linux version 4.14.42-1-iniza-llvmlinux
(sedat.dilek@xxxxxxxxx@iniza) (clang version 7.0.0- (trunk)) #1 SMP
Tue May 22 13:30:34 CEST 2018
[ 0.000000] Command line: root=/dev/ram0 console=ttyS0
hung_task_panic=1 earlyprintk=ttyS0,115200
[ 0.000000] x86/fpu: x87 FPU will use FXSAVE
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000001ffdffff] usable
[ 0.000000] BIOS-e820: [mem 0x000000001ffe0000-0x000000001fffffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000feffc000-0x00000000feffffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved
[ 0.000000] bootconsole [earlyser0] enabled
[ 0.000000] NX (Execute Disable) protection: active
[ 0.000000] SMBIOS 2.8 present.
[ 0.000000] DMI: QEMU Standard PC (i440FX + PIIX, 1996), BIOS
1.11.1-1 04/01/2014
[ 0.000000] Hypervisor detected: KVM
[ 0.000000] tsc: Fast TSC calibration failed
[ 0.000000] tsc: Using PIT calibration value
[ 0.000000] e820: last_pfn = 0x1ffe0 max_arch_pfn = 0x400000000
[ 0.000000] x86/PAT: PAT not supported by CPU.
[ 0.000000] x86/PAT: Configuration [0-7]: WB WT UC- UC WB WT UC- UC
Memory KASLR using RDTSC...
[ 0.000000] found SMP MP-table at [mem 0x000f5d60-0x000f5d6f]
mapped at [ffffffffff200d60]
[ 0.000000] RAMDISK: [mem 0x1e61e000-0x1ffdffff]
[ 0.000000] ACPI: Early table checksum verification disabled
[ 0.000000] ACPI: RSDP 0x00000000000F5B90 000014 (v00 BOCHS )
[ 0.000000] ACPI: RSDT 0x000000001FFE157C 000030 (v01 BOCHS
BXPCRSDT 00000001 BXPC 00000001)
[ 0.000000] ACPI: FACP 0x000000001FFE1458 000074 (v01 BOCHS
BXPCFACP 00000001 BXPC 00000001)
[ 0.000000] ACPI: DSDT 0x000000001FFE0040 001418 (v01 BOCHS
BXPCDSDT 00000001 BXPC 00000001)
[ 0.000000] ACPI: FACS 0x000000001FFE0000 000040
[ 0.000000] ACPI: APIC 0x000000001FFE14CC 000078 (v01 BOCHS
BXPCAPIC 00000001 BXPC 00000001)
[ 0.000000] ACPI: HPET 0x000000001FFE1544 000038 (v01 BOCHS
BXPCHPET 00000001 BXPC 00000001)
[ 0.000000] No NUMA configuration found
[ 0.000000] Faking a node at [mem 0x0000000000000000-0x000000001ffdffff]
[ 0.000000] NODE_DATA(0) allocated [mem 0x1e619000-0x1e61dfff]
[ 0.000000] kvm-clock: Using msrs 4b564d01 and 4b564d00
[ 0.000000] kvm-clock: cpu 0, msr 0:1e611001, primary cpu clock
[ 0.000000] kvm-clock: using sched offset of 1101155712 cycles
[ 0.000000] clocksource: kvm-clock: mask: 0xffffffffffffffff
max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000000001000-0x0000000000ffffff]
[ 0.000000] DMA32 [mem 0x0000000001000000-0x000000001ffdffff]
[ 0.000000] Normal empty
[ 0.000000] Device empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000001000-0x000000000009efff]
[ 0.000000] node 0: [mem 0x0000000000100000-0x000000001ffdffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000001000-0x000000001ffdffff]
[ 0.000000] ACPI: PM-Timer IO Port: 0x608
[ 0.000000] ACPI: LAPIC_NMI (acpi_id[0xff] dfl dfl lint[0x1])
[ 0.000000] IOAPIC[0]: apic_id 0, version 17, address 0xfec00000, GSI 0-23
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
[ 0.000000] Using ACPI (MADT) for SMP configuration information
[ 0.000000] ACPI: HPET id: 0x8086a201 base: 0xfed00000
[ 0.000000] smpboot: Allowing 1 CPUs, 0 hotplug CPUs
[ 0.000000] PM: Registered nosave memory: [mem 0x00000000-0x00000fff]
[ 0.000000] PM: Registered nosave memory: [mem 0x0009f000-0x0009ffff]
[ 0.000000] PM: Registered nosave memory: [mem 0x000a0000-0x000effff]
[ 0.000000] PM: Registered nosave memory: [mem 0x000f0000-0x000fffff]
[ 0.000000] e820: [mem 0x20000000-0xfeffbfff] available for PCI devices
[ 0.000000] Booting paravirtualized kernel on KVM
[ 0.000000] clocksource: refined-jiffies: mask: 0xffffffff
max_cycles: 0xffffffff, max_idle_ns: 7645519600211568 ns
[ 0.000000] random: get_random_bytes called from
start_kernel+0x87/0x590 with crng_init=0
[ 0.000000] setup_percpu: NR_CPUS:512 nr_cpumask_bits:512
nr_cpu_ids:1 nr_node_ids:1
[ 0.000000] percpu: Embedded 44 pages/cpu @ffff9d8c9e400000 s141464
r8192 d30568 u2097152
[ 0.000000] KVM setup async PF for cpu 0
[ 0.000000] kvm-stealtime: cpu 0, msr 1e416180
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 128872
[ 0.000000] Policy zone: DMA32
[ 0.000000] Kernel command line: root=/dev/ram0 console=ttyS0
hung_task_panic=1 earlyprintk=ttyS0,115200
[ 0.000000] PID hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.000000] Memory: 466892K/523768K available (10252K kernel code,
1013K rwdata, 2796K rodata, 1676K init, 656K bss, 56876K reserved, 0K
cma-reserved)
[ 0.000000] Kernel/User page tables isolation: enabled
[ 0.000000] ftrace: allocating 26207 entries in 103 pages
[ 0.004000] Hierarchical RCU implementation.
[ 0.004000] RCU restricting CPUs from NR_CPUS=512 to nr_cpu_ids=1.
[ 0.004000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.004000] NR_IRQS: 33024, nr_irqs: 256, preallocated irqs: 16
[ 0.004000] Console: colour VGA+ 80x25
[ 0.004000] console [ttyS0] enabled
[ 0.004000] console [ttyS0] enabled
[ 0.004000] bootconsole [earlyser0] disabled
[ 0.004000] bootconsole [earlyser0] disabled
[ 0.004000] clocksource: hpet: mask: 0xffffffff max_cycles:
0xffffffff, max_idle_ns: 19112604467 ns
[ 0.004007] tsc: Detected 2904.000 MHz processor
[ 0.004655] Calibrating delay loop (skipped) preset value.. 5808.00
BogoMIPS (lpj=11616000)
[ 0.005174] pid_max: default: 32768 minimum: 301
[ 0.008032] ACPI: Core revision 20170728
[ 0.012383] ACPI: 1 ACPI AML tables successfully acquired and loaded
[ 0.016049] Security Framework initialized
[ 0.016764] Yama: becoming mindful.
[ 0.020019] AppArmor: AppArmor initialized
[ 0.020855] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
[ 0.022036] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
[ 0.024026] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.028013] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.032169] CPU: Physical Processor ID: 0
[ 0.032936] mce: CPU supports 10 MCE banks
[ 0.033720] Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0
[ 0.034688] Last level dTLB entries: 4KB 0, 2MB 0, 4MB 0, 1GB 0
[ 0.036007] Spectre V2 : Mitigation: Full generic retpoline
[ 0.050620] Freeing SMP alternatives memory: 32K
[ 0.057607] smpboot: Max logical packages: 1
[ 0.058397] x2apic enabled
[ 0.059003] Switched APIC routing to physical x2apic.
[ 0.060790] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[ 0.064000] APIC calibration not consistent with PM-Timer: 112ms
instead of 100ms
[ 0.064000] APIC delta adjusted to PM-Timer: 6250337 (7058743)
[ 0.064000] smpboot: CPU0: Intel QEMU Virtual CPU version 2.5+
(family: 0x6, model: 0x6, stepping: 0x3)
[ 0.064000] Performance Events: PMU not available due to
virtualization, using software events only.
[ 0.064000] Hierarchical SRCU implementation.
[ 0.064000] NMI watchdog: Perf event create on CPU 0 failed with -2
[ 0.064004] NMI watchdog: Perf NMI watchdog permanently disabled
[ 0.065137] smp: Bringing up secondary CPUs ...
[ 0.065759] smp: Brought up 1 node, 1 CPU
[ 0.066306] smpboot: Total of 1 processors activated (5808.00 BogoMIPS)
[ 0.067534] devtmpfs: initialized
[ 0.068060] x86/mm: Memory block size: 128MB
[ 0.068875] clocksource: jiffies: mask: 0xffffffff max_cycles:
0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.070202] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.071068] pinctrl core: initialized pinctrl subsystem
[ 0.072117] NET: Registered protocol family 16
[ 0.072891] cpuidle: using governor ladder
[ 0.073462] cpuidle: using governor menu
[ 0.074014] ACPI: bus type PCI registered
[ 0.074578] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
[ 0.076132] PCI: Using configuration type 1 for base access
[ 0.077715] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.078843] ACPI: Added _OSI(Module Device)
[ 0.080006] ACPI: Added _OSI(Processor Device)
[ 0.080612] ACPI: Added _OSI(3.0 _SCP Extensions)
[ 0.081256] ACPI: Added _OSI(Processor Aggregator Device)
[ 0.084210] ACPI: Interpreter enabled
[ 0.084770] ACPI: (supports S0 S3 S4 S5)
[ 0.085304] ACPI: Using IOAPIC for interrupt routing
[ 0.085985] PCI: Using host bridge windows from ACPI; if necessary,
use "pci=nocrs" and report a bug
[ 0.087414] ACPI: Enabled 2 GPEs in block 00 to 0F
[ 0.090989] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
[ 0.092009] acpi PNP0A03:00: _OSC: OS supports [ASPM ClockPM Segments MSI]
[ 0.092991] acpi PNP0A03:00: _OSC failed (AE_NOT_FOUND); disabling ASPM
[ 0.093917] acpi PNP0A03:00: fail to add MMCONFIG information,
can't access extended PCI configuration space under this bridge.
[ 0.096384] acpiphp: Slot [3] registered
[ 0.097002] acpiphp: Slot [4] registered
[ 0.097624] acpiphp: Slot [5] registered
[ 0.098230] acpiphp: Slot [6] registered
[ 0.098874] acpiphp: Slot [7] registered
[ 0.099467] acpiphp: Slot [8] registered
[ 0.100045] acpiphp: Slot [9] registered
[ 0.100636] acpiphp: Slot [10] registered
[ 0.101250] acpiphp: Slot [11] registered
[ 0.101856] acpiphp: Slot [12] registered
[ 0.102460] acpiphp: Slot [13] registered
[ 0.103067] acpiphp: Slot [14] registered
[ 0.103672] acpiphp: Slot [15] registered
[ 0.104047] acpiphp: Slot [16] registered
[ 0.104654] acpiphp: Slot [17] registered
[ 0.106525] acpiphp: Slot [18] registered
[ 0.107145] acpiphp: Slot [19] registered
[ 0.108079] acpiphp: Slot [20] registered
[ 0.108698] acpiphp: Slot [21] registered
[ 0.109321] acpiphp: Slot [22] registered
[ 0.109930] acpiphp: Slot [23] registered
[ 0.110538] acpiphp: Slot [24] registered
[ 0.111147] acpiphp: Slot [25] registered
[ 0.111756] acpiphp: Slot [26] registered
[ 0.112059] acpiphp: Slot [27] registered
[ 0.112665] acpiphp: Slot [28] registered
[ 0.113273] acpiphp: Slot [29] registered
[ 0.113968] acpiphp: Slot [30] registered
[ 0.116056] acpiphp: Slot [31] registered
[ 0.116635] PCI host bridge to bus 0000:00
[ 0.117204] pci_bus 0000:00: root bus resource [io 0x0000-0x0cf7 window]
[ 0.118159] pci_bus 0000:00: root bus resource [io 0x0d00-0xffff window]
[ 0.119105] pci_bus 0000:00: root bus resource [mem
0x000a0000-0x000bffff window]
[ 0.120006] pci_bus 0000:00: root bus resource [mem
0x20000000-0xfebfffff window]
[ 0.121065] pci_bus 0000:00: root bus resource [mem
0x100000000-0x17fffffff window]
[ 0.122135] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 0.132032] pci 0000:00:01.1: legacy IDE quirk: reg 0x10: [io 0x01f0-0x01f7]
[ 0.133111] pci 0000:00:01.1: legacy IDE quirk: reg 0x14: [io 0x03f6]
[ 0.134072] pci 0000:00:01.1: legacy IDE quirk: reg 0x18: [io 0x0170-0x0177]
[ 0.135020] pci 0000:00:01.1: legacy IDE quirk: reg 0x1c: [io 0x0376]
[ 0.136676] pci 0000:00:01.3: quirk: [io 0x0600-0x063f] claimed by
PIIX4 ACPI
[ 0.137665] pci 0000:00:01.3: quirk: [io 0x0700-0x070f] claimed by PIIX4 SMB
[ 0.148846] ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
[ 0.149800] ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
[ 0.150963] ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
[ 0.152114] ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
[ 0.152958] ACPI: PCI Interrupt Link [LNKS] (IRQs *9)
[ 0.153844] pci 0000:00:02.0: vgaarb: setting as boot VGA device
[ 0.154655] pci 0000:00:02.0: vgaarb: VGA device added:
decodes=io+mem,owns=io+mem,locks=none
[ 0.156005] pci 0000:00:02.0: vgaarb: bridge control possible
[ 0.156793] vgaarb: loaded
[ 0.157252] EDAC MC: Ver: 3.0.0
[ 0.157892] PCI: Using ACPI for IRQ routing
[ 0.158746] HPET: 3 timers in total, 0 timers will be used for per-cpu timer
[ 0.160030] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0
[ 0.160895] hpet0: 3 comparators, 64-bit 100.000000 MHz counter
[ 0.165067] clocksource: Switched to clocksource kvm-clock
[ 0.177496] VFS: Disk quotas dquot_6.6.0
[ 0.178085] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.179252] AppArmor: AppArmor Filesystem Enabled
[ 0.179948] pnp: PnP ACPI init
[ 0.180823] pnp: PnP ACPI: found 6 devices
[ 0.190306] clocksource: acpi_pm: mask: 0xffffff max_cycles:
0xffffff, max_idle_ns: 2085701024 ns
[ 0.191608] NET: Registered protocol family 2
[ 0.192578] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.194899] TCP bind hash table entries: 4096 (order: 4, 65536 bytes)
[ 0.196897] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.197702] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.198521] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.199379] NET: Registered protocol family 1
[ 0.200251] pci 0000:00:01.0: PIIX3: Enabling Passive Release
[ 0.201009] pci 0000:00:00.0: Limiting direct PCI/PCI transfers
[ 0.201837] pci 0000:00:01.0: Activating ISA DMA hang workarounds
[ 0.202717] pci 0000:00:02.0: Video device with shadowed ROM at
[mem 0x000c0000-0x000dffff]
[ 0.203894] Unpacking initramfs...
[ 0.825651] Freeing initrd memory: 26376K
[ 0.826479] audit: initializing netlink subsys (disabled)
[ 0.827462] audit: type=2000 audit(1526989397.915:1):
state=initialized audit_enabled=0 res=1
[ 0.828635] workingset: timestamp_bits=40 max_order=17 bucket_order=0
[ 0.829495] zbud: loaded
[ 1.099037] Key type asymmetric registered
[ 1.099664] Asymmetric key parser 'x509' registered
[ 1.100392] Block layer SCSI generic (bsg) driver version 0.4
loaded (major 249)
[ 1.101431] io scheduler noop registered
[ 1.101973] io scheduler deadline registered
[ 1.102576] io scheduler cfq registered (default)
[ 1.103238] io scheduler mq-deadline registered
[ 1.104073] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 1.162484] 00:05: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200)
is a 16550A
[ 1.164108] Linux agpgart interface v0.103
[ 1.164899] AMD IOMMUv2 driver by Joerg Roedel <jroedel@xxxxxxx>
[ 1.165982] AMD IOMMUv2 functionality not available on this system
[ 1.172057] i8042: PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU]
at 0x60,0x64 irq 1,12
[ 1.174222] serio: i8042 KBD port at 0x60,0x64 irq 1
[ 1.175121] serio: i8042 AUX port at 0x60,0x64 irq 12
[ 1.176174] mousedev: PS/2 mouse device common for all mice
[ 1.177581] input: AT Translated Set 2 keyboard as
/devices/platform/i8042/serio0/input/input0
[ 1.189269] rtc_cmos 00:00: RTC can wake from S4
[ 1.190220] rtc_cmos 00:00: rtc core: registered rtc_cmos as rtc0
[ 1.191162] rtc_cmos 00:00: alarms up to one day, y3k, 114 bytes
nvram, hpet irqs
[ 1.201696] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.202608] NET: Registered protocol family 10
[ 1.206534] Segment Routing with IPv6
[ 1.216158] mip6: Mobile IPv6
[ 1.216587] NET: Registered protocol family 17
[ 1.217203] mpls_gso: MPLS GSO support
[ 1.217807] sched_clock: Marking stable (1216061212,
0)->(1674647863, -458586651)
[ 1.218936] registered taskstats version 1
[ 1.219496] zswap: loaded using pool lzo/zbud
[ 1.220164] AppArmor: AppArmor sha1 policy hashing enabled
[ 1.220881] ima: No TPM chip found, activating TPM-bypass! (rc=-19)
[ 1.221880] rtc_cmos 00:00: setting system clock to 2018-05-22
11:43:17 UTC (1526989397)
[ 1.225092] Freeing unused kernel memory: 1676K
[ 1.225791] Write protecting the kernel read-only data: 16384k
[ 1.228780] Freeing unused kernel memory: 2008K
[ 1.233379] Freeing unused kernel memory: 1300K
[ 1.253169] x86/mm: Checked W+X mappings: passed, no W+X pages found.
[ 1.254182] x86/mm: Checking user space page tables
[ 1.274301] x86/mm: Checked W+X mappings: passed, no W+X pages found.
Loading, please wait...
starting version 238
[ 1.561067] piix4_smbus 0000:00:01.3: SMBus Host Controller at
0x700, revision 0
[ 1.567888] SCSI subsystem initialized
[ 1.573479] Floppy drive(s): fd0 is 2.88M AMI BIOS
[ 1.580046] input: VirtualPS/2 VMware VMMouse as
/devices/platform/i8042/serio1/input/input3
[ 1.581403] input: VirtualPS/2 VMware VMMouse as
/devices/platform/i8042/serio1/input/input2
[ 1.592500] FDC 0 is a S82078B
[ 1.614004] scsi host0: ata_piix
[ 1.621934] scsi host1: ata_piix
[ 1.622504] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
[ 1.623672] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
[ 1.784894] ata2.00: ATAPI: QEMU DVD-ROM, 2.5+, max UDMA/100
[ 1.786110] ata2.00: configured for MWDMA2
[ 1.787173] scsi 1:0:0:0: CD-ROM QEMU QEMU DVD-ROM
2.5+ PQ: 0 ANSI: 5
[ 1.808558] sr 1:0:0:0: [sr0] scsi3-mmc drive: 4x/4x cd/rw xa/form2 tray
[ 1.809460] cdrom: Uniform CD-ROM driver Revision: 3.20
[ 1.856058] tsc: Refined TSC clocksource calibration: 2903.992 MHz
[ 1.856904] clocksource: tsc: mask: 0xffffffffffffffff max_cycles:
0x29dbfe32135, max_idle_ns: 440795254644 ns
Begin: Loading essential drivers ... [ 2.040021] raid6: sse2x1
gen() 5419 MB/s
[ 2.108023] raid6: sse2x1 xor() 4326 MB/s
[ 2.176021] raid6: sse2x2 gen() 7214 MB/s
[ 2.244029] raid6: sse2x2 xor() 4726 MB/s
[ 2.312140] raid6: sse2x4 gen() 3950 MB/s
[ 2.388025] raid6: sse2x4 xor() 5319 MB/s
[ 2.388661] raid6: using algorithm sse2x2 gen() 7214 MB/s
[ 2.389446] raid6: .... xor() 4726 MB/s, rmw enabled
[ 2.390129] raid6: using intx1 recovery algorithm
[ 2.393920] xor: measuring software checksum speed
[ 2.432020] prefetch64-sse: 13658.000 MB/sec
[ 2.488016] generic_sse: 13120.000 MB/sec
[ 2.488642] xor: using function: prefetch64-sse (13658.000 MB/sec)
[ 2.503807] async_tx: api initialized (async)
done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top
... [ 2.535575] device-mapper: uevent: version 1.0.3
[ 2.538873] device-mapper: ioctl: 4.37.0-ioctl (2017-09-20)
initialised: dm-devel@xxxxxxxxxx
[ 2.559469] random: lvm: uninitialized urandom read (4 bytes read)
WARNING: Failed to connect to lvmetad. Falling back to device scanning.
Reading all physical volumes. This may take a while...

*** REQUIRED: DM-CRYPT (LUKS PASSWORD) ***

Thanks to all involved people!

Best regards,
- Sedat -
sdi@iniza:~/src/linux-kernel/important-files$ cat scripts/run_qemu.sh
KPATH=$(pwd)

sudo qemu-system-x86_64 -enable-kvm -M pc -kernel $KPATH/bzImage -initrd $KPATH/initrd.img -m 512 -net none -serial stdio -append "root=/dev/ram0 console=ttyS0 hung_task_panic=1 earlyprintk=ttyS0,115200"
sdi@iniza:~/src/linux-kernel/important-files$ ./scripts/run_qemu.sh
Probing EDD (edd=off to disable)... ok
[ 0.000000] Linux version 4.14.42-1-iniza-llvmlinux (sedat.dilek@xxxxxxxxx@iniza) (clang version 7.0.0- (trunk)) #1 SMP Tue May 22 13:30:34 CEST 2018
[ 0.000000] Command line: root=/dev/ram0 console=ttyS0 hung_task_panic=1 earlyprintk=ttyS0,115200
[ 0.000000] x86/fpu: x87 FPU will use FXSAVE
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000001ffdffff] usable
[ 0.000000] BIOS-e820: [mem 0x000000001ffe0000-0x000000001fffffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000feffc000-0x00000000feffffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved
[ 0.000000] bootconsole [earlyser0] enabled
[ 0.000000] NX (Execute Disable) protection: active
[ 0.000000] SMBIOS 2.8 present.
[ 0.000000] DMI: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.11.1-1 04/01/2014
[ 0.000000] Hypervisor detected: KVM
[ 0.000000] tsc: Fast TSC calibration failed
[ 0.000000] tsc: Using PIT calibration value
[ 0.000000] e820: last_pfn = 0x1ffe0 max_arch_pfn = 0x400000000
[ 0.000000] x86/PAT: PAT not supported by CPU.
[ 0.000000] x86/PAT: Configuration [0-7]: WB WT UC- UC WB WT UC- UC
Memory KASLR using RDTSC...
[ 0.000000] found SMP MP-table at [mem 0x000f5d60-0x000f5d6f] mapped at [ffffffffff200d60]
[ 0.000000] RAMDISK: [mem 0x1e61e000-0x1ffdffff]
[ 0.000000] ACPI: Early table checksum verification disabled
[ 0.000000] ACPI: RSDP 0x00000000000F5B90 000014 (v00 BOCHS )
[ 0.000000] ACPI: RSDT 0x000000001FFE157C 000030 (v01 BOCHS BXPCRSDT 00000001 BXPC 00000001)
[ 0.000000] ACPI: FACP 0x000000001FFE1458 000074 (v01 BOCHS BXPCFACP 00000001 BXPC 00000001)
[ 0.000000] ACPI: DSDT 0x000000001FFE0040 001418 (v01 BOCHS BXPCDSDT 00000001 BXPC 00000001)
[ 0.000000] ACPI: FACS 0x000000001FFE0000 000040
[ 0.000000] ACPI: APIC 0x000000001FFE14CC 000078 (v01 BOCHS BXPCAPIC 00000001 BXPC 00000001)
[ 0.000000] ACPI: HPET 0x000000001FFE1544 000038 (v01 BOCHS BXPCHPET 00000001 BXPC 00000001)
[ 0.000000] No NUMA configuration found
[ 0.000000] Faking a node at [mem 0x0000000000000000-0x000000001ffdffff]
[ 0.000000] NODE_DATA(0) allocated [mem 0x1e619000-0x1e61dfff]
[ 0.000000] kvm-clock: Using msrs 4b564d01 and 4b564d00
[ 0.000000] kvm-clock: cpu 0, msr 0:1e611001, primary cpu clock
[ 0.000000] kvm-clock: using sched offset of 1101155712 cycles
[ 0.000000] clocksource: kvm-clock: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000000001000-0x0000000000ffffff]
[ 0.000000] DMA32 [mem 0x0000000001000000-0x000000001ffdffff]
[ 0.000000] Normal empty
[ 0.000000] Device empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000001000-0x000000000009efff]
[ 0.000000] node 0: [mem 0x0000000000100000-0x000000001ffdffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000001000-0x000000001ffdffff]
[ 0.000000] ACPI: PM-Timer IO Port: 0x608
[ 0.000000] ACPI: LAPIC_NMI (acpi_id[0xff] dfl dfl lint[0x1])
[ 0.000000] IOAPIC[0]: apic_id 0, version 17, address 0xfec00000, GSI 0-23
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
[ 0.000000] Using ACPI (MADT) for SMP configuration information
[ 0.000000] ACPI: HPET id: 0x8086a201 base: 0xfed00000
[ 0.000000] smpboot: Allowing 1 CPUs, 0 hotplug CPUs
[ 0.000000] PM: Registered nosave memory: [mem 0x00000000-0x00000fff]
[ 0.000000] PM: Registered nosave memory: [mem 0x0009f000-0x0009ffff]
[ 0.000000] PM: Registered nosave memory: [mem 0x000a0000-0x000effff]
[ 0.000000] PM: Registered nosave memory: [mem 0x000f0000-0x000fffff]
[ 0.000000] e820: [mem 0x20000000-0xfeffbfff] available for PCI devices
[ 0.000000] Booting paravirtualized kernel on KVM
[ 0.000000] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645519600211568 ns
[ 0.000000] random: get_random_bytes called from start_kernel+0x87/0x590 with crng_init=0
[ 0.000000] setup_percpu: NR_CPUS:512 nr_cpumask_bits:512 nr_cpu_ids:1 nr_node_ids:1
[ 0.000000] percpu: Embedded 44 pages/cpu @ffff9d8c9e400000 s141464 r8192 d30568 u2097152
[ 0.000000] KVM setup async PF for cpu 0
[ 0.000000] kvm-stealtime: cpu 0, msr 1e416180
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 128872
[ 0.000000] Policy zone: DMA32
[ 0.000000] Kernel command line: root=/dev/ram0 console=ttyS0 hung_task_panic=1 earlyprintk=ttyS0,115200
[ 0.000000] PID hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.000000] Memory: 466892K/523768K available (10252K kernel code, 1013K rwdata, 2796K rodata, 1676K init, 656K bss, 56876K reserved, 0K cma-reserved)
[ 0.000000] Kernel/User page tables isolation: enabled
[ 0.000000] ftrace: allocating 26207 entries in 103 pages
[ 0.004000] Hierarchical RCU implementation.
[ 0.004000] RCU restricting CPUs from NR_CPUS=512 to nr_cpu_ids=1.
[ 0.004000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.004000] NR_IRQS: 33024, nr_irqs: 256, preallocated irqs: 16
[ 0.004000] Console: colour VGA+ 80x25
[ 0.004000] console [ttyS0] enabled
[ 0.004000] console [ttyS0] enabled
[ 0.004000] bootconsole [earlyser0] disabled
[ 0.004000] bootconsole [earlyser0] disabled
[ 0.004000] clocksource: hpet: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604467 ns
[ 0.004007] tsc: Detected 2904.000 MHz processor
[ 0.004655] Calibrating delay loop (skipped) preset value.. 5808.00 BogoMIPS (lpj=11616000)
[ 0.005174] pid_max: default: 32768 minimum: 301
[ 0.008032] ACPI: Core revision 20170728
[ 0.012383] ACPI: 1 ACPI AML tables successfully acquired and loaded
[ 0.016049] Security Framework initialized
[ 0.016764] Yama: becoming mindful.
[ 0.020019] AppArmor: AppArmor initialized
[ 0.020855] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
[ 0.022036] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
[ 0.024026] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.028013] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.032169] CPU: Physical Processor ID: 0
[ 0.032936] mce: CPU supports 10 MCE banks
[ 0.033720] Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0
[ 0.034688] Last level dTLB entries: 4KB 0, 2MB 0, 4MB 0, 1GB 0
[ 0.036007] Spectre V2 : Mitigation: Full generic retpoline
[ 0.050620] Freeing SMP alternatives memory: 32K
[ 0.057607] smpboot: Max logical packages: 1
[ 0.058397] x2apic enabled
[ 0.059003] Switched APIC routing to physical x2apic.
[ 0.060790] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[ 0.064000] APIC calibration not consistent with PM-Timer: 112ms instead of 100ms
[ 0.064000] APIC delta adjusted to PM-Timer: 6250337 (7058743)
[ 0.064000] smpboot: CPU0: Intel QEMU Virtual CPU version 2.5+ (family: 0x6, model: 0x6, stepping: 0x3)
[ 0.064000] Performance Events: PMU not available due to virtualization, using software events only.
[ 0.064000] Hierarchical SRCU implementation.
[ 0.064000] NMI watchdog: Perf event create on CPU 0 failed with -2
[ 0.064004] NMI watchdog: Perf NMI watchdog permanently disabled
[ 0.065137] smp: Bringing up secondary CPUs ...
[ 0.065759] smp: Brought up 1 node, 1 CPU
[ 0.066306] smpboot: Total of 1 processors activated (5808.00 BogoMIPS)
[ 0.067534] devtmpfs: initialized
[ 0.068060] x86/mm: Memory block size: 128MB
[ 0.068875] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.070202] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.071068] pinctrl core: initialized pinctrl subsystem
[ 0.072117] NET: Registered protocol family 16
[ 0.072891] cpuidle: using governor ladder
[ 0.073462] cpuidle: using governor menu
[ 0.074014] ACPI: bus type PCI registered
[ 0.074578] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
[ 0.076132] PCI: Using configuration type 1 for base access
[ 0.077715] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.078843] ACPI: Added _OSI(Module Device)
[ 0.080006] ACPI: Added _OSI(Processor Device)
[ 0.080612] ACPI: Added _OSI(3.0 _SCP Extensions)
[ 0.081256] ACPI: Added _OSI(Processor Aggregator Device)
[ 0.084210] ACPI: Interpreter enabled
[ 0.084770] ACPI: (supports S0 S3 S4 S5)
[ 0.085304] ACPI: Using IOAPIC for interrupt routing
[ 0.085985] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[ 0.087414] ACPI: Enabled 2 GPEs in block 00 to 0F
[ 0.090989] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
[ 0.092009] acpi PNP0A03:00: _OSC: OS supports [ASPM ClockPM Segments MSI]
[ 0.092991] acpi PNP0A03:00: _OSC failed (AE_NOT_FOUND); disabling ASPM
[ 0.093917] acpi PNP0A03:00: fail to add MMCONFIG information, can't access extended PCI configuration space under this bridge.
[ 0.096384] acpiphp: Slot [3] registered
[ 0.097002] acpiphp: Slot [4] registered
[ 0.097624] acpiphp: Slot [5] registered
[ 0.098230] acpiphp: Slot [6] registered
[ 0.098874] acpiphp: Slot [7] registered
[ 0.099467] acpiphp: Slot [8] registered
[ 0.100045] acpiphp: Slot [9] registered
[ 0.100636] acpiphp: Slot [10] registered
[ 0.101250] acpiphp: Slot [11] registered
[ 0.101856] acpiphp: Slot [12] registered
[ 0.102460] acpiphp: Slot [13] registered
[ 0.103067] acpiphp: Slot [14] registered
[ 0.103672] acpiphp: Slot [15] registered
[ 0.104047] acpiphp: Slot [16] registered
[ 0.104654] acpiphp: Slot [17] registered
[ 0.106525] acpiphp: Slot [18] registered
[ 0.107145] acpiphp: Slot [19] registered
[ 0.108079] acpiphp: Slot [20] registered
[ 0.108698] acpiphp: Slot [21] registered
[ 0.109321] acpiphp: Slot [22] registered
[ 0.109930] acpiphp: Slot [23] registered
[ 0.110538] acpiphp: Slot [24] registered
[ 0.111147] acpiphp: Slot [25] registered
[ 0.111756] acpiphp: Slot [26] registered
[ 0.112059] acpiphp: Slot [27] registered
[ 0.112665] acpiphp: Slot [28] registered
[ 0.113273] acpiphp: Slot [29] registered
[ 0.113968] acpiphp: Slot [30] registered
[ 0.116056] acpiphp: Slot [31] registered
[ 0.116635] PCI host bridge to bus 0000:00
[ 0.117204] pci_bus 0000:00: root bus resource [io 0x0000-0x0cf7 window]
[ 0.118159] pci_bus 0000:00: root bus resource [io 0x0d00-0xffff window]
[ 0.119105] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff window]
[ 0.120006] pci_bus 0000:00: root bus resource [mem 0x20000000-0xfebfffff window]
[ 0.121065] pci_bus 0000:00: root bus resource [mem 0x100000000-0x17fffffff window]
[ 0.122135] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 0.132032] pci 0000:00:01.1: legacy IDE quirk: reg 0x10: [io 0x01f0-0x01f7]
[ 0.133111] pci 0000:00:01.1: legacy IDE quirk: reg 0x14: [io 0x03f6]
[ 0.134072] pci 0000:00:01.1: legacy IDE quirk: reg 0x18: [io 0x0170-0x0177]
[ 0.135020] pci 0000:00:01.1: legacy IDE quirk: reg 0x1c: [io 0x0376]
[ 0.136676] pci 0000:00:01.3: quirk: [io 0x0600-0x063f] claimed by PIIX4 ACPI
[ 0.137665] pci 0000:00:01.3: quirk: [io 0x0700-0x070f] claimed by PIIX4 SMB
[ 0.148846] ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
[ 0.149800] ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
[ 0.150963] ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
[ 0.152114] ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
[ 0.152958] ACPI: PCI Interrupt Link [LNKS] (IRQs *9)
[ 0.153844] pci 0000:00:02.0: vgaarb: setting as boot VGA device
[ 0.154655] pci 0000:00:02.0: vgaarb: VGA device added: decodes=io+mem,owns=io+mem,locks=none
[ 0.156005] pci 0000:00:02.0: vgaarb: bridge control possible
[ 0.156793] vgaarb: loaded
[ 0.157252] EDAC MC: Ver: 3.0.0
[ 0.157892] PCI: Using ACPI for IRQ routing
[ 0.158746] HPET: 3 timers in total, 0 timers will be used for per-cpu timer
[ 0.160030] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0
[ 0.160895] hpet0: 3 comparators, 64-bit 100.000000 MHz counter
[ 0.165067] clocksource: Switched to clocksource kvm-clock
[ 0.177496] VFS: Disk quotas dquot_6.6.0
[ 0.178085] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.179252] AppArmor: AppArmor Filesystem Enabled
[ 0.179948] pnp: PnP ACPI init
[ 0.180823] pnp: PnP ACPI: found 6 devices
[ 0.190306] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns
[ 0.191608] NET: Registered protocol family 2
[ 0.192578] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.194899] TCP bind hash table entries: 4096 (order: 4, 65536 bytes)
[ 0.196897] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.197702] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.198521] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.199379] NET: Registered protocol family 1
[ 0.200251] pci 0000:00:01.0: PIIX3: Enabling Passive Release
[ 0.201009] pci 0000:00:00.0: Limiting direct PCI/PCI transfers
[ 0.201837] pci 0000:00:01.0: Activating ISA DMA hang workarounds
[ 0.202717] pci 0000:00:02.0: Video device with shadowed ROM at [mem 0x000c0000-0x000dffff]
[ 0.203894] Unpacking initramfs...
[ 0.825651] Freeing initrd memory: 26376K
[ 0.826479] audit: initializing netlink subsys (disabled)
[ 0.827462] audit: type=2000 audit(1526989397.915:1): state=initialized audit_enabled=0 res=1
[ 0.828635] workingset: timestamp_bits=40 max_order=17 bucket_order=0
[ 0.829495] zbud: loaded
[ 1.099037] Key type asymmetric registered
[ 1.099664] Asymmetric key parser 'x509' registered
[ 1.100392] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[ 1.101431] io scheduler noop registered
[ 1.101973] io scheduler deadline registered
[ 1.102576] io scheduler cfq registered (default)
[ 1.103238] io scheduler mq-deadline registered
[ 1.104073] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 1.162484] 00:05: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[ 1.164108] Linux agpgart interface v0.103
[ 1.164899] AMD IOMMUv2 driver by Joerg Roedel <jroedel@xxxxxxx>
[ 1.165982] AMD IOMMUv2 functionality not available on this system
[ 1.172057] i8042: PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
[ 1.174222] serio: i8042 KBD port at 0x60,0x64 irq 1
[ 1.175121] serio: i8042 AUX port at 0x60,0x64 irq 12
[ 1.176174] mousedev: PS/2 mouse device common for all mice
[ 1.177581] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0
[ 1.189269] rtc_cmos 00:00: RTC can wake from S4
[ 1.190220] rtc_cmos 00:00: rtc core: registered rtc_cmos as rtc0
[ 1.191162] rtc_cmos 00:00: alarms up to one day, y3k, 114 bytes nvram, hpet irqs
[ 1.201696] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.202608] NET: Registered protocol family 10
[ 1.206534] Segment Routing with IPv6
[ 1.216158] mip6: Mobile IPv6
[ 1.216587] NET: Registered protocol family 17
[ 1.217203] mpls_gso: MPLS GSO support
[ 1.217807] sched_clock: Marking stable (1216061212, 0)->(1674647863, -458586651)
[ 1.218936] registered taskstats version 1
[ 1.219496] zswap: loaded using pool lzo/zbud
[ 1.220164] AppArmor: AppArmor sha1 policy hashing enabled
[ 1.220881] ima: No TPM chip found, activating TPM-bypass! (rc=-19)
[ 1.221880] rtc_cmos 00:00: setting system clock to 2018-05-22 11:43:17 UTC (1526989397)
[ 1.225092] Freeing unused kernel memory: 1676K
[ 1.225791] Write protecting the kernel read-only data: 16384k
[ 1.228780] Freeing unused kernel memory: 2008K
[ 1.233379] Freeing unused kernel memory: 1300K
[ 1.253169] x86/mm: Checked W+X mappings: passed, no W+X pages found.
[ 1.254182] x86/mm: Checking user space page tables
[ 1.274301] x86/mm: Checked W+X mappings: passed, no W+X pages found.
Loading, please wait...
starting version 238
[ 1.561067] piix4_smbus 0000:00:01.3: SMBus Host Controller at 0x700, revision 0
[ 1.567888] SCSI subsystem initialized
[ 1.573479] Floppy drive(s): fd0 is 2.88M AMI BIOS
[ 1.580046] input: VirtualPS/2 VMware VMMouse as /devices/platform/i8042/serio1/input/input3
[ 1.581403] input: VirtualPS/2 VMware VMMouse as /devices/platform/i8042/serio1/input/input2
[ 1.592500] FDC 0 is a S82078B
[ 1.614004] scsi host0: ata_piix
[ 1.621934] scsi host1: ata_piix
[ 1.622504] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
[ 1.623672] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
[ 1.784894] ata2.00: ATAPI: QEMU DVD-ROM, 2.5+, max UDMA/100
[ 1.786110] ata2.00: configured for MWDMA2
[ 1.787173] scsi 1:0:0:0: CD-ROM QEMU QEMU DVD-ROM 2.5+ PQ: 0 ANSI: 5
[ 1.808558] sr 1:0:0:0: [sr0] scsi3-mmc drive: 4x/4x cd/rw xa/form2 tray
[ 1.809460] cdrom: Uniform CD-ROM driver Revision: 3.20
[ 1.856058] tsc: Refined TSC clocksource calibration: 2903.992 MHz
[ 1.856904] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x29dbfe32135, max_idle_ns: 440795254644 ns
Begin: Loading essential drivers ... [ 2.040021] raid6: sse2x1 gen() 5419 MB/s
[ 2.108023] raid6: sse2x1 xor() 4326 MB/s
[ 2.176021] raid6: sse2x2 gen() 7214 MB/s
[ 2.244029] raid6: sse2x2 xor() 4726 MB/s
[ 2.312140] raid6: sse2x4 gen() 3950 MB/s
[ 2.388025] raid6: sse2x4 xor() 5319 MB/s
[ 2.388661] raid6: using algorithm sse2x2 gen() 7214 MB/s
[ 2.389446] raid6: .... xor() 4726 MB/s, rmw enabled
[ 2.390129] raid6: using intx1 recovery algorithm
[ 2.393920] xor: measuring software checksum speed
[ 2.432020] prefetch64-sse: 13658.000 MB/sec
[ 2.488016] generic_sse: 13120.000 MB/sec
[ 2.488642] xor: using function: prefetch64-sse (13658.000 MB/sec)
[ 2.503807] async_tx: api initialized (async)
done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... [ 2.535575] device-mapper: uevent: version 1.0.3
[ 2.538873] device-mapper: ioctl: 4.37.0-ioctl (2017-09-20) initialised: dm-devel@xxxxxxxxxx
[ 2.559469] random: lvm: uninitialized urandom read (4 bytes read)
WARNING: Failed to connect to lvmetad. Falling back to device scanning.
Reading all physical volumes. This may take a while...

Attachment: config-4.14.42-1-iniza-llvmlinux
Description: Binary data

Attachment: run_qemu.sh
Description: application/shellscript

From 6b78d2ecfae1cd3de35c8871605f0881df174b35 Mon Sep 17 00:00:00 2001
From: Nick Desaulniers <nick.desaulniers@xxxxxxxxx>
Date: Sat, 7 Oct 2017 13:23:23 -0700
Subject: [PATCH 1/4] kbuild: clang: remove crufty HOSTCFLAGS

When compiling with `make CC=clang HOSTCC=clang`, I was seeing warnings
that clang did not recognize -fno-delete-null-pointer-checks for HOSTCC
targets. These were added in commit 61163efae020 ("kbuild: LLVMLinux:
Add Kbuild support for building kernel with Clang").

Clang does not support -fno-delete-null-pointer-checks, so adding it to
HOSTCFLAGS if HOSTCC is clang does not make sense.

It's not clear why the other warnings were disabled, and just for
HOSTCFLAGS, but I can remove them, add -Werror to HOSTCFLAGS and compile
with clang just fine.

Suggested-by: Masahiro Yamada <yamada.masahiro@xxxxxxxxxxxxx>
Signed-off-by: Nick Desaulniers <nick.desaulniers@xxxxxxxxx>
Signed-off-by: Masahiro Yamada <yamada.masahiro@xxxxxxxxxxxxx>
---
Makefile | 5 -----
1 file changed, 5 deletions(-)

diff --git a/Makefile b/Makefile
index 0a1f941899f4..0e4dec5fdba5 100644
--- a/Makefile
+++ b/Makefile
@@ -369,11 +369,6 @@ HOSTCXXFLAGS := -O2 $(HOST_LFS_CFLAGS)
HOSTLDFLAGS := $(HOST_LFS_LDFLAGS)
HOST_LOADLIBES := $(HOST_LFS_LIBS)

-ifeq ($(shell $(HOSTCC) -v 2>&1 | grep -c "clang version"), 1)
-HOSTCFLAGS += -Wno-unused-value -Wno-unused-parameter \
- -Wno-missing-field-initializers -fno-delete-null-pointer-checks
-endif
-
# Make variables (CC, etc...)
AS = $(CROSS_COMPILE)as
LD = $(CROSS_COMPILE)ld
--
2.17.0

From 32f3dd55b9c8c5ce45ac8f90a2a5dd5cfab0f4df Mon Sep 17 00:00:00 2001
From: Nick Desaulniers <nick.desaulniers@xxxxxxxxx>
Date: Sat, 6 Jan 2018 13:39:48 -0800
Subject: [PATCH 2/4] x86: xen: remove the use of VLAIS

Variable Length Arrays In Structs (VLAIS) is not supported by Clang, and
frowned upon by others.

https://lkml.org/lkml/2013/9/23/500

Here, the VLAIS was used because the size of the bitmap returned from
xen_mc_entry() depended on possibly (based on kernel configuration)
runtime sized data. Rather than declaring args as a VLAIS then calling
sizeof on *args, we calculate the appropriate sizeof args manually.
Further, we can get rid of the #ifdef's and rely on num_possible_cpus()
(thanks to a helpful checkpatch warning from an earlier version of this
patch).

Suggested-by: Juergen Gross <jgross@xxxxxxxx>
Signed-off-by: Nick Desaulniers <nick.desaulniers@xxxxxxxxx>
Reviewed-by: Juergen Gross <jgross@xxxxxxxx>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>
---
arch/x86/xen/mmu_pv.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/arch/x86/xen/mmu_pv.c b/arch/x86/xen/mmu_pv.c
index 042e9c422b21..854d5aa90b02 100644
--- a/arch/x86/xen/mmu_pv.c
+++ b/arch/x86/xen/mmu_pv.c
@@ -1325,20 +1325,18 @@ static void xen_flush_tlb_others(const struct cpumask *cpus,
{
struct {
struct mmuext_op op;
-#ifdef CONFIG_SMP
- DECLARE_BITMAP(mask, num_processors);
-#else
DECLARE_BITMAP(mask, NR_CPUS);
-#endif
} *args;
struct multicall_space mcs;
+ const size_t mc_entry_size = sizeof(args->op) +
+ sizeof(args->mask[0]) * BITS_TO_LONGS(num_possible_cpus());

trace_xen_mmu_flush_tlb_others(cpus, info->mm, info->start, info->end);

if (cpumask_empty(cpus))
return; /* nothing to do */

- mcs = xen_mc_entry(sizeof(*args));
+ mcs = xen_mc_entry(mc_entry_size);
args = mcs.args;
args->op.arg2.vcpumask = to_cpumask(args->mask);

--
2.17.0

From 81eceff6658d6e750c7c0d0810ec3d6e66a0cd51 Mon Sep 17 00:00:00 2001
From: Sedat Dilek <sedat.dilek@xxxxxxxxxxx>
Date: Tue, 22 May 2018 12:00:56 +0200
Subject: [PATCH 3/4] compiler-clang.h: Add __nostackprotector attribute v2

---
include/linux/compiler-clang.h | 7 +++++++
1 file changed, 7 insertions(+)

diff --git a/include/linux/compiler-clang.h b/include/linux/compiler-clang.h
index 070f85d92c15..3fb36173bb99 100644
--- a/include/linux/compiler-clang.h
+++ b/include/linux/compiler-clang.h
@@ -21,3 +21,10 @@
#ifdef __noretpoline
#undef __noretpoline
#endif
+
+/* Clang version 7 (>= svn331925) supports no_stack_protector attribute
+ * which disables the stack protector on the specified function.
+ * For details see <https://bugs.llvm.org/show_bug.cgi?id=37512>.
+ */
+#undef __nostackprotector
+#define __nostackprotector __attribute__((no_stack_protector))
--
2.17.0

From 4bdace7d91eb044aa7245da1cdf8a3d52182b7e0 Mon Sep 17 00:00:00 2001
From: Sedat Dilek <sedat.dilek@xxxxxxxxxxx>
Date: Tue, 22 May 2018 12:07:24 +0200
Subject: [PATCH 4/4] x86/paravirt: Mark native_save_fl() with
__nostackprotector attribute v2

---
arch/x86/include/asm/irqflags.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/include/asm/irqflags.h b/arch/x86/include/asm/irqflags.h
index 89f08955fff7..7e6765097adc 100644
--- a/arch/x86/include/asm/irqflags.h
+++ b/arch/x86/include/asm/irqflags.h
@@ -13,7 +13,7 @@
* Interrupt control:
*/

-static inline unsigned long native_save_fl(void)
+static inline __nostackprotector unsigned long native_save_fl(void)
{
unsigned long flags;

--
2.17.0

Attachment: build_llvmlinux.sh
Description: application/shellscript