lkml.org 
[lkml]   [2016]   [Mar]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patches in this message
/
Date
SubjectRe: [PATCH] usbhid: Fix lockdep unannotated irqs-off warning
From
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 switched over to Linux v4.4.y LTS and CLANG v3.8 (currently "rc3").
My GCC is still v4.9.2.
CONFIG_PARAVIRT=n as suggested by Steven is the only difference when
using CLANG.

I have seen those bug-lines first with Linux v4.2.y.
BTW, my recent testing was done with Linux v4.5-rc6 and my llvmlinux
patchset (see file attachments).

Plugging my Logitech mouse to a USB 2.0 or 3.0 port does not matter.

[ FACT #1: LOG-FILES ]

The simple fact, the bug-lines/outputs are only visible with
CLANG-compiled Linux-kernel but not GCC-compiled ones.
Folks tend to speculate on a compiler-bug - I am not sure, really.

[ FACT #2: TEST-CASE #1 ]

Doing wild cut-n-paste in Firefox crashed all my Linux v4.4.3 kernels
- CLANG and GCC (!) compiled.
Means restarting my X/desktop and landing in LightDM login-manager
here on Ubuntu/precise AMD64.

[ FACT #3: TEST-CASE #2 ]

The most reliable test-case is to simply unplug my external Logitech
USB mouse - saw this by accident.
YES, it was so simple.

--- dmesg_4.5.0-rc6-2-llvmlinux-amd64.txt 2016-02-29
21:23:56.399691975 +0100
+++ dmesg_4.5.0-rc6-2-llvmlinux-amd64_usbmouse-unplugged.txt
2016-02-29 21:28:14.401832240 +0100
@@ -832,3 +832,75 @@
[ 66.529779] PPP BSD Compression module registered
[ 66.563013] PPP Deflate Compression module registered
[ 66.978977] usb 2-1.5: USB disconnect, device number 4
+[ 321.937369] usb 2-1.4: USB disconnect, device number 3
+[ 321.950810] BUG: sleeping function called from invalid context at
kernel/workqueue.c:2785
+[ 321.950816] in_atomic(): 0, irqs_disabled(): 1, pid: 44, name: kworker/2:1
+[ 321.950819] 9 locks held by kworker/2:1/44:
+[ 321.950820] #0: ("usb_hub_wq"){.+.+.+}, at: [<ffffffff810a7c5f>]
process_one_work+0x30f/0x8d0
+[ 321.950830] #1: ((&hub->events)){+.+.+.}, at:
[<ffffffff810a7c8c>] process_one_work+0x33c/0x8d0
+[ 321.950836] #2: (&dev->mutex){......}, at: [<ffffffff816fb0e0>]
hub_event+0x50/0x15b0
+[ 321.950844] #3: (&dev->mutex){......}, at: [<ffffffff816f686f>]
usb_disconnect+0x5f/0x2c0
+[ 321.950849] #4: (&dev->mutex){......}, at: [<ffffffff816245a2>]
device_release_driver+0x22/0x40
+[ 321.950856] #5: (&dev->mutex){......}, at: [<ffffffff816245a2>]
device_release_driver+0x22/0x40
+[ 321.950862] #6: (input_mutex){+.+.+.}, at: [<ffffffff8175171a>]
__input_unregister_device+0x9a/0x190
+[ 321.950869] #7: (&dev->mutex#2){+.+...}, at:
[<ffffffff8174fe27>] input_close_device+0x27/0x70
+[ 321.950875] #8: (hid_open_mut){+.+...}, at: [<ffffffffa0057388>]
usbhid_close+0x28/0xb0 [usbhid]
+[ 321.950883] irq event stamp: 47770
+[ 321.950885] hardirqs last enabled at (47769):
[<ffffffff819426a2>] _raw_spin_unlock_irq+0x32/0x60
+[ 321.950889] hardirqs last disabled at (47770):
[<ffffffff81115bdc>] del_timer_sync+0x3c/0x110
+[ 321.950894] softirqs last enabled at (47112):
[<ffffffff810871a2>] __do_softirq+0x5a2/0x610
+[ 321.950898] softirqs last disabled at (47097):
[<ffffffff8108747c>] irq_exit+0x9c/0x120
+[ 321.950903] CPU: 2 PID: 44 Comm: kworker/2:1 Not tainted
4.5.0-rc6-2-llvmlinux-amd64 #1
+[ 321.950905] Hardware name: SAMSUNG ELECTRONICS CO., LTD.
530U3BI/530U4BI/530U4BH/530U3BI/530U4BI/530U4BH, BIOS 13XK 03/28/2013
+[ 321.950908] Workqueue: usb_hub_wq hub_event
+[ 321.950911] ffff8800d3326948 0000000000000092 0000000000000000
ffff8800d4347568
+[ 321.950915] ffffffff814ba7d4 ffff8800d43474f8 ffff8800d4340cc0
ffff8800d4347568
+[ 321.950919] ffffffff810e28fd 0000000000000092 0000000000000096
ffff8800d43475a8
+[ 321.950923] Call Trace:
+[ 321.950927] [<ffffffff814ba7d4>] dump_stack+0xa4/0xf0
+[ 321.950931] [<ffffffff810e28fd>] ? print_irqtrace_events+0xcd/0xe0
+[ 321.950936] [<ffffffff810bf495>] ___might_sleep+0x295/0x2b0
+[ 321.950939] [<ffffffff810bf18f>] __might_sleep+0x4f/0xc0
+[ 321.950943] [<ffffffff810a12ef>] start_flush_work+0x2f/0x2a0
+[ 321.950946] [<ffffffff810a129c>] flush_work+0x5c/0x80
+[ 321.950949] [<ffffffff810a125a>] ? flush_work+0x1a/0x80
+[ 321.950953] [<ffffffff810e247d>] ? trace_hardirqs_off+0xd/0x10
+[ 321.950956] [<ffffffff810a032a>] ? try_to_grab_pending+0x4a/0x260
+[ 321.950960] [<ffffffff810a1717>] __cancel_work_timer+0x197/0x290
+[ 321.950963] [<ffffffff81115b8d>] ? try_to_del_timer_sync+0xad/0xc0
+[ 321.950966] [<ffffffff810a1578>] cancel_work_sync+0x18/0x20
+[ 321.950970] [<ffffffffa00573d5>] usbhid_close+0x75/0xb0 [usbhid]
+[ 321.950977] [<ffffffffa003a481>] hidinput_close+0x31/0x40 [hid]
+[ 321.950982] [<ffffffffa003a450>] ? hidinput_open+0x40/0x40 [hid]
+[ 321.950985] [<ffffffff8174fe48>] input_close_device+0x48/0x70
+[ 321.950988] [<ffffffff81757f85>] evdev_cleanup+0xd5/0xe0
+[ 321.950990] [<ffffffff81757b0c>] evdev_disconnect+0x2c/0x60
+[ 321.950993] [<ffffffff8175173e>] __input_unregister_device+0xbe/0x190
+[ 321.950996] [<ffffffff8175164a>] input_unregister_device+0x4a/0x80
+[ 321.951001] [<ffffffffa003a29f>] hidinput_disconnect+0x8f/0xc0 [hid]
+[ 321.951007] [<ffffffffa0034a30>] hid_device_remove+0xb0/0x130 [hid]
+[ 321.951010] [<ffffffff816246bd>] __device_release_driver+0xfd/0x190
+[ 321.951014] [<ffffffff816245aa>] device_release_driver+0x2a/0x40
+[ 321.951017] [<ffffffff816224a3>] bus_remove_device+0x153/0x190
+[ 321.951020] [<ffffffff8161f5fb>] device_del+0x1db/0x2b0
+[ 321.951025] [<ffffffffa0033c1c>] hid_destroy_device+0x2c/0x60 [hid]
+[ 321.951029] [<ffffffffa0058537>] usbhid_disconnect+0x67/0x90 [usbhid]
+[ 321.951033] [<ffffffff81706ebf>] usb_unbind_interface+0xbf/0x2b0
+[ 321.951037] [<ffffffff816246bd>] __device_release_driver+0xfd/0x190
+[ 321.951040] [<ffffffff816245aa>] device_release_driver+0x2a/0x40
+[ 321.951043] [<ffffffff816224a3>] bus_remove_device+0x153/0x190
+[ 321.951046] [<ffffffff8161f5fb>] device_del+0x1db/0x2b0
+[ 321.951048] [<ffffffff8161f6fc>] ? device_unregister+0x2c/0x40
+[ 321.951051] [<ffffffff81704f6b>] usb_disable_device+0x10b/0x3b0
+[ 321.951054] [<ffffffff816f6904>] usb_disconnect+0xf4/0x2c0
+[ 321.951057] [<ffffffff816fbc3d>] hub_event+0xbad/0x15b0
+[ 321.951060] [<ffffffff819426a2>] ? _raw_spin_unlock_irq+0x32/0x60
+[ 321.951063] [<ffffffff810a7e0e>] process_one_work+0x4be/0x8d0
+[ 321.951065] [<ffffffff810a7c8c>] ? process_one_work+0x33c/0x8d0
+[ 321.951068] [<ffffffff810a757b>] worker_thread+0x5cb/0x750
+[ 321.951071] [<ffffffff810a6fb0>] ? destroy_worker+0x110/0x110
+[ 321.951074] [<ffffffff810ae1c5>] kthread+0x115/0x120
+[ 321.951077] [<ffffffff810e248d>] ? trace_hardirqs_on+0xd/0x10
+[ 321.951080] [<ffffffff810ae0b0>] ? flush_kthread_worker+0x80/0x80
+[ 321.951084] [<ffffffff819435ff>] ret_from_fork+0x3f/0x70
+[ 321.951087] [<ffffffff810ae0b0>] ? flush_kthread_worker+0x80/0x80
As this touches workqueue and usb_hub_wq...

[ drivers/usb/core/hub.c ]

5214: hub_wq = alloc_workqueue("usb_hub_wq", WQ_FREEZABLE, 0);

...see...

+[ 321.950908] Workqueue: usb_hub_wq hub_event

...I have CCed USB core maintainers ans folks I know they can help.

Here some Linux kernel-config I have enabled to investigate the issue...

[ LINUX-CONFIG ]

$ egrep 'CONFIG_TRACING=|TRACE_IRQFLAGS|IRQSOFF_TRACER|CONTEXT_TRACKING|LOCKDEP=|PROVE_LOCKING'
/tmp/config-4.5.0-rc6-2-llvmlinux-amd64
CONFIG_CONTEXT_TRACKING=y
# CONFIG_CONTEXT_TRACKING_FORCE is not set
CONFIG_HAVE_CONTEXT_TRACKING=y
CONFIG_TRACE_IRQFLAGS_SUPPORT=y
CONFIG_PROVE_LOCKING=y
CONFIG_LOCKDEP=y
CONFIG_DEBUG_LOCKDEP=y
CONFIG_TRACE_IRQFLAGS=y
CONFIG_TRACING=y
CONFIG_IRQSOFF_TRACER=y
For more details please, see attached files!

Sorry, this is far beyond a cool bug-report, but I could do it like
this for the moment.

Hope this helps to get some interesting and new ideas.

- Sedat -
[ 0.000000] Linux version 4.5.0-rc6-2-llvmlinux-amd64 (sedat.dilek@gmail.com@fambox) (clang version 3.8.0 ) #1 SMP Mon Feb 29 20:58:39 CET 2016
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.5.0-rc6-2-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 [0x02fd0000, 0x02fd0fff] PGTABLE
[ 0.000000] BRK [0x02fd1000, 0x02fd1fff] PGTABLE
[ 0.000000] BRK [0x02fd2000, 0x02fd2fff] PGTABLE
[ 0.000000] BRK [0x02fd3000, 0x02fd3fff] PGTABLE
[ 0.000000] BRK [0x02fd4000, 0x02fd4fff] PGTABLE
[ 0.000000] BRK [0x02fd5000, 0x02fd5fff] PGTABLE
[ 0.000000] RAMDISK: [mem 0x37868000-0x37c2bfff]
[ 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.5.0-rc6-2-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: 3915416K/4086000K available (9504K kernel code, 1171K rwdata, 3396K rodata, 3008K init, 14020K bss, 170584K 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.475 MHz processor
[ 0.000004] Calibrating delay loop (skipped), value calculated using timer frequency.. 3192.95 BogoMIPS (lpj=6385900)
[ 0.000021] pid_max: default: 32768 minimum: 301
[ 0.000072] ACPI: Core revision 20160108
[ 0.025884] ACPI: 5 ACPI AML tables successfully acquired and loaded
[ 0.025897]
[ 0.026152] Security Framework initialized
[ 0.026160] Yama: becoming mindful.
[ 0.026208] AppArmor: AppArmor initialized
[ 0.026983] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
[ 0.028149] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
[ 0.028669] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.028691] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.030502] Disabled fast string operations
[ 0.030513] CPU: Physical Processor ID: 0
[ 0.030519] CPU: Processor Core ID: 0
[ 0.030530] ENERGY_PERF_BIAS: Set to 'normal', was 'performance'
[ 0.030538] ENERGY_PERF_BIAS: View and update with x86_energy_perf_policy(8)
[ 0.030549] mce: CPU supports 7 MCE banks
[ 0.030596] CPU0: Thermal monitoring enabled (TM1)
[ 0.030621] process: using mwait in idle threads
[ 0.030631] Last level iTLB entries: 4KB 512, 2MB 8, 4MB 8
[ 0.030640] Last level dTLB entries: 4KB 512, 2MB 32, 4MB 32, 1GB 0
[ 0.031285] Freeing SMP alternatives memory: 28K (ffffffff82216000 - ffffffff8221d000)
[ 0.051115] ftrace: allocating 226324 entries in 885 pages
[ 0.161190] x2apic: IRQ remapping doesn't support X2APIC mode
[ 0.161849] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[ 0.201548] TSC deadline timer enabled
[ 0.201554] smpboot: CPU0: Intel(R) Core(TM) i5-2467M CPU @ 1.60GHz (family: 0x6, model: 0x2a, stepping: 0x7)
[ 0.201610] Performance Events: PEBS fmt1+, 16-deep LBR, SandyBridge events, full-width counters, Intel PMU driver.
[ 0.201656] ... version: 3
[ 0.201661] ... bit width: 48
[ 0.201666] ... generic registers: 4
[ 0.201671] ... value mask: 0000ffffffffffff
[ 0.201677] ... max period: 0000ffffffffffff
[ 0.201682] ... fixed-purpose events: 3
[ 0.201687] ... event mask: 000000070000000f
[ 0.203881] x86: Booting SMP configuration:
[ 0.203889] .... node #0, CPUs: #1
[ 0.204230] Disabled fast string operations
[ 0.206845] NMI watchdog: enabled on all CPUs, permanently consumes one hw-PMU counter.
[ 0.207436] #2
[ 0.207743] Disabled fast string operations
[ 0.210394] #3<6>[ 0.210705] Disabled fast string operations
[ 0.212851] x86: Booted up 1 node, 4 CPUs
[ 0.212865] smpboot: Total of 4 processors activated (12771.80 BogoMIPS)
[ 0.217727] devtmpfs: initialized
[ 0.224403] evm: security.selinux
[ 0.224410] evm: security.SMACK64
[ 0.224415] evm: security.capability
[ 0.224641] PM: Registering ACPI NVS region [mem 0xdae7f000-0xdaf9efff] (1179648 bytes)
[ 0.225060] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.226714] NET: Registered protocol family 16
[ 0.236627] cpuidle: using governor ladder
[ 0.248543] cpuidle: using governor menu
[ 0.248747] ACPI: bus type PCI registered
[ 0.249087] PCI: MMCONFIG for domain 0000 [bus 00-3f] at [mem 0xf8000000-0xfbffffff] (base 0xf8000000)
[ 0.249100] PCI: MMCONFIG at [mem 0xf8000000-0xfbffffff] reserved in E820
[ 0.249116] PCI: Using configuration type 1 for base access
[ 0.249883] perf_event_intel: PMU erratum BJ122, BV98, HSD29 worked around, HT is on
[ 0.268979] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[ 0.270413] ACPI: Added _OSI(Module Device)
[ 0.270421] ACPI: Added _OSI(Processor Device)
[ 0.270427] ACPI: Added _OSI(3.0 _SCP Extensions)
[ 0.270433] ACPI: Added _OSI(Processor Aggregator Device)
[ 0.278018] ACPI: Executed 1 blocks of module-level executable AML code
[ 0.288311] [Firmware Bug]: ACPI: BIOS _OSI(Linux) query ignored
[ 0.290366] ACPI: Dynamic OEM Table Load:
[ 0.290396] ACPI: SSDT 0xFFFF88011A731000 000688 (v01 PmRef Cpu0Cst 00003001 INTL 20061109)
[ 0.292983] ACPI: Dynamic OEM Table Load:
[ 0.293012] ACPI: SSDT 0xFFFF88011A7E4400 000303 (v01 PmRef ApIst 00003000 INTL 20061109)
[ 0.295386] ACPI: Dynamic OEM Table Load:
[ 0.295413] ACPI: SSDT 0xFFFF88011A7D4A00 000119 (v01 PmRef ApCst 00003000 INTL 20061109)
[ 0.299389] ACPI : EC: EC started
[ 0.300801] ACPI: Interpreter enabled
[ 0.300877] ACPI: (supports S0 S1 S3 S4 S5)
[ 0.300884] ACPI: Using IOAPIC for interrupt routing
[ 0.300975] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[ 0.325663] ACPI: Power Resource [FN00] (off)
[ 0.326170] ACPI: Power Resource [FN01] (off)
[ 0.326562] ACPI: Power Resource [FN02] (off)
[ 0.326946] ACPI: Power Resource [FN03] (off)
[ 0.327331] ACPI: Power Resource [FN04] (off)
[ 0.330117] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-3e])
[ 0.330132] acpi PNP0A08:00: _OSC: OS supports [ExtendedConfig ASPM ClockPM Segments MSI]
[ 0.330880] \_SB_.PCI0 (33DB4D5B-1FF7-401C-9657-7441C03DD766): _OSC invalid UUID
[ 0.330882] _OSC request data: 1 1f 0
[ 0.330889] acpi PNP0A08:00: _OSC failed (AE_ERROR); disabling ASPM
[ 0.331926] PCI host bridge to bus 0000:00
[ 0.331935] pci_bus 0000:00: root bus resource [io 0x0000-0x0cf7 window]
[ 0.331943] pci_bus 0000:00: root bus resource [io 0x0d00-0xffff window]
[ 0.331951] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff window]
[ 0.331961] pci_bus 0000:00: root bus resource [mem 0xdfa00000-0xfeafffff window]
[ 0.331970] pci_bus 0000:00: root bus resource [mem 0xfed40000-0xfed44fff window]
[ 0.331980] pci_bus 0000:00: root bus resource [bus 00-3e]
[ 0.332078] pci 0000:00:00.0: [8086:0104] type 00 class 0x060000
[ 0.332543] pci 0000:00:02.0: [8086:0116] type 00 class 0x030000
[ 0.332564] pci 0000:00:02.0: reg 0x10: [mem 0xf0000000-0xf03fffff 64bit]
[ 0.332577] pci 0000:00:02.0: reg 0x18: [mem 0xe0000000-0xefffffff 64bit pref]
[ 0.332587] pci 0000:00:02.0: reg 0x20: [io 0x3000-0x303f]
[ 0.333095] pci 0000:00:16.0: [8086:1c3a] type 00 class 0x078000
[ 0.333137] pci 0000:00:16.0: reg 0x10: [mem 0xf0705000-0xf070500f 64bit]
[ 0.333292] pci 0000:00:16.0: PME# supported from D0 D3hot D3cold
[ 0.333693] pci 0000:00:1a.0: [8086:1c2d] type 00 class 0x0c0320
[ 0.333728] pci 0000:00:1a.0: reg 0x10: [mem 0xf070a000-0xf070a3ff]
[ 0.333905] pci 0000:00:1a.0: PME# supported from D0 D3hot D3cold
[ 0.334258] pci 0000:00:1b.0: [8086:1c20] type 00 class 0x040300
[ 0.334297] pci 0000:00:1b.0: reg 0x10: [mem 0xf0700000-0xf0703fff 64bit]
[ 0.334479] pci 0000:00:1b.0: PME# supported from D0 D3hot D3cold
[ 0.334694] pci 0000:00:1b.0: System wakeup disabled by ACPI
[ 0.334881] pci 0000:00:1c.0: [8086:1c10] type 01 class 0x060400
[ 0.335052] pci 0000:00:1c.0: PME# supported from D0 D3hot D3cold
[ 0.335238] pci 0000:00:1c.0: System wakeup disabled by ACPI
[ 0.335426] pci 0000:00:1c.3: [8086:1c16] type 01 class 0x060400
[ 0.335598] pci 0000:00:1c.3: PME# supported from D0 D3hot D3cold
[ 0.335782] pci 0000:00:1c.3: System wakeup disabled by ACPI
[ 0.335968] pci 0000:00:1c.4: [8086:1c18] type 01 class 0x060400
[ 0.336144] pci 0000:00:1c.4: PME# supported from D0 D3hot D3cold
[ 0.336517] pci 0000:00:1d.0: [8086:1c26] type 00 class 0x0c0320
[ 0.336552] pci 0000:00:1d.0: reg 0x10: [mem 0xf0709000-0xf07093ff]
[ 0.336737] pci 0000:00:1d.0: PME# supported from D0 D3hot D3cold
[ 0.337081] pci 0000:00:1f.0: [8086:1c49] type 00 class 0x060100
[ 0.337587] pci 0000:00:1f.2: [8086:1c03] type 00 class 0x010601
[ 0.337624] pci 0000:00:1f.2: reg 0x10: [io 0x3088-0x308f]
[ 0.337642] pci 0000:00:1f.2: reg 0x14: [io 0x3094-0x3097]
[ 0.337660] pci 0000:00:1f.2: reg 0x18: [io 0x3080-0x3087]
[ 0.337679] pci 0000:00:1f.2: reg 0x1c: [io 0x3090-0x3093]
[ 0.337697] pci 0000:00:1f.2: reg 0x20: [io 0x3060-0x307f]
[ 0.337715] pci 0000:00:1f.2: reg 0x24: [mem 0xf0708000-0xf07087ff]
[ 0.337824] pci 0000:00:1f.2: PME# supported from D3hot
[ 0.338164] pci 0000:00:1f.3: [8086:1c22] type 00 class 0x0c0500
[ 0.338199] pci 0000:00:1f.3: reg 0x10: [mem 0xf0704000-0xf07040ff 64bit]
[ 0.338249] pci 0000:00:1f.3: reg 0x20: [io 0xefa0-0xefbf]
[ 0.338981] pci 0000:01:00.0: [8086:0091] type 00 class 0x028000
[ 0.339373] pci 0000:01:00.0: reg 0x10: [mem 0xf0600000-0xf0601fff 64bit]
[ 0.341156] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[ 0.341619] pci 0000:01:00.0: System wakeup disabled by ACPI
[ 0.352971] pci 0000:00:1c.0: PCI bridge to [bus 01]
[ 0.352989] pci 0000:00:1c.0: bridge window [mem 0xf0600000-0xf06fffff]
[ 0.353219] pci 0000:02:00.0: [10ec:8168] type 00 class 0x020000
[ 0.353313] pci 0000:02:00.0: reg 0x10: [io 0x2000-0x20ff]
[ 0.353453] pci 0000:02:00.0: reg 0x18: [mem 0xf0404000-0xf0404fff 64bit pref]
[ 0.353540] pci 0000:02:00.0: reg 0x20: [mem 0xf0400000-0xf0403fff 64bit pref]
[ 0.354012] pci 0000:02:00.0: supports D1 D2
[ 0.354015] pci 0000:02:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[ 0.354220] pci 0000:02:00.0: System wakeup disabled by ACPI
[ 0.364900] pci 0000:00:1c.3: PCI bridge to [bus 02]
[ 0.364913] pci 0000:00:1c.3: bridge window [io 0x2000-0x2fff]
[ 0.364929] pci 0000:00:1c.3: bridge window [mem 0xf0400000-0xf04fffff 64bit pref]
[ 0.365129] pci 0000:03:00.0: [1b21:1042] type 00 class 0x0c0330
[ 0.365180] pci 0000:03:00.0: reg 0x10: [mem 0xf0500000-0xf0507fff 64bit]
[ 0.365460] pci 0000:03:00.0: PME# supported from D3hot D3cold
[ 0.365778] pci 0000:00:1c.4: PCI bridge to [bus 03]
[ 0.365795] pci 0000:00:1c.4: bridge window [mem 0xf0500000-0xf05fffff]
[ 0.368154] ACPI: PCI Interrupt Link [LNKA] (IRQs 1 3 4 5 6 10 *11 12 14 15)
[ 0.368369] ACPI: PCI Interrupt Link [LNKB] (IRQs 1 3 4 5 6 10 11 12 14 15) *0, disabled.
[ 0.368583] ACPI: PCI Interrupt Link [LNKC] (IRQs 1 3 4 5 6 *10 11 12 14 15)
[ 0.368805] ACPI: PCI Interrupt Link [LNKD] (IRQs 1 3 4 5 6 *10 11 12 14 15)
[ 0.369029] ACPI: PCI Interrupt Link [LNKE] (IRQs 1 3 4 5 6 10 11 12 14 15) *9
[ 0.369239] ACPI: PCI Interrupt Link [LNKF] (IRQs 1 3 4 5 6 10 11 12 14 15) *0, disabled.
[ 0.369451] ACPI: PCI Interrupt Link [LNKG] (IRQs 1 3 4 5 6 10 *11 12 14 15)
[ 0.369661] ACPI: PCI Interrupt Link [LNKH] (IRQs 1 3 4 5 6 10 11 12 14 15) *9
[ 0.371173] ACPI: Enabled 4 GPEs in block 00 to 3F
[ 0.371348] ACPI : EC: GPE = 0x17, I/O: command/status = 0x66, data = 0x62
[ 0.371678] ACPI : EC: 0 stale EC events cleared
[ 0.372460] vgaarb: setting as boot device: PCI:0000:00:02.0
[ 0.372468] vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
[ 0.372486] vgaarb: loaded
[ 0.372491] vgaarb: bridge control possible 0000:00:02.0
[ 0.373317] SCSI subsystem initialized
[ 0.373504] libata version 3.00 loaded.
[ 0.373613] ACPI: bus type USB registered
[ 0.373707] usbcore: registered new interface driver usbfs
[ 0.373753] usbcore: registered new interface driver hub
[ 0.373845] usbcore: registered new device driver usb
[ 0.374368] PCI: Using ACPI for IRQ routing
[ 0.378099] PCI: pci_cache_line_size set to 64 bytes
[ 0.378233] e820: reserve RAM buffer [mem 0x0009d800-0x0009ffff]
[ 0.378243] e820: reserve RAM buffer [mem 0xd9c9f000-0xdbffffff]
[ 0.378246] e820: reserve RAM buffer [mem 0xdb000000-0xdbffffff]
[ 0.378249] e820: reserve RAM buffer [mem 0x11fe00000-0x11fffffff]
[ 0.379106] NetLabel: Initializing
[ 0.379112] NetLabel: domain hash size = 128
[ 0.379117] NetLabel: protocols = UNLABELED CIPSOv4
[ 0.379182] NetLabel: unlabeled traffic allowed by default
[ 0.379411] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0, 0, 0, 0, 0, 0
[ 0.379428] hpet0: 8 comparators, 64-bit 14.318180 MHz counter
[ 0.382549] clocksource: Switched to clocksource hpet
[ 0.430817] VFS: Disk quotas dquot_6.6.0
[ 0.430876] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.431534] AppArmor: AppArmor Filesystem Enabled
[ 0.431814] pnp: PnP ACPI init
[ 0.432535] system 00:00: [io 0x0680-0x069f] has been reserved
[ 0.432546] system 00:00: [io 0x1000-0x100f] has been reserved
[ 0.432554] system 00:00: [io 0x5000-0x5003] has been reserved
[ 0.432563] system 00:00: [io 0xffff] has been reserved
[ 0.432572] system 00:00: [io 0x0400-0x0453] could not be reserved
[ 0.432580] system 00:00: [io 0x0458-0x047f] has been reserved
[ 0.432589] system 00:00: [io 0x0500-0x057f] has been reserved
[ 0.432597] system 00:00: [io 0x0a00-0x0a0f] has been reserved
[ 0.432605] system 00:00: [io 0x164e-0x164f] has been reserved
[ 0.432614] system 00:00: [io 0x5000-0x500f] could not be reserved
[ 0.432659] system 00:00: Plug and Play ACPI device, IDs PNP0c02 (active)
[ 0.432767] pnp 00:01: Plug and Play ACPI device, IDs PNP0b00 (active)
[ 0.432963] system 00:02: [io 0x0454-0x0457] has been reserved
[ 0.432977] system 00:02: Plug and Play ACPI device, IDs INT3f0d PNP0c02 (active)
[ 0.433095] pnp 00:03: Plug and Play ACPI device, IDs PNP0303 (active)
[ 0.433243] pnp 00:04: Plug and Play ACPI device, IDs ETD0b00 SYN0002 PNP0f13 (active)
[ 0.433769] system 00:05: [mem 0xfed1c000-0xfed1ffff] has been reserved
[ 0.433780] system 00:05: [mem 0xfed10000-0xfed17fff] has been reserved
[ 0.433789] system 00:05: [mem 0xfed18000-0xfed18fff] has been reserved
[ 0.433798] system 00:05: [mem 0xfed19000-0xfed19fff] has been reserved
[ 0.433809] system 00:05: [mem 0xf8000000-0xfbffffff] has been reserved
[ 0.433818] system 00:05: [mem 0xfed20000-0xfed3ffff] has been reserved
[ 0.433827] system 00:05: [mem 0xfed90000-0xfed93fff] has been reserved
[ 0.433837] system 00:05: [mem 0xfed45000-0xfed8ffff] has been reserved
[ 0.433847] system 00:05: [mem 0xff000000-0xffffffff] could not be reserved
[ 0.433856] system 00:05: [mem 0xfee00000-0xfeefffff] could not be reserved
[ 0.433870] system 00:05: Plug and Play ACPI device, IDs PNP0c02 (active)
[ 0.434864] system 00:06: Plug and Play ACPI device, IDs PNP0c01 (active)
[ 0.434929] pnp: PnP ACPI: found 7 devices
[ 0.447369] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns
[ 0.447436] pci 0000:00:1c.0: PCI bridge to [bus 01]
[ 0.447451] pci 0000:00:1c.0: bridge window [mem 0xf0600000-0xf06fffff]
[ 0.447472] pci 0000:00:1c.3: PCI bridge to [bus 02]
[ 0.447481] pci 0000:00:1c.3: bridge window [io 0x2000-0x2fff]
[ 0.447499] pci 0000:00:1c.3: bridge window [mem 0xf0400000-0xf04fffff 64bit pref]
[ 0.447518] pci 0000:00:1c.4: PCI bridge to [bus 03]
[ 0.447530] pci 0000:00:1c.4: bridge window [mem 0xf0500000-0xf05fffff]
[ 0.447553] pci_bus 0000:00: resource 4 [io 0x0000-0x0cf7 window]
[ 0.447555] pci_bus 0000:00: resource 5 [io 0x0d00-0xffff window]
[ 0.447557] pci_bus 0000:00: resource 6 [mem 0x000a0000-0x000bffff window]
[ 0.447560] pci_bus 0000:00: resource 7 [mem 0xdfa00000-0xfeafffff window]
[ 0.447562] pci_bus 0000:00: resource 8 [mem 0xfed40000-0xfed44fff window]
[ 0.447564] pci_bus 0000:01: resource 1 [mem 0xf0600000-0xf06fffff]
[ 0.447567] pci_bus 0000:02: resource 0 [io 0x2000-0x2fff]
[ 0.447569] pci_bus 0000:02: resource 2 [mem 0xf0400000-0xf04fffff 64bit pref]
[ 0.447571] pci_bus 0000:03: resource 1 [mem 0xf0500000-0xf05fffff]
[ 0.447741] NET: Registered protocol family 2
[ 0.448387] TCP established hash table entries: 32768 (order: 6, 262144 bytes)
[ 0.448723] TCP bind hash table entries: 32768 (order: 9, 2097152 bytes)
[ 0.451248] TCP: Hash tables configured (established 32768 bind 32768)
[ 0.451404] UDP hash table entries: 2048 (order: 6, 327680 bytes)
[ 0.451774] UDP-Lite hash table entries: 2048 (order: 6, 327680 bytes)
[ 0.452394] NET: Registered protocol family 1
[ 0.452436] pci 0000:00:02.0: Video device with shadowed ROM
[ 0.454348] PCI: CLS 64 bytes, default 64
[ 0.454724] Trying to unpack rootfs image as initramfs...
[ 0.557229] Freeing initrd memory: 3856K (ffff880037868000 - ffff880037c2c000)
[ 0.557253] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[ 0.557261] software IO TLB [mem 0xd5c9f000-0xd9c9f000] (64MB) mapped at [ffff8800d5c9f000-ffff8800d9c9efff]
[ 0.557464] RAPL PMU detected, API unit is 2^-32 Joules, 3 fixed counters 163840 ms ovfl timer
[ 0.557474] hw unit of domain pp0-core 2^-16 Joules
[ 0.557480] hw unit of domain package 2^-16 Joules
[ 0.557485] hw unit of domain pp1-gpu 2^-16 Joules
[ 0.557797] Scanning for low memory corruption every 60 seconds
[ 0.559549] futex hash table entries: 2048 (order: 6, 262144 bytes)
[ 0.559762] audit: initializing netlink subsys (disabled)
[ 0.559851] audit: type=2000 audit(1456780906.500:1): initialized
[ 0.560979] Initialise system trusted keyring
[ 0.562936] fuse init (API version 7.24)
[ 0.565662] Key type asymmetric registered
[ 0.565691] Asymmetric key parser 'x509' registered
[ 0.565758] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[ 0.565953] io scheduler noop registered
[ 0.565964] io scheduler deadline registered (default)
[ 0.566031] io scheduler cfq registered
[ 0.566041] start plist test
[ 0.567613] end plist test
[ 0.568901] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[ 0.568931] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
[ 0.569200] intel_idle: MWAIT substates: 0x21120
[ 0.569203] intel_idle: v0.4 model 0x2A
[ 0.569204] intel_idle: lapic_timer_reliable_states 0xffffffff
[ 0.570862] ACPI: AC Adapter [ADP1] (on-line)
[ 0.571327] input: Lid Switch as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input0
[ 0.571412] ACPI: Lid Switch [LID0]
[ 0.571678] input: Power Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input1
[ 0.571772] ACPI: Power Button [PWRB]
[ 0.572043] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input2
[ 0.572063] ACPI: Power Button [PWRF]
[ 0.577262] thermal LNXTHERM:00: registered as thermal_zone0
[ 0.577272] ACPI: Thermal Zone [TZ00] (66 C)
[ 0.578199] thermal LNXTHERM:01: registered as thermal_zone1
[ 0.578208] ACPI: Thermal Zone [TZ01] (30 C)
[ 0.578348] GHES: HEST is not enabled!
[ 0.578678] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled
[ 0.586605] ACPI: Battery Slot [BAT1] (battery present)
[ 0.587409] Linux agpgart interface v0.103
[ 0.600543] brd: module loaded
[ 0.607395] loop: module loaded
[ 0.613096] ahci 0000:00:1f.2: version 3.0
[ 0.613561] ahci 0000:00:1f.2: SSS flag set, parallel bus scan disabled
[ 0.623774] ahci 0000:00:1f.2: AHCI 0001.0300 32 slots 6 ports 6 Gbps 0x1b impl SATA mode
[ 0.623797] ahci 0000:00:1f.2: flags: 64bit ncq sntf ilck stag pm led clo pio slum part ems sxs apst
[ 0.649400] scsi host0: ahci
[ 0.650094] scsi host1: ahci
[ 0.650680] scsi host2: ahci
[ 0.651212] scsi host3: ahci
[ 0.651666] scsi host4: ahci
[ 0.652091] scsi host5: ahci
[ 0.652345] ata1: SATA max UDMA/133 abar m2048@0xf0708000 port 0xf0708100 irq 25
[ 0.652357] ata2: SATA max UDMA/133 abar m2048@0xf0708000 port 0xf0708180 irq 25
[ 0.652365] ata3: DUMMY
[ 0.652371] ata4: SATA max UDMA/133 abar m2048@0xf0708000 port 0xf0708280 irq 25
[ 0.652381] ata5: SATA max UDMA/133 abar m2048@0xf0708000 port 0xf0708300 irq 25
[ 0.652389] ata6: DUMMY
[ 0.654389] libphy: Fixed MDIO Bus: probed
[ 0.654896] tun: Universal TUN/TAP device driver, 1.6
[ 0.654902] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[ 0.655135] PPP generic driver version 2.4.2
[ 0.655326] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.655337] ehci-pci: EHCI PCI platform driver
[ 0.655828] ehci-pci 0000:00:1a.0: EHCI Host Controller
[ 0.656042] ehci-pci 0000:00:1a.0: new USB bus registered, assigned bus number 1
[ 0.656132] ehci-pci 0000:00:1a.0: debug port 2
[ 0.660133] ehci-pci 0000:00:1a.0: cache line size of 64 is not supported
[ 0.660211] ehci-pci 0000:00:1a.0: irq 16, io mem 0xf070a000
[ 0.670713] ehci-pci 0000:00:1a.0: USB 2.0 started, EHCI 1.00
[ 0.671141] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 0.671149] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.671157] usb usb1: Product: EHCI Host Controller
[ 0.671163] usb usb1: Manufacturer: Linux 4.5.0-rc6-2-llvmlinux-amd64 ehci_hcd
[ 0.671170] usb usb1: SerialNumber: 0000:00:1a.0
[ 0.672283] hub 1-0:1.0: USB hub found
[ 0.672342] hub 1-0:1.0: 2 ports detected
[ 0.673800] ehci-pci 0000:00:1d.0: EHCI Host Controller
[ 0.673835] ehci-pci 0000:00:1d.0: new USB bus registered, assigned bus number 2
[ 0.673873] ehci-pci 0000:00:1d.0: debug port 2
[ 0.677799] ehci-pci 0000:00:1d.0: cache line size of 64 is not supported
[ 0.677837] ehci-pci 0000:00:1d.0: irq 23, io mem 0xf0709000
[ 0.686697] ehci-pci 0000:00:1d.0: USB 2.0 started, EHCI 1.00
[ 0.686883] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[ 0.686891] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.686899] usb usb2: Product: EHCI Host Controller
[ 0.686905] usb usb2: Manufacturer: Linux 4.5.0-rc6-2-llvmlinux-amd64 ehci_hcd
[ 0.686912] usb usb2: SerialNumber: 0000:00:1d.0
[ 0.687577] hub 2-0:1.0: USB hub found
[ 0.687607] hub 2-0:1.0: 2 ports detected
[ 0.688097] ehci-platform: EHCI generic platform driver
[ 0.688154] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.688176] ohci-pci: OHCI PCI platform driver
[ 0.688220] ohci-platform: OHCI generic platform driver
[ 0.688254] uhci_hcd: USB Universal Host Controller Interface driver
[ 0.688516] xhci_hcd 0000:03:00.0: xHCI Host Controller
[ 0.688545] xhci_hcd 0000:03:00.0: new USB bus registered, assigned bus number 3
[ 0.693034] xhci_hcd 0000:03:00.0: hcc params 0x0200f180 hci version 0x96 quirks 0x00080000
[ 0.693560] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
[ 0.693568] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.693575] usb usb3: Product: xHCI Host Controller
[ 0.693581] usb usb3: Manufacturer: Linux 4.5.0-rc6-2-llvmlinux-amd64 xhci-hcd
[ 0.693588] usb usb3: SerialNumber: 0000:03:00.0
[ 0.694176] hub 3-0:1.0: USB hub found
[ 0.694271] hub 3-0:1.0: 2 ports detected
[ 0.694781] xhci_hcd 0000:03:00.0: xHCI Host Controller
[ 0.694799] xhci_hcd 0000:03:00.0: new USB bus registered, assigned bus number 4
[ 0.694907] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[ 0.695009] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003
[ 0.695016] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.695024] usb usb4: Product: xHCI Host Controller
[ 0.695029] usb usb4: Manufacturer: Linux 4.5.0-rc6-2-llvmlinux-amd64 xhci-hcd
[ 0.695037] usb usb4: SerialNumber: 0000:03:00.0
[ 0.695681] hub 4-0:1.0: USB hub found
[ 0.695732] hub 4-0:1.0: 2 ports detected
[ 0.696358] i8042: PNP: PS/2 Controller [PNP0303:PS2K,PNP0f13:EPAD] at 0x60,0x64 irq 1,12
[ 0.702540] serio: i8042 KBD port at 0x60,0x64 irq 1
[ 0.702605] serio: i8042 AUX port at 0x60,0x64 irq 12
[ 0.703549] mousedev: PS/2 mouse device common for all mice
[ 0.705132] rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
[ 0.705180] rtc_cmos 00:01: alarms up to one month, y3k, 242 bytes nvram, hpet irqs
[ 0.705333] device-mapper: uevent: version 1.0.3
[ 0.705580] device-mapper: ioctl: 4.34.0-ioctl (2015-10-28) initialised: dm-devel@redhat.com
[ 0.705622] Intel P-state driver initializing.
[ 0.706982] ledtrig-cpu: registered to indicate activity on CPUs
[ 0.707973] NET: Registered protocol family 10
[ 0.710251] NET: Registered protocol family 17
[ 0.710346] Key type dns_resolver registered
[ 0.711807] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input3
[ 0.712976] microcode: CPU0 sig=0x206a7, pf=0x10, revision=0x28
[ 0.713006] microcode: CPU1 sig=0x206a7, pf=0x10, revision=0x28
[ 0.713030] microcode: CPU2 sig=0x206a7, pf=0x10, revision=0x28
[ 0.713062] microcode: CPU3 sig=0x206a7, pf=0x10, revision=0x28
[ 0.713241] microcode: Microcode Update Driver: v2.01 <tigran@aivazian.fsnet.co.uk>, Peter Oruba
[ 0.713867] registered taskstats version 1
[ 0.713884] Loading compiled-in X.509 certificates
[ 0.714852] Loaded X.509 cert 'Build time autogenerated kernel key: d861534734a1854c045ffb7a95ace7fffd94d654'
[ 0.720835] Key type trusted registered
[ 0.729519] Key type encrypted registered
[ 0.729543] AppArmor: AppArmor sha1 policy hashing enabled
[ 0.729554] evm: HMAC attrs: 0x1
[ 0.730617] rtc_cmos 00:01: setting system clock to 2016-02-29 21:21:47 UTC (1456780907)
[ 0.730843] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
[ 0.730851] EDD information not available.
[ 0.958730] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 0.960069] ata1.00: ATA-8: Hitachi HTS545050A7E380, GG2OA6C0, max UDMA/133
[ 0.960099] ata1.00: 976773168 sectors, multi 16: LBA48 NCQ (depth 31/32), AA
[ 0.961524] ata1.00: configured for UDMA/133
[ 0.962792] scsi 0:0:0:0: Direct-Access ATA Hitachi HTS54505 A6C0 PQ: 0 ANSI: 5
[ 0.982708] usb 1-1: new high-speed USB device number 2 using ehci-pci
[ 0.987852] sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[ 0.987867] sd 0:0:0:0: [sda] 4096-byte physical blocks
[ 0.988164] sd 0:0:0:0: [sda] Write Protect is off
[ 0.988176] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 0.988281] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 0.988316] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 0.998558] usb 2-1: new high-speed USB device number 2 using ehci-pci
[ 1.030118] sda: sda1 sda2 sda3
[ 1.031755] sd 0:0:0:0: [sda] Attached SCSI disk
[ 1.115305] usb 1-1: New USB device found, idVendor=8087, idProduct=0024
[ 1.115336] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 1.116331] hub 1-1:1.0: USB hub found
[ 1.116604] hub 1-1:1.0: 6 ports detected
[ 1.131311] usb 2-1: New USB device found, idVendor=8087, idProduct=0024
[ 1.131321] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 1.132028] hub 2-1:1.0: USB hub found
[ 1.132264] hub 2-1:1.0: 6 ports detected
[ 1.298688] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 1.299550] ata2.00: ATA-8: SanDisk iSSD P4 16GB, SSD 9.14, max UDMA/133
[ 1.299561] ata2.00: 31277232 sectors, multi 1: LBA48
[ 1.300489] ata2.00: configured for UDMA/133
[ 1.301089] scsi 1:0:0:0: Direct-Access ATA SanDisk iSSD P4 9.14 PQ: 0 ANSI: 5
[ 1.327322] sd 1:0:0:0: [sdb] 31277232 512-byte logical blocks: (16.0 GB/14.9 GiB)
[ 1.327542] sd 1:0:0:0: Attached scsi generic sg1 type 0
[ 1.327557] sd 1:0:0:0: [sdb] Write Protect is off
[ 1.327567] sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[ 1.327618] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 1.328809] sdb: sdb1 sdb2
[ 1.329687] sd 1:0:0:0: [sdb] Attached SCSI disk
[ 1.390661] usb 1-1.4: new high-speed USB device number 3 using ehci-pci
[ 1.406658] usb 2-1.4: new low-speed USB device number 3 using ehci-pci
[ 1.505551] usb 2-1.4: New USB device found, idVendor=046d, idProduct=c00e
[ 1.505564] usb 2-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1.505572] usb 2-1.4: Product: USB-PS/2 Optical Mouse
[ 1.505578] usb 2-1.4: Manufacturer: Logitech
[ 1.554739] tsc: Refined TSC clocksource calibration: 1596.374 MHz
[ 1.554751] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x1702c3a922f, max_idle_ns: 440795242034 ns
[ 1.578620] usb 2-1.5: new full-speed USB device number 4 using ehci-pci
[ 1.634808] ata4: SATA link down (SStatus 0 SControl 300)
[ 1.647163] usb 1-1.4: New USB device found, idVendor=2232, idProduct=1018
[ 1.647175] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1.647184] usb 1-1.4: Product: WebCam SC-13HDL11431N
[ 1.647189] usb 1-1.4: Manufacturer: 123
[ 1.676178] usb 2-1.5: New USB device found, idVendor=8086, idProduct=0189
[ 1.676190] usb 2-1.5: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 1.943089] ata5: SATA link down (SStatus 0 SControl 300)
[ 1.945352] Freeing unused kernel memory: 3008K (ffffffff81f26000 - ffffffff82216000)
[ 1.945366] Write protecting the kernel read-only data: 14336k
[ 1.946312] Freeing unused kernel memory: 724K (ffff88000194b000 - ffff880001a00000)
[ 1.949107] Freeing unused kernel memory: 700K (ffff880001d51000 - ffff880001e00000)
[ 1.988913] udevd[159]: starting version 175
[ 2.303135] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[ 2.303174] r8169 0000:02:00.0: can't disable ASPM; OS doesn't have ASPM control
[ 2.309732] r8169 0000:02:00.0 eth0: RTL8168evl/8111evl at 0xffffc900009e4000, e8:03:9a:36:17:a9, XID 0c900800 IRQ 31
[ 2.309758] r8169 0000:02:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
[ 2.360055] usbcore: registered new interface driver usbhid
[ 2.360071] usbhid: USB HID core driver
[ 2.433667] 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.434207] 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.554872] clocksource: Switched to clocksource tsc
[ 3.135441] EXT4-fs (loop0): INFO: recovery required on readonly filesystem
[ 3.135452] EXT4-fs (loop0): write access will be enabled during recovery
[ 3.972253] EXT4-fs (loop0): recovery complete
[ 4.013851] EXT4-fs (loop0): mounted filesystem with ordered data mode. Opts: (null)
[ 4.135576] random: nonblocking pool is initialized
[ 4.202399] usb 1-1.2: new high-speed USB device number 4 using ehci-pci
[ 4.297477] usb 1-1.2: New USB device found, idVendor=12d1, idProduct=1446
[ 4.297508] usb 1-1.2: New USB device strings: Mfr=3, Product=2, SerialNumber=0
[ 4.297538] usb 1-1.2: Product: HUAWEI Mobile
[ 4.297543] usb 1-1.2: Manufacturer: HUAWEI Technology
[ 5.813391] init: ureadahead main process (447) terminated with status 5
[ 10.284608] Adding 262140k swap on /host/ubuntu/disks/swap.disk. Priority:-1 extents:1 across:262140k FS
[ 10.559842] EXT4-fs (loop0): re-mounted. Opts: errors=remount-ro
[ 10.758626] udevd[676]: starting version 175
[ 12.367896] lp: driver loaded but no devices found
[ 14.077291] ACPI Warning: SystemIO range 0x0000000000000428-0x000000000000042F conflicts with OpRegion 0x0000000000000400-0x000000000000047F (\PMIO) (20160108/utaddress-246)
[ 14.077305] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[ 14.077314] ACPI Warning: SystemIO range 0x0000000000000540-0x000000000000054F conflicts with OpRegion 0x0000000000000500-0x0000000000000563 (\GPIO) (20160108/utaddress-246)
[ 14.077323] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[ 14.077328] ACPI Warning: SystemIO range 0x0000000000000530-0x000000000000053F conflicts with OpRegion 0x0000000000000500-0x0000000000000563 (\GPIO) (20160108/utaddress-246)
[ 14.077337] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[ 14.077341] ACPI Warning: SystemIO range 0x0000000000000500-0x000000000000052F conflicts with OpRegion 0x0000000000000500-0x0000000000000563 (\GPIO) (20160108/utaddress-246)
[ 14.077349] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[ 14.077352] lpc_ich: Resource conflict(s) found affecting gpio_ich
[ 14.176767] wmi: Mapper loaded
[ 14.552612] samsung_laptop: detected SABI interface: SwSmi@
[ 15.014539] [drm] Initialized drm 1.1.0 20060810
[ 15.116192] ppdev: user-space parallel port driver
[ 15.832083] Bluetooth: Core ver 2.21
[ 15.832157] NET: Registered protocol family 31
[ 15.832161] Bluetooth: HCI device and connection manager initialized
[ 15.832261] Bluetooth: HCI socket layer initialized
[ 15.832271] Bluetooth: L2CAP socket layer initialized
[ 15.832384] Bluetooth: SCO socket layer initialized
[ 16.059343] psmouse serio1: elantech: assuming hardware version 3 (with firmware version 0x450f00)
[ 16.074171] psmouse serio1: elantech: Synaptics capabilities query result 0x08, 0x17, 0x0c.
[ 16.089270] psmouse serio1: elantech: Elan sample query result 03, 3f, 86
[ 16.168796] input: ETPS/2 Elantech Touchpad as /devices/platform/i8042/serio1/input/input6
[ 16.404173] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[ 16.405839] scsi host6: usb-storage 1-1.2:1.0
[ 16.406477] usb-storage 1-1.2:1.1: USB Mass Storage device detected
[ 16.406805] scsi host7: usb-storage 1-1.2:1.1
[ 16.407703] usbcore: registered new interface driver usb-storage
[ 16.413127] Linux video capture interface: v2.00
[ 16.453009] Intel(R) Wireless WiFi driver for Linux
[ 16.453015] Copyright(c) 2003- 2015 Intel Corporation
[ 16.453496] iwlwifi 0000:01:00.0: can't disable ASPM; OS doesn't have ASPM control
[ 16.548452] usbcore: registered new interface driver btusb
[ 17.207804] iwlwifi 0000:01:00.0: loaded firmware version 18.168.6.1 op_mode iwldvm
[ 17.285135] Bluetooth: RFCOMM TTY layer initialized
[ 17.285166] Bluetooth: RFCOMM socket layer initialized
[ 17.285189] Bluetooth: RFCOMM ver 1.11
[ 17.402717] uvcvideo: Found UVC 1.00 device WebCam SC-13HDL11431N (2232:1018)
[ 17.408441] scsi 6:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
[ 17.408508] scsi 7:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2
[ 17.413621] sr 6:0:0:0: [sr0] scsi-1 drive
[ 17.413628] cdrom: Uniform CD-ROM driver Revision: 3.20
[ 17.415399] sr 6:0:0:0: Attached scsi CD-ROM sr0
[ 17.416351] sr 6:0:0:0: Attached scsi generic sg2 type 5
[ 17.418454] sd 7:0:0:0: Attached scsi generic sg3 type 0
[ 17.423049] 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.423902] usbcore: registered new interface driver uvcvideo
[ 17.423907] USB Video Class driver (1.1.1)
[ 17.424342] sd 7:0:0:0: [sdc] Attached SCSI removable disk
[ 17.590115] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC269VC: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[ 17.590124] snd_hda_codec_realtek hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 17.590129] snd_hda_codec_realtek hdaudioC0D0: hp_outs=1 (0x15/0x0/0x0/0x0/0x0)
[ 17.590133] snd_hda_codec_realtek hdaudioC0D0: mono: mono_out=0x0
[ 17.590135] snd_hda_codec_realtek hdaudioC0D0: inputs:
[ 17.590139] snd_hda_codec_realtek hdaudioC0D0: Internal Mic=0x19
[ 17.590143] snd_hda_codec_realtek hdaudioC0D0: Mic=0x18
[ 17.630835] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 17.630842] Bluetooth: BNEP filters: protocol multicast
[ 17.630855] Bluetooth: BNEP socket layer initialized
[ 18.029036] [drm] Memory usable by graphics device = 2048M
[ 18.029111] [drm] Replacing VGA console driver
[ 18.051471] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 18.051476] [drm] Driver supports precise vblank timestamp query.
[ 18.054514] vgaarb: device changed decodes: PCI:0000:00:02.0,olddecodes=io+mem,decodes=io+mem:owns=io+mem
[ 18.212561] ACPI: Video Device [GFX0] (multi-head: yes rom: no post: no)
[ 18.212638] fbcon: inteldrmfb (fb0) is primary device
[ 18.214287] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input10
[ 18.341487] audit: type=1400 audit(1456777325.109:2): apparmor="STATUS" operation="profile_load" name="/sbin/dhclient" pid=1092 comm="apparmor_parser"
[ 18.341495] audit: type=1400 audit(1456777325.109:3): apparmor="STATUS" operation="profile_load" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=1092 comm="apparmor_parser"
[ 18.341500] audit: type=1400 audit(1456777325.109:4): apparmor="STATUS" operation="profile_load" name="/usr/lib/connman/scripts/dhclient-script" pid=1092 comm="apparmor_parser"
[ 18.341541] audit: type=1400 audit(1456777325.109:5): apparmor="STATUS" operation="profile_replace" name="/sbin/dhclient" pid=1088 comm="apparmor_parser"
[ 18.341552] audit: type=1400 audit(1456777325.109:6): apparmor="STATUS" operation="profile_replace" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=1088 comm="apparmor_parser"
[ 18.341562] audit: type=1400 audit(1456777325.109:7): apparmor="STATUS" operation="profile_replace" name="/usr/lib/connman/scripts/dhclient-script" pid=1088 comm="apparmor_parser"
[ 18.342403] audit: type=1400 audit(1456777325.109:8): apparmor="STATUS" operation="profile_replace" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=1092 comm="apparmor_parser"
[ 18.342415] audit: type=1400 audit(1456777325.109:9): apparmor="STATUS" operation="profile_replace" name="/usr/lib/connman/scripts/dhclient-script" pid=1092 comm="apparmor_parser"
[ 18.342466] audit: type=1400 audit(1456777325.109:10): apparmor="STATUS" operation="profile_replace" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=1088 comm="apparmor_parser"
[ 18.342476] audit: type=1400 audit(1456777325.109:11): apparmor="STATUS" operation="profile_replace" name="/usr/lib/connman/scripts/dhclient-script" pid=1088 comm="apparmor_parser"
[ 18.386391] iwlwifi 0000:01:00.0: CONFIG_IWLWIFI_DEBUG disabled
[ 18.386394] iwlwifi 0000:01:00.0: CONFIG_IWLWIFI_DEBUGFS enabled
[ 18.386396] iwlwifi 0000:01:00.0: CONFIG_IWLWIFI_DEVICE_TRACING enabled
[ 18.386399] iwlwifi 0000:01:00.0: Detected Intel(R) Centrino(R) Advanced-N 6230 AGN, REV=0xB0
[ 18.386944] iwlwifi 0000:01:00.0: L1 Enabled - LTR Disabled
[ 18.441562] ieee80211 phy0: Selected rate control algorithm 'iwl-agn-rs'
[ 19.092277] usb 1-1.2: USB disconnect, device number 4
[ 19.413733] snd_hda_intel 0000:00:1b.0: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[ 19.413742] Console: switching
[ 19.413742] [drm] Initialized i915 1.6.0 20151218 for 0000:00:02.0 on minor 0
[ 19.413744] to colour frame buffer device 170x48
[ 19.419047] i915 0000:00:02.0: fb0: inteldrmfb frame buffer device
[ 19.453269] input: HDA Intel PCH Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input8
[ 19.457383] input: HDA Intel PCH Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input9
[ 19.458284] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1b.0/sound/card0/input11
[ 19.608022] init: failsafe main process (1187) killed by TERM signal
[ 23.129147] usb 1-1.2: new high-speed USB device number 5 using ehci-pci
[ 23.223689] usb 1-1.2: New USB device found, idVendor=12d1, idProduct=1436
[ 23.223696] usb 1-1.2: New USB device strings: Mfr=4, Product=3, SerialNumber=0
[ 23.223700] usb 1-1.2: Product: HUAWEI Mobile
[ 23.223703] usb 1-1.2: Manufacturer: HUAWEI Technology
[ 23.227382] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[ 23.228951] usb-storage 1-1.2:1.1: USB Mass Storage device detected
[ 23.229739] usb-storage 1-1.2:1.2: USB Mass Storage device detected
[ 23.230629] usb-storage 1-1.2:1.3: USB Mass Storage device detected
[ 23.231401] usb-storage 1-1.2:1.4: USB Mass Storage device detected
[ 23.232167] usb-storage 1-1.2:1.5: USB Mass Storage device detected
[ 23.232998] scsi host13: usb-storage 1-1.2:1.5
[ 23.234201] usb-storage 1-1.2:1.6: USB Mass Storage device detected
[ 23.234883] scsi host14: usb-storage 1-1.2:1.6
[ 23.422974] usbcore: registered new interface driver usbserial
[ 23.469776] 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
[ 23.470068] usbcore: registered new interface driver cdc_ether
[ 23.531645] usbcore: registered new interface driver option
[ 23.533314] usbserial: USB Serial support registered for GSM modem (1-port)
[ 23.533627] option 1-1.2:1.0: GSM modem (1-port) converter detected
[ 23.534725] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB0
[ 23.535059] option 1-1.2:1.3: GSM modem (1-port) converter detected
[ 23.535450] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB1
[ 23.535533] option 1-1.2:1.4: GSM modem (1-port) converter detected
[ 23.535846] usb 1-1.2: GSM modem (1-port) converter now attached to ttyUSB2
[ 23.837231] BUG: sleeping function called from invalid context at kernel/workqueue.c:2785
[ 23.837301] in_atomic(): 0, irqs_disabled(): 1, pid: 1431, name: acpid
[ 23.837352] 3 locks held by acpid/1431:
[ 23.837354] #0: (&evdev->mutex){+.+...}, at: [<ffffffff817588ad>] evdev_release+0x1dd/0x210
[ 23.837364] #1: (&dev->mutex#2){+.+...}, at: [<ffffffff8174fe27>] input_close_device+0x27/0x70
[ 23.837372] #2: (hid_open_mut){+.+...}, at: [<ffffffffa0057388>] usbhid_close+0x28/0xb0 [usbhid]
[ 23.837380] irq event stamp: 2986
[ 23.837381] hardirqs last enabled at (2985): [<ffffffff819426a2>] _raw_spin_unlock_irq+0x32/0x60
[ 23.837386] hardirqs last disabled at (2986): [<ffffffff81115bdc>] del_timer_sync+0x3c/0x110
[ 23.837391] softirqs last enabled at (2406): [<ffffffff818c7839>] local_bh_enable+0x9/0x20
[ 23.837395] softirqs last disabled at (2404): [<ffffffff818c7819>] local_bh_disable+0x9/0x20
[ 23.837400] CPU: 0 PID: 1431 Comm: acpid Not tainted 4.5.0-rc6-2-llvmlinux-amd64 #1
[ 23.837402] Hardware name: SAMSUNG ELECTRONICS CO., LTD. 530U3BI/530U4BI/530U4BH/530U3BI/530U4BI/530U4BH, BIOS 13XK 03/28/2013
[ 23.837404] ffff8800d3326948 0000000000000092 0000000000000000 ffff8800b556fad8
[ 23.837409] ffffffff814ba7d4 ffff8800b556fa68 ffff8800c2c40040 ffff8800b556fad8
[ 23.837412] ffffffff810e28fd 0000000000000092 0000000000000096 ffff8800b556fb18
[ 23.837416] Call Trace:
[ 23.837421] [<ffffffff814ba7d4>] dump_stack+0xa4/0xf0
[ 23.837425] [<ffffffff810e28fd>] ? print_irqtrace_events+0xcd/0xe0
[ 23.837429] [<ffffffff810bf495>] ___might_sleep+0x295/0x2b0
[ 23.837433] [<ffffffff810bf18f>] __might_sleep+0x4f/0xc0
[ 23.837437] [<ffffffff810a12ef>] start_flush_work+0x2f/0x2a0
[ 23.837440] [<ffffffff810a129c>] flush_work+0x5c/0x80
[ 23.837443] [<ffffffff810a125a>] ? flush_work+0x1a/0x80
[ 23.837446] [<ffffffff810e247d>] ? trace_hardirqs_off+0xd/0x10
[ 23.837449] [<ffffffff810a032a>] ? try_to_grab_pending+0x4a/0x260
[ 23.837453] [<ffffffff810a1717>] __cancel_work_timer+0x197/0x290
[ 23.837456] [<ffffffff81115b8d>] ? try_to_del_timer_sync+0xad/0xc0
[ 23.837460] [<ffffffff810a1578>] cancel_work_sync+0x18/0x20
[ 23.837464] [<ffffffffa00573d5>] usbhid_close+0x75/0xb0 [usbhid]
[ 23.837470] [<ffffffffa003a481>] hidinput_close+0x31/0x40 [hid]
[ 23.837475] [<ffffffffa003a450>] ? hidinput_open+0x40/0x40 [hid]
[ 23.837478] [<ffffffff8174fe48>] input_close_device+0x48/0x70
[ 23.837480] [<ffffffff817588c8>] evdev_release+0x1f8/0x210
[ 23.837483] [<ffffffff817586d0>] ? evdev_flush+0x70/0x70
[ 23.837487] [<ffffffff8127dd6f>] __fput+0x10f/0x240
[ 23.837490] [<ffffffff8127dbf6>] ____fput+0x16/0x20
[ 23.837493] [<ffffffff810ab1ec>] task_work_run+0x7c/0xe0
[ 23.837496] [<ffffffff81002b02>] prepare_exit_to_usermode+0xb2/0x190
[ 23.837498] [<ffffffff81002cb5>] syscall_return_slowpath+0xd5/0x340
[ 23.837501] [<ffffffff8127986a>] ? filp_close+0x6a/0x90
[ 23.837504] [<ffffffff810e2929>] ? trace_hardirqs_on_caller+0x19/0x290
[ 23.837507] [<ffffffff81002017>] ? trace_hardirqs_on_thunk+0x17/0x19
[ 23.837510] [<ffffffff819433b9>] int_ret_from_sys_call+0x25/0x9f
[ 24.236544] scsi 14:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2
[ 24.237081] scsi 13:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
[ 24.317374] sd 14:0:0:0: Attached scsi generic sg2 type 0
[ 24.323177] sr 13:0:0:0: [sr0] scsi-1 drive
[ 24.323228] r8169 0000:02:00.0 eth0: link down
[ 24.323394] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 24.324439] sd 14:0:0:0: [sdc] Attached SCSI removable disk
[ 24.330344] sr 13:0:0:0: Attached scsi CD-ROM sr0
[ 24.330904] sr 13:0:0:0: Attached scsi generic sg3 type 5
[ 66.529779] PPP BSD Compression module registered
[ 66.563013] PPP Deflate Compression module registered
[ 66.978977] usb 2-1.5: USB disconnect, device number 4
[ 321.937369] usb 2-1.4: USB disconnect, device number 3
[ 321.950810] BUG: sleeping function called from invalid context at kernel/workqueue.c:2785
[ 321.950816] in_atomic(): 0, irqs_disabled(): 1, pid: 44, name: kworker/2:1
[ 321.950819] 9 locks held by kworker/2:1/44:
[ 321.950820] #0: ("usb_hub_wq"){.+.+.+}, at: [<ffffffff810a7c5f>] process_one_work+0x30f/0x8d0
[ 321.950830] #1: ((&hub->events)){+.+.+.}, at: [<ffffffff810a7c8c>] process_one_work+0x33c/0x8d0
[ 321.950836] #2: (&dev->mutex){......}, at: [<ffffffff816fb0e0>] hub_event+0x50/0x15b0
[ 321.950844] #3: (&dev->mutex){......}, at: [<ffffffff816f686f>] usb_disconnect+0x5f/0x2c0
[ 321.950849] #4: (&dev->mutex){......}, at: [<ffffffff816245a2>] device_release_driver+0x22/0x40
[ 321.950856] #5: (&dev->mutex){......}, at: [<ffffffff816245a2>] device_release_driver+0x22/0x40
[ 321.950862] #6: (input_mutex){+.+.+.}, at: [<ffffffff8175171a>] __input_unregister_device+0x9a/0x190
[ 321.950869] #7: (&dev->mutex#2){+.+...}, at: [<ffffffff8174fe27>] input_close_device+0x27/0x70
[ 321.950875] #8: (hid_open_mut){+.+...}, at: [<ffffffffa0057388>] usbhid_close+0x28/0xb0 [usbhid]
[ 321.950883] irq event stamp: 47770
[ 321.950885] hardirqs last enabled at (47769): [<ffffffff819426a2>] _raw_spin_unlock_irq+0x32/0x60
[ 321.950889] hardirqs last disabled at (47770): [<ffffffff81115bdc>] del_timer_sync+0x3c/0x110
[ 321.950894] softirqs last enabled at (47112): [<ffffffff810871a2>] __do_softirq+0x5a2/0x610
[ 321.950898] softirqs last disabled at (47097): [<ffffffff8108747c>] irq_exit+0x9c/0x120
[ 321.950903] CPU: 2 PID: 44 Comm: kworker/2:1 Not tainted 4.5.0-rc6-2-llvmlinux-amd64 #1
[ 321.950905] Hardware name: SAMSUNG ELECTRONICS CO., LTD. 530U3BI/530U4BI/530U4BH/530U3BI/530U4BI/530U4BH, BIOS 13XK 03/28/2013
[ 321.950908] Workqueue: usb_hub_wq hub_event
[ 321.950911] ffff8800d3326948 0000000000000092 0000000000000000 ffff8800d4347568
[ 321.950915] ffffffff814ba7d4 ffff8800d43474f8 ffff8800d4340cc0 ffff8800d4347568
[ 321.950919] ffffffff810e28fd 0000000000000092 0000000000000096 ffff8800d43475a8
[ 321.950923] Call Trace:
[ 321.950927] [<ffffffff814ba7d4>] dump_stack+0xa4/0xf0
[ 321.950931] [<ffffffff810e28fd>] ? print_irqtrace_events+0xcd/0xe0
[ 321.950936] [<ffffffff810bf495>] ___might_sleep+0x295/0x2b0
[ 321.950939] [<ffffffff810bf18f>] __might_sleep+0x4f/0xc0
[ 321.950943] [<ffffffff810a12ef>] start_flush_work+0x2f/0x2a0
[ 321.950946] [<ffffffff810a129c>] flush_work+0x5c/0x80
[ 321.950949] [<ffffffff810a125a>] ? flush_work+0x1a/0x80
[ 321.950953] [<ffffffff810e247d>] ? trace_hardirqs_off+0xd/0x10
[ 321.950956] [<ffffffff810a032a>] ? try_to_grab_pending+0x4a/0x260
[ 321.950960] [<ffffffff810a1717>] __cancel_work_timer+0x197/0x290
[ 321.950963] [<ffffffff81115b8d>] ? try_to_del_timer_sync+0xad/0xc0
[ 321.950966] [<ffffffff810a1578>] cancel_work_sync+0x18/0x20
[ 321.950970] [<ffffffffa00573d5>] usbhid_close+0x75/0xb0 [usbhid]
[ 321.950977] [<ffffffffa003a481>] hidinput_close+0x31/0x40 [hid]
[ 321.950982] [<ffffffffa003a450>] ? hidinput_open+0x40/0x40 [hid]
[ 321.950985] [<ffffffff8174fe48>] input_close_device+0x48/0x70
[ 321.950988] [<ffffffff81757f85>] evdev_cleanup+0xd5/0xe0
[ 321.950990] [<ffffffff81757b0c>] evdev_disconnect+0x2c/0x60
[ 321.950993] [<ffffffff8175173e>] __input_unregister_device+0xbe/0x190
[ 321.950996] [<ffffffff8175164a>] input_unregister_device+0x4a/0x80
[ 321.951001] [<ffffffffa003a29f>] hidinput_disconnect+0x8f/0xc0 [hid]
[ 321.951007] [<ffffffffa0034a30>] hid_device_remove+0xb0/0x130 [hid]
[ 321.951010] [<ffffffff816246bd>] __device_release_driver+0xfd/0x190
[ 321.951014] [<ffffffff816245aa>] device_release_driver+0x2a/0x40
[ 321.951017] [<ffffffff816224a3>] bus_remove_device+0x153/0x190
[ 321.951020] [<ffffffff8161f5fb>] device_del+0x1db/0x2b0
[ 321.951025] [<ffffffffa0033c1c>] hid_destroy_device+0x2c/0x60 [hid]
[ 321.951029] [<ffffffffa0058537>] usbhid_disconnect+0x67/0x90 [usbhid]
[ 321.951033] [<ffffffff81706ebf>] usb_unbind_interface+0xbf/0x2b0
[ 321.951037] [<ffffffff816246bd>] __device_release_driver+0xfd/0x190
[ 321.951040] [<ffffffff816245aa>] device_release_driver+0x2a/0x40
[ 321.951043] [<ffffffff816224a3>] bus_remove_device+0x153/0x190
[ 321.951046] [<ffffffff8161f5fb>] device_del+0x1db/0x2b0
[ 321.951048] [<ffffffff8161f6fc>] ? device_unregister+0x2c/0x40
[ 321.951051] [<ffffffff81704f6b>] usb_disable_device+0x10b/0x3b0
[ 321.951054] [<ffffffff816f6904>] usb_disconnect+0xf4/0x2c0
[ 321.951057] [<ffffffff816fbc3d>] hub_event+0xbad/0x15b0
[ 321.951060] [<ffffffff819426a2>] ? _raw_spin_unlock_irq+0x32/0x60
[ 321.951063] [<ffffffff810a7e0e>] process_one_work+0x4be/0x8d0
[ 321.951065] [<ffffffff810a7c8c>] ? process_one_work+0x33c/0x8d0
[ 321.951068] [<ffffffff810a757b>] worker_thread+0x5cb/0x750
[ 321.951071] [<ffffffff810a6fb0>] ? destroy_worker+0x110/0x110
[ 321.951074] [<ffffffff810ae1c5>] kthread+0x115/0x120
[ 321.951077] [<ffffffff810e248d>] ? trace_hardirqs_on+0xd/0x10
[ 321.951080] [<ffffffff810ae0b0>] ? flush_kthread_worker+0x80/0x80
[ 321.951084] [<ffffffff819435ff>] ret_from_fork+0x3f/0x70
[ 321.951087] [<ffffffff810ae0b0>] ? flush_kthread_worker+0x80/0x80
[unhandled content-type:application/octet-stream]Al Viro (1):
use ->d_seq to get coherency between ->d_inode and ->d_flags

