lkml.org 
[lkml]   [2016]   [Mar]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
SubjectRe: [PATCH] usbhid: Fix lockdep unannotated irqs-off warning
From
On Fri, Mar 4, 2016 at 5:04 PM, Alan Stern <stern@rowland.harvard.edu> wrote:
> On Wed, 2 Mar 2016, Sedat Dilek wrote:
>
>> On 3/1/16, Alan Stern <stern@rowland.harvard.edu> wrote:
>> > On Tue, 1 Mar 2016, Sedat Dilek wrote:
>> >
>> >> On Tue, Oct 13, 2015 at 2:57 AM, Steven Rostedt <rostedt@goodmis.org>
>> >> wrote:
>> >> > On Sat, 3 Oct 2015 12:05:42 +0200
>> >> > Sedat Dilek <sedat.dilek@gmail.com> wrote:
>> >> >
>> >> >> So, at the beginning... dunno WTF is causing the problems - no
>> >> >> workaround for CLANG.
>> >> >
>> >> > Probably need to compile with gcc and with clang and look at the binary
>> >> > differences. Or at least what objdump shows.
>> >> >
>> >>
>> >> [ Hope to address this issue to the correct people - CCed some people
>> >> I taped on their nerves ]
>> >>
>> >> Not sure if I should open a new thread?
>> >> Please, some clear statements on this.
>> >> Thanks.
>> >>
>> >> The issue is still visible and alive.
>
> I think it would be worthwhile to doublecheck the time at which
> interrupts get disabled. Sedat, please try your plug/unplug the USB
> mouse test with the patch below.
>
> Alan Stern
>
>
>
> Index: usb-4.4/drivers/hid/usbhid/hid-core.c
> ===================================================================
> --- usb-4.4.orig/drivers/hid/usbhid/hid-core.c
> +++ usb-4.4/drivers/hid/usbhid/hid-core.c
> @@ -1393,8 +1393,11 @@ static void usbhid_disconnect(struct usb
>
> static void hid_cancel_delayed_stuff(struct usbhid_device *usbhid)
> {
> + if (raw_irqs_disabled()) pr_info("usbhid irqs disabled A\n");
> del_timer_sync(&usbhid->io_retry);
> + if (raw_irqs_disabled()) pr_info("usbhid irqs disabled B\n");
> cancel_work_sync(&usbhid->reset_work);
> + if (raw_irqs_disabled()) pr_info("usbhid irqs disabled C\n");
> }
>
> static void hid_cease_io(struct usbhid_device *usbhid)
>

With your patch I get the dmesg attached.

- Sedat -
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.4.4-3-llvmlinux-amd64 (sedat.dilek@gmail.com@fambox) (clang version 3.8.0 ) #1 SMP Sat Mar 5 23:03:51 CET 2016
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.4.4-3-llvmlinux-amd64 root=UUID=001AADA61AAD9964 loop=/ubuntu/disks/root.disk ro
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Centaur CentaurHauls
[ 0.000000] Disabled fast string operations
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x01: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x02: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x04: 'AVX registers'
[ 0.000000] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'standard' format.
[ 0.000000] x86/fpu: Using 'eager' FPU context switches.
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009d7ff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000009d800-0x000000000009ffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000000e0000-0x00000000000fffff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000001fffffff] usable
[ 0.000000] BIOS-e820: [mem 0x0000000020000000-0x00000000201fffff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000020200000-0x000000003fffffff] usable
[ 0.000000] BIOS-e820: [mem 0x0000000040000000-0x00000000401fffff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000040200000-0x00000000d9c9efff] usable
[ 0.000000] BIOS-e820: [mem 0x00000000d9c9f000-0x00000000dae7efff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000dae7f000-0x00000000daf9efff] ACPI NVS
[ 0.000000] BIOS-e820: [mem 0x00000000daf9f000-0x00000000daffefff] ACPI data
[ 0.000000] BIOS-e820: [mem 0x00000000dafff000-0x00000000daffffff] usable
[ 0.000000] BIOS-e820: [mem 0x00000000db000000-0x00000000df9fffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000f8000000-0x00000000fbffffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000fec00000-0x00000000fec00fff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000fed08000-0x00000000fed08fff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000fed10000-0x00000000fed19fff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000fed1c000-0x00000000fed1ffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000fee00000-0x00000000fee00fff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000ffd80000-0x00000000ffffffff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000100000000-0x000000011fdfffff] usable
[ 0.000000] NX (Execute Disable) protection: active
[ 0.000000] SMBIOS 2.6 present.
[ 0.000000] DMI: SAMSUNG ELECTRONICS CO., LTD. 530U3BI/530U4BI/530U4BH/530U3BI/530U4BI/530U4BH, BIOS 13XK 03/28/2013
[ 0.000000] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
[ 0.000000] e820: remove [mem 0x000a0000-0x000fffff] usable
[ 0.000000] e820: last_pfn = 0x11fe00 max_arch_pfn = 0x400000000
[ 0.000000] MTRR default type: uncachable
[ 0.000000] MTRR fixed ranges enabled:
[ 0.000000] 00000-9FFFF write-back
[ 0.000000] A0000-BFFFF uncachable
[ 0.000000] C0000-FFFFF write-protect
[ 0.000000] MTRR variable ranges enabled:
[ 0.000000] 0 base 000000000 mask F80000000 write-back
[ 0.000000] 1 base 080000000 mask FC0000000 write-back
[ 0.000000] 2 base 0C0000000 mask FE0000000 write-back
[ 0.000000] 3 base 0DC000000 mask FFC000000 uncachable
[ 0.000000] 4 base 0DB000000 mask FFF000000 uncachable
[ 0.000000] 5 base 100000000 mask FE0000000 write-back
[ 0.000000] 6 base 11FE00000 mask FFFE00000 uncachable
[ 0.000000] 7 base 0FFC00000 mask FFFC00000 write-protect
[ 0.000000] 8 disabled
[ 0.000000] 9 disabled
[ 0.000000] x86/PAT: Configuration [0-7]: WB WC UC- UC WB WC UC- WT
[ 0.000000] e820: last_pfn = 0xdb000 max_arch_pfn = 0x400000000
[ 0.000000] found SMP MP-table at [mem 0x000f00e0-0x000f00ef] mapped at [ffff8800000f00e0]
[ 0.000000] Scanning 1 areas for low memory corruption
[ 0.000000] Base memory trampoline at [ffff880000096000] 96000 size 28672
[ 0.000000] reserving inaccessible SNB gfx pages
[ 0.000000] BRK [0x02ff9000, 0x02ff9fff] PGTABLE
[ 0.000000] BRK [0x02ffa000, 0x02ffafff] PGTABLE
[ 0.000000] BRK [0x02ffb000, 0x02ffbfff] PGTABLE
[ 0.000000] BRK [0x02ffc000, 0x02ffcfff] PGTABLE
[ 0.000000] BRK [0x02ffd000, 0x02ffdfff] PGTABLE
[ 0.000000] BRK [0x02ffe000, 0x02ffefff] PGTABLE
[ 0.000000] RAMDISK: [mem 0x37872000-0x37c30fff]
[ 0.000000] ACPI: Early table checksum verification disabled
[ 0.000000] ACPI: RSDP 0x00000000000F0100 000024 (v02 SECCSD)
[ 0.000000] ACPI: XSDT 0x00000000DAFFE170 00008C (v01 SECCSD LH43STAR 00000002 PTEC 00000002)
[ 0.000000] ACPI: FACP 0x00000000DAFEF000 00010C (v05 SECCSD LH43STAR 00000002 PTL 00000002)
[ 0.000000] ACPI: DSDT 0x00000000DAFF2000 0083AC (v02 SECCSD SNB-CPT 00000000 INTL 20061109)
[ 0.000000] ACPI: FACS 0x00000000DAF47000 000040
[ 0.000000] ACPI: SLIC 0x00000000DAFFD000 000176 (v01 SECCSD LH43STAR 00000002 PTEC 00000001)
[ 0.000000] ACPI: SSDT 0x00000000DAFFB000 001068 (v01 SECCSD PtidDevc 00001000 INTL 20061109)
[ 0.000000] ACPI: ASF! 0x00000000DAFF1000 0000A5 (v32 SECCSD LH43STAR 00000002 PTL 00000002)
[ 0.000000] ACPI: HPET 0x00000000DAFEE000 000038 (v01 SECCSD LH43STAR 00000002 PTL 00000002)
[ 0.000000] ACPI: APIC 0x00000000DAFED000 000098 (v03 SECCSD LH43STAR 00000002 PTL 00000002)
[ 0.000000] ACPI: MCFG 0x00000000DAFEC000 00003C (v01 SECCSD LH43STAR 00000002 PTL 00000002)
[ 0.000000] ACPI: SSDT 0x00000000DAFEB000 000804 (v01 PmRef Cpu0Ist 00003000 INTL 20061109)
[ 0.000000] ACPI: SSDT 0x00000000DAFEA000 000996 (v01 PmRef CpuPm 00003000 INTL 20061109)
[ 0.000000] ACPI: UEFI 0x00000000DAFE9000 00003E (v01 SECCSD LH43STAR 00000002 PTL 00000002)
[ 0.000000] ACPI: UEFI 0x00000000DAFE8000 000042 (v01 PTL COMBUF 00000001 PTL 00000001)
[ 0.000000] ACPI: UEFI 0x00000000DAFE7000 00026A (v01 SECCSD LH43STAR 00000002 PTL 00000002)
[ 0.000000] ACPI: SSDT 0x00000000DAFE6000 0000D0 (v01 Iffs IffsAsl 00003000 INTL 20061109)
[ 0.000000] ACPI: Local APIC address 0xfee00000
[ 0.000000] No NUMA configuration found
[ 0.000000] Faking a node at [mem 0x0000000000000000-0x000000011fdfffff]
[ 0.000000] NODE_DATA(0) allocated [mem 0x11fdf8000-0x11fdfcfff]
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000000001000-0x0000000000ffffff]
[ 0.000000] DMA32 [mem 0x0000000001000000-0x00000000ffffffff]
[ 0.000000] Normal [mem 0x0000000100000000-0x000000011fdfffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000001000-0x000000000009cfff]
[ 0.000000] node 0: [mem 0x0000000000100000-0x000000001fffffff]
[ 0.000000] node 0: [mem 0x0000000020200000-0x000000003fffffff]
[ 0.000000] node 0: [mem 0x0000000040200000-0x00000000d9c9efff]
[ 0.000000] node 0: [mem 0x00000000dafff000-0x00000000daffffff]
[ 0.000000] node 0: [mem 0x0000000100000000-0x000000011fdfffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000001000-0x000000011fdfffff]
[ 0.000000] On node 0 totalpages: 1021500
[ 0.000000] DMA zone: 64 pages used for memmap
[ 0.000000] DMA zone: 156 pages reserved
[ 0.000000] DMA zone: 3996 pages, LIFO batch:0
[ 0.000000] DMA32 zone: 13859 pages used for memmap
[ 0.000000] DMA32 zone: 886944 pages, LIFO batch:31
[ 0.000000] Normal zone: 2040 pages used for memmap
[ 0.000000] Normal zone: 130560 pages, LIFO batch:31
[ 0.000000] Reserving Intel graphics stolen memory at 0xdba00000-0xdf9fffff
[ 0.000000] ACPI: PM-Timer IO Port: 0x408
[ 0.000000] ACPI: Local APIC address 0xfee00000
[ 0.000000] ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1])
[ 0.000000] ACPI: LAPIC_NMI (acpi_id[0x01] high edge lint[0x1])
[ 0.000000] IOAPIC[0]: apic_id 14, version 32, 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 9 global_irq 9 high level)
[ 0.000000] ACPI: IRQ0 used by override.
[ 0.000000] ACPI: IRQ9 used by override.
[ 0.000000] Using ACPI (MADT) for SMP configuration information
[ 0.000000] ACPI: HPET id: 0x8086a301 base: 0xfed00000
[ 0.000000] smpboot: Allowing 8 CPUs, 4 hotplug CPUs
[ 0.000000] PM: Registered nosave memory: [mem 0x00000000-0x00000fff]
[ 0.000000] PM: Registered nosave memory: [mem 0x0009d000-0x0009dfff]
[ 0.000000] PM: Registered nosave memory: [mem 0x0009e000-0x0009ffff]
[ 0.000000] PM: Registered nosave memory: [mem 0x000a0000-0x000dffff]
[ 0.000000] PM: Registered nosave memory: [mem 0x000e0000-0x000fffff]
[ 0.000000] PM: Registered nosave memory: [mem 0x20000000-0x201fffff]
[ 0.000000] PM: Registered nosave memory: [mem 0x40000000-0x401fffff]
[ 0.000000] PM: Registered nosave memory: [mem 0xd9c9f000-0xdae7efff]
[ 0.000000] PM: Registered nosave memory: [mem 0xdae7f000-0xdaf9efff]
[ 0.000000] PM: Registered nosave memory: [mem 0xdaf9f000-0xdaffefff]
[ 0.000000] PM: Registered nosave memory: [mem 0xdb000000-0xdf9fffff]
[ 0.000000] PM: Registered nosave memory: [mem 0xdfa00000-0xf7ffffff]
[ 0.000000] PM: Registered nosave memory: [mem 0xf8000000-0xfbffffff]
[ 0.000000] PM: Registered nosave memory: [mem 0xfc000000-0xfebfffff]
[ 0.000000] PM: Registered nosave memory: [mem 0xfec00000-0xfec00fff]
[ 0.000000] PM: Registered nosave memory: [mem 0xfec01000-0xfed07fff]
[ 0.000000] PM: Registered nosave memory: [mem 0xfed08000-0xfed08fff]
[ 0.000000] PM: Registered nosave memory: [mem 0xfed09000-0xfed0ffff]
[ 0.000000] PM: Registered nosave memory: [mem 0xfed10000-0xfed19fff]
[ 0.000000] PM: Registered nosave memory: [mem 0xfed1a000-0xfed1bfff]
[ 0.000000] PM: Registered nosave memory: [mem 0xfed1c000-0xfed1ffff]
[ 0.000000] PM: Registered nosave memory: [mem 0xfed20000-0xfedfffff]
[ 0.000000] PM: Registered nosave memory: [mem 0xfee00000-0xfee00fff]
[ 0.000000] PM: Registered nosave memory: [mem 0xfee01000-0xffd7ffff]
[ 0.000000] PM: Registered nosave memory: [mem 0xffd80000-0xffffffff]
[ 0.000000] e820: [mem 0xdfa00000-0xf7ffffff] available for PCI devices
[ 0.000000] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645519600211568 ns
[ 0.000000] setup_percpu: NR_CPUS:256 nr_cpumask_bits:256 nr_cpu_ids:8 nr_node_ids:1
[ 0.000000] PERCPU: Embedded 33 pages/cpu @ffff88011fa00000 s94600 r8192 d32376 u262144
[ 0.000000] pcpu-alloc: s94600 r8192 d32376 u262144 alloc=1*2097152
[ 0.000000] pcpu-alloc: [0] 0 1 2 3 4 5 6 7
[ 0.000000] Built 1 zonelists in Node order, mobility grouping on. Total pages: 1005381
[ 0.000000] Policy zone: Normal
[ 0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.4.4-3-llvmlinux-amd64 root=UUID=001AADA61AAD9964 loop=/ubuntu/disks/root.disk ro
[ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000000] Calgary: detecting Calgary via BIOS EBDA area
[ 0.000000] Calgary: Unable to locate Rio Grande table in EBDA - bailing!
[ 0.000000] Memory: 3915272K/4086000K available (9318K kernel code, 1148K rwdata, 3340K rodata, 2900K init, 14312K bss, 170728K reserved, 0K cma-reserved)
[ 0.000000] Running RCU self tests
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU lockdep checking is enabled.
[ 0.000000] Build-time adjustment of leaf fanout to 64.
[ 0.000000] RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=8.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=64, nr_cpu_ids=8
[ 0.000000] NR_IRQS:16640 nr_irqs:488 16
[ 0.000000] Console: colour dummy device 80x25
[ 0.000000] console [tty0] enabled
[ 0.000000] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
[ 0.000000] ... MAX_LOCKDEP_SUBCLASSES: 8
[ 0.000000] ... MAX_LOCK_DEPTH: 48
[ 0.000000] ... MAX_LOCKDEP_KEYS: 8191
[ 0.000000] ... CLASSHASH_SIZE: 4096
[ 0.000000] ... MAX_LOCKDEP_ENTRIES: 32768
[ 0.000000] ... MAX_LOCKDEP_CHAINS: 65536
[ 0.000000] ... CHAINHASH_SIZE: 32768
[ 0.000000] memory used by lock dependency info: 8159 kB
[ 0.000000] per task-struct memory footprint: 1920 bytes
[ 0.000000] clocksource: hpet: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 133484882848 ns
[ 0.000000] hpet clockevent registered
[ 0.000000] tsc: Fast TSC calibration using PIT
[ 0.000000] tsc: Detected 1596.395 MHz processor
[ 0.000004] Calibrating delay loop (skipped), value calculated using timer frequency.. 3192.79 BogoMIPS (lpj=6385580)
[ 0.000020] pid_max: default: 32768 minimum: 301
[ 0.000054] ACPI: Core revision 20150930
[ 0.024960] ACPI: 5 ACPI AML tables successfully acquired and loaded
[ 0.025118] Security Framework initialized
[ 0.025128] Yama: becoming mindful.
[ 0.025176] AppArmor: AppArmor initialized
[ 0.025924] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
[ 0.027082] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
[ 0.027565] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.027586] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.029292] Initializing cgroup subsys io
[ 0.029345] Initializing cgroup subsys memory
[ 0.029374] Initializing cgroup subsys devices
[ 0.029422] Initializing cgroup subsys freezer
[ 0.029470] Initializing cgroup subsys perf_event
[ 0.029486] Initializing cgroup subsys hugetlb
[ 0.029559] Disabled fast string operations
[ 0.029567] CPU: Physical Processor ID: 0
[ 0.029574] CPU: Processor Core ID: 0
[ 0.029585] ENERGY_PERF_BIAS: Set to 'normal', was 'performance'
[ 0.029593] ENERGY_PERF_BIAS: View and update with x86_energy_perf_policy(8)
[ 0.029604] mce: CPU supports 7 MCE banks
[ 0.029649] CPU0: Thermal monitoring enabled (TM1)
[ 0.029674] process: using mwait in idle threads
[ 0.029684] Last level iTLB entries: 4KB 512, 2MB 8, 4MB 8
[ 0.029692] Last level dTLB entries: 4KB 512, 2MB 32, 4MB 32, 1GB 0
[ 0.030373] Freeing SMP alternatives memory: 28K (ffffffff821f6000 - ffffffff821fd000)
[ 0.042328] ftrace: allocating 213684 entries in 835 pages
[ 0.151134] x2apic: IRQ remapping doesn't support X2APIC mode
[ 0.151789] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[ 0.191488] TSC deadline timer enabled
[ 0.191494] smpboot: CPU0: Intel(R) Core(TM) i5-2467M CPU @ 1.60GHz (family: 0x6, model: 0x2a, stepping: 0x7)
[ 0.191551] Performance Events: PEBS fmt1+, 16-deep LBR, SandyBridge events, full-width counters, Intel PMU driver.
[ 0.191596] ... version: 3
[ 0.191602] ... bit width: 48
[ 0.191606] ... generic registers: 4
[ 0.191611] ... value mask: 0000ffffffffffff
[ 0.191617] ... max period: 0000ffffffffffff
[ 0.191622] ... fixed-purpose events: 3
[ 0.191627] ... event mask: 000000070000000f
[ 0.193776] x86: Booting SMP configuration:
[ 0.193784] .... node #0, CPUs: #1
[ 0.194137] Disabled fast string operations
[ 0.196720] NMI watchdog: enabled on all CPUs, permanently consumes one hw-PMU counter.
[ 0.197292] #2
[ 0.197604] Disabled fast string operations
[ 0.200257] #3<6>[ 0.200571] Disabled fast string operations
[ 0.202717] x86: Booted up 1 node, 4 CPUs
[ 0.202730] smpboot: Total of 4 processors activated (12771.16 BogoMIPS)
[ 0.207314] devtmpfs: initialized
[ 0.213945] evm: security.selinux
[ 0.213952] evm: security.SMACK64
[ 0.213956] evm: security.capability
[ 0.214177] PM: Registering ACPI NVS region [mem 0xdae7f000-0xdaf9efff] (1179648 bytes)
[ 0.214571] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.216276] NET: Registered protocol family 16
[ 0.226270] cpuidle: using governor ladder
[ 0.242192] cpuidle: using governor menu
[ 0.242354] ACPI: bus type PCI registered
[ 0.242654] PCI: MMCONFIG for domain 0000 [bus 00-3f] at [mem 0xf8000000-0xfbffffff] (base 0xf8000000)
[ 0.242666] PCI: MMCONFIG at [mem 0xf8000000-0xfbffffff] reserved in E820
[ 0.242681] PCI: Using configuration type 1 for base access
[ 0.243415] perf_event_intel: PMU erratum BJ122, BV98, HSD29 worked around, HT is on
[ 0.259885] ACPI: Added _OSI(Module Device)
[ 0.259893] ACPI: Added _OSI(Processor Device)
[ 0.259900] ACPI: Added _OSI(3.0 _SCP Extensions)
[ 0.259906] ACPI: Added _OSI(Processor Aggregator Device)
[ 0.274064] ACPI: Executed 1 blocks of module-level executable AML code
[ 0.284292] [Firmware Bug]: ACPI: BIOS _OSI(Linux) query ignored
[ 0.286297] ACPI: Dynamic OEM Table Load:
[ 0.286334] ACPI: SSDT 0xFFFF88011A7A0000 000688 (v01 PmRef Cpu0Cst 00003001 INTL 20061109)
[ 0.288868] ACPI: Dynamic OEM Table Load:
[ 0.288896] ACPI: SSDT 0xFFFF88011A7A8000 000303 (v01 PmRef ApIst 00003000 INTL 20061109)
[ 0.291241] ACPI: Dynamic OEM Table Load:
[ 0.291268] ACPI: SSDT 0xFFFF88011A7A1A00 000119 (v01 PmRef ApCst 00003000 INTL 20061109)
[ 0.295209] ACPI : EC: EC started
[ 0.296821] ACPI: Interpreter enabled
[ 0.296846] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S2_] (20150930/hwxface-578)
[ 0.296911] ACPI: (supports S0 S1 S3 S4 S5)
[ 0.296917] ACPI: Using IOAPIC for interrupt routing
[ 0.297000] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[ 0.321749] ACPI: Power Resource [FN00] (off)
[ 0.322255] ACPI: Power Resource [FN01] (off)
[ 0.322675] ACPI: Power Resource [FN02] (off)
[ 0.323061] ACPI: Power Resource [FN03] (off)
[ 0.323448] ACPI: Power Resource [FN04] (off)
[ 0.326190] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-3e])
[ 0.326205] acpi PNP0A08:00: _OSC: OS supports [ExtendedConfig ASPM ClockPM Segments MSI]
[ 0.326954] \_SB_.PCI0:_OSC invalid UUID
[ 0.326957] _OSC request data:1 1f 0
[ 0.326964] acpi PNP0A08:00: _OSC failed (AE_ERROR); disabling ASPM
[ 0.328010] PCI host bridge to bus 0000:00
[ 0.328018] pci_bus 0000:00: root bus resource [io 0x0000-0x0cf7 window]
[ 0.328026] pci_bus 0000:00: root bus resource [io 0x0d00-0xffff window]
[ 0.328034] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff window]
[ 0.328043] pci_bus 0000:00: root bus resource [mem 0xdfa00000-0xfeafffff window]
[ 0.328052] pci_bus 0000:00: root bus resource [mem 0xfed40000-0xfed44fff window]
[ 0.328062] pci_bus 0000:00: root bus resource [bus 00-3e]
[ 0.328160] pci 0000:00:00.0: [8086:0104] type 00 class 0x060000
[ 0.328595] pci 0000:00:02.0: [8086:0116] type 00 class 0x030000
[ 0.328625] pci 0000:00:02.0: reg 0x10: [mem 0xf0000000-0xf03fffff 64bit]
[ 0.328638] pci 0000:00:02.0: reg 0x18: [mem 0xe0000000-0xefffffff 64bit pref]
[ 0.328647] pci 0000:00:02.0: reg 0x20: [io 0x3000-0x303f]
[ 0.329135] pci 0000:00:16.0: [8086:1c3a] type 00 class 0x078000
[ 0.329199] pci 0000:00:16.0: reg 0x10: [mem 0xf0705000-0xf070500f 64bit]
[ 0.329331] pci 0000:00:16.0: PME# supported from D0 D3hot D3cold
[ 0.329724] pci 0000:00:1a.0: [8086:1c2d] type 00 class 0x0c0320
[ 0.329780] pci 0000:00:1a.0: reg 0x10: [mem 0xf070a000-0xf070a3ff]
[ 0.329931] pci 0000:00:1a.0: PME# supported from D0 D3hot D3cold
[ 0.330279] pci 0000:00:1b.0: [8086:1c20] type 00 class 0x040300
[ 0.330351] pci 0000:00:1b.0: reg 0x10: [mem 0xf0700000-0xf0703fff 64bit]
[ 0.330512] pci 0000:00:1b.0: PME# supported from D0 D3hot D3cold
[ 0.330729] pci 0000:00:1b.0: System wakeup disabled by ACPI
[ 0.330914] pci 0000:00:1c.0: [8086:1c10] type 01 class 0x060400
[ 0.331086] pci 0000:00:1c.0: PME# supported from D0 D3hot D3cold
[ 0.331272] pci 0000:00:1c.0: System wakeup disabled by ACPI
[ 0.331461] pci 0000:00:1c.3: [8086:1c16] type 01 class 0x060400
[ 0.331631] pci 0000:00:1c.3: PME# supported from D0 D3hot D3cold
[ 0.331816] pci 0000:00:1c.3: System wakeup disabled by ACPI
[ 0.332002] pci 0000:00:1c.4: [8086:1c18] type 01 class 0x060400
[ 0.332178] pci 0000:00:1c.4: PME# supported from D0 D3hot D3cold
[ 0.332551] pci 0000:00:1d.0: [8086:1c26] type 00 class 0x0c0320
[ 0.332608] pci 0000:00:1d.0: reg 0x10: [mem 0xf0709000-0xf07093ff]
[ 0.332761] pci 0000:00:1d.0: PME# supported from D0 D3hot D3cold
[ 0.333104] pci 0000:00:1f.0: [8086:1c49] type 00 class 0x060100
[ 0.333593] pci 0000:00:1f.2: [8086:1c03] type 00 class 0x010601
[ 0.333654] pci 0000:00:1f.2: reg 0x10: [io 0x3088-0x308f]
[ 0.333672] pci 0000:00:1f.2: reg 0x14: [io 0x3094-0x3097]
[ 0.333689] pci 0000:00:1f.2: reg 0x18: [io 0x3080-0x3087]
[ 0.333707] pci 0000:00:1f.2: reg 0x1c: [io 0x3090-0x3093]
[ 0.333725] pci 0000:00:1f.2: reg 0x20: [io 0x3060-0x307f]
[ 0.333742] pci 0000:00:1f.2: reg 0x24: [mem 0xf0708000-0xf07087ff]
[ 0.333826] pci 0000:00:1f.2: PME# supported from D3hot
[ 0.334161] pci 0000:00:1f.3: [8086:1c22] type 00 class 0x0c0500
[ 0.334200] pci 0000:00:1f.3: reg 0x10: [mem 0xf0704000-0xf07040ff 64bit]
[ 0.334248] pci 0000:00:1f.3: reg 0x20: [io 0xefa0-0xefbf]
[ 0.334994] pci 0000:01:00.0: [8086:0091] type 00 class 0x028000
[ 0.335650] pci 0000:01:00.0: reg 0x10: [mem 0xf0600000-0xf0601fff 64bit]
[ 0.337172] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[ 0.337629] pci 0000:01:00.0: System wakeup disabled by ACPI
[ 0.346589] pci 0000:00:1c.0: PCI bridge to [bus 01]
[ 0.346607] pci 0000:00:1c.0: bridge window [mem 0xf0600000-0xf06fffff]
[ 0.346841] pci 0000:02:00.0: [10ec:8168] type 00 class 0x020000
[ 0.347042] pci 0000:02:00.0: reg 0x10: [io 0x2000-0x20ff]
[ 0.347182] pci 0000:02:00.0: reg 0x18: [mem 0xf0404000-0xf0404fff 64bit pref]
[ 0.347268] pci 0000:02:00.0: reg 0x20: [mem 0xf0400000-0xf0403fff 64bit pref]
[ 0.347630] pci 0000:02:00.0: supports D1 D2
[ 0.347632] pci 0000:02:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[ 0.347837] pci 0000:02:00.0: System wakeup disabled by ACPI
[ 0.358517] pci 0000:00:1c.3: PCI bridge to [bus 02]
[ 0.358529] pci 0000:00:1c.3: bridge window [io 0x2000-0x2fff]
[ 0.358545] pci 0000:00:1c.3: bridge window [mem 0xf0400000-0xf04fffff 64bit pref]
[ 0.358747] pci 0000:03:00.0: [1b21:1042] type 00 class 0x0c0330
[ 0.358830] pci 0000:03:00.0: reg 0x10: [mem 0xf0500000-0xf0507fff 64bit]
[ 0.359077] pci 0000:03:00.0: PME# supported from D3hot D3cold
[ 0.359385] pci 0000:00:1c.4: PCI bridge to [bus 03]
[ 0.359402] pci 0000:00:1c.4: bridge window [mem 0xf0500000-0xf05fffff]
[ 0.361744] ACPI: PCI Interrupt Link [LNKA] (IRQs 1 3 4 5 6 10 *11 12 14 15)
[ 0.361958] ACPI: PCI Interrupt Link [LNKB] (IRQs 1 3 4 5 6 10 11 12 14 15) *0, disabled.
[ 0.362172] ACPI: PCI Interrupt Link [LNKC] (IRQs 1 3 4 5 6 *10 11 12 14 15)
[ 0.362394] ACPI: PCI Interrupt Link [LNKD] (IRQs 1 3 4 5 6 *10 11 12 14 15)
[ 0.362622] ACPI: PCI Interrupt Link [LNKE] (IRQs 1 3 4 5 6 10 11 12 14 15) *9
[ 0.362833] ACPI: PCI Interrupt Link [LNKF] (IRQs 1 3 4 5 6 10 11 12 14 15) *0, disabled.
[ 0.363045] ACPI: PCI Interrupt Link [LNKG] (IRQs 1 3 4 5 6 10 *11 12 14 15)
[ 0.363253] ACPI: PCI Interrupt Link [LNKH] (IRQs 1 3 4 5 6 10 11 12 14 15) *9
[ 0.364740] ACPI: Enabled 4 GPEs in block 00 to 3F
[ 0.364912] ACPI : EC: GPE = 0x17, I/O: command/status = 0x66, data = 0x62
[ 0.365243] ACPI : EC: 0 stale EC events cleared
[ 0.366042] vgaarb: setting as boot device: PCI:0000:00:02.0
[ 0.366050] vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
[ 0.366067] vgaarb: loaded
[ 0.366072] vgaarb: bridge control possible 0000:00:02.0
[ 0.366857] SCSI subsystem initialized
[ 0.367035] libata version 3.00 loaded.
[ 0.367133] ACPI: bus type USB registered
[ 0.367216] usbcore: registered new interface driver usbfs
[ 0.367259] usbcore: registered new interface driver hub
[ 0.367347] usbcore: registered new device driver usb
[ 0.367848] PCI: Using ACPI for IRQ routing
[ 0.371557] PCI: pci_cache_line_size set to 64 bytes
[ 0.371692] e820: reserve RAM buffer [mem 0x0009d800-0x0009ffff]
[ 0.371702] e820: reserve RAM buffer [mem 0xd9c9f000-0xdbffffff]
[ 0.371705] e820: reserve RAM buffer [mem 0xdb000000-0xdbffffff]
[ 0.371708] e820: reserve RAM buffer [mem 0x11fe00000-0x11fffffff]
[ 0.372570] NetLabel: Initializing
[ 0.372577] NetLabel: domain hash size = 128
[ 0.372581] NetLabel: protocols = UNLABELED CIPSOv4
[ 0.372645] NetLabel: unlabeled traffic allowed by default
[ 0.372879] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0, 0, 0, 0, 0, 0
[ 0.372895] hpet0: 8 comparators, 64-bit 14.318180 MHz counter
[ 0.374997] clocksource: Switched to clocksource hpet
[ 0.422263] AppArmor: AppArmor Filesystem Enabled
[ 0.422555] pnp: PnP ACPI init
[ 0.423250] system 00:00: [io 0x0680-0x069f] has been reserved
[ 0.423261] system 00:00: [io 0x1000-0x100f] has been reserved
[ 0.423270] system 00:00: [io 0x5000-0x5003] has been reserved
[ 0.423278] system 00:00: [io 0xffff] has been reserved
[ 0.423286] system 00:00: [io 0x0400-0x0453] could not be reserved
[ 0.423295] system 00:00: [io 0x0458-0x047f] has been reserved
[ 0.423303] system 00:00: [io 0x0500-0x057f] has been reserved
[ 0.423310] system 00:00: [io 0x0a00-0x0a0f] has been reserved
[ 0.423318] system 00:00: [io 0x164e-0x164f] has been reserved
[ 0.423327] system 00:00: [io 0x5000-0x500f] could not be reserved
[ 0.423370] system 00:00: Plug and Play ACPI device, IDs PNP0c02 (active)
[ 0.423472] pnp 00:01: Plug and Play ACPI device, IDs PNP0b00 (active)
[ 0.423653] system 00:02: [io 0x0454-0x0457] has been reserved
[ 0.423666] system 00:02: Plug and Play ACPI device, IDs INT3f0d PNP0c02 (active)
[ 0.423781] pnp 00:03: Plug and Play ACPI device, IDs PNP0303 (active)
[ 0.423927] pnp 00:04: Plug and Play ACPI device, IDs ETD0b00 SYN0002 PNP0f13 (active)
[ 0.424438] system 00:05: [mem 0xfed1c000-0xfed1ffff] has been reserved
[ 0.424447] system 00:05: [mem 0xfed10000-0xfed17fff] has been reserved
[ 0.424456] system 00:05: [mem 0xfed18000-0xfed18fff] has been reserved
[ 0.424467] system 00:05: [mem 0xfed19000-0xfed19fff] has been reserved
[ 0.424475] system 00:05: [mem 0xf8000000-0xfbffffff] has been reserved
[ 0.424484] system 00:05: [mem 0xfed20000-0xfed3ffff] has been reserved
[ 0.424492] system 00:05: [mem 0xfed90000-0xfed93fff] has been reserved
[ 0.424501] system 00:05: [mem 0xfed45000-0xfed8ffff] has been reserved
[ 0.424510] system 00:05: [mem 0xff000000-0xffffffff] could not be reserved
[ 0.424519] system 00:05: [mem 0xfee00000-0xfeefffff] could not be reserved
[ 0.424532] system 00:05: Plug and Play ACPI device, IDs PNP0c02 (active)
[ 0.425566] system 00:06: Plug and Play ACPI device, IDs PNP0c01 (active)
[ 0.425631] pnp: PnP ACPI: found 7 devices
[ 0.437594] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns
[ 0.437661] pci 0000:00:1c.0: PCI bridge to [bus 01]
[ 0.437675] pci 0000:00:1c.0: bridge window [mem 0xf0600000-0xf06fffff]
[ 0.437696] pci 0000:00:1c.3: PCI bridge to [bus 02]
[ 0.437705] pci 0000:00:1c.3: bridge window [io 0x2000-0x2fff]
[ 0.437722] pci 0000:00:1c.3: bridge window [mem 0xf0400000-0xf04fffff 64bit pref]
[ 0.437740] pci 0000:00:1c.4: PCI bridge to [bus 03]
[ 0.437753] pci 0000:00:1c.4: bridge window [mem 0xf0500000-0xf05fffff]
[ 0.437775] pci_bus 0000:00: resource 4 [io 0x0000-0x0cf7 window]
[ 0.437777] pci_bus 0000:00: resource 5 [io 0x0d00-0xffff window]
[ 0.437780] pci_bus 0000:00: resource 6 [mem 0x000a0000-0x000bffff window]
[ 0.437782] pci_bus 0000:00: resource 7 [mem 0xdfa00000-0xfeafffff window]
[ 0.437784] pci_bus 0000:00: resource 8 [mem 0xfed40000-0xfed44fff window]
[ 0.437786] pci_bus 0000:01: resource 1 [mem 0xf0600000-0xf06fffff]
[ 0.437789] pci_bus 0000:02: resource 0 [io 0x2000-0x2fff]
[ 0.437791] pci_bus 0000:02: resource 2 [mem 0xf0400000-0xf04fffff 64bit pref]
[ 0.437794] pci_bus 0000:03: resource 1 [mem 0xf0500000-0xf05fffff]
[ 0.437953] NET: Registered protocol family 2
[ 0.438593] TCP established hash table entries: 32768 (order: 6, 262144 bytes)
[ 0.438920] TCP bind hash table entries: 32768 (order: 9, 2097152 bytes)
[ 0.441350] TCP: Hash tables configured (established 32768 bind 32768)
[ 0.441489] UDP hash table entries: 2048 (order: 6, 327680 bytes)
[ 0.441839] UDP-Lite hash table entries: 2048 (order: 6, 327680 bytes)
[ 0.442450] NET: Registered protocol family 1
[ 0.442492] pci 0000:00:02.0: Video device with shadowed ROM
[ 0.442699] PCI: CLS 64 bytes, default 64
[ 0.443066] Trying to unpack rootfs image as initramfs...
[ 0.544418] Freeing initrd memory: 3836K (ffff880037872000 - ffff880037c31000)
[ 0.544441] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[ 0.544449] software IO TLB [mem 0xd5c9f000-0xd9c9f000] (64MB) mapped at [ffff8800d5c9f000-ffff8800d9c9efff]
[ 0.544628] RAPL PMU detected, API unit is 2^-32 Joules, 3 fixed counters 163840 ms ovfl timer
[ 0.544639] hw unit of domain pp0-core 2^-16 Joules
[ 0.544644] hw unit of domain package 2^-16 Joules
[ 0.544649] hw unit of domain pp1-gpu 2^-16 Joules
[ 0.544970] Scanning for low memory corruption every 60 seconds
[ 0.546470] futex hash table entries: 2048 (order: 6, 262144 bytes)
[ 0.546681] audit: initializing netlink subsys (disabled)
[ 0.546774] audit: type=2000 audit(1457220162.488:1): initialized
[ 0.547918] Initialise system trusted keyring
[ 0.548463] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[ 0.549015] VFS: Disk quotas dquot_6.6.0
[ 0.549062] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.550023] fuse init (API version 7.23)
[ 0.552525] Key type asymmetric registered
[ 0.552552] Asymmetric key parser 'x509' registered
[ 0.552610] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[ 0.552790] io scheduler noop registered
[ 0.552800] io scheduler deadline registered (default)
[ 0.552848] io scheduler cfq registered
[ 0.552857] start plist test
[ 0.555060] end plist test
[ 0.556668] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[ 0.556701] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
[ 0.556950] intel_idle: MWAIT substates: 0x21120
[ 0.556952] intel_idle: v0.4 model 0x2A
[ 0.556954] intel_idle: lapic_timer_reliable_states 0xffffffff
[ 0.558480] ACPI: AC Adapter [ADP1] (on-line)
[ 0.558770] input: Lid Switch as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input0
[ 0.558829] ACPI: Lid Switch [LID0]
[ 0.559024] input: Power Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input1
[ 0.559084] ACPI: Power Button [PWRB]
[ 0.559257] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input2
[ 0.559270] ACPI: Power Button [PWRF]
[ 0.563583] thermal LNXTHERM:00: registered as thermal_zone0
[ 0.563593] ACPI: Thermal Zone [TZ00] (58 C)
[ 0.564506] thermal LNXTHERM:01: registered as thermal_zone1
[ 0.564514] ACPI: Thermal Zone [TZ01] (30 C)
[ 0.564642] GHES: HEST is not enabled!
[ 0.564895] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled
[ 0.573804] ACPI: Battery Slot [BAT1] (battery present)
[ 0.574090] Linux agpgart interface v0.103
[ 0.586285] brd: module loaded
[ 0.592734] loop: module loaded
[ 0.597853] ahci 0000:00:1f.2: version 3.0
[ 0.598341] ahci 0000:00:1f.2: SSS flag set, parallel bus scan disabled
[ 0.611167] ahci 0000:00:1f.2: AHCI 0001.0300 32 slots 6 ports 6 Gbps 0x1b impl SATA mode
[ 0.611182] ahci 0000:00:1f.2: flags: 64bit ncq sntf ilck stag pm led clo pio slum part ems sxs apst
[ 0.637818] scsi host0: ahci
[ 0.638506] scsi host1: ahci
[ 0.639040] scsi host2: ahci
[ 0.639557] scsi host3: ahci
[ 0.640160] scsi host4: ahci
[ 0.640607] scsi host5: ahci
[ 0.640848] ata1: SATA max UDMA/133 abar m2048@0xf0708000 port 0xf0708100 irq 25
[ 0.640859] ata2: SATA max UDMA/133 abar m2048@0xf0708000 port 0xf0708180 irq 25
[ 0.640867] ata3: DUMMY
[ 0.640873] ata4: SATA max UDMA/133 abar m2048@0xf0708000 port 0xf0708280 irq 25
[ 0.640882] ata5: SATA max UDMA/133 abar m2048@0xf0708000 port 0xf0708300 irq 25
[ 0.640890] ata6: DUMMY
[ 0.642557] libphy: Fixed MDIO Bus: probed
[ 0.643012] tun: Universal TUN/TAP device driver, 1.6
[ 0.643018] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[ 0.643239] PPP generic driver version 2.4.2
[ 0.643408] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.643418] ehci-pci: EHCI PCI platform driver
[ 0.643905] ehci-pci 0000:00:1a.0: EHCI Host Controller
[ 0.644123] ehci-pci 0000:00:1a.0: new USB bus registered, assigned bus number 1
[ 0.644212] ehci-pci 0000:00:1a.0: debug port 2
[ 0.648180] ehci-pci 0000:00:1a.0: cache line size of 64 is not supported
[ 0.648255] ehci-pci 0000:00:1a.0: irq 16, io mem 0xf070a000
[ 0.659171] ehci-pci 0000:00:1a.0: USB 2.0 started, EHCI 1.00
[ 0.659592] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 0.659600] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.659608] usb usb1: Product: EHCI Host Controller
[ 0.659613] usb usb1: Manufacturer: Linux 4.4.4-3-llvmlinux-amd64 ehci_hcd
[ 0.659619] usb usb1: SerialNumber: 0000:00:1a.0
[ 0.660707] hub 1-0:1.0: USB hub found
[ 0.660754] hub 1-0:1.0: 2 ports detected
[ 0.662149] ehci-pci 0000:00:1d.0: EHCI Host Controller
[ 0.662173] ehci-pci 0000:00:1d.0: new USB bus registered, assigned bus number 2
[ 0.662225] ehci-pci 0000:00:1d.0: debug port 2
[ 0.666154] ehci-pci 0000:00:1d.0: cache line size of 64 is not supported
[ 0.666194] ehci-pci 0000:00:1d.0: irq 23, io mem 0xf0709000
[ 0.675066] ehci-pci 0000:00:1d.0: USB 2.0 started, EHCI 1.00
[ 0.675244] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[ 0.675251] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.675258] usb usb2: Product: EHCI Host Controller
[ 0.675263] usb usb2: Manufacturer: Linux 4.4.4-3-llvmlinux-amd64 ehci_hcd
[ 0.675269] usb usb2: SerialNumber: 0000:00:1d.0
[ 0.675840] hub 2-0:1.0: USB hub found
[ 0.675867] hub 2-0:1.0: 2 ports detected
[ 0.676324] ehci-platform: EHCI generic platform driver
[ 0.676377] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.676401] ohci-pci: OHCI PCI platform driver
[ 0.676440] ohci-platform: OHCI generic platform driver
[ 0.676471] uhci_hcd: USB Universal Host Controller Interface driver
[ 0.676697] xhci_hcd 0000:03:00.0: xHCI Host Controller
[ 0.676725] xhci_hcd 0000:03:00.0: new USB bus registered, assigned bus number 3
[ 0.681203] xhci_hcd 0000:03:00.0: hcc params 0x0200f180 hci version 0x96 quirks 0x00080000
[ 0.681822] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
[ 0.681829] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.681837] usb usb3: Product: xHCI Host Controller
[ 0.681842] usb usb3: Manufacturer: Linux 4.4.4-3-llvmlinux-amd64 xhci-hcd
[ 0.681848] usb usb3: SerialNumber: 0000:03:00.0
[ 0.682399] hub 3-0:1.0: USB hub found
[ 0.682458] hub 3-0:1.0: 2 ports detected
[ 0.682878] xhci_hcd 0000:03:00.0: xHCI Host Controller
[ 0.682896] xhci_hcd 0000:03:00.0: new USB bus registered, assigned bus number 4
[ 0.683024] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[ 0.683138] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003
[ 0.683145] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.683152] usb usb4: Product: xHCI Host Controller
[ 0.683157] usb usb4: Manufacturer: Linux 4.4.4-3-llvmlinux-amd64 xhci-hcd
[ 0.683163] usb usb4: SerialNumber: 0000:03:00.0
[ 0.683795] hub 4-0:1.0: USB hub found
[ 0.683848] hub 4-0:1.0: 2 ports detected
[ 0.684465] i8042: PNP: PS/2 Controller [PNP0303:PS2K,PNP0f13:EPAD] at 0x60,0x64 irq 1,12
[ 0.690596] serio: i8042 KBD port at 0x60,0x64 irq 1
[ 0.690650] serio: i8042 AUX port at 0x60,0x64 irq 12
[ 0.691631] mousedev: PS/2 mouse device common for all mice
[ 0.693354] rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
[ 0.693407] rtc_cmos 00:01: alarms up to one month, y3k, 242 bytes nvram, hpet irqs
[ 0.693515] device-mapper: uevent: version 1.0.3
[ 0.693761] device-mapper: ioctl: 4.34.0-ioctl (2015-10-28) initialised: dm-devel@redhat.com
[ 0.693803] Intel P-state driver initializing.
[ 0.695110] ledtrig-cpu: registered to indicate activity on CPUs
[ 0.696006] NET: Registered protocol family 10
[ 0.698318] NET: Registered protocol family 17
[ 0.698398] Key type dns_resolver registered
[ 0.699899] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input3
[ 0.701085] microcode: CPU0 sig=0x206a7, pf=0x10, revision=0x28
[ 0.701122] microcode: CPU1 sig=0x206a7, pf=0x10, revision=0x28
[ 0.701145] microcode: CPU2 sig=0x206a7, pf=0x10, revision=0x28
[ 0.701183] microcode: CPU3 sig=0x206a7, pf=0x10, revision=0x28
[ 0.701353] microcode: Microcode Update Driver: v2.01 <tigran@aivazian.fsnet.co.uk>, Peter Oruba
[ 0.701925] registered taskstats version 1
[ 0.701943] Loading compiled-in X.509 certificates
[ 0.703036] Loaded X.509 cert 'Build time autogenerated kernel key: d861534734a1854c045ffb7a95ace7fffd94d654'
[ 0.709044] Key type trusted registered
[ 0.717567] Key type encrypted registered
[ 0.717591] AppArmor: AppArmor sha1 policy hashing enabled
[ 0.717601] evm: HMAC attrs: 0x1
[ 0.718648] rtc_cmos 00:01: setting system clock to 2016-03-05 23:22:42 UTC (1457220162)
[ 0.718822] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
[ 0.718829] EDD information not available.
[ 0.959169] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 0.971167] usb 1-1: new high-speed USB device number 2 using ehci-pci
[ 0.987155] usb 2-1: new high-speed USB device number 2 using ehci-pci
[ 0.989540] ata1.00: ATA-8: Hitachi HTS545050A7E380, GG2OA6C0, max UDMA/133
[ 0.989569] ata1.00: 976773168 sectors, multi 16: LBA48 NCQ (depth 31/32), AA
[ 0.990965] ata1.00: configured for UDMA/133
[ 0.992115] scsi 0:0:0:0: Direct-Access ATA Hitachi HTS54505 A6C0 PQ: 0 ANSI: 5
[ 0.993463] sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[ 0.993475] sd 0:0:0:0: [sda] 4096-byte physical blocks
[ 0.993712] sd 0:0:0:0: [sda] Write Protect is off
[ 0.993721] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 0.993861] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 0.993964] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 1.033689] sda: sda1 sda2 sda3
[ 1.035228] sd 0:0:0:0: [sda] Attached SCSI disk
[ 1.104027] usb 1-1: New USB device found, idVendor=8087, idProduct=0024
[ 1.104039] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 1.105028] hub 1-1:1.0: USB hub found
[ 1.105344] hub 1-1:1.0: 6 ports detected
[ 1.119994] usb 2-1: New USB device found, idVendor=8087, idProduct=0024
[ 1.120006] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 1.120897] hub 2-1:1.0: USB hub found
[ 1.121219] hub 2-1:1.0: 6 ports detected
[ 1.315144] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 1.316035] ata2.00: ATA-8: SanDisk iSSD P4 16GB, SSD 9.14, max UDMA/133
[ 1.316060] ata2.00: 31277232 sectors, multi 1: LBA48
[ 1.316788] ata2.00: configured for UDMA/133
[ 1.317407] scsi 1:0:0:0: Direct-Access ATA SanDisk iSSD P4 9.14 PQ: 0 ANSI: 5
[ 1.318246] sd 1:0:0:0: [sdb] 31277232 512-byte logical blocks: (16.0 GB/14.9 GiB)
[ 1.318391] sd 1:0:0:0: Attached scsi generic sg1 type 0
[ 1.318414] sd 1:0:0:0: [sdb] Write Protect is off
[ 1.318423] sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[ 1.318471] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 1.319759] sdb: sdb1 sdb2
[ 1.320699] sd 1:0:0:0: [sdb] Attached SCSI disk
[ 1.379148] usb 1-1.4: new high-speed USB device number 3 using ehci-pci
[ 1.395147] usb 2-1.4: new low-speed USB device number 3 using ehci-pci
[ 1.493858] usb 2-1.4: New USB device found, idVendor=046d, idProduct=c00e
[ 1.493870] usb 2-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1.493878] usb 2-1.4: Product: USB-PS/2 Optical Mouse
[ 1.493883] usb 2-1.4: Manufacturer: Logitech
[ 1.543241] tsc: Refined TSC clocksource calibration: 1596.374 MHz
[ 1.543253] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x1702c3a922f, max_idle_ns: 440795242034 ns
[ 1.567145] usb 2-1.5: new full-speed USB device number 4 using ehci-pci
[ 1.635162] ata4: SATA link down (SStatus 0 SControl 300)
[ 1.635538] usb 1-1.4: New USB device found, idVendor=2232, idProduct=1018
[ 1.635557] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1.635565] usb 1-1.4: Product: WebCam SC-13HDL11431N
[ 1.635570] usb 1-1.4: Manufacturer: 123
[ 1.664643] usb 2-1.5: New USB device found, idVendor=8086, idProduct=0189
[ 1.664655] usb 2-1.5: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 1.955153] ata5: SATA link down (SStatus 0 SControl 300)
[ 1.959594] Freeing unused kernel memory: 2900K (ffffffff81f21000 - ffffffff821f6000)
[ 1.959608] Write protecting the kernel read-only data: 14336k
[ 1.960776] Freeing unused kernel memory: 912K (ffff88000191c000 - ffff880001a00000)
[ 1.963811] Freeing unused kernel memory: 756K (ffff880001d43000 - ffff880001e00000)
[ 2.000842] udevd[161]: starting version 175
[ 2.324351] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[ 2.324384] r8169 0000:02:00.0: can't disable ASPM; OS doesn't have ASPM control
[ 2.330394] r8169 0000:02:00.0 eth0: RTL8168evl/8111evl at 0xffffc900009e4000, e8:03:9a:36:17:a9, XID 0c900800 IRQ 31
[ 2.330420] r8169 0000:02:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
[ 2.350896] usbcore: registered new interface driver usbhid
[ 2.350913] usbhid: USB HID core driver
[ 2.418892] input: Logitech USB-PS/2 Optical Mouse as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4:1.0/0003:046D:C00E.0001/input/input5
[ 2.419584] hid-generic 0003:046D:C00E.0001: input: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-0000:00:1d.0-1.4/input0
[ 2.543414] clocksource: Switched to clocksource tsc
[ 3.065136] EXT4-fs (loop0): mounted filesystem with ordered data mode. Opts: (null)
[ 3.706992] random: nonblocking pool is initialized
[ 4.174994] usb 1-1.2: new high-speed USB device number 4 using ehci-pci
[ 4.270381] usb 1-1.2: New USB device found, idVendor=12d1, idProduct=1446
[ 4.270411] usb 1-1.2: New USB device strings: Mfr=3, Product=2, SerialNumber=0
[ 4.270419] usb 1-1.2: Product: HUAWEI Mobile
[ 4.270424] usb 1-1.2: Manufacturer: HUAWEI Technology
[ 5.039742] init: ureadahead main process (449) terminated with status 5
[ 9.102626] Adding 262140k swap on /host/ubuntu/disks/swap.disk. Priority:-1 extents:1 across:262140k FS
[ 9.353043] EXT4-fs (loop0): re-mounted. Opts: errors=remount-ro
[ 9.514236] udevd[673]: starting version 175
[ 10.785058] lp: driver loaded but no devices found
[ 12.741706] ACPI Warning: SystemIO range 0x0000000000000428-0x000000000000042F conflicts with OpRegion 0x0000000000000400-0x000000000000047F (\PMIO) (20150930/utaddress-245)
[ 12.741723] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[ 12.741732] ACPI Warning: SystemIO range 0x0000000000000540-0x000000000000054F conflicts with OpRegion 0x0000000000000500-0x0000000000000563 (\GPIO) (20150930/utaddress-245)
[ 12.741742] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[ 12.741747] ACPI Warning: SystemIO range 0x0000000000000530-0x000000000000053F conflicts with OpRegion 0x0000000000000500-0x0000000000000563 (\GPIO) (20150930/utaddress-245)
[ 12.741755] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[ 12.741760] ACPI Warning: SystemIO range 0x0000000000000500-0x000000000000052F conflicts with OpRegion 0x0000000000000500-0x0000000000000563 (\GPIO) (20150930/utaddress-245)
[ 12.741768] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[ 12.741771] lpc_ich: Resource conflict(s) found affecting gpio_ich
[ 12.861264] wmi: Mapper loaded
[ 13.211181] samsung_laptop: detected SABI interface: SwSmi@
[ 13.640094] [drm] Initialized drm 1.1.0 20060810
[ 13.773058] ppdev: user-space parallel port driver
[ 14.081480] Bluetooth: Core ver 2.21
[ 14.081552] NET: Registered protocol family 31
[ 14.081556] Bluetooth: HCI device and connection manager initialized
[ 14.081746] Bluetooth: HCI socket layer initialized
[ 14.081758] Bluetooth: L2CAP socket layer initialized
[ 14.081861] Bluetooth: SCO socket layer initialized
[ 14.869639] psmouse serio1: elantech: assuming hardware version 3 (with firmware version 0x450f00)
[ 14.884689] psmouse serio1: elantech: Synaptics capabilities query result 0x08, 0x17, 0x0c.
[ 14.900288] psmouse serio1: elantech: Elan sample query result 03, 3f, 86
[ 14.978038] input: ETPS/2 Elantech Touchpad as /devices/platform/i8042/serio1/input/input6
[ 15.071372] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[ 15.071760] scsi host6: usb-storage 1-1.2:1.0
[ 15.072422] usb-storage 1-1.2:1.1: USB Mass Storage device detected
[ 15.072693] scsi host7: usb-storage 1-1.2:1.1
[ 15.073296] usbcore: registered new interface driver usb-storage
[ 15.510421] cfg80211: World regulatory domain updated:
[ 15.510430] cfg80211: DFS Master region: unset
[ 15.510433] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[ 15.510439] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A)
[ 15.510444] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm), (N/A)
[ 15.510448] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm), (N/A)
[ 15.510452] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A)
[ 15.510455] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A)
[ 15.818897] audit: type=1400 audit(1457216577.597:2): apparmor="STATUS" operation="profile_load" name="/sbin/dhclient" pid=1085 comm="apparmor_parser"
[ 15.818909] audit: type=1400 audit(1457216577.597:3): apparmor="STATUS" operation="profile_load" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=1085 comm="apparmor_parser"
[ 15.818917] audit: type=1400 audit(1457216577.597:4): apparmor="STATUS" operation="profile_load" name="/usr/lib/connman/scripts/dhclient-script" pid=1085 comm="apparmor_parser"
[ 15.819050] audit: type=1400 audit(1457216577.597:5): apparmor="STATUS" operation="profile_replace" name="/sbin/dhclient" pid=1082 comm="apparmor_parser"
[ 15.819068] audit: type=1400 audit(1457216577.597:6): apparmor="STATUS" operation="profile_replace" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=1082 comm="apparmor_parser"
[ 15.819082] audit: type=1400 audit(1457216577.597:7): apparmor="STATUS" operation="profile_replace" name="/usr/lib/connman/scripts/dhclient-script" pid=1082 comm="apparmor_parser"
[ 15.819671] audit: type=1400 audit(1457216577.597:8): apparmor="STATUS" operation="profile_replace" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=1085 comm="apparmor_parser"
[ 15.819681] audit: type=1400 audit(1457216577.597:9): apparmor="STATUS" operation="profile_replace" name="/usr/lib/connman/scripts/dhclient-script" pid=1085 comm="apparmor_parser"
[ 15.819729] audit: type=1400 audit(1457216577.597:10): apparmor="STATUS" operation="profile_replace" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=1082 comm="apparmor_parser"
[ 15.819738] audit: type=1400 audit(1457216577.597:11): apparmor="STATUS" operation="profile_replace" name="/usr/lib/connman/scripts/dhclient-script" pid=1082 comm="apparmor_parser"
[ 16.074000] scsi 6:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
[ 16.074067] scsi 7:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2
[ 16.077765] sd 7:0:0:0: Attached scsi generic sg2 type 0
[ 16.081909] sd 7:0:0:0: [sdc] Attached SCSI removable disk
[ 16.083411] sr 6:0:0:0: [sr0] scsi-1 drive
[ 16.083415] cdrom: Uniform CD-ROM driver Revision: 3.20
[ 16.087948] sr 6:0:0:0: Attached scsi CD-ROM sr0
[ 16.088973] sr 6:0:0:0: Attached scsi generic sg3 type 5
[ 16.447369] usbcore: registered new interface driver btusb
[ 16.635712] Linux video capture interface: v2.00
[ 16.838479] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 16.838485] Bluetooth: BNEP filters: protocol multicast
[ 16.838499] Bluetooth: BNEP socket layer initialized
[ 16.972293] Bluetooth: RFCOMM TTY layer initialized
[ 16.972320] Bluetooth: RFCOMM socket layer initialized
[ 16.972339] Bluetooth: RFCOMM ver 1.11
[ 17.002588] Intel(R) Wireless WiFi driver for Linux
[ 17.002592] Copyright(c) 2003- 2015 Intel Corporation
[ 17.002960] iwlwifi 0000:01:00.0: can't disable ASPM; OS doesn't have ASPM control
[ 17.289252] usb 1-1.2: USB disconnect, device number 4
[ 17.503075] iwlwifi 0000:01:00.0: loaded firmware version 18.168.6.1 op_mode iwldvm
[ 17.521429] uvcvideo: Found UVC 1.00 device WebCam SC-13HDL11431N (2232:1018)
[ 17.541323] input: WebCam SC-13HDL11431N as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4/1-1.4:1.0/input/input7
[ 17.541817] usbcore: registered new interface driver uvcvideo
[ 17.541822] USB Video Class driver (1.1.1)
[ 17.674728] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC269VC: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[ 17.674737] snd_hda_codec_realtek hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 17.674742] snd_hda_codec_realtek hdaudioC0D0: hp_outs=1 (0x15/0x0/0x0/0x0/0x0)
[ 17.674746] snd_hda_codec_realtek hdaudioC0D0: mono: mono_out=0x0
[ 17.674750] snd_hda_codec_realtek hdaudioC0D0: inputs:
[ 17.674756] snd_hda_codec_realtek hdaudioC0D0: Internal Mic=0x19
[ 17.674781] snd_hda_codec_realtek hdaudioC0D0: Mic=0x18
[ 17.730254] init: failsafe main process (1134) killed by TERM signal
[ 17.735331] input: HDA Intel PCH Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input8
[ 17.766695] input: HDA Intel PCH Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input9
[ 17.767320] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1b.0/sound/card0/input10
[ 17.789476] [drm] Memory usable by graphics device = 2048M
[ 17.789558] [drm] Replacing VGA console driver
[ 17.797236] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 17.797239] [drm] Driver supports precise vblank timestamp query.
[ 17.799793] vgaarb: device changed decodes: PCI:0000:00:02.0,olddecodes=io+mem,decodes=io+mem:owns=io+mem
[ 17.816053] ACPI: Video Device [GFX0] (multi-head: yes rom: no post: no)
[ 17.816893] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input11
[ 17.818032] [drm] Initialized i915 1.6.0 20151010 for 0000:00:02.0 on minor 0
[ 17.957355] fbcon: inteldrmfb (fb0) is primary device
[ 18.361412] iwlwifi 0000:01:00.0: CONFIG_IWLWIFI_DEBUG disabled
[ 18.361414] iwlwifi 0000:01:00.0: CONFIG_IWLWIFI_DEBUGFS enabled
[ 18.361415] iwlwifi 0000:01:00.0: CONFIG_IWLWIFI_DEVICE_TRACING enabled
[ 18.361418] iwlwifi 0000:01:00.0: Detected Intel(R) Centrino(R) Advanced-N 6230 AGN, REV=0xB0
[ 18.361951] iwlwifi 0000:01:00.0: L1 Enabled - LTR Disabled
[ 18.525098] ieee80211 phy0: Selected rate control algorithm 'iwl-agn-rs'
[ 19.135302] Console: switching to colour frame buffer device 170x48
[ 19.139771] i915 0000:00:02.0: fb0: inteldrmfb frame buffer device
[ 20.830892] audit_printk_skb: 123 callbacks suppressed
[ 20.830898] audit: type=1400 audit(1457216582.609:53): apparmor="STATUS" operation="profile_replace" name="sanitized_helper" pid=1343 comm="apparmor_parser"
[ 20.834399] audit: type=1400 audit(1457216582.609:54): apparmor="STATUS" operation="profile_replace" name="/usr/bin/evince-previewer" pid=1343 comm="apparmor_parser"
[ 20.842812] audit: type=1400 audit(1457216582.621:55): apparmor="STATUS" operation="profile_replace" name="launchpad_integration" pid=1343 comm="apparmor_parser"
[ 20.842827] audit: type=1400 audit(1457216582.621:56): apparmor="STATUS" operation="profile_replace" name="sanitized_helper" pid=1343 comm="apparmor_parser"
[ 20.842837] audit: type=1400 audit(1457216582.621:57): apparmor="STATUS" operation="profile_replace" name="/usr/bin/evince-thumbnailer" pid=1343 comm="apparmor_parser"
[ 20.858904] audit: type=1400 audit(1457216582.637:58): apparmor="STATUS" operation="profile_replace" name="sanitized_helper" pid=1343 comm="apparmor_parser"
[ 20.863288] audit: type=1400 audit(1457216582.641:59): apparmor="STATUS" operation="profile_replace" name="launchpad_integration" pid=1343 comm="apparmor_parser"
[ 20.863298] audit: type=1400 audit(1457216582.641:60): apparmor="STATUS" operation="profile_replace" name="sanitized_helper" pid=1343 comm="apparmor_parser"
[ 20.863305] audit: type=1400 audit(1457216582.641:61): apparmor="STATUS" operation="profile_replace" name="/usr/bin/evince-thumbnailer" pid=1343 comm="apparmor_parser"
[ 20.886858] audit: type=1400 audit(1457216582.665:62): apparmor="STATUS" operation="profile_replace" name="sanitized_helper" pid=1343 comm="apparmor_parser"
[ 21.082804] usb 1-1.2: new high-speed USB device number 5 using ehci-pci
[ 21.182408] usb 1-1.2: New USB device found, idVendor=12d1, idProduct=1436
[ 21.182422] usb 1-1.2: New USB device strings: Mfr=4, Product=3, SerialNumber=0
[ 21.182435] usb 1-1.2: Product: HUAWEI Mobile
[ 21.182437] usb 1-1.2: Manufacturer: HUAWEI Technology
[ 21.185857] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[ 21.186831] usb-storage 1-1.2:1.1: USB Mass Storage device detected
[ 21.187382] usb-storage 1-1.2:1.2: USB Mass Storage device detected
[ 21.188175] usb-storage 1-1.2:1.3: USB Mass Storage device detected
[ 21.188778] usb-storage 1-1.2:1.4: USB Mass Storage device detected
[ 21.189355] usb-storage 1-1.2:1.5: USB Mass Storage device detected
[ 21.189953] scsi host13: usb-storage 1-1.2:1.5
[ 21.190684] usb-storage 1-1.2:1.6: USB Mass Storage device detected
[ 21.191316] scsi host14: usb-storage 1-1.2:1.6
[ 21.290662] usbcore: registered new interface driver usbserial
[ 21.617193] cdc_ether 1-1.2:1.1 wwan0: register 'cdc_ether' at usb-0000:00:1a.0-1.2, Mobile Broadband Network Device, 02:50:f3:00:00:00
[ 21.618431] usbcore: registered new interface driver cdc_ether
[ 21.780474] usbcore: registered new interface driver option
[ 21.782862] usbserial: USB Serial support registered for GSM modem (1-port)
[ 21.784051] option 1-1.2:1.0: GSM modem (1-port) converter detected
[ 21.784815] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB0
[ 21.785071] option 1-1.2:1.3: GSM modem (1-port) converter detected
[ 21.785372] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB1
[ 21.785439] option 1-1.2:1.4: GSM modem (1-port) converter detected
[ 21.785720] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB2
[ 22.188427] scsi 13:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
[ 22.192531] sr 13:0:0:0: [sr0] scsi-1 drive
[ 22.193158] scsi 14:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2
[ 22.194101] sr 13:0:0:0: Attached scsi CD-ROM sr0
[ 22.194763] sr 13:0:0:0: Attached scsi generic sg2 type 5
[ 22.201446] sd 14:0:0:0: Attached scsi generic sg3 type 0
[ 22.207787] sd 14:0:0:0: [sdc] Attached SCSI removable disk
[ 22.234758] usbhid irqs disabled A
[ 22.234857] usbhid irqs disabled B
[ 22.234912] BUG: sleeping function called from invalid context at kernel/workqueue.c:2688
[ 22.235022] in_atomic(): 0, irqs_disabled(): 1, pid: 1444, name: acpid
[ 22.235107] 3 locks held by acpid/1444:
[ 22.235110] #0: (&evdev->mutex){+.+...}, at: [<ffffffff8172e53d>] evdev_release+0x1dd/0x210
[ 22.235126] #1: (&dev->mutex#2){+.+...}, at: [<ffffffff81725af7>] input_close_device+0x27/0x70
[ 22.235139] #2: (hid_open_mut){+.+...}, at: [<ffffffffa0057388>] usbhid_close+0x28/0x90 [usbhid]
[ 22.235152] irq event stamp: 2932
[ 22.235155] hardirqs last enabled at (2931): [<ffffffff81913ef2>] _raw_spin_unlock_irq+0x32/0x60
[ 22.235161] hardirqs last disabled at (2932): [<ffffffff810f6baf>] vprintk_emit+0x10f/0x6e0
[ 22.235168] softirqs last enabled at (2404): [<ffffffff81899e19>] local_bh_enable+0x9/0x20
[ 22.235173] softirqs last disabled at (2402): [<ffffffff81899df9>] local_bh_disable+0x9/0x20
[ 22.235180] CPU: 1 PID: 1444 Comm: acpid Not tainted 4.4.4-3-llvmlinux-amd64 #1
[ 22.235184] Hardware name: SAMSUNG ELECTRONICS CO., LTD. 530U3BI/530U4BI/530U4BH/530U3BI/530U4BI/530U4BH, BIOS 13XK 03/28/2013
[ 22.235187] ffff8800d335e948 0000000000000096 0000000000000000 ffff8801161fbaa8
[ 22.235194] ffffffff814969c4 ffff8801161fba38 ffff8800b6a5c800 ffff8801161fbaa8
[ 22.235201] ffffffff810dc5ed 0000000000000096 0000000000000092 ffff8801161fbae8
[ 22.235208] Call Trace:
[ 22.235214] [<ffffffff814969c4>] dump_stack+0xa4/0xf0
[ 22.235220] [<ffffffff810dc5ed>] ? print_irqtrace_events+0xcd/0xe0
[ 22.235227] [<ffffffff810b9335>] ___might_sleep+0x295/0x2b0
[ 22.235232] [<ffffffff810b902f>] __might_sleep+0x4f/0xc0
[ 22.235238] [<ffffffff8109b39f>] start_flush_work+0x2f/0x290
[ 22.235243] [<ffffffff8109b34c>] flush_work+0x5c/0x80
[ 22.235248] [<ffffffff8109b30a>] ? flush_work+0x1a/0x80
[ 22.235252] [<ffffffff810dc16d>] ? trace_hardirqs_off+0xd/0x10
[ 22.235257] [<ffffffff8109a44a>] ? try_to_grab_pending+0x4a/0x390
[ 22.235263] [<ffffffff8109b7ae>] __cancel_work_timer+0x18e/0x280
[ 22.235268] [<ffffffff810f7e82>] ? vprintk_default+0x32/0x50
[ 22.235272] [<ffffffff810f5745>] ? printk+0x55/0x60
[ 22.235278] [<ffffffff8109b618>] cancel_work_sync+0x18/0x20
[ 22.235285] [<ffffffffa005747a>] hid_cancel_delayed_stuff+0x8a/0xd0 [usbhid]
[ 22.235292] [<ffffffffa00573c0>] usbhid_close+0x60/0x90 [usbhid]
[ 22.235302] [<ffffffffa003a3a1>] hidinput_close+0x31/0x40 [hid]
[ 22.235311] [<ffffffffa003a370>] ? hidinput_open+0x40/0x40 [hid]
[ 22.235316] [<ffffffff81725b18>] input_close_device+0x48/0x70
[ 22.235320] [<ffffffff8172e558>] evdev_release+0x1f8/0x210
[ 22.235325] [<ffffffff8172e360>] ? evdev_flush+0x70/0x70
[ 22.235330] [<ffffffff81264fe7>] __fput+0x107/0x240
[ 22.235334] [<ffffffff81264e76>] ____fput+0x16/0x20
[ 22.235339] [<ffffffff810a513c>] task_work_run+0x7c/0xe0
[ 22.235344] [<ffffffff81002b17>] prepare_exit_to_usermode+0xb7/0x190
[ 22.235349] [<ffffffff81002ccf>] syscall_return_slowpath+0xdf/0x340
[ 22.235354] [<ffffffff8126173a>] ? filp_close+0x6a/0x90
[ 22.235359] [<ffffffff810dc619>] ? trace_hardirqs_on_caller+0x19/0x290
[ 22.235364] [<ffffffff81002017>] ? trace_hardirqs_on_thunk+0x17/0x19
[ 22.235369] [<ffffffff81914c39>] int_ret_from_sys_call+0x25/0x9f
[ 23.344854] r8169 0000:02:00.0 eth0: link down
[ 23.344937] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 59.546401] usb 2-1.5: USB disconnect, device number 4
[ 60.206442] PPP BSD Compression module registered
[ 60.302843] PPP Deflate Compression module registered
[ 290.710133] usb 2-1.4: USB disconnect, device number 3
[ 290.727271] usbhid irqs disabled A
[ 290.727283] usbhid irqs disabled B
[ 290.727290] BUG: sleeping function called from invalid context at kernel/workqueue.c:2688
[ 290.727293] in_atomic(): 0, irqs_disabled(): 1, pid: 117, name: kworker/2:2
[ 290.727296] 9 locks held by kworker/2:2/117:
[ 290.727297] #0: ("usb_hub_wq"){.+.+.+}, at: [<ffffffff810a1be2>] process_one_work+0x2e2/0x8b0
[ 290.727307] #1: ((&hub->events)){+.+.+.}, at: [<ffffffff810a1c10>] process_one_work+0x310/0x8b0
[ 290.727313] #2: (&dev->mutex){......}, at: [<ffffffff816d1630>] hub_event+0x50/0x15b0
[ 290.727320] #3: (&dev->mutex){......}, at: [<ffffffff816cce6f>] usb_disconnect+0x5f/0x2c0
[ 290.727327] #4: (&dev->mutex){......}, at: [<ffffffff815fedd2>] device_release_driver+0x22/0x40
[ 290.727334] #5: (&dev->mutex){......}, at: [<ffffffff815fedd2>] device_release_driver+0x22/0x40
[ 290.727340] #6: (input_mutex){+.+.+.}, at: [<ffffffff817273da>] __input_unregister_device+0x9a/0x190
[ 290.727346] #7: (&dev->mutex#2){+.+...}, at: [<ffffffff81725af7>] input_close_device+0x27/0x70
[ 290.727353] #8: (hid_open_mut){+.+...}, at: [<ffffffffa0057388>] usbhid_close+0x28/0x90 [usbhid]
[ 290.727361] irq event stamp: 54554
[ 290.727362] hardirqs last enabled at (54553): [<ffffffff81913ef2>] _raw_spin_unlock_irq+0x32/0x60
[ 290.727367] hardirqs last disabled at (54554): [<ffffffff810f6baf>] vprintk_emit+0x10f/0x6e0
[ 290.727372] softirqs last enabled at (53840): [<ffffffff81081882>] __do_softirq+0x5a2/0x610
[ 290.727375] softirqs last disabled at (53825): [<ffffffff81081b5c>] irq_exit+0x9c/0x120
[ 290.727380] CPU: 2 PID: 117 Comm: kworker/2:2 Not tainted 4.4.4-3-llvmlinux-amd64 #1
[ 290.727382] Hardware name: SAMSUNG ELECTRONICS CO., LTD. 530U3BI/530U4BI/530U4BH/530U3BI/530U4BI/530U4BH, BIOS 13XK 03/28/2013
[ 290.727385] Workqueue: usb_hub_wq hub_event
[ 290.727388] ffff8800d335e948 0000000000000096 0000000000000000 ffff8800d3823518
[ 290.727392] ffffffff814969c4 ffff8800d38234a8 ffff8800d381c100 ffff8800d3823518
[ 290.727396] ffffffff810dc5ed 0000000000000096 0000000000000092 ffff8800d3823558
[ 290.727400] Call Trace:
[ 290.727404] [<ffffffff814969c4>] dump_stack+0xa4/0xf0
[ 290.727408] [<ffffffff810dc5ed>] ? print_irqtrace_events+0xcd/0xe0
[ 290.727413] [<ffffffff810b9335>] ___might_sleep+0x295/0x2b0
[ 290.727416] [<ffffffff810b902f>] __might_sleep+0x4f/0xc0
[ 290.727420] [<ffffffff8109b39f>] start_flush_work+0x2f/0x290
[ 290.727423] [<ffffffff8109b34c>] flush_work+0x5c/0x80
[ 290.727426] [<ffffffff8109b30a>] ? flush_work+0x1a/0x80
[ 290.727429] [<ffffffff810dc16d>] ? trace_hardirqs_off+0xd/0x10
[ 290.727432] [<ffffffff8109a44a>] ? try_to_grab_pending+0x4a/0x390
[ 290.727435] [<ffffffff8109b7ae>] __cancel_work_timer+0x18e/0x280
[ 290.727438] [<ffffffff810f7e82>] ? vprintk_default+0x32/0x50
[ 290.727442] [<ffffffff810f5745>] ? printk+0x55/0x60
[ 290.727445] [<ffffffff8109b618>] cancel_work_sync+0x18/0x20
[ 290.727449] [<ffffffffa005747a>] hid_cancel_delayed_stuff+0x8a/0xd0 [usbhid]
[ 290.727453] [<ffffffffa00573c0>] usbhid_close+0x60/0x90 [usbhid]
[ 290.727460] [<ffffffffa003a3a1>] hidinput_close+0x31/0x40 [hid]
[ 290.727465] [<ffffffffa003a370>] ? hidinput_open+0x40/0x40 [hid]
[ 290.727468] [<ffffffff81725b18>] input_close_device+0x48/0x70
[ 290.727471] [<ffffffff8172dc15>] evdev_cleanup+0xd5/0xe0
[ 290.727475] [<ffffffff8172d79c>] evdev_disconnect+0x2c/0x60
[ 290.727477] [<ffffffff817273fe>] __input_unregister_device+0xbe/0x190
[ 290.727480] [<ffffffff8172730a>] input_unregister_device+0x4a/0x80
[ 290.727485] [<ffffffffa003a1bf>] hidinput_disconnect+0x8f/0xc0 [hid]
[ 290.727491] [<ffffffffa0033387>] hid_disconnect+0x47/0x80 [hid]
[ 290.727496] [<ffffffffa0034a43>] hid_device_remove+0x83/0xd0 [hid]
[ 290.727500] [<ffffffff815feeed>] __device_release_driver+0xfd/0x180
[ 290.727503] [<ffffffff815fedda>] device_release_driver+0x2a/0x40
[ 290.727506] [<ffffffff815fce39>] bus_remove_device+0x169/0x1a0
[ 290.727510] [<ffffffff815f9efb>] device_del+0x1db/0x2b0
[ 290.727515] [<ffffffffa0033c0c>] hid_destroy_device+0x2c/0x60 [hid]
[ 290.727519] [<ffffffffa00585e7>] usbhid_disconnect+0x67/0x90 [usbhid]
[ 290.727523] [<ffffffff816dd47f>] usb_unbind_interface+0xbf/0x2b0
[ 290.727526] [<ffffffff815feeed>] __device_release_driver+0xfd/0x180
[ 290.727530] [<ffffffff815fedda>] device_release_driver+0x2a/0x40
[ 290.727533] [<ffffffff815fce39>] bus_remove_device+0x169/0x1a0
[ 290.727535] [<ffffffff815f9efb>] device_del+0x1db/0x2b0
[ 290.727538] [<ffffffff815fa00d>] ? device_unregister+0x3d/0x50
[ 290.727541] [<ffffffff816db56b>] usb_disable_device+0x10b/0x3b0
[ 290.727545] [<ffffffff816ccf04>] usb_disconnect+0xf4/0x2c0
[ 290.727547] [<ffffffff816d218d>] hub_event+0xbad/0x15b0
[ 290.727550] [<ffffffff81913ef2>] ? _raw_spin_unlock_irq+0x32/0x60
[ 290.727553] [<ffffffff810a1da5>] process_one_work+0x4a5/0x8b0
[ 290.727555] [<ffffffff810a1c10>] ? process_one_work+0x310/0x8b0
[ 290.727558] [<ffffffff810a154f>] worker_thread+0x55f/0x6d0
[ 290.727560] [<ffffffff810a0ff0>] ? destroy_worker+0x100/0x100
[ 290.727563] [<ffffffff810a80f5>] kthread+0x115/0x120
[ 290.727566] [<ffffffff810dc17d>] ? trace_hardirqs_on+0xd/0x10
[ 290.727570] [<ffffffff810a7fe0>] ? flush_kthread_worker+0x80/0x80
[ 290.727572] [<ffffffff81914e7f>] ret_from_fork+0x3f/0x70
[ 290.727575] [<ffffffff810a7fe0>] ? flush_kthread_worker+0x80/0x80
[ 299.086331] usb 2-1.4: new low-speed USB device number 5 using ehci-pci
[ 299.185145] usb 2-1.4: New USB device found, idVendor=046d, idProduct=c00e
[ 299.185152] usb 2-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 299.185155] usb 2-1.4: Product: USB-PS/2 Optical Mouse
[ 299.185157] usb 2-1.4: Manufacturer: Logitech
[ 299.190354] input: Logitech USB-PS/2 Optical Mouse as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4:1.0/0003:046D:C00E.0002/input/input12
[ 299.191200] hid-generic 0003:046D:C00E.0002: input: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-0000:00:1d.0-1.4/input0
[unhandled content-type:application/octet-stream]Al Viro (1):
use ->d_seq to get coherency between ->d_inode and ->d_flags

Konstantin Khlebnikov (1):
ovl: fix working on distributed fs as lower layer

Linus Torvalds (1):
userfaultfd: don't block on the last VM updates at exit time

Sedat Dilek (27):
kbuild: llvmlinux: Add cross compilation support
kbuild: llvmlinux: Add support for integrated-assembler (IA)
kbuild: llvmlinux: Add LLVM bitcode support
kbuild: llvmlinux: Add some more clang compiler-flags
kbuild: llvmlinux: Add -Werror compiler-flag to cc-options
kbuild: llvmlinux: Fix ASM defines
kbuild: llvmlinux: Fix unsupported -fno-delete-null-pointer-checks compiler-flag
kbuild: llvmlinux: Fix unsupported -fcatch-undefined-behavior compiler-flag
compiler-gcc: llvmlinux: Add __maybe_unused attribute for inlining
fs/compat: llvmlinux: Fix warning in COMPATIBLE_IOCTL define
bcache: llvmlinux: Replace nested function with __bch_cache_cmp()
megaraid_sas: llvmlinux: Remove inline from megasas_return_cmd()
scsi: libosd: llvmlinux: Remove __weak and add __maybe_unused attribute
mpilib: llvmlinux: Fix compilation with clang
md/raid10: llvmlinux: Remove VLAIS from handle_reshape_read_error()
apparmor: llvmlinux: Remove VLAIS from aa_calc_profile_hash()
x86: llvmlinux: Fix unsupported -falign-{jumps,loops} compiler-flags
xen: llvmlinux: Remove VLAIS from xen_flush_tlb_others()
um: llvmlinux: Check for clang compiler in memcpy export
x86: boot: llvmlinux: Workaround LLVM Bug PR3997
x86/hweight: boot: llvmlinux: Workaround LLVM Bug PR9457
Merge branch 'for-4.4/vfs-fixes' into 4.4.4-3-llvmlinux-amd64
Merge branch 'for-4.4/userfaultfd-fixes' into 4.4.4-3-llvmlinux-amd64
Merge branch 'for-4.4/overlayfs-fixes' into 4.4.4-3-llvmlinux-amd64
Merge branch 'for-4.4/llvmlinux-amd64-fixes' into 4.4.4-3-llvmlinux-amd64
usbhid: Doublecheck the time at which interrupts get disabled in hid_cancel_delayed_stuff()
Merge branch 'for-4.4/usbhid-test-alanstern' into 4.4.4-3-llvmlinux-amd64