Sedat Dilek (24):
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-linus' of git://git.kernel.org/.../viro/vfs into for-4.5/vfs-fixes
Merge branch 'for-4.4/llvmlinux-amd64-fixes' into 4.5.0-rc6-2-llvmlinux-amd64
Merge branch 'for-4.5/vfs-fixes' into 4.5.0-rc6-2-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/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 +++++------------
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 ++++++---------
27 files changed, 137 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 af6e5f893d56..ee064eb6da68 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
@@ -611,7 +626,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,)
@@ -679,13 +696,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.
@@ -1267,6 +1289,8 @@ help:
@echo ' (default: $$(INSTALL_MOD_PATH)/lib/firmware)'
@echo ' dir/ - Build all files in dir and below'
@echo ' dir/file.[ois] - 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'
@@ -1545,6 +1569,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 c46662f64c39..b25ddbb8ef08 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -294,8 +294,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 c913ca4f6958..61fcdce1f71c 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/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 1c1447dd3417..2b29d22e667a 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 6402eaf8ab95..019f05bc8acf 100644
--- a/fs/compat_ioctl.c
+++ b/fs/compat_ioctl.c
@@ -832,7 +832,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 92d5140de851..2398f9f94337 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)
@@ -1758,8 +1747,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/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 7781ce110503..c4b5f4b3f8f8 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 2c47f9c305aa..ce2aa2b1df90 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-01 11:41    [W:0.186 / U:1.252 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site