.gitignore | 1 +
Kbuild | 8 +++----
Makefile | 36 +++++++++++++++++++++++++++----
arch/x86/Kconfig | 4 ++--
arch/x86/Makefile | 6 ++++--
arch/x86/boot/memory.c | 6 ++++++
arch/x86/boot/string.h | 3 +++
arch/x86/include/asm/arch_hweight.h | 18 ++++------------
arch/x86/um/ksyms.c | 2 +-
arch/x86/xen/mmu.c | 35 +++++++++++++++---------------
drivers/hid/usbhid/hid-core.c | 3 +++
drivers/md/bcache/sysfs.c | 10 +++++----
drivers/md/raid10.c | 8 +++----
drivers/scsi/megaraid/megaraid_sas_base.c | 2 +-
fs/compat_ioctl.c | 2 +-
fs/dcache.c | 20 +++++------------
fs/overlayfs/super.c | 1 +
fs/userfaultfd.c | 6 ++++++
include/linux/compiler-gcc.h | 12 +++++------
include/linux/dcache.h | 4 +---
include/linux/kbuild.h | 6 +++---
include/scsi/osd_types.h | 2 +-
lib/mpi/Makefile | 2 ++
lib/mpi/longlong.h | 9 +++-----
lib/mpi/mpi-inline.h | 2 +-
lib/mpi/mpi-internal.h | 10 +--------
scripts/Kbuild.include | 6 +++---
scripts/Makefile.build | 14 ++++++++++++
scripts/mod/Makefile | 8 +++----
security/apparmor/crypto.c | 17 ++++++---------
30 files changed, 147 insertions(+), 116 deletions(-)

diff --git a/.gitignore b/.gitignore
index fd3a35592543..34fe1346aa87 100644
--- a/.gitignore
+++ b/.gitignore
@@ -33,6 +33,7 @@
*.lzo
*.patch
*.gcno
+*.ll
modules.builtin
Module.symvers
*.dwo
diff --git a/Kbuild b/Kbuild
index f55cefd9bf29..0bbb86358942 100644
--- a/Kbuild
+++ b/Kbuild
@@ -8,10 +8,10 @@

# Default sed regexp - multiline due to syntax constraints
define sed-y
- "/^->/{s:->#\(.*\):/* \1 */:; \
- s:^->\([^ ]*\) [\$$#]*\([-0-9]*\) \(.*\):#define \1 \2 /* \3 */:; \
- s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; \
- s:->::; p;}"
+ "/^@->/{s:@->#\(.*\):/* \1 */:; \
+ s:^@->\([^ ]*\) [\$$#]*\([-0-9]*\) \(.*\):#define \1 \2 /* \3 */:; \
+ s:^@->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; \
+ s:@->::; p;}"
endef

# Use filechk to avoid rebuilds when a header changes, but the resulting file
diff --git a/Makefile b/Makefile
index 344bc6f27ea1..023eac5c5e44 100644
--- a/Makefile
+++ b/Makefile
@@ -301,8 +301,10 @@ HOSTCFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-p
HOSTCXXFLAGS = -O2

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
+HOSTCFLAGS += -Wno-unused-value -Wno-unused-parameter -Wno-missing-field-initializers
+endif
+ifneq ($(shell $(HOSTCC) -v 2>&1 | grep -c "clang version"), 1)
+HOSTCFLAGS += -fno-delete-null-pointer-checks
endif

# Decide whether to build built-in, modular, or both.
@@ -366,6 +368,19 @@ CFLAGS_KERNEL =
AFLAGS_KERNEL =
CFLAGS_GCOV = -fprofile-arcs -ftest-coverage

+ifeq ($(cc-name),clang)
+ifneq ($(CROSS_COMPILE),)
+CLANG_TARGET := -target $(notdir $(CROSS_COMPILE:%-=%))
+GCC_TOOLCHAIN := $(dir $(CROSS_COMPILE))
+endif
+ifneq ($(GCC_TOOLCHAIN),)
+CLANG_GCC_TC := -gcc-toolchain $(GCC_TOOLCHAIN)
+endif
+ifneq ($(CLANG_ENABLE_IA),1)
+CLANG_IA_FLAG = -no-integrated-as
+endif
+CLANG_FLAGS := $(CLANG_TARGET) $(CLANG_GCC_TC) $(CLANG_IA_FLAG)
+endif

# Use USERINCLUDE when you must reference the UAPI directories only.
USERINCLUDE := \
@@ -391,11 +406,11 @@ KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
-fno-strict-aliasing -fno-common \
-Werror-implicit-function-declaration \
-Wno-format-security \
- -std=gnu89
+ -std=gnu89 $(CLANG_FLAGS)

KBUILD_AFLAGS_KERNEL :=
KBUILD_CFLAGS_KERNEL :=
-KBUILD_AFLAGS := -D__ASSEMBLY__
+KBUILD_AFLAGS := -D__ASSEMBLY__ $(CLANG_FLAGS)
KBUILD_AFLAGS_MODULE := -DMODULE
KBUILD_CFLAGS_MODULE := -DMODULE
KBUILD_LDFLAGS_MODULE := -T $(srctree)/scripts/module-common.lds
@@ -605,7 +620,9 @@ ARCH_AFLAGS :=
ARCH_CFLAGS :=
include arch/$(SRCARCH)/Makefile

+ifneq ($(cc-name),clang)
KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks,)
+endif

ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
KBUILD_CFLAGS += -Os $(call cc-disable-warning,maybe-uninitialized,)
@@ -673,13 +690,18 @@ KBUILD_CPPFLAGS += $(call cc-option,-Wno-unknown-warning-option,)
KBUILD_CFLAGS += $(call cc-disable-warning, unused-variable)
KBUILD_CFLAGS += $(call cc-disable-warning, format-invalid-specifier)
KBUILD_CFLAGS += $(call cc-disable-warning, gnu)
+KBUILD_CFLAGS += $(call cc-disable-warning, asm-operand-widths)
+KBUILD_CFLAGS += $(call cc-disable-warning, initializer-overrides)
+KBUILD_CFLAGS += $(call cc-option, -fno-builtin)
# Quiet clang warning: comparison of unsigned expression < 0 is always false
KBUILD_CFLAGS += $(call cc-disable-warning, tautological-compare)
# CLANG uses a _MergedGlobals as optimization, but this breaks modpost, as the
# source of a reference will be _MergedGlobals and not on of the whitelisted names.
# See modpost pattern 2
KBUILD_CFLAGS += $(call cc-option, -mno-global-merge,)
+ifneq ($(cc-name),clang)
KBUILD_CFLAGS += $(call cc-option, -fcatch-undefined-behavior)
+endif
else

# This warning generated too much noise in a regular build.
@@ -1260,6 +1282,8 @@ help:
@echo ' (default: $$(INSTALL_MOD_PATH)/lib/firmware)'
@echo ' dir/ - Build all files in dir and below'
@echo ' dir/file.[oisS] - Build specified target only'
+ @echo ' dir/file.ll - Build the LLVM bitcode file'
+ @echo ' (requires compiler support for LLVM bitcode generation)'
@echo ' dir/file.lst - Build specified mixed source/assembly target only'
@echo ' (requires a recent binutils and recent build (System.map))'
@echo ' dir/file.ko - Build module including final link'
@@ -1538,6 +1562,10 @@ endif
$(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@)
%.symtypes: %.c prepare scripts FORCE
$(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@)
+%.ll: %.c prepare scripts FORCE
+ $(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@)
+%.ll: %.S prepare scripts FORCE
+ $(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@)

# Modules
/: prepare scripts FORCE
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index db3622f22b61..9c79418cb783 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -280,8 +280,8 @@ config X86_32_LAZY_GS

config ARCH_HWEIGHT_CFLAGS
string
- default "-fcall-saved-ecx -fcall-saved-edx" if X86_32
- default "-fcall-saved-rdi -fcall-saved-rsi -fcall-saved-rdx -fcall-saved-rcx -fcall-saved-r8 -fcall-saved-r9 -fcall-saved-r10 -fcall-saved-r11" if X86_64
+ # Workaround LLVM Bug PR9457
+ default "" if (X86_32 || X86_64)

config ARCH_SUPPORTS_UPROBES
def_bool y
diff --git a/arch/x86/Makefile b/arch/x86/Makefile
index 4086abca0b32..5fa41ffe15e2 100644
--- a/arch/x86/Makefile
+++ b/arch/x86/Makefile
@@ -87,11 +87,13 @@ else
KBUILD_AFLAGS += -m64
KBUILD_CFLAGS += -m64

+ifneq ($(cc-name),clang)
# Align jump targets to 1 byte, not the default 16 bytes:
- KBUILD_CFLAGS += -falign-jumps=1
+ KBUILD_CFLAGS += $(call cc-option,-falign-jumps=1)

# Pack loops tightly as well:
- KBUILD_CFLAGS += -falign-loops=1
+ KBUILD_CFLAGS += $(call cc-option,-falign-loops=1)
+endif

# Don't autogenerate traditional x87 instructions
KBUILD_CFLAGS += $(call cc-option,-mno-80387)
diff --git a/arch/x86/boot/memory.c b/arch/x86/boot/memory.c
index db75d07c3645..d49115f80fbb 100644
--- a/arch/x86/boot/memory.c
+++ b/arch/x86/boot/memory.c
@@ -64,7 +64,13 @@ static int detect_memory_e820(void)
break;
}

+/* Workaround LLVM Bug PR3997 */
+#ifdef __clang__
+ memcpy(desc, &buf, sizeof(*desc));
+ desc++;
+#else
*desc++ = buf;
+#endif /* __clang__ */
count++;
} while (ireg.ebx && count < ARRAY_SIZE(boot_params.e820_map));

diff --git a/arch/x86/boot/string.h b/arch/x86/boot/string.h
index 725e820602b1..31a431e9d4e2 100644
--- a/arch/x86/boot/string.h
+++ b/arch/x86/boot/string.h
@@ -14,8 +14,11 @@ int memcmp(const void *s1, const void *s2, size_t len);
* Access builtin version by default. If one needs to use optimized version,
* do "undef memcpy" in .c file and link against right string.c
*/
+/* Workaround LLVM Bug PR3997 */
+#ifndef __clang__
#define memcpy(d,s,l) __builtin_memcpy(d,s,l)
#define memset(d,c,l) __builtin_memset(d,c,l)
#define memcmp __builtin_memcmp
+#endif /* __clang__ */

#endif /* BOOT_STRING_H */
diff --git a/arch/x86/include/asm/arch_hweight.h b/arch/x86/include/asm/arch_hweight.h
index 259a7c1ef709..33f828a659bc 100644
--- a/arch/x86/include/asm/arch_hweight.h
+++ b/arch/x86/include/asm/arch_hweight.h
@@ -23,13 +23,8 @@
*/
static __always_inline unsigned int __arch_hweight32(unsigned int w)
{
- unsigned int res = 0;
-
- asm (ALTERNATIVE("call __sw_hweight32", POPCNT32, X86_FEATURE_POPCNT)
- : "="REG_OUT (res)
- : REG_IN (w));
-
- return res;
+/* Workaround LLVM Bug PR9457 */
+ return __sw_hweight32(w);
}

static inline unsigned int __arch_hweight16(unsigned int w)
@@ -51,13 +46,8 @@ static inline unsigned long __arch_hweight64(__u64 w)
#else
static __always_inline unsigned long __arch_hweight64(__u64 w)
{
- unsigned long res = 0;
-
- asm (ALTERNATIVE("call __sw_hweight64", POPCNT64, X86_FEATURE_POPCNT)
- : "="REG_OUT (res)
- : REG_IN (w));
-
- return res;
+/* Workaround LLVM Bug PR9457 */
+ return __sw_hweight64(w);
}
#endif /* CONFIG_X86_32 */

diff --git a/arch/x86/um/ksyms.c b/arch/x86/um/ksyms.c
index 2e8f43ec6214..04aedcecd887 100644
--- a/arch/x86/um/ksyms.c
+++ b/arch/x86/um/ksyms.c
@@ -4,7 +4,7 @@

#ifndef CONFIG_X86_32
/*XXX: we need them because they would be exported by x86_64 */
-#if (__GNUC__ == 4 && __GNUC_MINOR__ >= 3) || __GNUC__ > 4
+#if (__GNUC__ == 4 && __GNUC_MINOR__ >= 3) || __GNUC__ > 4 || defined(__clang__)
EXPORT_SYMBOL(memcpy);
#else
EXPORT_SYMBOL(__memcpy);
diff --git a/arch/x86/xen/mmu.c b/arch/x86/xen/mmu.c
index cb5e266a8bf7..167620ea79ba 100644
--- a/arch/x86/xen/mmu.c
+++ b/arch/x86/xen/mmu.c
@@ -1374,36 +1374,37 @@ static void xen_flush_tlb_others(const struct cpumask *cpus,
struct mm_struct *mm, unsigned long start,
unsigned long end)
{
- 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;
+ struct mmuext_op *op;
+ struct cpumask *mask;

trace_xen_mmu_flush_tlb_others(cpus, mm, start, end);

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

- mcs = xen_mc_entry(sizeof(*args));
- args = mcs.args;
- args->op.arg2.vcpumask = to_cpumask(args->mask);
+#ifdef CONFIG_SMP
+ mcs = xen_mc_entry(sizeof(struct mmuext_op) + BITS_TO_LONGS(num_processors)*sizeof(unsigned long));
+#else
+ mcs = xen_mc_entry(sizeof(struct mmuext_op) + BITS_TO_LONGS(NR_CPUS)*sizeof(unsigned long));
+#endif
+ /* Extract fields */
+ op = mcs.args;
+ mask = to_cpumask(mcs.args + sizeof(struct mmuext_op));
+
+ op->arg2.vcpumask = mask;

/* Remove us, and any offline CPUS. */
- cpumask_and(to_cpumask(args->mask), cpus, cpu_online_mask);
- cpumask_clear_cpu(smp_processor_id(), to_cpumask(args->mask));
+ cpumask_and(mask, cpus, cpu_online_mask);
+ cpumask_clear_cpu(smp_processor_id(), mask);

- args->op.cmd = MMUEXT_TLB_FLUSH_MULTI;
+ op->cmd = MMUEXT_TLB_FLUSH_MULTI;
if (end != TLB_FLUSH_ALL && (end - start) <= PAGE_SIZE) {
- args->op.cmd = MMUEXT_INVLPG_MULTI;
- args->op.arg1.linear_addr = start;
+ op->cmd = MMUEXT_INVLPG_MULTI;
+ op->arg1.linear_addr = start;
}

- MULTI_mmuext_op(mcs.mc, &args->op, 1, NULL, DOMID_SELF);
+ MULTI_mmuext_op(mcs.mc, op, 1, NULL, DOMID_SELF);

xen_mc_issue(PARAVIRT_LAZY_MMU);
}
diff --git a/drivers/hid/usbhid/hid-core.c b/drivers/hid/usbhid/hid-core.c
index 5dd426fee8cc..928e06d7583a 100644
--- a/drivers/hid/usbhid/hid-core.c
+++ b/drivers/hid/usbhid/hid-core.c
@@ -1392,8 +1392,11 @@ static void usbhid_disconnect(struct usb_interface *intf)

static void hid_cancel_delayed_stuff(struct usbhid_device *usbhid)
{
+ if (raw_irqs_disabled()) pr_info("usbhid irqs disabled A\n");
del_timer_sync(&usbhid->io_retry);
+ if (raw_irqs_disabled()) pr_info("usbhid irqs disabled B\n");
cancel_work_sync(&usbhid->reset_work);
+ if (raw_irqs_disabled()) pr_info("usbhid irqs disabled C\n");
}

static void hid_cease_io(struct usbhid_device *usbhid)
diff --git a/drivers/md/bcache/sysfs.c b/drivers/md/bcache/sysfs.c
index b3ff57d61dde..53d8baa741fb 100644
--- a/drivers/md/bcache/sysfs.c
+++ b/drivers/md/bcache/sysfs.c
@@ -731,6 +731,11 @@ static struct attribute *bch_cache_set_internal_files[] = {
};
KTYPE(bch_cache_set_internal);

+static int __bch_cache_cmp(const void *l, const void *r)
+{
+ return *((uint16_t *) r) - *((uint16_t *) l);
+}
+
SHOW(__bch_cache)
{
struct cache *ca = container_of(kobj, struct cache, kobj);
@@ -755,9 +760,6 @@ SHOW(__bch_cache)
CACHE_REPLACEMENT(&ca->sb));

if (attr == &sysfs_priority_stats) {
- int cmp(const void *l, const void *r)
- { return *((uint16_t *) r) - *((uint16_t *) l); }
-
struct bucket *b;
size_t n = ca->sb.nbuckets, i;
size_t unused = 0, available = 0, dirty = 0, meta = 0;
@@ -786,7 +788,7 @@ SHOW(__bch_cache)
p[i] = ca->buckets[i].prio;
mutex_unlock(&ca->set->bucket_lock);

- sort(p, n, sizeof(uint16_t), cmp, NULL);
+ sort(p, n, sizeof(uint16_t), __bch_cache_cmp, NULL);

while (n &&
!cached[n - 1])
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c
index ce959b4ae4df..e5b3abf1eb0e 100644
--- a/drivers/md/raid10.c
+++ b/drivers/md/raid10.c
@@ -4483,11 +4483,9 @@ static int handle_reshape_read_error(struct mddev *mddev,
/* Use sync reads to get the blocks from somewhere else */
int sectors = r10_bio->sectors;
struct r10conf *conf = mddev->private;
- struct {
- struct r10bio r10_bio;
- struct r10dev devs[conf->copies];
- } on_stack;
- struct r10bio *r10b = &on_stack.r10_bio;
+ /* Allocate space for r10bio on stack */
+ u8 r10bio_on_stack[sizeof(struct r10bio) + conf->copies * sizeof(struct r10dev)];
+ struct r10bio *r10b = (struct r10bio *) r10bio_on_stack;
int slot = 0;
int idx = 0;
struct bio_vec *bvec = r10_bio->master_bio->bi_io_vec;
diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c
index 97a1c1c33b05..abcec3020c83 100644
--- a/drivers/scsi/megaraid/megaraid_sas_base.c
+++ b/drivers/scsi/megaraid/megaraid_sas_base.c
@@ -234,7 +234,7 @@ struct megasas_cmd *megasas_get_cmd(struct megasas_instance
* @instance: Adapter soft state
* @cmd: Command packet to be returned to free command pool
*/
-inline void
+void
megasas_return_cmd(struct megasas_instance *instance, struct megasas_cmd *cmd)
{
unsigned long flags;
diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c
index dcf26537c935..a52ca5cba015 100644
--- a/fs/compat_ioctl.c
+++ b/fs/compat_ioctl.c
@@ -811,7 +811,7 @@ static int compat_ioctl_preallocate(struct file *file,
*/
#define XFORM(i) (((i) ^ ((i) << 27) ^ ((i) << 17)) & 0xffffffff)

-#define COMPATIBLE_IOCTL(cmd) XFORM(cmd),
+#define COMPATIBLE_IOCTL(cmd) XFORM((u32)cmd),
/* ioctl should not be warned about even if it's not implemented.
Valid reasons to use this:
- It is implemented with ->compat_ioctl on some device, but programs
diff --git a/fs/dcache.c b/fs/dcache.c
index 5c33aeb0f68f..877bcbbd03ff 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -269,9 +269,6 @@ static inline int dname_external(const struct dentry *dentry)
return dentry->d_name.name != dentry->d_iname;
}

-/*
- * Make sure other CPUs see the inode attached before the type is set.
- */
static inline void __d_set_inode_and_type(struct dentry *dentry,
struct inode *inode,
unsigned type_flags)
@@ -279,28 +276,18 @@ static inline void __d_set_inode_and_type(struct dentry *dentry,
unsigned flags;

dentry->d_inode = inode;
- smp_wmb();
flags = READ_ONCE(dentry->d_flags);
flags &= ~(DCACHE_ENTRY_TYPE | DCACHE_FALLTHRU);
flags |= type_flags;
WRITE_ONCE(dentry->d_flags, flags);
}

-/*
- * Ideally, we want to make sure that other CPUs see the flags cleared before
- * the inode is detached, but this is really a violation of RCU principles
- * since the ordering suggests we should always set inode before flags.
- *
- * We should instead replace or discard the entire dentry - but that sucks
- * performancewise on mass deletion/rename.
- */
static inline void __d_clear_type_and_inode(struct dentry *dentry)
{
unsigned flags = READ_ONCE(dentry->d_flags);

flags &= ~(DCACHE_ENTRY_TYPE | DCACHE_FALLTHRU);
WRITE_ONCE(dentry->d_flags, flags);
- smp_wmb();
dentry->d_inode = NULL;
}

@@ -370,9 +357,11 @@ static void dentry_unlink_inode(struct dentry * dentry)
__releases(dentry->d_inode->i_lock)
{
struct inode *inode = dentry->d_inode;
+
+ raw_write_seqcount_begin(&dentry->d_seq);
__d_clear_type_and_inode(dentry);
hlist_del_init(&dentry->d_u.d_alias);
- dentry_rcuwalk_invalidate(dentry);
+ raw_write_seqcount_end(&dentry->d_seq);
spin_unlock(&dentry->d_lock);
spin_unlock(&inode->i_lock);
if (!inode->i_nlink)
@@ -1757,8 +1746,9 @@ static void __d_instantiate(struct dentry *dentry, struct inode *inode)
spin_lock(&dentry->d_lock);
if (inode)
hlist_add_head(&dentry->d_u.d_alias, &inode->i_dentry);
+ raw_write_seqcount_begin(&dentry->d_seq);
__d_set_inode_and_type(dentry, inode, add_flags);
- dentry_rcuwalk_invalidate(dentry);
+ raw_write_seqcount_end(&dentry->d_seq);
spin_unlock(&dentry->d_lock);
fsnotify_d_instantiate(dentry, inode);
}
diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c
index f42c9407fbad..96a122f3d522 100644
--- a/fs/overlayfs/super.c
+++ b/fs/overlayfs/super.c
@@ -322,6 +322,7 @@ static const struct dentry_operations ovl_dentry_operations = {

static const struct dentry_operations ovl_reval_dentry_operations = {
.d_release = ovl_dentry_release,
+ .d_select_inode = ovl_d_select_inode,
.d_revalidate = ovl_dentry_revalidate,
.d_weak_revalidate = ovl_dentry_weak_revalidate,
};
diff --git a/fs/userfaultfd.c b/fs/userfaultfd.c
index 50311703135b..66cdb44616d5 100644
--- a/fs/userfaultfd.c
+++ b/fs/userfaultfd.c
@@ -287,6 +287,12 @@ int handle_userfault(struct vm_area_struct *vma, unsigned long address,
goto out;

/*
+ * We don't do userfault handling for the final child pid update.
+ */
+ if (current->flags & PF_EXITING)
+ goto out;
+
+ /*
* Check that we can return VM_FAULT_RETRY.
*
* NOTE: it should become possible to return VM_FAULT_RETRY
diff --git a/include/linux/compiler-gcc.h b/include/linux/compiler-gcc.h
index 22ab246feed3..8d9b96b5648c 100644
--- a/include/linux/compiler-gcc.h
+++ b/include/linux/compiler-gcc.h
@@ -70,14 +70,14 @@
*/
#if !defined(CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING) || \
!defined(CONFIG_OPTIMIZE_INLINING) || (__GNUC__ < 4)
-#define inline inline __attribute__((always_inline)) notrace
-#define __inline__ __inline__ __attribute__((always_inline)) notrace
-#define __inline __inline __attribute__((always_inline)) notrace
+#define inline inline __attribute__((always_inline)) notrace __maybe_unused
+#define __inline__ __inline__ __attribute__((always_inline)) notrace __maybe_unused
+#define __inline __inline __attribute__((always_inline)) notrace __maybe_unused
#else
/* A lot of inline functions can cause havoc with function tracing */
-#define inline inline notrace
-#define __inline__ __inline__ notrace
-#define __inline __inline notrace
+#define inline inline notrace __maybe_unused
+#define __inline__ __inline__ notrace __maybe_unused
+#define __inline __inline notrace __maybe_unused
#endif

#define __always_inline inline __attribute__((always_inline))
diff --git a/include/linux/dcache.h b/include/linux/dcache.h
index d67ae119cf4e..8a2e009c8a5a 100644
--- a/include/linux/dcache.h
+++ b/include/linux/dcache.h
@@ -409,9 +409,7 @@ static inline bool d_mountpoint(const struct dentry *dentry)
*/
static inline unsigned __d_entry_type(const struct dentry *dentry)
{
- unsigned type = READ_ONCE(dentry->d_flags);
- smp_rmb();
- return type & DCACHE_ENTRY_TYPE;
+ return dentry->d_flags & DCACHE_ENTRY_TYPE;
}

static inline bool d_is_miss(const struct dentry *dentry)
diff --git a/include/linux/kbuild.h b/include/linux/kbuild.h
index 22a72198c14b..75fa2c3e0e1d 100644
--- a/include/linux/kbuild.h
+++ b/include/linux/kbuild.h
@@ -2,14 +2,14 @@
#define __LINUX_KBUILD_H

#define DEFINE(sym, val) \
- asm volatile("\n->" #sym " %0 " #val : : "i" (val))
+ asm volatile("\n@->" #sym " %0 " #val : : "i" (val))

-#define BLANK() asm volatile("\n->" : : )
+#define BLANK() asm volatile("\n@->" : : )

#define OFFSET(sym, str, mem) \
DEFINE(sym, offsetof(struct str, mem))

#define COMMENT(x) \
- asm volatile("\n->#" x)
+ asm volatile("\n@->#" x)

#endif
diff --git a/include/scsi/osd_types.h b/include/scsi/osd_types.h
index 48e8a165e136..c7ae7211d15d 100644
--- a/include/scsi/osd_types.h
+++ b/include/scsi/osd_types.h
@@ -28,7 +28,7 @@ struct osd_obj_id {
osd_id id;
};

-static const struct __weak osd_obj_id osd_root_object = {0, 0};
+static const struct osd_obj_id osd_root_object __maybe_unused = {0, 0};

struct osd_attr {
u32 attr_page;
diff --git a/lib/mpi/Makefile b/lib/mpi/Makefile
index 019a68c90144..d5553f6b9f09 100644
--- a/lib/mpi/Makefile
+++ b/lib/mpi/Makefile
@@ -4,6 +4,8 @@

obj-$(CONFIG_MPILIB) = mpi.o

+CFLAGS_KERNEL += $(call cc-option,-fheinous-gnu-extensions)
+
mpi-y = \
generic_mpih-lshift.o \
generic_mpih-mul1.o \
diff --git a/lib/mpi/longlong.h b/lib/mpi/longlong.h
index b90e255c2a68..881a62ca0578 100644
--- a/lib/mpi/longlong.h
+++ b/lib/mpi/longlong.h
@@ -193,8 +193,7 @@ extern UDItype __udiv_qrnnd(UDItype *, UDItype, UDItype, UDItype);
"rI" ((USItype)(bl)))
#if defined __ARM_ARCH_2__ || defined __ARM_ARCH_3__
#define umul_ppmm(xh, xl, a, b) \
- __asm__ ("%@ Inlined umul_ppmm\n" \
- "mov %|r0, %2, lsr #16 @ AAAA\n" \
+ __asm__ ("mov %|r0, %2, lsr #16 @ AAAA\n" \
"mov %|r2, %3, lsr #16 @ BBBB\n" \
"bic %|r1, %2, %|r0, lsl #16 @ aaaa\n" \
"bic %0, %3, %|r2, lsl #16 @ bbbb\n" \
@@ -213,10 +212,8 @@ extern UDItype __udiv_qrnnd(UDItype *, UDItype, UDItype, UDItype);
: "r0", "r1", "r2")
#else
#define umul_ppmm(xh, xl, a, b) \
- __asm__ ("%@ Inlined umul_ppmm\n" \
- "umull %r1, %r0, %r2, %r3" \
- : "=&r" ((USItype)(xh)), \
- "=r" ((USItype)(xl)) \
+ __asm__ ("umull %1, %0, %2, %3" \
+ : "=&r" ((xh)), "=r" ((xl)) \
: "r" ((USItype)(a)), \
"r" ((USItype)(b)) \
: "r0", "r1")
diff --git a/lib/mpi/mpi-inline.h b/lib/mpi/mpi-inline.h
index e2b39852b30a..c245ea31f785 100644
--- a/lib/mpi/mpi-inline.h
+++ b/lib/mpi/mpi-inline.h
@@ -30,7 +30,7 @@
#define G10_MPI_INLINE_H

#ifndef G10_MPI_INLINE_DECL
-#define G10_MPI_INLINE_DECL extern inline
+#define G10_MPI_INLINE_DECL static inline
#endif

G10_MPI_INLINE_DECL mpi_limb_t
diff --git a/lib/mpi/mpi-internal.h b/lib/mpi/mpi-internal.h
index c65dd1bff45a..09e9f13c5ba0 100644
--- a/lib/mpi/mpi-internal.h
+++ b/lib/mpi/mpi-internal.h
@@ -168,20 +168,12 @@ void mpi_rshift_limbs(MPI a, unsigned int count);
int mpi_lshift_limbs(MPI a, unsigned int count);

/*-- mpihelp-add.c --*/
-mpi_limb_t mpihelp_add_1(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr,
- mpi_size_t s1_size, mpi_limb_t s2_limb);
mpi_limb_t mpihelp_add_n(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr,
mpi_ptr_t s2_ptr, mpi_size_t size);
-mpi_limb_t mpihelp_add(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr, mpi_size_t s1_size,
- mpi_ptr_t s2_ptr, mpi_size_t s2_size);

/*-- mpihelp-sub.c --*/
-mpi_limb_t mpihelp_sub_1(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr,
- mpi_size_t s1_size, mpi_limb_t s2_limb);
mpi_limb_t mpihelp_sub_n(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr,
mpi_ptr_t s2_ptr, mpi_size_t size);
-mpi_limb_t mpihelp_sub(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr, mpi_size_t s1_size,
- mpi_ptr_t s2_ptr, mpi_size_t s2_size);

/*-- mpihelp-cmp.c --*/
int mpihelp_cmp(mpi_ptr_t op1_ptr, mpi_ptr_t op2_ptr, mpi_size_t size);
@@ -238,7 +230,7 @@ mpi_limb_t mpihelp_rshift(mpi_ptr_t wp, mpi_ptr_t up, mpi_size_t usize,
#define W_TYPE_SIZE BITS_PER_MPI_LIMB
typedef mpi_limb_t UWtype;
typedef unsigned int UHWtype;
-#if defined(__GNUC__)
+#if defined(__GNUC__) && !defined(__clang__)
typedef unsigned int UQItype __attribute__ ((mode(QI)));
typedef int SItype __attribute__ ((mode(SI)));
typedef unsigned int USItype __attribute__ ((mode(SI)));
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include
index 1db6d73c8dd2..30d9343f0c4b 100644
--- a/scripts/Kbuild.include
+++ b/scripts/Kbuild.include
@@ -111,12 +111,12 @@ as-instr = $(call try-run,\
# Usage: cflags-y += $(call cc-option,-march=winchip-c6,-march=i586)

cc-option = $(call try-run,\
- $(CC) $(KBUILD_CPPFLAGS) $(KBUILD_CFLAGS) $(1) -c -x c /dev/null -o "$$TMP",$(1),$(2))
+ $(CC) -Werror $(KBUILD_CPPFLAGS) $(KBUILD_CFLAGS) $(1) -c -x c /dev/null -o "$$TMP",$(1),$(2))

# cc-option-yn
# Usage: flag := $(call cc-option-yn,-march=winchip-c6)
cc-option-yn = $(call try-run,\
- $(CC) $(KBUILD_CPPFLAGS) $(KBUILD_CFLAGS) $(1) -c -x c /dev/null -o "$$TMP",y,n)
+ $(CC) -Werror $(KBUILD_CPPFLAGS) $(KBUILD_CFLAGS) $(1) -c -x c /dev/null -o "$$TMP",y,n)

# cc-option-align
# Prefix align with either -falign or -malign
@@ -126,7 +126,7 @@ cc-option-align = $(subst -functions=0,,\
# cc-disable-warning
# Usage: cflags-y += $(call cc-disable-warning,unused-but-set-variable)
cc-disable-warning = $(call try-run,\
- $(CC) $(KBUILD_CPPFLAGS) $(KBUILD_CFLAGS) -W$(strip $(1)) -c -x c /dev/null -o "$$TMP",-Wno-$(strip $(1)))
+ $(CC) -Werror $(KBUILD_CPPFLAGS) $(KBUILD_CFLAGS) -W$(strip $(1)) -c -x c /dev/null -o "$$TMP",-Wno-$(strip $(1)))

# cc-name
# Expands to either gcc or clang
diff --git a/scripts/Makefile.build b/scripts/Makefile.build
index 01df30af4d4a..6ff524dac82b 100644
--- a/scripts/Makefile.build
+++ b/scripts/Makefile.build
@@ -174,6 +174,20 @@ cmd_cc_symtypes_c = \
$(obj)/%.symtypes : $(src)/%.c FORCE
$(call cmd,cc_symtypes_c)

+# LLVM bitcode
+# Generate .ll files from .s and .c
+quiet_cmd_cc_ll_c = CC $(quiet_modtag) $@
+ cmd_cc_ll_c = $(CC) $(c_flags) -emit-llvm -S -o $@ $<
+
+$(obj)/%.ll: $(src)/%.c FORCE
+ $(call if_changed_dep,cc_ll_c)
+
+quiet_cmd_as_ll_S = CPP $(quiet_modtag) $@
+ cmd_as_ll_S = $(CPP) $(a_flags) -o $@ $<
+
+$(obj)/%.ll: $(src)/%.S FORCE
+ $(call if_changed_dep,as_ll_S)
+
# C (.c) files
# The C file is compiled and updated dependency information is generated.
# (See cmd_cc_o_c + relevant part of rule_cc_o_c)
diff --git a/scripts/mod/Makefile b/scripts/mod/Makefile
index c11212ff3510..86f6b852cd93 100644
--- a/scripts/mod/Makefile
+++ b/scripts/mod/Makefile
@@ -6,10 +6,10 @@ modpost-objs := modpost.o file2alias.o sumversion.o
devicetable-offsets-file := devicetable-offsets.h

define sed-y
- "/^->/{s:->#\(.*\):/* \1 */:; \
- s:^->\([^ ]*\) [\$$#]*\([-0-9]*\) \(.*\):#define \1 \2 /* \3 */:; \
- s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; \
- s:->::; p;}"
+ "/^@->/{s:@->#\(.*\):/* \1 */:; \
+ s:^@->\([^ ]*\) [\$$#]*\([-0-9]*\) \(.*\):#define \1 \2 /* \3 */:; \
+ s:^@->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; \
+ s:@->::; p;}"
endef

quiet_cmd_offsets = GEN $@
diff --git a/security/apparmor/crypto.c b/security/apparmor/crypto.c
index 532471d0b3a0..c948247e90c2 100644
--- a/security/apparmor/crypto.c
+++ b/security/apparmor/crypto.c
@@ -32,10 +32,7 @@ unsigned int aa_hash_size(void)
int aa_calc_profile_hash(struct aa_profile *profile, u32 version, void *start,
size_t len)
{
- struct {
- struct shash_desc shash;
- char ctx[crypto_shash_descsize(apparmor_tfm)];
- } desc;
+ SHASH_DESC_ON_STACK(shash, apparmor_tfm);
int error = -ENOMEM;
u32 le32_version = cpu_to_le32(version);

@@ -46,19 +43,19 @@ int aa_calc_profile_hash(struct aa_profile *profile, u32 version, void *start,
if (!profile->hash)
goto fail;

- desc.shash.tfm = apparmor_tfm;
- desc.shash.flags = 0;
+ shash->tfm = apparmor_tfm;
+ shash->flags = 0;

- error = crypto_shash_init(&desc.shash);
+ error = crypto_shash_init(shash);
if (error)
goto fail;
- error = crypto_shash_update(&desc.shash, (u8 *) &le32_version, 4);
+ error = crypto_shash_update(shash, (u8 *) &le32_version, 4);
if (error)
goto fail;
- error = crypto_shash_update(&desc.shash, (u8 *) start, len);
+ error = crypto_shash_update(shash, (u8 *) start, len);
if (error)
goto fail;
- error = crypto_shash_final(&desc.shash, profile->hash);
+ error = crypto_shash_final(shash, profile->hash);
if (error)
goto fail;
\
 
 \ /
  Last update: 2016-03-06 00:01    [W:0.148 / U:0.592 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site