HEAD is now at fb3ec67... KVM: arm64: GICv3: mandate page-aligned GICV region git checkout 9f6226a762c7ae02f6a23a3d4fc552dafa57ea23 ls -a /kbuild-tests/run-queue/kvm/i386-randconfig-ha2-0731/kvmarm:next:9f6226a762c7ae02f6a23a3d4fc552dafa57ea23:bisect-linux-2 2014-07-31-23:36:36 9f6226a762c7ae02f6a23a3d4fc552dafa57ea23 compiling Queued build task to /kbuild-tests/build-queue/i386-randconfig-ha2-0731-9f6226a762c7ae02f6a23a3d4fc552dafa57ea23 Check for kernel in /kernel/i386-randconfig-ha2-0731/9f6226a762c7ae02f6a23a3d4fc552dafa57ea23 waiting for completion of /kbuild-tests/build-queue/i386-randconfig-ha2-0731-9f6226a762c7ae02f6a23a3d4fc552dafa57ea23 waiting for completion of /kbuild-tests/build-queue/lkp-hsx01-consumer/i386-randconfig-ha2-0731-9f6226a762c7ae02f6a23a3d4fc552dafa57ea23 kernel: /kernel/i386-randconfig-ha2-0731/9f6226a762c7ae02f6a23a3d4fc552dafa57ea23/vmlinuz-3.16.0-rc1-00082-g9f6226a 2014-07-31-23:39:36 detecting boot state . 3 15 17 21 30 TEST FAILURE [ 14.143920] sock: process `trinity-main' is using obsolete setsockopt SO_BSDCOMPAT [ 15.989842] [ 15.990112] ====================================================== [ 15.991196] [ INFO: possible circular locking dependency detected ] [ 15.992097] 3.16.0-rc1-00082-g9f6226a #1 Not tainted [ 15.992097] ------------------------------------------------------- [ 15.992097] trinity-main/74 is trying to acquire lock: [ 15.992097] (hrtimer_bases.lock){-.-...}, at: [<8103ccfd>] __hrtimer_start_range_ns+0x1c/0x197 [ 15.992097] [ 15.992097] but task is already holding lock: [ 15.992097] (&ctx->lock){......}, at: [<8107f9a3>] perf_ctx_lock+0x1a/0x1d [ 15.992097] [ 15.992097] which lock already depends on the new lock. [ 15.992097] [ 15.992097] [ 15.992097] the existing dependency chain (in reverse order) is: [ 15.992097] -> #5 (&ctx->lock){......}: [ 15.992097] [<8104ae0b>] lock_acquire+0x92/0x101 [ 15.992097] [<8143903c>] _raw_spin_lock+0x21/0x30 [ 15.992097] [<8108374d>] __perf_event_task_sched_out+0x1dc/0x34f [ 15.992097] [<81436ab4>] __schedule+0x4c6/0x4cb [ 15.992097] [<81436ac8>] schedule+0xf/0x11 [ 15.992097] [<81439a86>] work_resched+0x5/0x2c [ 15.992097] -> #4 (&rq->lock){-.-.-.}: [ 15.992097] [<8104ae0b>] lock_acquire+0x92/0x101 [ 15.992097] [<8143903c>] _raw_spin_lock+0x21/0x30 [ 15.992097] [<81040d31>] __task_rq_lock+0x33/0x3a [ 15.992097] [<81041d0a>] wake_up_new_task+0x25/0xc2 [ 15.992097] [<81024d16>] do_fork+0x154/0x265 [ 15.992097] [<81024e41>] kernel_thread+0x1a/0x1f [ 15.992097] [<8142d33b>] rest_init+0x1a/0x10e [ 15.992097] [<817c2a4b>] start_kernel+0x323/0x328 [ 15.992097] [<817c22ab>] i386_start_kernel+0x79/0x7d [ 15.992097] -> #3 (&p->pi_lock){-.-...}: [ 15.992097] [<8104ae0b>] lock_acquire+0x92/0x101 [ 15.992097] [<8143910d>] _raw_spin_lock_irqsave+0x2e/0x3e [ 15.992097] [<8104189b>] try_to_wake_up+0x1d/0xd6 [ 15.992097] [<8104198b>] default_wake_function+0xb/0xd [ 15.992097] [<810466af>] __wake_up_common+0x39/0x59 [ 15.992097] [<81046802>] __wake_up+0x29/0x3b [ 15.992097] [<811bad5d>] tty_wakeup+0x49/0x51 [ 15.992097] [<811c5c58>] uart_write_wakeup+0x17/0x19 [ 15.992097] [<811c84b1>] serial8250_tx_chars+0xbc/0xfb [ 15.992097] [<811c8618>] serial8250_handle_irq+0x54/0x6a [ 15.992097] [<811c8647>] serial8250_default_handle_irq+0x19/0x1c [ 15.992097] [<811c7dc8>] serial8250_interrupt+0x38/0x9e [ 15.992097] [<8105169a>] handle_irq_event_percpu+0x5f/0x1e2 [ 15.992097] [<81051849>] handle_irq_event+0x2c/0x43 [ 15.992097] [<810532d0>] handle_level_irq+0x57/0x83 [ 15.992097] [<81002aec>] handle_irq+0x46/0x5c [ 15.992097] [<81002859>] do_IRQ+0x32/0x89 [ 15.992097] [<81439fae>] common_interrupt+0x2e/0x34 [ 15.992097] [<8143922c>] _raw_spin_unlock_irqrestore+0x3f/0x49 [ 15.992097] [<811c4c94>] uart_start+0x2d/0x32 [ 15.992097] [<811c52f4>] uart_write+0xc7/0xd6 [ 15.992097] [<811bed20>] n_tty_write+0xb8/0x35e [ 15.992097] [<811bc215>] tty_write+0x163/0x1e4 [ 15.992097] [<811bc303>] redirected_tty_write+0x6d/0x75 [ 15.992097] [<810b913c>] vfs_write+0x76/0xc5 [ 15.992097] [<810b94ed>] SyS_write+0x44/0x77 [ 15.992097] [<81439a2e>] syscall_call+0x7/0xb [ 15.992097] -> #2 (&tty->write_wait){-.....}: [ 15.992097] [<8104ae0b>] lock_acquire+0x92/0x101 [ 15.992097] [<8143910d>] _raw_spin_lock_irqsave+0x2e/0x3e [ 15.992097] [<810467ee>] __wake_up+0x15/0x3b [ 15.992097] [<811bad5d>] tty_wakeup+0x49/0x51 [ 15.992097] [<811c5c58>] uart_write_wakeup+0x17/0x19 [ 15.992097] [<811c84b1>] serial8250_tx_chars+0xbc/0xfb [ 15.992097] [<811c8618>] serial8250_handle_irq+0x54/0x6a [ 15.992097] [<811c8647>] serial8250_default_handle_irq+0x19/0x1c [ 15.992097] [<811c7dc8>] serial8250_interrupt+0x38/0x9e [ 15.992097] [<8105169a>] handle_irq_event_percpu+0x5f/0x1e2 [ 15.992097] [<81051849>] handle_irq_event+0x2c/0x43 [ 15.992097] [<810532d0>] handle_level_irq+0x57/0x83 [ 15.992097] [<81002aec>] handle_irq+0x46/0x5c [ 15.992097] [<81002859>] do_IRQ+0x32/0x89 [ 15.992097] [<81439fae>] common_interrupt+0x2e/0x34 [ 15.992097] [<8143922c>] _raw_spin_unlock_irqrestore+0x3f/0x49 [ 15.992097] [<811c4c94>] uart_start+0x2d/0x32 [ 15.992097] [<811c52f4>] uart_write+0xc7/0xd6 [ 15.992097] [<811bed20>] n_tty_write+0xb8/0x35e [ 15.992097] [<811bc215>] tty_write+0x163/0x1e4 [ 15.992097] [<811bc303>] redirected_tty_write+0x6d/0x75 [ 15.992097] [<810b913c>] vfs_write+0x76/0xc5 [ 15.992097] [<810b94ed>] SyS_write+0x44/0x77 [ 15.992097] [<81439a2e>] syscall_call+0x7/0xb [ 15.992097] -> #1 (&port_lock_key){-.-...}: [ 15.992097] [<8104ae0b>] lock_acquire+0x92/0x101 [ 15.992097] [<8143910d>] _raw_spin_lock_irqsave+0x2e/0x3e [ 15.992097] [<81047099>] down_trylock+0xc/0x27 [ 15.992097] [<8104f804>] console_trylock+0x12/0x80 [ 15.992097] [<8105020a>] vprintk_emit+0x404/0x421 [ 15.992097] [<81430018>] printk+0x17/0x19 [ 15.992097] [<8105c588>] clockevents_program_min_delta+0x104/0x116 [ 15.992097] [<8105cb30>] clockevents_program_event+0xe7/0xf3 [ 15.992097] [<8105d204>] tick_program_event+0x1e/0x23 [ 15.992097] [<8103c821>] hrtimer_force_reprogram+0x88/0x8f [ 15.992097] [<8103ccd5>] retrigger_next_event+0x36/0x42 [ 15.992097] [<8103d4b8>] hrtimer_run_pending+0xe4/0x108 [ 15.992097] [<8102cbf6>] run_timer_softirq+0x14/0x19c [ 15.992097] [<810286c3>] __do_softirq+0x111/0x2c4 [ 15.992097] [<81002aa0>] do_softirq_own_stack+0x1c/0x22 [ 15.992097] [<81028a57>] irq_exit+0x44/0x5d [ 15.992097] [<8100289d>] do_IRQ+0x76/0x89 [ 15.992097] [<81439fae>] common_interrupt+0x2e/0x34 [ 15.992097] [<81049352>] debug_check_no_locks_freed+0x10a/0x11d [ 15.992097] [<81047746>] debug_mutex_init+0x17/0x31 [ 15.992097] [<81046fc2>] __mutex_init+0x3f/0x44 [ 15.992097] [<810c93a6>] address_space_init_once+0x3d/0x78 [ 15.992097] [<810c9434>] inode_init_once+0x53/0x61 [ 15.992097] [<810c944a>] init_once+0x8/0xa [ 15.992097] [<810b1cec>] ____cache_alloc+0x3b6/0x409 [ 15.992097] [<810b1f2a>] kmem_cache_alloc+0x54/0x122 [ 15.992097] [<810c97b0>] alloc_inode+0x25/0x5f [ 15.992097] [<810caa84>] new_inode_pseudo+0xa/0x40 [ 15.992097] [<810caacc>] new_inode+0x12/0x22 [ 15.992097] [<810f52fe>] debugfs_mknod.part.8.constprop.17+0x13/0xca [ 15.992097] [<810f557f>] __create_file+0x146/0x1aa [ 15.992097] [<810f5609>] debugfs_create_file+0x26/0x2b [ 15.992097] [<81072a2e>] trace_create_file+0x15/0x33 [ 15.992097] [<810777a6>] event_create_dir+0x2e7/0x36e [ 15.992097] [<817d37a7>] event_trace_init+0x12d/0x190 [ 15.992097] [<8100048b>] do_one_initcall+0xe8/0x168 [ 15.992097] [<817c2b1c>] kernel_init_freeable+0xcc/0x144 [ 15.992097] [<8142d437>] kernel_init+0x8/0xb3 [ 15.992097] [<814398c0>] ret_from_kernel_thread+0x20/0x30 [ 15.992097] -> #0 (hrtimer_bases.lock){-.-...}: [ 15.992097] [<8104aaf6>] __lock_acquire+0x9ea/0xc6d [ 15.992097] [<8104ae0b>] lock_acquire+0x92/0x101 [ 15.992097] [<8143910d>] _raw_spin_lock_irqsave+0x2e/0x3e [ 15.992097] [<8103ccfd>] __hrtimer_start_range_ns+0x1c/0x197 [ 15.992097] [<8108057a>] perf_swevent_start_hrtimer.part.41+0x7a/0x85 [ 15.992097] [<810820ec>] task_clock_event_start+0x3a/0x3f [ 15.992097] [<810820fe>] task_clock_event_add+0xd/0x14 [ 15.992097] [<81083ef4>] event_sched_in+0xb6/0x17a [ 15.992097] [<81083ffc>] group_sched_in+0x44/0x122 [ 15.992097] [<81084177>] ctx_sched_in.isra.67+0x9d/0x11f [ 15.992097] [<81084220>] perf_event_sched_in.isra.70+0x27/0x4b [ 15.992097] [<81084640>] __perf_install_in_context+0x8b/0xa3 [ 15.992097] [<810804e8>] remote_function+0x12/0x2a [ 15.992097] [<8105fc24>] smp_call_function_single+0x2d/0x53 [ 15.992097] [<8107fad7>] task_function_call+0x30/0x36 [ 15.992097] [<810814dc>] perf_install_in_context+0x87/0xbb [ 15.992097] [<81086c76>] SYSC_perf_event_open+0x5f6/0x738 [ 15.992097] [<810870ad>] SyS_perf_event_open+0x17/0x19 [ 15.992097] [<81439a2e>] syscall_call+0x7/0xb [ 15.992097] [ 15.992097] other info that might help us debug this: [ 15.992097] [ 15.992097] Chain exists of: hrtimer_bases.lock --> &rq->lock --> &ctx->lock [ 15.992097] Possible unsafe locking scenario: [ 15.992097] [ 15.992097] CPU0 CPU1 [ 15.992097] ---- ---- [ 15.992097] lock(&ctx->lock); [ 15.992097] lock(&rq->lock); [ 15.992097] lock(&ctx->lock); [ 15.992097] lock(hrtimer_bases.lock); [ 15.992097] [ 15.992097] *** DEADLOCK *** [ 15.992097] [ 15.992097] 3 locks held by trinity-main/74: [ 15.992097] #0: (&ctx->mutex){+.+...}, at: [<81086c58>] SYSC_perf_event_open+0x5d8/0x738 [ 15.992097] #1: (&cpuctx_lock){......}, at: [<8107f997>] perf_ctx_lock+0xe/0x1d [ 15.992097] #2: (&ctx->lock){......}, at: [<8107f9a3>] perf_ctx_lock+0x1a/0x1d [ 15.992097] [ 15.992097] stack backtrace: [ 15.992097] CPU: 0 PID: 74 Comm: trinity-main Not tainted 3.16.0-rc1-00082-g9f6226a #1 [ 15.992097] 00000000 81c59488 8b9a3cc0 81430f8e 8b9a3cf0 8142fb3b 816300df 8162ffde [ 15.992097] 8162ffa6 8162ffc7 8162ffa6 8b9a3d24 8b1514d0 00000003 8b1518e4 8b1514d0 [ 15.992097] 8b9a3d54 8104aaf6 8b1518cc 00001681 00000002 00000000 81c6ae18 00000003 [ 15.992097] Call Trace: [ 15.992097] [<81430f8e>] dump_stack+0x16/0x18 [ 15.992097] [<8142fb3b>] print_circular_bug+0x18f/0x19c [ 15.992097] [<8104aaf6>] __lock_acquire+0x9ea/0xc6d [ 15.992097] [<81087988>] ? perf_output_begin+0x248/0x255 [ 15.992097] [<8104ae0b>] lock_acquire+0x92/0x101 [ 15.992097] [<8103ccfd>] ? __hrtimer_start_range_ns+0x1c/0x197 [ 15.992097] [<8143910d>] _raw_spin_lock_irqsave+0x2e/0x3e [ 15.992097] [<8103ccfd>] ? __hrtimer_start_range_ns+0x1c/0x197 [ 15.992097] [<8103ccfd>] __hrtimer_start_range_ns+0x1c/0x197 [ 15.992097] [<8108057a>] perf_swevent_start_hrtimer.part.41+0x7a/0x85 [ 15.992097] [<810820ec>] task_clock_event_start+0x3a/0x3f [ 15.992097] [<810820fe>] task_clock_event_add+0xd/0x14 [ 15.992097] [<81083ef4>] event_sched_in+0xb6/0x17a [ 15.992097] [<81083ffc>] group_sched_in+0x44/0x122 [ 15.992097] [<81084177>] ctx_sched_in.isra.67+0x9d/0x11f [ 15.992097] [<81084220>] perf_event_sched_in.isra.70+0x27/0x4b [ 15.992097] [<81084640>] __perf_install_in_context+0x8b/0xa3 [ 15.992097] [<810804d6>] ? perf_mmap_fault+0xe2/0xe2 [ 15.992097] [<810804e8>] remote_function+0x12/0x2a [ 15.992097] [<8105fc24>] smp_call_function_single+0x2d/0x53 [ 15.992097] [<8107fad7>] task_function_call+0x30/0x36 /kernel/i386-randconfig-ha2-0731/9f6226a762c7ae02f6a23a3d4fc552dafa57ea23/dmesg-quantal-kbuild-20:20140731234053:i386-randconfig-ha2-0731:3.16.0-rc1-00082-g9f6226a:1 27:1:4 all_good:bad:all_bad boots 2014-07-31 23:43:12 REPEAT COUNT: 300 # /c/boot-bisect/linux-2/obj-bisect/.repeat bisect: bad commit 9f6226a762c7ae02f6a23a3d4fc552dafa57ea23 git checkout v3.15 ls -a /kbuild-tests/run-queue/kvm/i386-randconfig-ha2-0731/kvmarm:next:1860e379875dfe7271c649058aeddffe5afd9d0d:bisect-linux-2 2014-07-31-23:51:50 1860e379875dfe7271c649058aeddffe5afd9d0d compiling Queued build task to /kbuild-tests/build-queue/i386-randconfig-ha2-0731-1860e379875dfe7271c649058aeddffe5afd9d0d Check for kernel in /kernel/i386-randconfig-ha2-0731/1860e379875dfe7271c649058aeddffe5afd9d0d waiting for completion of /kbuild-tests/build-queue/i386-randconfig-ha2-0731-1860e379875dfe7271c649058aeddffe5afd9d0d waiting for completion of /kbuild-tests/build-queue/lkp-hsx01-consumer/i386-randconfig-ha2-0731-1860e379875dfe7271c649058aeddffe5afd9d0d kernel: /kernel/i386-randconfig-ha2-0731/1860e379875dfe7271c649058aeddffe5afd9d0d/vmlinuz-3.15.0 2014-07-31-23:55:52 detecting boot state .. 1 5 6.. 7 11 15 18. 21 23 25 28 32 35 36 39 43 45.. 50 52 58 64 70 74 78 91 103 112 127 138 143 158 173 187 199 218 224 246 262 270 295 300 SUCCESS bisect: good commit v3.15 git bisect start 9f6226a762c7ae02f6a23a3d4fc552dafa57ea23 v3.15 -- /c/kernel-tests/linear-bisect: ["-b", "9f6226a762c7ae02f6a23a3d4fc552dafa57ea23", "-g", "v3.15", "/c/kernel-tests/bisect-test-boot-failure.sh", "/c/boot-bisect/linux-2/obj-bisect"] Bisecting: 12118 revisions left to test after this (roughly 14 steps) [71998d1be4ae70e7d320cdd21595c1a02a29c61e] Merge branch 'x86-irq-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip running /c/kernel-tests/bisect-test-boot-failure.sh /c/boot-bisect/linux-2/obj-bisect ls -a /kbuild-tests/run-queue/kvm/i386-randconfig-ha2-0731/kvmarm:next:71998d1be4ae70e7d320cdd21595c1a02a29c61e:bisect-linux-2 2014-08-01-00:19:59 71998d1be4ae70e7d320cdd21595c1a02a29c61e compiling Queued build task to /kbuild-tests/build-queue/i386-randconfig-ha2-0731-71998d1be4ae70e7d320cdd21595c1a02a29c61e Check for kernel in /kernel/i386-randconfig-ha2-0731/71998d1be4ae70e7d320cdd21595c1a02a29c61e waiting for completion of /kbuild-tests/build-queue/i386-randconfig-ha2-0731-71998d1be4ae70e7d320cdd21595c1a02a29c61e waiting for completion of /kbuild-tests/build-queue/lkp-hsx01-i386/i386-randconfig-ha2-0731-71998d1be4ae70e7d320cdd21595c1a02a29c61e kernel: /kernel/i386-randconfig-ha2-0731/71998d1be4ae70e7d320cdd21595c1a02a29c61e/vmlinuz-3.15.0-11738-g71998d1 2014-08-01-01:05:59 detecting boot state . 3 12 18 22 29 33 40 44 51 53 60 63 72 79 TEST FAILURE [ 2.632253] tsc: Refined TSC clocksource calibration: 2693.504 MHz [ 12.761179] sock: process `trinity-main' is using obsolete setsockopt SO_BSDCOMPAT BUG: kernel boot hang Elapsed time: 35 qemu-system-x86_64 -enable-kvm -cpu Haswell,+smep,+smap -kernel /kernel/i386-randconfig-ha2-0731/71998d1be4ae70e7d320cdd21595c1a02a29c61e/vmlinuz-3.15.0-11738-g71998d1 -append 'hung_task_panic=1 earlyprintk=ttyS0,115200 debug apic=debug sysrq_always_enabled rcupdate.rcu_cpu_stall_timeout=100 panic=10 softlockup_panic=1 nmi_watchdog=panic prompt_ramdisk=0 console=ttyS0,115200 console=tty0 vga=normal root=/dev/ram0 rw link=/kbuild-tests/run-queue/kvm/i386-randconfig-ha2-0731/kvmarm:next:71998d1be4ae70e7d320cdd21595c1a02a29c61e:bisect-linux-2/.vmlinuz-71998d1be4ae70e7d320cdd21595c1a02a29c61e-20140801090602-118-kbuild branch=kvmarm/next BOOT_IMAGE=/kernel/i386-randconfig-ha2-0731/71998d1be4ae70e7d320cdd21595c1a02a29c61e/vmlinuz-3.15.0-11738-g71998d1 drbd.minor_count=8' -initrd /kernel-tests/initrd/quantal-core-i386.cgz -m 320 -smp 2 -net nic,vlan=1,model=e1000 -net user,vlan=1 -boot order=nc -no-reboot -watchdog i6300esb -rtc base=localtime -pidfile /dev/shm/kboot/pid-quantal-kbuild-17 -serial file:/dev/shm/kboot/serial-quantal-kbuild-17 -daemonize -display none -monitor null /kernel/i386-randconfig-ha2-0731/71998d1be4ae70e7d320cdd21595c1a02a29c61e/dmesg-yocto-kbuild-3:20140801011103:i386-randconfig-ha2-0731:3.15.0-11738-g71998d1:1 75:1:5 all_good:bad:all_bad boots 2014-08-01 01:13:29 REPEAT COUNT: 300 # /c/boot-bisect/linux-2/obj-bisect/.repeat Bisecting: 11738 revisions left to test after this (roughly 14 steps) [9ee4d7a6538308a7681b638d2f35f2a301420355] Merge branch 'akpm' (patches from Andrew Morton) running /c/kernel-tests/bisect-test-boot-failure.sh /c/boot-bisect/linux-2/obj-bisect ls -a /kbuild-tests/run-queue/kvm/i386-randconfig-ha2-0731/kvmarm:next:9ee4d7a6538308a7681b638d2f35f2a301420355:bisect-linux-2 2014-08-01-01:13:31 9ee4d7a6538308a7681b638d2f35f2a301420355 compiling Queued build task to /kbuild-tests/build-queue/i386-randconfig-ha2-0731-9ee4d7a6538308a7681b638d2f35f2a301420355 Check for kernel in /kernel/i386-randconfig-ha2-0731/9ee4d7a6538308a7681b638d2f35f2a301420355 waiting for completion of /kbuild-tests/build-queue/i386-randconfig-ha2-0731-9ee4d7a6538308a7681b638d2f35f2a301420355 waiting for completion of /kbuild-tests/build-queue/lkp-hsx01-i386/i386-randconfig-ha2-0731-9ee4d7a6538308a7681b638d2f35f2a301420355 kernel: /kernel/i386-randconfig-ha2-0731/9ee4d7a6538308a7681b638d2f35f2a301420355/vmlinuz-3.15.0-08351-g9ee4d7a 2014-08-01-01:21:31 detecting boot state ... 1 3 TEST FAILURE [ 11.761187] sock: process `trinity-main' is using obsolete setsockopt SO_BSDCOMPAT [ 12.661397] [ 12.661560] ====================================================== [ 12.662094] [ INFO: possible circular locking dependency detected ] [ 12.662626] 3.15.0-08351-g9ee4d7a #2 Not tainted [ 12.663026] ------------------------------------------------------- [ 12.663557] trinity-main/74 is trying to acquire lock: [ 12.664001] (hrtimer_bases.lock){-.-...}, at: [<8103ce59>] __hrtimer_start_range_ns+0x1c/0x197 [ 12.664041] [ 12.664041] but task is already holding lock: [ 12.664041] (&ctx->lock){......}, at: [<8107f679>] perf_ctx_lock+0x1a/0x1d [ 12.664041] [ 12.664041] which lock already depends on the new lock. [ 12.664041] [ 12.664041] [ 12.664041] the existing dependency chain (in reverse order) is: [ 12.664041] -> #5 (&ctx->lock){......}: [ 12.664041] [<8104ae81>] lock_acquire+0x92/0x101 [ 12.664041] [<8143315c>] _raw_spin_lock+0x21/0x30 [ 12.664041] [<81083423>] __perf_event_task_sched_out+0x1dc/0x34f [ 12.664041] [<81430bdc>] __schedule+0x4c6/0x4cb [ 12.664041] [<81430bf0>] schedule+0xf/0x11 [ 12.664041] [<81433a56>] work_resched+0x5/0x2c [ 12.664041] -> #4 (&rq->lock){-.-.-.}: [ 12.664041] [<8104ae81>] lock_acquire+0x92/0x101 [ 12.664041] [<8143315c>] _raw_spin_lock+0x21/0x30 [ 12.664041] [<81040db4>] __task_rq_lock+0x33/0x3a [ 12.664041] [<81041d8d>] wake_up_new_task+0x25/0xc2 [ 12.664041] [<81024eae>] do_fork+0x154/0x265 [ 12.664041] [<81024fd9>] kernel_thread+0x1a/0x1f [ 12.664041] [<814273c7>] rest_init+0x1a/0x10e [ 12.664041] [<817b69e2>] start_kernel+0x303/0x308 [ 12.664041] [<817b62ab>] i386_start_kernel+0x79/0x7d [ 12.664041] -> #3 (&p->pi_lock){-.-...}: [ 12.664041] [<8104ae81>] lock_acquire+0x92/0x101 [ 12.664041] [<8143322d>] _raw_spin_lock_irqsave+0x2e/0x3e [ 12.664041] [<8104191e>] try_to_wake_up+0x1d/0xd6 [ 12.664041] [<81041a0e>] default_wake_function+0xb/0xd [ 12.664041] [<81046732>] __wake_up_common+0x39/0x59 [ 12.664041] [<81046885>] __wake_up+0x29/0x3b [ 12.664041] [<811b9f3f>] tty_wakeup+0x49/0x51 [ 12.664041] [<811c4e3a>] uart_write_wakeup+0x17/0x19 [ 12.664041] [<811c7693>] serial8250_tx_chars+0xbc/0xfb [ 12.664041] [<811c77fa>] serial8250_handle_irq+0x54/0x6a [ 12.664041] [<811c7829>] serial8250_default_handle_irq+0x19/0x1c [ 12.664041] [<811c6faa>] serial8250_interrupt+0x38/0x9e [ 12.664041] [<81051599>] handle_irq_event_percpu+0x5f/0x1e2 [ 12.664041] [<81051748>] handle_irq_event+0x2c/0x43 [ 12.664041] [<810531cf>] handle_level_irq+0x57/0x83 [ 12.664041] [<81002cce>] handle_irq+0x46/0x5c [ 12.664041] [<81002a3b>] do_IRQ+0x32/0x89 [ 12.664041] [<8143436e>] common_interrupt+0x2e/0x33 [ 12.664041] [<8143334c>] _raw_spin_unlock_irqrestore+0x3f/0x49 [ 12.664041] [<811c3e76>] uart_start+0x2d/0x32 [ 12.664041] [<811c44d6>] uart_write+0xc7/0xd6 [ 12.664041] [<811bdf02>] n_tty_write+0xb8/0x35e [ 12.664041] [<811bb3f7>] tty_write+0x163/0x1e4 [ 12.664041] [<811bb4e5>] redirected_tty_write+0x6d/0x75 [ 12.664041] [<810b85a3>] vfs_write+0x75/0xb0 [ 12.664041] [<810b8932>] SyS_write+0x44/0x77 [ 12.664041] [<814339fe>] syscall_call+0x7/0xb [ 12.664041] -> #2 (&tty->write_wait){-.....}: [ 12.664041] [<8104ae81>] lock_acquire+0x92/0x101 [ 12.664041] [<8143322d>] _raw_spin_lock_irqsave+0x2e/0x3e [ 12.664041] [<81046871>] __wake_up+0x15/0x3b [ 12.664041] [<811b9f3f>] tty_wakeup+0x49/0x51 [ 12.664041] [<811c4e3a>] uart_write_wakeup+0x17/0x19 [ 12.664041] [<811c7693>] serial8250_tx_chars+0xbc/0xfb [ 12.664041] [<811c77fa>] serial8250_handle_irq+0x54/0x6a [ 12.664041] [<811c7829>] serial8250_default_handle_irq+0x19/0x1c [ 12.664041] [<811c6faa>] serial8250_interrupt+0x38/0x9e [ 12.664041] [<81051599>] handle_irq_event_percpu+0x5f/0x1e2 [ 12.664041] [<81051748>] handle_irq_event+0x2c/0x43 [ 12.664041] [<810531cf>] handle_level_irq+0x57/0x83 [ 12.664041] [<81002cce>] handle_irq+0x46/0x5c [ 12.664041] [<81002a3b>] do_IRQ+0x32/0x89 [ 12.664041] [<8143436e>] common_interrupt+0x2e/0x33 [ 12.664041] [<8143334c>] _raw_spin_unlock_irqrestore+0x3f/0x49 [ 12.664041] [<811c3e76>] uart_start+0x2d/0x32 [ 12.664041] [<811c44d6>] uart_write+0xc7/0xd6 [ 12.664041] [<811bdf02>] n_tty_write+0xb8/0x35e [ 12.664041] [<811bb3f7>] tty_write+0x163/0x1e4 [ 12.664041] [<811bb4e5>] redirected_tty_write+0x6d/0x75 [ 12.664041] [<810b85a3>] vfs_write+0x75/0xb0 [ 12.664041] [<810b8932>] SyS_write+0x44/0x77 [ 12.664041] [<814339fe>] syscall_call+0x7/0xb [ 12.664041] -> #1 (&port_lock_key){-.-...}: [ 12.664041] [<8104ae81>] lock_acquire+0x92/0x101 [ 12.664041] [<8143322d>] _raw_spin_lock_irqsave+0x2e/0x3e [ 12.664041] [<8104710f>] down_trylock+0xc/0x27 [ 12.664041] [<8104f703>] console_trylock+0x12/0x80 [ 12.664041] [<81050109>] vprintk_emit+0x404/0x421 [ 12.664041] [<8142a0ab>] printk+0x17/0x19 [ 12.664041] [<8105c487>] clockevents_program_min_delta+0x104/0x116 [ 12.664041] [<8105ca2f>] clockevents_program_event+0xe7/0xf3 [ 12.664041] [<8105d103>] tick_program_event+0x1e/0x23 [ 12.664041] [<8103c97d>] hrtimer_force_reprogram+0x88/0x8f [ 12.664041] [<8103ce31>] retrigger_next_event+0x36/0x42 [ 12.664041] [<8103d614>] hrtimer_run_pending+0xe4/0x108 [ 12.664041] [<8102cd8e>] run_timer_softirq+0x14/0x19c [ 12.664041] [<8102885b>] __do_softirq+0x111/0x2c4 [ 12.664041] [<81002c82>] do_softirq_own_stack+0x1c/0x22 [ 12.664041] [<81028bef>] irq_exit+0x44/0x5d [ 12.664041] [<81002a7f>] do_IRQ+0x76/0x89 [ 12.664041] [<8143436e>] common_interrupt+0x2e/0x33 [ 12.664041] [<810be897>] __lookup_hash+0x2a/0x31 [ 12.664041] [<810c0722>] lookup_one_len+0xaf/0xbe [ 12.664041] [<810f4b96>] __create_file+0x94/0x1aa [ 12.664041] [<810f4cd2>] debugfs_create_file+0x26/0x2b [ 12.664041] [<81072919>] trace_create_file+0x15/0x33 [ 12.664041] [<810776fc>] event_create_dir+0x35a/0x36e [ 12.664041] [<817c76ca>] event_trace_init+0x12d/0x190 [ 12.664041] [<8100048b>] do_one_initcall+0xe8/0x168 [ 12.664041] [<817b6ab3>] kernel_init_freeable+0xcc/0x144 [ 12.664041] [<814274c3>] kernel_init+0x8/0xb3 [ 12.664041] [<81433e40>] ret_from_kernel_thread+0x20/0x30 [ 12.664041] -> #0 (hrtimer_bases.lock){-.-...}: [ 12.664041] [<8104ab6c>] __lock_acquire+0x9ea/0xc6d [ 12.664041] [<8104ae81>] lock_acquire+0x92/0x101 [ 12.664041] [<8143322d>] _raw_spin_lock_irqsave+0x2e/0x3e [ 12.664041] [<8103ce59>] __hrtimer_start_range_ns+0x1c/0x197 [ 12.664041] [<81080250>] perf_swevent_start_hrtimer.part.41+0x7a/0x85 [ 12.664041] [<81081dc2>] task_clock_event_start+0x3a/0x3f [ 12.664041] [<81081dd4>] task_clock_event_add+0xd/0x14 [ 12.664041] [<81083bca>] event_sched_in+0xb6/0x17a [ 12.664041] [<81083cd2>] group_sched_in+0x44/0x122 [ 12.664041] [<81083e4d>] ctx_sched_in.isra.67+0x9d/0x11f [ 12.664041] [<81083ef6>] perf_event_sched_in.isra.70+0x27/0x4b [ 12.664041] [<81084226>] __perf_install_in_context+0x8b/0xa3 [ 12.664041] [<810801be>] remote_function+0x12/0x2a [ 12.664041] [<8105fb23>] smp_call_function_single+0x2d/0x53 [ 12.664041] [<8107f7ad>] task_function_call+0x30/0x36 [ 12.664041] [<810811b2>] perf_install_in_context+0x87/0xbb [ 12.664041] [<810868f6>] SYSC_perf_event_open+0x5c6/0x701 [ 12.664041] [<81086d26>] SyS_perf_event_open+0x17/0x19 [ 12.664041] [<814339fe>] syscall_call+0x7/0xb [ 12.664041] [ 12.664041] other info that might help us debug this: [ 12.664041] [ 12.664041] Chain exists of: hrtimer_bases.lock --> &rq->lock --> &ctx->lock [ 12.664041] Possible unsafe locking scenario: [ 12.664041] [ 12.664041] CPU0 CPU1 [ 12.664041] ---- ---- [ 12.664041] lock(&ctx->lock); [ 12.664041] lock(&rq->lock); [ 12.664041] lock(&ctx->lock); [ 12.664041] lock(hrtimer_bases.lock); [ 12.664041] [ 12.664041] *** DEADLOCK *** [ 12.664041] [ 12.664041] 3 locks held by trinity-main/74: [ 12.664041] #0: (&ctx->mutex){+.+...}, at: [<810868d8>] SYSC_perf_event_open+0x5a8/0x701 [ 12.664041] #1: (&cpuctx_lock){......}, at: [<8107f66d>] perf_ctx_lock+0xe/0x1d [ 12.664041] #2: (&ctx->lock){......}, at: [<8107f679>] perf_ctx_lock+0x1a/0x1d [ 12.664041] [ 12.664041] stack backtrace: [ 12.664041] CPU: 0 PID: 74 Comm: trinity-main Not tainted 3.15.0-08351-g9ee4d7a #2 [ 12.664041] 00000000 81c4c488 8b9a3cc0 8142b074 8b9a3cf0 81429bce 81625a91 81625990 [ 12.664041] 81625958 81625979 81625958 8b9a3d24 8b11ab30 00000003 8b11af44 8b11ab30 [ 12.664041] 8b9a3d54 8104ab6c 8b11af2c 00001699 00000002 00000000 81c5dd08 00000003 [ 12.664041] Call Trace: [ 12.664041] [<8142b074>] dump_stack+0x16/0x18 [ 12.664041] [<81429bce>] print_circular_bug+0x18f/0x19c [ 12.664041] [<8104ab6c>] __lock_acquire+0x9ea/0xc6d [ 12.664041] [<8104ae81>] lock_acquire+0x92/0x101 [ 12.664041] [<8103ce59>] ? __hrtimer_start_range_ns+0x1c/0x197 [ 12.664041] [<8143322d>] _raw_spin_lock_irqsave+0x2e/0x3e [ 12.664041] [<8103ce59>] ? __hrtimer_start_range_ns+0x1c/0x197 [ 12.664041] [<8103ce59>] __hrtimer_start_range_ns+0x1c/0x197 [ 12.664041] [<81049f17>] ? __lock_is_held+0x2d/0x43 [ 12.664041] [<81080250>] perf_swevent_start_hrtimer.part.41+0x7a/0x85 [ 12.664041] [<81081dc2>] task_clock_event_start+0x3a/0x3f [ 12.664041] [<81081dd4>] task_clock_event_add+0xd/0x14 [ 12.664041] [<81083bca>] event_sched_in+0xb6/0x17a [ 12.664041] [<81083cd2>] group_sched_in+0x44/0x122 [ 12.664041] [<81083e4d>] ctx_sched_in.isra.67+0x9d/0x11f [ 12.664041] [<81083ef6>] perf_event_sched_in.isra.70+0x27/0x4b [ 12.664041] [<81084226>] __perf_install_in_context+0x8b/0xa3 [ 12.664041] [<810801ac>] ? perf_mmap_fault+0xe2/0xe2 [ 12.664041] [<810801be>] remote_function+0x12/0x2a [ 12.664041] [<8105fb23>] smp_call_function_single+0x2d/0x53 [ 12.664041] [<8107f7ad>] task_function_call+0x30/0x36 [ 12.664041] [<8108419b>] ? perf_cpu_hrtimer_handler+0x10e/0x10e [ 12.664041] [<810811b2>] perf_install_in_context+0x87/0xbb [ 12.664041] [<810868f6>] SYSC_perf_event_open+0x5c6/0x701 [ 12.664041] [<8101b300>] ? __do_page_fault+0x1ee/0x314 [ 12.664041] [<81086d26>] SyS_perf_event_open+0x17/0x19 [ 12.664041] [<814339fe>] syscall_call+0x7/0xb [ 12.664041] [<81430000>] ? asus_register_rfkill_notifier+0x48/0x4f [ 32.800066] random: nonblocking pool is initialized [ 61.016131] spin_lock-torture: Writes: Total: 2 Max/Min: 0/0 Fail: 0 plymouth-upstart-bridge: ply-event-loop.c:497: ply_event_loop_new: Assertion `loop->epoll_fd >= 0' failed. /kernel/i386-randconfig-ha2-0731/9ee4d7a6538308a7681b638d2f35f2a301420355/dmesg-quantal-kbuild-9:20140801012132:i386-randconfig-ha2-0731:3.15.0-08351-g9ee4d7a:2 3:1:1 all_good:bad:all_bad boots Bisecting: 8351 revisions left to test after this (roughly 14 steps) [9894e6d9c020b754dd962960e9f7eac18282f69f] Merge tag 'fbdev-omap-dt-3.16' of git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux running /c/kernel-tests/bisect-test-boot-failure.sh /c/boot-bisect/linux-2/obj-bisect ls -a /kbuild-tests/run-queue/kvm/i386-randconfig-ha2-0731/kvmarm:next:9894e6d9c020b754dd962960e9f7eac18282f69f:bisect-linux-2 2014-08-01-01:24:03 9894e6d9c020b754dd962960e9f7eac18282f69f compiling Queued build task to /kbuild-tests/build-queue/i386-randconfig-ha2-0731-9894e6d9c020b754dd962960e9f7eac18282f69f Check for kernel in /kernel/i386-randconfig-ha2-0731/9894e6d9c020b754dd962960e9f7eac18282f69f waiting for completion of /kbuild-tests/build-queue/i386-randconfig-ha2-0731-9894e6d9c020b754dd962960e9f7eac18282f69f waiting for completion of /kbuild-tests/build-queue/jaketown-consumer/i386-randconfig-ha2-0731-9894e6d9c020b754dd962960e9f7eac18282f69f kernel: /kernel/i386-randconfig-ha2-0731/9894e6d9c020b754dd962960e9f7eac18282f69f/vmlinuz-3.15.0-07984-g9894e6d 2014-08-01-01:53:03 detecting boot state .. 3 34 38 63 77 81 100 128 TEST FAILURE /bin/sh: /proc/self/fd/9: No such file or directory [ 13.601957] sock: process `trinity-main' is using obsolete setsockopt SO_BSDCOMPAT BUG: kernel boot hang Elapsed time: 35 qemu-system-x86_64 -cpu kvm64 -enable-kvm -kernel /kernel/i386-randconfig-ha2-0731/9894e6d9c020b754dd962960e9f7eac18282f69f/vmlinuz-3.15.0-07984-g9894e6d -append 'hung_task_panic=1 earlyprintk=ttyS0,115200 debug apic=debug sysrq_always_enabled rcupdate.rcu_cpu_stall_timeout=100 panic=10 softlockup_panic=1 nmi_watchdog=panic load_ramdisk=2 prompt_ramdisk=0 console=ttyS0,115200 console=tty0 vga=normal root=/dev/ram0 rw link=/kbuild-tests/run-queue/kvm/i386-randconfig-ha2-0731/kvmarm:next:9894e6d9c020b754dd962960e9f7eac18282f69f:bisect-linux-2/.vmlinuz-9894e6d9c020b754dd962960e9f7eac18282f69f-20140801015253-197-ivb44 branch=kvmarm/next BOOT_IMAGE=/kernel/i386-randconfig-ha2-0731/9894e6d9c020b754dd962960e9f7eac18282f69f/vmlinuz-3.15.0-07984-g9894e6d drbd.minor_count=8' -initrd /kernel-tests/initrd/quantal-core-i386.cgz -m 320 -smp 2 -net nic,vlan=1,model=e1000 -net user,vlan=1 -boot order=nc -no-reboot -watchdog i6300esb -rtc base=localtime -pidfile /dev/shm/kboot/pid-quantal-ivb44-80 -serial file:/dev/shm/kboot/serial-quantal-ivb44-80 -daemonize -display none -monitor null /kernel/i386-randconfig-ha2-0731/9894e6d9c020b754dd962960e9f7eac18282f69f/dmesg-yocto-ivb43-10:20140801020656:i386-randconfig-ha2-0731:: 124:1:5 all_good:bad:all_bad boots 2014-08-01 01:58:58 REPEAT COUNT: 300 # /c/boot-bisect/linux-2/obj-bisect/.repeat Bisecting: 7624 revisions left to test after this (roughly 13 steps) [963649d735c8b6eb0f97e82c54f02426ff3f1f45] Merge tag 'for-linus-3.16-merge-window' of git://git.kernel.org/pub/scm/linux/kernel/git/ericvh/v9fs running /c/kernel-tests/bisect-test-boot-failure.sh /c/boot-bisect/linux-2/obj-bisect ls -a /kbuild-tests/run-queue/kvm/i386-randconfig-ha2-0731/kvmarm:next:963649d735c8b6eb0f97e82c54f02426ff3f1f45:bisect-linux-2 2014-08-01-01:59:24 963649d735c8b6eb0f97e82c54f02426ff3f1f45 compiling Queued build task to /kbuild-tests/build-queue/i386-randconfig-ha2-0731-963649d735c8b6eb0f97e82c54f02426ff3f1f45 Check for kernel in /kernel/i386-randconfig-ha2-0731/963649d735c8b6eb0f97e82c54f02426ff3f1f45 waiting for completion of /kbuild-tests/build-queue/i386-randconfig-ha2-0731-963649d735c8b6eb0f97e82c54f02426ff3f1f45 waiting for completion of /kbuild-tests/build-queue/lkp-hsx01-consumer/i386-randconfig-ha2-0731-963649d735c8b6eb0f97e82c54f02426ff3f1f45 kernel: /kernel/i386-randconfig-ha2-0731/963649d735c8b6eb0f97e82c54f02426ff3f1f45/vmlinuz-3.15.0-07257-g963649d 2014-08-01-02:04:24 detecting boot state .. 20 31 48 TEST FAILURE [ 2.536207] tsc: Refined TSC clocksource calibration: 2693.505 MHz [ 12.809046] sock: process `trinity-main' is using obsolete setsockopt SO_BSDCOMPAT BUG: kernel boot hang Elapsed time: 35 qemu-system-x86_64 -cpu kvm64 -enable-kvm -kernel /kernel/i386-randconfig-ha2-0731/963649d735c8b6eb0f97e82c54f02426ff3f1f45/vmlinuz-3.15.0-07257-g963649d -append 'hung_task_panic=1 earlyprintk=ttyS0,115200 debug apic=debug sysrq_always_enabled rcupdate.rcu_cpu_stall_timeout=100 panic=10 softlockup_panic=1 nmi_watchdog=panic load_ramdisk=2 prompt_ramdisk=0 console=ttyS0,115200 console=tty0 vga=normal root=/dev/ram0 rw link=/kbuild-tests/run-queue/kvm/i386-randconfig-ha2-0731/kvmarm:next:963649d735c8b6eb0f97e82c54f02426ff3f1f45:bisect-linux-2/.vmlinuz-963649d735c8b6eb0f97e82c54f02426ff3f1f45-20140801100444-132-ivb44 branch=kvmarm/next BOOT_IMAGE=/kernel/i386-randconfig-ha2-0731/963649d735c8b6eb0f97e82c54f02426ff3f1f45/vmlinuz-3.15.0-07257-g963649d drbd.minor_count=8' -initrd /kernel-tests/initrd/quantal-core-i386.cgz -m 320 -smp 2 -net nic,vlan=1,model=e1000 -net user,vlan=1 -boot order=nc -no-reboot -watchdog i6300esb -rtc base=localtime -pidfile /dev/shm/kboot/pid-quantal-ivb44-11 -serial file:/dev/shm/kboot/serial-quantal-ivb44-11 -daemonize -display none -monitor null /kernel/i386-randconfig-ha2-0731/963649d735c8b6eb0f97e82c54f02426ff3f1f45/dmesg-quantal-ivb44-30:20140801015814:i386-randconfig-ha2-0731:: 46:1:3 all_good:bad:all_bad boots 2014-08-01 02:06:54 REPEAT COUNT: 300 # /c/boot-bisect/linux-2/obj-bisect/.repeat Bisecting: 7257 revisions left to test after this (roughly 13 steps) [b20dcab9d4589ef9918a13c888c5493945adfc13] Merge tag 'llvmlinux-for-v3.16' of git://git.linuxfoundation.org/llvmlinux/kernel running /c/kernel-tests/bisect-test-boot-failure.sh /c/boot-bisect/linux-2/obj-bisect ls -a /kbuild-tests/run-queue/kvm/i386-randconfig-ha2-0731/kvmarm:next:b20dcab9d4589ef9918a13c888c5493945adfc13:bisect-linux-2 2014-08-01-02:06:55 b20dcab9d4589ef9918a13c888c5493945adfc13 compiling Queued build task to /kbuild-tests/build-queue/i386-randconfig-ha2-0731-b20dcab9d4589ef9918a13c888c5493945adfc13 Check for kernel in /kernel/i386-randconfig-ha2-0731/b20dcab9d4589ef9918a13c888c5493945adfc13 waiting for completion of /kbuild-tests/build-queue/i386-randconfig-ha2-0731-b20dcab9d4589ef9918a13c888c5493945adfc13 kernel: /kernel/i386-randconfig-ha2-0731/b20dcab9d4589ef9918a13c888c5493945adfc13/vmlinuz-3.15.0-07226-gb20dcab 2014-08-01-02:09:55 detecting boot state .. 2 15 17. 26 35 TEST FAILURE [ 12.853748] sock: process `trinity-main' is using obsolete setsockopt SO_BSDCOMPAT [ 14.297086] [ 14.297308] ====================================================== [ 14.298141] [ INFO: possible circular locking dependency detected ] [ 14.298999] 3.15.0-07226-gb20dcab #21 Not tainted [ 14.299595] ------------------------------------------------------- [ 14.300050] trinity-main/74 is trying to acquire lock: [ 14.300050] (hrtimer_bases.lock){-.-...}, at: [<8103d07f>] __hrtimer_start_range_ns+0x1c/0x197 [ 14.300050] [ 14.300050] but task is already holding lock: [ 14.300050] (&ctx->lock){......}, at: [<8107e7e0>] perf_ctx_lock+0x1a/0x1d [ 14.300050] [ 14.300050] which lock already depends on the new lock. [ 14.300050] [ 14.300050] [ 14.300050] the existing dependency chain (in reverse order) is: [ 14.300050] -> #5 (&ctx->lock){......}: [ 14.300050] [<8104b0a7>] lock_acquire+0x92/0x101 [ 14.300050] [<81431a94>] _raw_spin_lock+0x21/0x30 [ 14.300050] [<8108258a>] __perf_event_task_sched_out+0x1dc/0x34f [ 14.300050] [<8142f514>] __schedule+0x4c6/0x4cb [ 14.300050] [<8142f528>] schedule+0xf/0x11 [ 14.300050] [<8143238e>] work_resched+0x5/0x2c [ 14.300050] -> #4 (&rq->lock){-.-.-.}: [ 14.300050] [<8104b0a7>] lock_acquire+0x92/0x101 [ 14.300050] [<81431a94>] _raw_spin_lock+0x21/0x30 [ 14.300050] [<81040fda>] __task_rq_lock+0x33/0x3a [ 14.300050] [<81041fb3>] wake_up_new_task+0x25/0xc2 [ 14.300050] [<81024eae>] do_fork+0x154/0x265 [ 14.300050] [<81024fd9>] kernel_thread+0x1a/0x1f [ 14.300050] [<81425d02>] rest_init+0x1a/0x10e [ 14.300050] [<817b39e2>] start_kernel+0x303/0x308 [ 14.300050] [<817b32ab>] i386_start_kernel+0x79/0x7d [ 14.300050] -> #3 (&p->pi_lock){-.-...}: [ 14.300050] [<8104b0a7>] lock_acquire+0x92/0x101 [ 14.300050] [<81431b65>] _raw_spin_lock_irqsave+0x2e/0x3e [ 14.300050] [<81041b44>] try_to_wake_up+0x1d/0xd6 [ 14.300050] [<81041c34>] default_wake_function+0xb/0xd [ 14.300050] [<81046958>] __wake_up_common+0x39/0x59 [ 14.300050] [<81046aab>] __wake_up+0x29/0x3b [ 14.300050] [<811b909f>] tty_wakeup+0x49/0x51 [ 14.300050] [<811c3f9a>] uart_write_wakeup+0x17/0x19 [ 14.300050] [<811c67f3>] serial8250_tx_chars+0xbc/0xfb [ 14.300050] [<811c695a>] serial8250_handle_irq+0x54/0x6a [ 14.300050] [<811c6989>] serial8250_default_handle_irq+0x19/0x1c [ 14.300050] [<811c610a>] serial8250_interrupt+0x38/0x9e [ 14.300050] [<810517bf>] handle_irq_event_percpu+0x5f/0x1e2 [ 14.300050] [<8105196e>] handle_irq_event+0x2c/0x43 [ 14.300050] [<810533f5>] handle_level_irq+0x57/0x83 [ 14.300050] [<81002cce>] handle_irq+0x46/0x5c [ 14.300050] [<81002a3b>] do_IRQ+0x32/0x89 [ 14.300050] [<81432cae>] common_interrupt+0x2e/0x33 [ 14.300050] [<81431c84>] _raw_spin_unlock_irqrestore+0x3f/0x49 [ 14.300050] [<811c2fd6>] uart_start+0x2d/0x32 [ 14.300050] [<811c3636>] uart_write+0xc7/0xd6 [ 14.300050] [<811bd062>] n_tty_write+0xb8/0x35e [ 14.300050] [<811ba557>] tty_write+0x163/0x1e4 [ 14.300050] [<811ba645>] redirected_tty_write+0x6d/0x75 [ 14.300050] [<810b7707>] vfs_write+0x75/0xb0 [ 14.300050] [<810b7a96>] SyS_write+0x44/0x77 [ 14.300050] [<81432336>] syscall_call+0x7/0xb [ 14.300050] -> #2 (&tty->write_wait){-.....}: [ 14.300050] [<8104b0a7>] lock_acquire+0x92/0x101 [ 14.300050] [<81431b65>] _raw_spin_lock_irqsave+0x2e/0x3e [ 14.300050] [<81046a97>] __wake_up+0x15/0x3b [ 14.300050] [<811b909f>] tty_wakeup+0x49/0x51 [ 14.300050] [<811c3f9a>] uart_write_wakeup+0x17/0x19 [ 14.300050] [<811c67f3>] serial8250_tx_chars+0xbc/0xfb [ 14.300050] [<811c695a>] serial8250_handle_irq+0x54/0x6a [ 14.300050] [<811c6989>] serial8250_default_handle_irq+0x19/0x1c [ 14.300050] [<811c610a>] serial8250_interrupt+0x38/0x9e [ 14.300050] [<810517bf>] handle_irq_event_percpu+0x5f/0x1e2 [ 14.300050] [<8105196e>] handle_irq_event+0x2c/0x43 [ 14.300050] [<810533f5>] handle_level_irq+0x57/0x83 [ 14.300050] [<81002cce>] handle_irq+0x46/0x5c [ 14.300050] [<81002a3b>] do_IRQ+0x32/0x89 [ 14.300050] [<81432cae>] common_interrupt+0x2e/0x33 [ 14.300050] [<81431c84>] _raw_spin_unlock_irqrestore+0x3f/0x49 [ 14.300050] [<811c2fd6>] uart_start+0x2d/0x32 [ 14.300050] [<811c3636>] uart_write+0xc7/0xd6 [ 14.300050] [<811bd062>] n_tty_write+0xb8/0x35e [ 14.300050] [<811ba557>] tty_write+0x163/0x1e4 [ 14.300050] [<811ba645>] redirected_tty_write+0x6d/0x75 [ 14.300050] [<810b7707>] vfs_write+0x75/0xb0 [ 14.300050] [<810b7a96>] SyS_write+0x44/0x77 [ 14.300050] [<81432336>] syscall_call+0x7/0xb [ 14.300050] -> #1 (&port_lock_key){-.-...}: [ 14.300050] [<8104b0a7>] lock_acquire+0x92/0x101 [ 14.300050] [<81431b65>] _raw_spin_lock_irqsave+0x2e/0x3e [ 14.300050] [<81047335>] down_trylock+0xc/0x27 [ 14.300050] [<8104f929>] console_trylock+0x12/0x80 [ 14.300050] [<8105032f>] vprintk_emit+0x404/0x421 [ 14.300050] [<814289e6>] printk+0x17/0x19 [ 14.300050] [<8105c6ad>] clockevents_program_min_delta+0x104/0x116 [ 14.300050] [<8105cc55>] clockevents_program_event+0xe7/0xf3 [ 14.300050] [<8105d329>] tick_program_event+0x1e/0x23 [ 14.300050] [<8103cba3>] hrtimer_force_reprogram+0x88/0x8f [ 14.300050] [<8103d057>] retrigger_next_event+0x36/0x42 [ 14.300050] [<8103d83a>] hrtimer_run_pending+0xe4/0x108 [ 14.300050] [<8102cd8e>] run_timer_softirq+0x14/0x19c [ 14.300050] [<8102885b>] __do_softirq+0x111/0x2c4 [ 14.300050] [<81002c82>] do_softirq_own_stack+0x1c/0x22 [ 14.300050] [<81028bef>] irq_exit+0x44/0x5d [ 14.300050] [<81002a7f>] do_IRQ+0x76/0x89 [ 14.300050] [<81432cae>] common_interrupt+0x2e/0x33 [ 14.300050] [<810495ee>] debug_check_no_locks_freed+0x10a/0x11d [ 14.300050] [<8104c18a>] __raw_spin_lock_init+0x17/0x49 [ 14.300050] [<81047243>] __mutex_init+0x24/0x44 [ 14.300050] [<810c798d>] inode_init_always+0x11a/0x1ca [ 14.300050] [<810c7e93>] alloc_inode+0x34/0x5f [ 14.300050] [<810c9155>] new_inode_pseudo+0xa/0x40 [ 14.300050] [<810c919d>] new_inode+0x12/0x22 [ 14.300050] [<810f3b24>] debugfs_mknod.part.8.constprop.17+0x13/0xca [ 14.300050] [<810f3da5>] __create_file+0x146/0x1aa [ 14.300050] [<810f3e2f>] debugfs_create_file+0x26/0x2b [ 14.300050] [<810721d5>] trace_create_file+0x15/0x33 [ 14.300050] [<81076f1f>] event_create_dir+0x35a/0x36e [ 14.300050] [<817c4614>] event_trace_init+0x125/0x181 [ 14.300050] [<8100048b>] do_one_initcall+0xe8/0x168 [ 14.300050] [<817b3ab3>] kernel_init_freeable+0xcc/0x144 [ 14.300050] [<81425dfe>] kernel_init+0x8/0xb3 [ 14.300050] [<81432780>] ret_from_kernel_thread+0x20/0x30 [ 14.300050] -> #0 (hrtimer_bases.lock){-.-...}: [ 14.300050] [<8104ad92>] __lock_acquire+0x9ea/0xc6d [ 14.300050] [<8104b0a7>] lock_acquire+0x92/0x101 [ 14.300050] [<81431b65>] _raw_spin_lock_irqsave+0x2e/0x3e [ 14.300050] [<8103d07f>] __hrtimer_start_range_ns+0x1c/0x197 [ 14.300050] [<8107f3b7>] perf_swevent_start_hrtimer.part.41+0x7a/0x85 [ 14.300050] [<81080f29>] task_clock_event_start+0x3a/0x3f [ 14.300050] [<81080f3b>] task_clock_event_add+0xd/0x14 [ 14.300050] [<81082d31>] event_sched_in+0xb6/0x17a [ 14.300050] [<81082e39>] group_sched_in+0x44/0x122 [ 14.300050] [<8108301c>] ctx_sched_in.isra.67+0x105/0x11f [ 14.300050] [<8108307d>] perf_event_sched_in.isra.70+0x47/0x4b [ 14.300050] [<8108338d>] __perf_install_in_context+0x8b/0xa3 [ 14.300050] [<8107f325>] remote_function+0x12/0x2a [ 14.300050] [<8105fd49>] smp_call_function_single+0x2d/0x53 [ 14.300050] [<8107e914>] task_function_call+0x30/0x36 [ 14.300050] [<81080319>] perf_install_in_context+0x87/0xbb [ 14.300050] [<81085a5d>] SYSC_perf_event_open+0x5c6/0x701 [ 14.300050] [<81085e8d>] SyS_perf_event_open+0x17/0x19 [ 14.300050] [<81432336>] syscall_call+0x7/0xb [ 14.300050] [ 14.300050] other info that might help us debug this: [ 14.300050] [ 14.300050] Chain exists of: hrtimer_bases.lock --> &rq->lock --> &ctx->lock [ 14.300050] Possible unsafe locking scenario: [ 14.300050] [ 14.300050] CPU0 CPU1 [ 14.300050] ---- ---- [ 14.300050] lock(&ctx->lock); [ 14.300050] lock(&rq->lock); [ 14.300050] lock(&ctx->lock); [ 14.300050] lock(hrtimer_bases.lock); [ 14.300050] [ 14.300050] *** DEADLOCK *** [ 14.300050] [ 14.300050] 3 locks held by trinity-main/74: [ 14.300050] #0: (&ctx->mutex){+.+...}, at: [<81085a3f>] SYSC_perf_event_open+0x5a8/0x701 [ 14.300050] #1: (&cpuctx_lock){......}, at: [<8107e7d4>] perf_ctx_lock+0xe/0x1d [ 14.300050] #2: (&ctx->lock){......}, at: [<8107e7e0>] perf_ctx_lock+0x1a/0x1d [ 14.300050] [ 14.300050] stack backtrace: [ 14.300050] CPU: 0 PID: 74 Comm: trinity-main Not tainted 3.15.0-07226-gb20dcab #21 [ 14.300050] 00000000 81c49598 80107cc0 814299af 80107cf0 81428509 8162441c 8162431b [ 14.300050] 816242e3 81624304 816242e3 80107d24 8004c9b0 00000003 8004cdc4 8004c9b0 [ 14.300050] 80107d54 8104ad92 8004cdac 000016b7 00000002 00000000 81c5ad08 00000003 [ 14.300050] Call Trace: [ 14.300050] [<814299af>] dump_stack+0x16/0x18 [ 14.300050] [<81428509>] print_circular_bug+0x18f/0x19c [ 14.300050] [<8104ad92>] __lock_acquire+0x9ea/0xc6d [ 14.300050] [<8104b0a7>] lock_acquire+0x92/0x101 [ 14.300050] [<8103d07f>] ? __hrtimer_start_range_ns+0x1c/0x197 [ 14.300050] [<81431b65>] _raw_spin_lock_irqsave+0x2e/0x3e [ 14.300050] [<8103d07f>] ? __hrtimer_start_range_ns+0x1c/0x197 [ 14.300050] [<8103d07f>] __hrtimer_start_range_ns+0x1c/0x197 [ 14.300050] [<8107f3b7>] perf_swevent_start_hrtimer.part.41+0x7a/0x85 [ 14.300050] [<81080f29>] task_clock_event_start+0x3a/0x3f [ 14.300050] [<81080f3b>] task_clock_event_add+0xd/0x14 [ 14.300050] [<81082d31>] event_sched_in+0xb6/0x17a [ 14.300050] [<81082e39>] group_sched_in+0x44/0x122 [ 14.300050] [<8108301c>] ctx_sched_in.isra.67+0x105/0x11f [ 14.300050] [<8108307d>] perf_event_sched_in.isra.70+0x47/0x4b [ 14.300050] [<8108338d>] __perf_install_in_context+0x8b/0xa3 [ 14.300050] [<8107f313>] ? perf_mmap_fault+0xe2/0xe2 [ 14.300050] [<8107f325>] remote_function+0x12/0x2a [ 14.300050] [<8105fd49>] smp_call_function_single+0x2d/0x53 [ 14.300050] [<8107e914>] task_function_call+0x30/0x36 [ 14.300050] [<81083302>] ? perf_cpu_hrtimer_handler+0x10e/0x10e [ 14.300050] [<81080319>] perf_install_in_context+0x87/0xbb [ 14.300050] [<81085a5d>] SYSC_perf_event_open+0x5c6/0x701 [ 14.300050] [<8101b300>] ? __do_page_fault+0x1ee/0x314 [ 14.300050] [<81085e8d>] SyS_perf_event_open+0x17/0x19 /kernel/i386-randconfig-ha2-0731/b20dcab9d4589ef9918a13c888c5493945adfc13/dmesg-quantal-ivb43-21:20140801022142:i386-randconfig-ha2-0731:: 35:1:1 all_good:bad:all_bad boots 2014-08-01 02:13:56 REPEAT COUNT: 300 # /c/boot-bisect/linux-2/obj-bisect/.repeat Bisecting: 7226 revisions left to test after this (roughly 13 steps) [3f17ea6dea8ba5668873afa54628a91aaa3fb1c0] Merge branch 'next' (accumulated 3.16 merge window patches) into master running /c/kernel-tests/bisect-test-boot-failure.sh /c/boot-bisect/linux-2/obj-bisect ls -a /kbuild-tests/run-queue/kvm/i386-randconfig-ha2-0731/kvmarm:next:3f17ea6dea8ba5668873afa54628a91aaa3fb1c0:bisect-linux-2 2014-08-01-02:13:57 3f17ea6dea8ba5668873afa54628a91aaa3fb1c0 compiling Queued build task to /kbuild-tests/build-queue/i386-randconfig-ha2-0731-3f17ea6dea8ba5668873afa54628a91aaa3fb1c0 Check for kernel in /kernel/i386-randconfig-ha2-0731/3f17ea6dea8ba5668873afa54628a91aaa3fb1c0 waiting for completion of /kbuild-tests/build-queue/i386-randconfig-ha2-0731-3f17ea6dea8ba5668873afa54628a91aaa3fb1c0 kernel: /kernel/i386-randconfig-ha2-0731/3f17ea6dea8ba5668873afa54628a91aaa3fb1c0/vmlinuz-3.15.0-07218-g3f17ea6 2014-08-01-02:16:08 detecting boot state 1 18 27 31 42 48 58 TEST FAILURE [ 2.483800] tsc: Refined TSC clocksource calibration: 2693.509 MHz [ 12.778866] sock: process `trinity-main' is using obsolete setsockopt SO_BSDCOMPAT BUG: kernel boot hang Elapsed time: 35 qemu-system-x86_64 -enable-kvm -cpu Haswell,+smep,+smap -kernel /kernel/i386-randconfig-ha2-0731/3f17ea6dea8ba5668873afa54628a91aaa3fb1c0/vmlinuz-3.15.0-07218-g3f17ea6 -append 'hung_task_panic=1 earlyprintk=ttyS0,115200 debug apic=debug sysrq_always_enabled rcupdate.rcu_cpu_stall_timeout=100 panic=10 softlockup_panic=1 nmi_watchdog=panic prompt_ramdisk=0 console=ttyS0,115200 console=tty0 vga=normal root=/dev/ram0 rw link=/kbuild-tests/run-queue/kvm/i386-randconfig-ha2-0731/kvmarm:next:3f17ea6dea8ba5668873afa54628a91aaa3fb1c0:bisect-linux-2/.vmlinuz-3f17ea6dea8ba5668873afa54628a91aaa3fb1c0-20140801101530-12-kbuild branch=kvmarm/next BOOT_IMAGE=/kernel/i386-randconfig-ha2-0731/3f17ea6dea8ba5668873afa54628a91aaa3fb1c0/vmlinuz-3.15.0-07218-g3f17ea6 drbd.minor_count=8' -initrd /kernel-tests/initrd/quantal-core-i386.cgz -m 320 -smp 2 -net nic,vlan=1,model=e1000 -net user,vlan=1 -boot order=nc -no-reboot -watchdog i6300esb -rtc base=localtime -pidfile /dev/shm/kboot/pid-quantal-kbuild-18 -serial file:/dev/shm/kboot/serial-quantal-kbuild-18 -daemonize -display none -monitor null /kernel/i386-randconfig-ha2-0731/3f17ea6dea8ba5668873afa54628a91aaa3fb1c0/dmesg-yocto-kbuild-19:20140801021727:i386-randconfig-ha2-0731:3.15.0-07218-g3f17ea6:2 55:1:4 all_good:bad:all_bad boots 2014-08-01 02:19:45 REPEAT COUNT: 300 # /c/boot-bisect/linux-2/obj-bisect/.repeat linear-bisect: bad branch may be branch 'next' (accumulated 3.16 merge window patches) linear-bisect: handle over to git bisect linear-bisect: git bisect start 3f17ea6dea8ba5668873afa54628a91aaa3fb1c0 1860e379875dfe7271c649058aeddffe5afd9d0d -- Previous HEAD position was 3f17ea6... Merge branch 'next' (accumulated 3.16 merge window patches) into master HEAD is now at 3f3a019... Merge branch 'akpm/master' Bisecting: 3634 revisions left to test after this (roughly 12 steps) [49eb7b0750d9483c74e9c14ae6ea1e9d62481c3c] Merge tag 'tty-3.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty into next linear-bisect: git bisect run /c/kernel-tests/bisect-test-boot-failure.sh /c/boot-bisect/linux-2/obj-bisect running /c/kernel-tests/bisect-test-boot-failure.sh /c/boot-bisect/linux-2/obj-bisect ls -a /kbuild-tests/run-queue/kvm/i386-randconfig-ha2-0731/kvmarm:next:49eb7b0750d9483c74e9c14ae6ea1e9d62481c3c:bisect-linux-2 2014-08-01-02:20:00 49eb7b0750d9483c74e9c14ae6ea1e9d62481c3c compiling Queued build task to /kbuild-tests/build-queue/i386-randconfig-ha2-0731-49eb7b0750d9483c74e9c14ae6ea1e9d62481c3c Check for kernel in /kernel/i386-randconfig-ha2-0731/49eb7b0750d9483c74e9c14ae6ea1e9d62481c3c waiting for completion of /kbuild-tests/build-queue/i386-randconfig-ha2-0731-49eb7b0750d9483c74e9c14ae6ea1e9d62481c3c kernel: /kernel/i386-randconfig-ha2-0731/49eb7b0750d9483c74e9c14ae6ea1e9d62481c3c/vmlinuz-3.15.0-rc8-03583-g49eb7b0 2014-08-01-02:22:00 detecting boot state 1 17 31 33 40 51 56. 68 71 81 90 97 103 109 114.. 172 178 205 228 243 269. 288 300 SUCCESS Bisecting: 2060 revisions left to test after this (roughly 11 steps) [15b588303155b22edd559672905db8e59a44ef9a] Merge tag 'fbdev-omap-3.16' of git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux into next running /c/kernel-tests/bisect-test-boot-failure.sh /c/boot-bisect/linux-2/obj-bisect ls -a /kbuild-tests/run-queue/kvm/i386-randconfig-ha2-0731/kvmarm:next:15b588303155b22edd559672905db8e59a44ef9a:bisect-linux-2 2014-08-01-02:35:32 15b588303155b22edd559672905db8e59a44ef9a compiling Queued build task to /kbuild-tests/build-queue/i386-randconfig-ha2-0731-15b588303155b22edd559672905db8e59a44ef9a Check for kernel in /kernel/i386-randconfig-ha2-0731/15b588303155b22edd559672905db8e59a44ef9a waiting for completion of /kbuild-tests/build-queue/i386-randconfig-ha2-0731-15b588303155b22edd559672905db8e59a44ef9a waiting for completion of /kbuild-tests/build-queue/lkp-hsx01-consumer/i386-randconfig-ha2-0731-15b588303155b22edd559672905db8e59a44ef9a kernel: /kernel/i386-randconfig-ha2-0731/15b588303155b22edd559672905db8e59a44ef9a/vmlinuz-3.15.0-rc8-05161-g15b5883 2014-08-01-02:47:32 detecting boot state .. 105 168 175. 275 300 SUCCESS Bisecting: 1095 revisions left to test after this (roughly 10 steps) [d09cc3659db494aca4b3bb2393c533fb4946b794] Merge branch 'irq-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip into next running /c/kernel-tests/bisect-test-boot-failure.sh /c/boot-bisect/linux-2/obj-bisect ls -a /kbuild-tests/run-queue/kvm/i386-randconfig-ha2-0731/kvmarm:next:d09cc3659db494aca4b3bb2393c533fb4946b794:bisect-linux-2 2014-08-01-02:51:39 d09cc3659db494aca4b3bb2393c533fb4946b794 compiling Queued build task to /kbuild-tests/build-queue/i386-randconfig-ha2-0731-d09cc3659db494aca4b3bb2393c533fb4946b794 Check for kernel in /kernel/i386-randconfig-ha2-0731/d09cc3659db494aca4b3bb2393c533fb4946b794 waiting for completion of /kbuild-tests/build-queue/i386-randconfig-ha2-0731-d09cc3659db494aca4b3bb2393c533fb4946b794 waiting for completion of /kbuild-tests/build-queue/lkp-hsx01-consumer/i386-randconfig-ha2-0731-d09cc3659db494aca4b3bb2393c533fb4946b794 kernel: /kernel/i386-randconfig-ha2-0731/d09cc3659db494aca4b3bb2393c533fb4946b794/vmlinuz-3.15.0-rc8-06129-gd09cc36 2014-08-01-03:02:39 detecting boot state . 1 10 13 36 38 41 49 58 67 75 77 90 103 111 125. 129 146 151 179 183 202 213 215 235. 238 249 261 274 284 296 300 SUCCESS Bisecting: 544 revisions left to test after this (roughly 9 steps) [cc07aabc53978ae09a1d539237189f7c9841060a] Merge tag 'arm64-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux into next running /c/kernel-tests/bisect-test-boot-failure.sh /c/boot-bisect/linux-2/obj-bisect ls -a /kbuild-tests/run-queue/kvm/i386-randconfig-ha2-0731/kvmarm:next:cc07aabc53978ae09a1d539237189f7c9841060a:bisect-linux-2 2014-08-01-03:20:00 cc07aabc53978ae09a1d539237189f7c9841060a compiling Queued build task to /kbuild-tests/build-queue/i386-randconfig-ha2-0731-cc07aabc53978ae09a1d539237189f7c9841060a Check for kernel in /kernel/i386-randconfig-ha2-0731/cc07aabc53978ae09a1d539237189f7c9841060a waiting for completion of /kbuild-tests/build-queue/i386-randconfig-ha2-0731-cc07aabc53978ae09a1d539237189f7c9841060a kernel: /kernel/i386-randconfig-ha2-0731/cc07aabc53978ae09a1d539237189f7c9841060a/vmlinuz-3.15.0-rc8-06615-gcc07aab 2014-08-01-03:28:00 detecting boot state .. 2 14 16 21 28. 34 46 48 51 62 63 65 66.. TEST FAILURE [ 18.514378] CE: hpet increased min_delta_ns to 5000 nsec [ 18.514378] [ 18.514378] ====================================================== [ 18.514378] [ INFO: possible circular locking dependency detected ] [ 18.514378] 3.15.0-rc8-06615-gcc07aab #43 Not tainted [ 18.514378] ------------------------------------------------------- [ 18.514378] trinity-main/74 is trying to acquire lock: [ 18.514378] (&port_lock_key){-.....}, at: [<811c676d>] serial8250_console_write+0x8c/0x10c [ 18.514378] [ 18.514378] but task is already holding lock: [ 18.514378] (hrtimer_bases.lock){-.-...}, at: [<8103d0e3>] hrtimer_try_to_cancel+0x13/0x66 [ 18.514378] [ 18.514378] which lock already depends on the new lock. [ 18.514378] [ 18.514378] [ 18.514378] the existing dependency chain (in reverse order) is: [ 18.514378] [ 18.514378] -> #5 (hrtimer_bases.lock){-.-...}: [ 18.514378] [<8104af3a>] lock_acquire+0x92/0x101 [ 18.514378] [<8143118d>] _raw_spin_lock_irqsave+0x2e/0x3e [ 18.514378] [<8103cf10>] __hrtimer_start_range_ns+0x1c/0x197 [ 18.514378] [<8107f1c0>] perf_swevent_start_hrtimer.part.41+0x7a/0x85 [ 18.514378] [<8107f1fc>] cpu_clock_event_start+0x31/0x36 [ 18.514378] [<8107f20e>] cpu_clock_event_add+0xd/0x14 [ 18.514378] [<81082b3a>] event_sched_in+0xb6/0x17a [ 18.514378] [<81082c42>] group_sched_in+0x44/0x122 [ 18.514378] [<81082e25>] ctx_sched_in.isra.67+0x105/0x11f [ 18.514378] [<81082e86>] perf_event_sched_in.isra.70+0x47/0x4b [ 18.514378] [<81083196>] __perf_install_in_context+0x8b/0xa3 [ 18.514378] [<8107f12e>] remote_function+0x12/0x2a [ 18.514378] [<8105fb4f>] smp_call_function_single+0x2d/0x53 [ 18.514378] [<8107e71d>] task_function_call+0x30/0x36 [ 18.514378] [<81080122>] perf_install_in_context+0x87/0xbb [ 18.514378] [<81085869>] SYSC_perf_event_open+0x5c6/0x701 [ 18.514378] [<81085c99>] SyS_perf_event_open+0x17/0x19 [ 18.514378] [<8143195e>] syscall_call+0x7/0xb [ 18.514378] [ 18.514378] -> #4 (&ctx->lock){......}: [ 18.514378] [<8104af3a>] lock_acquire+0x92/0x101 [ 18.514378] [<814310bc>] _raw_spin_lock+0x21/0x30 [ 18.514378] [<81082393>] __perf_event_task_sched_out+0x1dc/0x34f [ 18.514378] [<8142eb3c>] __schedule+0x4c6/0x4cb [ 18.514378] [<8142eb50>] schedule+0xf/0x11 [ 18.514378] [<814319b6>] work_resched+0x5/0x2c [ 18.514378] [ 18.514378] -> #3 (&rq->lock){-.-.-.}: [ 18.514378] [<8104af3a>] lock_acquire+0x92/0x101 [ 18.514378] [<814310bc>] _raw_spin_lock+0x21/0x30 [ 18.514378] [<81040e6b>] __task_rq_lock+0x33/0x3a [ 18.514378] [<81041e44>] wake_up_new_task+0x25/0xc2 [ 18.514378] [<81024d43>] do_fork+0x15c/0x2a0 [ 18.514378] [<81024ea1>] kernel_thread+0x1a/0x1f [ 18.514378] [<81425338>] rest_init+0x1a/0x10e [ 18.514378] [<817b49e2>] start_kernel+0x303/0x308 [ 18.514378] [<817b42ab>] i386_start_kernel+0x79/0x7d [ 18.514378] [ 18.514378] -> #2 (&p->pi_lock){-.-...}: [ 18.514378] [<8104af3a>] lock_acquire+0x92/0x101 [ 18.514378] [<8143118d>] _raw_spin_lock_irqsave+0x2e/0x3e [ 18.514378] [<810419d5>] try_to_wake_up+0x1d/0xd6 [ 18.514378] [<81041ac5>] default_wake_function+0xb/0xd [ 18.514378] [<810467eb>] __wake_up_common+0x39/0x59 [ 18.514378] [<8104693e>] __wake_up+0x29/0x3b [ 18.514378] [<811b8de2>] tty_wakeup+0x49/0x51 [ 18.514378] [<811c3c17>] uart_write_wakeup+0x17/0x19 [ 18.514378] [<811c6470>] serial8250_tx_chars+0xbc/0xfb [ 18.514378] [<811c65d7>] serial8250_handle_irq+0x54/0x6a [ 18.514378] [<811c6606>] serial8250_default_handle_irq+0x19/0x1c [ 18.514378] [<811c5d87>] serial8250_interrupt+0x38/0x9e [ 18.514378] [<81051652>] handle_irq_event_percpu+0x5f/0x1e2 [ 18.514378] [<81051801>] handle_irq_event+0x2c/0x43 [ 18.514378] [<81053288>] handle_level_irq+0x57/0x83 [ 18.514378] [<81002cce>] handle_irq+0x46/0x5c [ 18.514378] [<81002a3b>] do_IRQ+0x32/0x89 [ 18.514378] [<814322ae>] common_interrupt+0x2e/0x33 [ 18.514378] [<814312ac>] _raw_spin_unlock_irqrestore+0x3f/0x49 [ 18.514378] [<811c2c53>] uart_start+0x2d/0x32 [ 18.514378] [<811c32b3>] uart_write+0xc7/0xd6 [ 18.514378] [<811bcda5>] n_tty_write+0xb8/0x35e [ 18.514378] [<811ba29a>] tty_write+0x163/0x1e4 [ 18.514378] [<811ba388>] redirected_tty_write+0x6d/0x75 [ 18.514378] [<810b74b2>] vfs_write+0x75/0xb0 [ 18.514378] [<810b7841>] SyS_write+0x44/0x77 [ 18.514378] [<8143195e>] syscall_call+0x7/0xb [ 18.514378] [ 18.514378] -> #1 (&tty->write_wait){-.....}: [ 18.514378] [<8104af3a>] lock_acquire+0x92/0x101 [ 18.514378] [<8143118d>] _raw_spin_lock_irqsave+0x2e/0x3e [ 18.514378] [<8104692a>] __wake_up+0x15/0x3b [ 18.514378] [<811b8de2>] tty_wakeup+0x49/0x51 [ 18.514378] [<811c3c17>] uart_write_wakeup+0x17/0x19 [ 18.514378] [<811c6470>] serial8250_tx_chars+0xbc/0xfb [ 18.514378] [<811c65d7>] serial8250_handle_irq+0x54/0x6a [ 18.514378] [<811c6606>] serial8250_default_handle_irq+0x19/0x1c [ 18.514378] [<811c5d87>] serial8250_interrupt+0x38/0x9e [ 18.514378] [<81051652>] handle_irq_event_percpu+0x5f/0x1e2 [ 18.514378] [<81051801>] handle_irq_event+0x2c/0x43 [ 18.514378] [<81053288>] handle_level_irq+0x57/0x83 [ 18.514378] [<81002cce>] handle_irq+0x46/0x5c [ 18.514378] [<81002a3b>] do_IRQ+0x32/0x89 [ 18.514378] [<814322ae>] common_interrupt+0x2e/0x33 [ 18.514378] [<814312ac>] _raw_spin_unlock_irqrestore+0x3f/0x49 [ 18.514378] [<811c2c53>] uart_start+0x2d/0x32 [ 18.514378] [<811c32b3>] uart_write+0xc7/0xd6 [ 18.514378] [<811bcda5>] n_tty_write+0xb8/0x35e [ 18.514378] [<811ba29a>] tty_write+0x163/0x1e4 [ 18.514378] [<811ba388>] redirected_tty_write+0x6d/0x75 [ 18.514378] [<810b74b2>] vfs_write+0x75/0xb0 [ 18.514378] [<810b7841>] SyS_write+0x44/0x77 [ 18.514378] [<8143195e>] syscall_call+0x7/0xb [ 18.514378] [ 18.514378] -> #0 (&port_lock_key){-.....}: [ 18.514378] [<8104ac25>] __lock_acquire+0x9ea/0xc6d [ 18.514378] [<8104af3a>] lock_acquire+0x92/0x101 [ 18.514378] [<8143118d>] _raw_spin_lock_irqsave+0x2e/0x3e [ 18.514378] [<811c676d>] serial8250_console_write+0x8c/0x10c [ 18.514378] [<8104e9ef>] call_console_drivers.constprop.31+0x87/0x118 [ 18.514378] [<8104fbcc>] console_unlock+0x1e1/0x3d3 [ 18.514378] [<810501d5>] vprintk_emit+0x417/0x421 [ 18.514378] [<8142800c>] printk+0x17/0x19 [ 18.514378] [<8105c540>] clockevents_program_min_delta+0x104/0x116 [ 18.514378] [<8105cae8>] clockevents_program_event+0xe7/0xf3 [ 18.514378] [<8105d1bc>] tick_program_event+0x1e/0x23 [ 18.514378] [<8103ca34>] hrtimer_force_reprogram+0x88/0x8f [ 18.514378] [<8103ca96>] __remove_hrtimer+0x5b/0x79 [ 18.514378] [<8103d119>] hrtimer_try_to_cancel+0x49/0x66 [ 18.514378] [<8103d143>] hrtimer_cancel+0xd/0x18 [ 18.514378] [<8107f6a2>] perf_swevent_cancel_hrtimer.part.60+0x2b/0x30 [ 18.514378] [<8107f6c7>] cpu_clock_event_stop+0x20/0x57 [ 18.514378] [<8107f706>] cpu_clock_event_del+0x8/0xa [ 18.514378] [<810818f0>] event_sched_out+0xab/0x11e [ 18.514378] [<81081980>] group_sched_out+0x1d/0x66 [ 18.514378] [<81081c22>] ctx_sched_out+0xaf/0xbf [ 18.514378] [<810823a4>] __perf_event_task_sched_out+0x1ed/0x34f [ 18.514378] [<8142eb3c>] __schedule+0x4c6/0x4cb [ 18.514378] [<8142eb50>] schedule+0xf/0x11 [ 18.514378] [<814319b6>] work_resched+0x5/0x2c [ 18.514378] [ 18.514378] other info that might help us debug this: [ 18.514378] [ 18.514378] Chain exists of: [ 18.514378] &port_lock_key --> &ctx->lock --> hrtimer_bases.lock [ 18.514378] [ 18.514378] Possible unsafe locking scenario: [ 18.514378] [ 18.514378] CPU0 CPU1 [ 18.514378] ---- ---- [ 18.514378] lock(hrtimer_bases.lock); [ 18.514378] lock(&ctx->lock); [ 18.514378] lock(hrtimer_bases.lock); [ 18.514378] lock(&port_lock_key); [ 18.514378] [ 18.514378] *** DEADLOCK *** [ 18.514378] [ 18.514378] 4 locks held by trinity-main/74: [ 18.514378] #0: (&rq->lock){-.-.-.}, at: [<8142e763>] __schedule+0xed/0x4cb [ 18.514378] #1: (&ctx->lock){......}, at: [<81082393>] __perf_event_task_sched_out+0x1dc/0x34f [ 18.514378] #2: (hrtimer_bases.lock){-.-...}, at: [<8103d0e3>] hrtimer_try_to_cancel+0x13/0x66 [ 18.514378] #3: (console_lock){+.+...}, at: [<810501c2>] vprintk_emit+0x404/0x421 [ 18.514378] [ 18.514378] stack backtrace: [ 18.514378] CPU: 0 PID: 74 Comm: trinity-main Not tainted 3.15.0-rc8-06615-gcc07aab #43 [ 18.514378] 00000000 81c401f8 8b995c08 81428fd5 8b995c38 81427b2f 816228d4 816227d3 [ 18.514378] 8162279b 816227bc 8162279b 8b995c6c 8b10c210 00000004 8b10c63c 8b10c210 [ 18.514378] 8b995c9c 8104ac25 8b10c60c 000016a6 81c401f8 00000001 00000001 00000003 [ 18.514378] Call Trace: [ 18.514378] [<81428fd5>] dump_stack+0x16/0x18 [ 18.514378] [<81427b2f>] print_circular_bug+0x18f/0x19c [ 18.514378] [<8104ac25>] __lock_acquire+0x9ea/0xc6d [ 18.514378] [<8104af3a>] lock_acquire+0x92/0x101 [ 18.514378] [<811c676d>] ? serial8250_console_write+0x8c/0x10c [ 18.514378] [<811c66e1>] ? wait_for_xmitr+0x76/0x76 [ 18.514378] [<8143118d>] _raw_spin_lock_irqsave+0x2e/0x3e [ 18.514378] [<811c676d>] ? serial8250_console_write+0x8c/0x10c [ 18.514378] [<811c676d>] serial8250_console_write+0x8c/0x10c [ 18.514378] [<8104b57f>] ? lock_release+0x191/0x223 [ 18.514378] [<811c66e1>] ? wait_for_xmitr+0x76/0x76 [ 18.514378] [<8104e9ef>] call_console_drivers.constprop.31+0x87/0x118 [ 18.514378] [<8104fbcc>] console_unlock+0x1e1/0x3d3 [ 18.514378] [<810501d5>] vprintk_emit+0x417/0x421 [ 18.514378] [<8142800c>] printk+0x17/0x19 [ 18.514378] [<8105c540>] clockevents_program_min_delta+0x104/0x116 [ 18.514378] [<8105cae8>] clockevents_program_event+0xe7/0xf3 [ 18.514378] [<8105d1bc>] tick_program_event+0x1e/0x23 [ 18.514378] [<8103ca34>] hrtimer_force_reprogram+0x88/0x8f [ 18.514378] [<8103ca96>] __remove_hrtimer+0x5b/0x79 [ 18.514378] [<8103d119>] hrtimer_try_to_cancel+0x49/0x66 [ 18.514378] [<8103d143>] hrtimer_cancel+0xd/0x18 [ 18.514378] [<8107f6a2>] perf_swevent_cancel_hrtimer.part.60+0x2b/0x30 [ 18.514378] [<8107f6c7>] cpu_clock_event_stop+0x20/0x57 [ 18.514378] [<8107f706>] cpu_clock_event_del+0x8/0xa [ 18.514378] [<810818f0>] event_sched_out+0xab/0x11e [ 18.514378] [<81081980>] group_sched_out+0x1d/0x66 [ 18.514378] [<81081c22>] ctx_sched_out+0xaf/0xbf [ 18.514378] [<810823a4>] __perf_event_task_sched_out+0x1ed/0x34f [ 18.514378] [<81044765>] ? __dequeue_entity+0x23/0x27 [ 18.514378] [<81044afd>] ? pick_next_task_fair+0xb1/0x120 [ 18.514378] [<8142eb3c>] __schedule+0x4c6/0x4cb [ 18.514378] [<81047b6c>] ? trace_hardirqs_off_caller+0xd7/0x108 [ 18.514378] [<81047ba8>] ? trace_hardirqs_off+0xb/0xd [ 18.514378] [<810568e6>] ? rcu_irq_exit+0x64/0x77 /kernel/i386-randconfig-ha2-0731/cc07aabc53978ae09a1d539237189f7c9841060a/dmesg-quantal-kbuild-12:20140801033427:i386-randconfig-ha2-0731:3.15.0-rc8-06615-gcc07aab:43 65:1:2 all_good:bad:all_bad boots 2014-08-01 03:37:01 REPEAT COUNT: 300 # /c/boot-bisect/linux-2/obj-bisect/.repeat Bisecting: 275 revisions left to test after this (roughly 8 steps) [8091b895b76f690aa2f6689b6ed602f07525a938] fs/ncpfs/getopt.c: replace simple_strtoul by kstrtoul running /c/kernel-tests/bisect-test-boot-failure.sh /c/boot-bisect/linux-2/obj-bisect ls -a /kbuild-tests/run-queue/kvm/i386-randconfig-ha2-0731/kvmarm:next:8091b895b76f690aa2f6689b6ed602f07525a938:bisect-linux-2 2014-08-01-03:37:02 8091b895b76f690aa2f6689b6ed602f07525a938 compiling Queued build task to /kbuild-tests/build-queue/i386-randconfig-ha2-0731-8091b895b76f690aa2f6689b6ed602f07525a938 Check for kernel in /kernel/i386-randconfig-ha2-0731/8091b895b76f690aa2f6689b6ed602f07525a938 waiting for completion of /kbuild-tests/build-queue/i386-randconfig-ha2-0731-8091b895b76f690aa2f6689b6ed602f07525a938 waiting for completion of /kbuild-tests/build-queue/lkp-hsx01-i386/i386-randconfig-ha2-0731-8091b895b76f690aa2f6689b6ed602f07525a938 kernel: /kernel/i386-randconfig-ha2-0731/8091b895b76f690aa2f6689b6ed602f07525a938/vmlinuz-3.15.0-rc8-05968-g8091b89 2014-08-01-03:44:02 detecting boot state ...... 2 3 8 9 12. 13 14 15 16 18 20..... 22 23.. 25 27 28.... 29. 30... 32 34 36.. 38 40 42..... 44 45.......... 46. 48.. 49 51. 55.. 56. 58... 60. 62 64 65. 66. 67 69............. 70. 72 74 75. 76. 78 79 80. 82 83. 85... 87 90..... 92... 93 95. 97 98 100. 103 TEST FAILURE [main] 375 sockets created based on info from socket cachefile. [ 12.385207] [ 12.385348] ====================================================== [ 12.385866] [ INFO: possible circular locking dependency detected ] [ 12.386374] 3.15.0-rc8-05968-g8091b89 #46 Not tainted [ 12.386779] ------------------------------------------------------- [ 12.387312] trinity-main/171 is trying to acquire lock: [ 12.387753] (hrtimer_bases.lock){-.-...}, at: [<8103c968>] __hrtimer_start_range_ns+0x1c/0x197 [ 12.388035] [ 12.388035] but task is already holding lock: [ 12.388035] (&ctx->lock){......}, at: [<8107e103>] perf_ctx_lock+0x1a/0x1d [ 12.388035] [ 12.388035] which lock already depends on the new lock. [ 12.388035] [ 12.388035] [ 12.388035] the existing dependency chain (in reverse order) is: [ 12.388035] -> #5 (&ctx->lock){......}: [ 12.388035] [<8104a992>] lock_acquire+0x92/0x101 [ 12.388035] [<8142f184>] _raw_spin_lock+0x21/0x30 [ 12.388035] [<81081ead>] __perf_event_task_sched_out+0x1dc/0x34f [ 12.388035] [<8142cc04>] __schedule+0x4c6/0x4cb [ 12.388035] [<8142cc18>] schedule+0xf/0x11 [ 12.388035] [<8142fade>] work_resched+0x5/0x30 [ 12.388035] -> #4 (&rq->lock){-.-.-.}: [ 12.388035] [<8104a992>] lock_acquire+0x92/0x101 [ 12.388035] [<8142f184>] _raw_spin_lock+0x21/0x30 [ 12.388035] [<810408c3>] __task_rq_lock+0x33/0x3a [ 12.388035] [<8104189c>] wake_up_new_task+0x25/0xc2 [ 12.388035] [<8102479b>] do_fork+0x15c/0x2a0 [ 12.388035] [<810248f9>] kernel_thread+0x1a/0x1f [ 12.388035] [<81423402>] rest_init+0x1a/0x10e [ 12.388035] [<817af9e2>] start_kernel+0x303/0x308 [ 12.388035] [<817af2ab>] i386_start_kernel+0x79/0x7d [ 12.388035] -> #3 (&p->pi_lock){-.-...}: [ 12.388035] [<8104a992>] lock_acquire+0x92/0x101 [ 12.388035] [<8142f255>] _raw_spin_lock_irqsave+0x2e/0x3e [ 12.388035] [<8104142d>] try_to_wake_up+0x1d/0xd6 [ 12.388035] [<8104151d>] default_wake_function+0xb/0xd [ 12.388035] [<81046243>] __wake_up_common+0x39/0x59 [ 12.388035] [<81046396>] __wake_up+0x29/0x3b [ 12.388035] [<811b8893>] tty_wakeup+0x49/0x51 [ 12.388035] [<811c36c8>] uart_write_wakeup+0x17/0x19 [ 12.388035] [<811c5f21>] serial8250_tx_chars+0xbc/0xfb [ 12.388035] [<811c6088>] serial8250_handle_irq+0x54/0x6a [ 12.388035] [<811c60b7>] serial8250_default_handle_irq+0x19/0x1c [ 12.388035] [<811c5838>] serial8250_interrupt+0x38/0x9e [ 12.388035] [<810511a1>] handle_irq_event_percpu+0x5f/0x1e2 [ 12.388035] [<81051350>] handle_irq_event+0x2c/0x43 [ 12.388035] [<81052da8>] handle_level_irq+0x57/0x80 [ 12.388035] [<81002ac2>] handle_irq+0x46/0x5c [ 12.388035] [<8100282f>] do_IRQ+0x32/0x89 [ 12.388035] [<8143046e>] common_interrupt+0x2e/0x33 [ 12.388035] [<8142f374>] _raw_spin_unlock_irqrestore+0x3f/0x49 [ 12.388035] [<811c2704>] uart_start+0x2d/0x32 [ 12.388035] [<811c2d64>] uart_write+0xc7/0xd6 [ 12.388035] [<811bc856>] n_tty_write+0xb8/0x35e [ 12.388035] [<811b9d4b>] tty_write+0x163/0x1e4 [ 12.388035] [<811b9e39>] redirected_tty_write+0x6d/0x75 [ 12.388035] [<810b6f90>] vfs_write+0x75/0xb0 [ 12.388035] [<810b731f>] SyS_write+0x44/0x77 [ 12.388035] [<8142fa26>] syscall_call+0x7/0xb [ 12.388035] -> #2 (&tty->write_wait){-.-...}: [ 12.388035] [<8104a992>] lock_acquire+0x92/0x101 [ 12.388035] [<8142f255>] _raw_spin_lock_irqsave+0x2e/0x3e [ 12.388035] [<81046382>] __wake_up+0x15/0x3b [ 12.388035] [<811b8893>] tty_wakeup+0x49/0x51 [ 12.388035] [<811c36c8>] uart_write_wakeup+0x17/0x19 [ 12.388035] [<811c5f21>] serial8250_tx_chars+0xbc/0xfb [ 12.388035] [<811c6088>] serial8250_handle_irq+0x54/0x6a [ 12.388035] [<811c60b7>] serial8250_default_handle_irq+0x19/0x1c [ 12.388035] [<811c5838>] serial8250_interrupt+0x38/0x9e [ 12.388035] [<810511a1>] handle_irq_event_percpu+0x5f/0x1e2 [ 12.388035] [<81051350>] handle_irq_event+0x2c/0x43 [ 12.388035] [<81052da8>] handle_level_irq+0x57/0x80 [ 12.388035] [<81002ac2>] handle_irq+0x46/0x5c [ 12.388035] [<8100282f>] do_IRQ+0x32/0x89 [ 12.388035] [<8143046e>] common_interrupt+0x2e/0x33 [ 12.388035] [<8142f374>] _raw_spin_unlock_irqrestore+0x3f/0x49 [ 12.388035] [<811c2704>] uart_start+0x2d/0x32 [ 12.388035] [<811c2d64>] uart_write+0xc7/0xd6 [ 12.388035] [<811bc856>] n_tty_write+0xb8/0x35e [ 12.388035] [<811b9d4b>] tty_write+0x163/0x1e4 [ 12.388035] [<811b9e39>] redirected_tty_write+0x6d/0x75 [ 12.388035] [<810b6f90>] vfs_write+0x75/0xb0 [ 12.388035] [<810b731f>] SyS_write+0x44/0x77 [ 12.388035] [<8142fa26>] syscall_call+0x7/0xb [ 12.388035] -> #1 (&port_lock_key){-.-...}: [ 12.388035] [<8104a992>] lock_acquire+0x92/0x101 [ 12.388035] [<8142f255>] _raw_spin_lock_irqsave+0x2e/0x3e [ 12.388035] [<81046c20>] down_trylock+0xc/0x27 [ 12.388035] [<8104f214>] console_trylock+0x12/0x80 [ 12.388035] [<8104fc1a>] vprintk_emit+0x404/0x421 [ 12.388035] [<814260d6>] printk+0x17/0x19 [ 12.388035] [<8105c05a>] clockevents_program_min_delta+0x104/0x116 [ 12.388035] [<8105c602>] clockevents_program_event+0xe7/0xf3 [ 12.388035] [<8105ccd6>] tick_program_event+0x1e/0x23 [ 12.388035] [<8103c48c>] hrtimer_force_reprogram+0x88/0x8f [ 12.388035] [<8103c940>] retrigger_next_event+0x36/0x42 [ 12.388035] [<8103d123>] hrtimer_run_pending+0xe4/0x108 [ 12.388035] [<8102c75f>] run_timer_softirq+0x14/0x19c [ 12.388035] [<8102822c>] __do_softirq+0x111/0x2c4 [ 12.388035] [<81002a76>] do_softirq_own_stack+0x1c/0x22 [ 12.388035] [<810285c0>] irq_exit+0x44/0x5d [ 12.388035] [<81002873>] do_IRQ+0x76/0x89 [ 12.388035] [<8143046e>] common_interrupt+0x2e/0x33 [ 12.388035] [<81048ed9>] debug_check_no_locks_freed+0x10a/0x11d [ 12.388035] [<8104ba75>] __raw_spin_lock_init+0x17/0x49 [ 12.388035] [<81046b2e>] __mutex_init+0x24/0x44 [ 12.388035] [<810c7303>] address_space_init_once+0x3d/0x78 [ 12.388035] [<810c7391>] inode_init_once+0x53/0x61 [ 12.388035] [<810c73a7>] init_once+0x8/0xa [ 12.388035] [<810afd03>] ____cache_alloc+0x3b6/0x409 [ 12.388035] [<810aff41>] kmem_cache_alloc+0x54/0x122 [ 12.388035] [<810c770d>] alloc_inode+0x25/0x5f [ 12.388035] [<810c89de>] new_inode_pseudo+0xa/0x40 [ 12.388035] [<810c8a26>] new_inode+0x12/0x22 [ 12.388035] [<810f3390>] debugfs_mknod.part.8.constprop.17+0x13/0xca [ 12.388035] [<810f3611>] __create_file+0x146/0x1aa [ 12.388035] [<810f369b>] debugfs_create_file+0x26/0x2b [ 12.388035] [<81071af8>] trace_create_file+0x15/0x33 [ 12.388035] [<81076842>] event_create_dir+0x35a/0x36e [ 12.388035] [<817c066c>] event_trace_init+0x125/0x181 [ 12.388035] [<8100048b>] do_one_initcall+0xe8/0x168 [ 12.388035] [<817afab3>] kernel_init_freeable+0xcc/0x144 [ 12.388035] [<814234fe>] kernel_init+0x8/0xb3 [ 12.388035] [<8142ff40>] ret_from_kernel_thread+0x20/0x30 [ 12.388035] -> #0 (hrtimer_bases.lock){-.-...}: [ 12.388035] [<8104a67d>] __lock_acquire+0x9ea/0xc6d [ 12.388035] [<8104a992>] lock_acquire+0x92/0x101 [ 12.388035] [<8142f255>] _raw_spin_lock_irqsave+0x2e/0x3e [ 12.388035] [<8103c968>] __hrtimer_start_range_ns+0x1c/0x197 [ 12.388035] [<8107ecda>] perf_swevent_start_hrtimer.part.41+0x7a/0x85 [ 12.388035] [<8107ed16>] cpu_clock_event_start+0x31/0x36 [ 12.388035] [<8107ed28>] cpu_clock_event_add+0xd/0x14 [ 12.388035] [<81082654>] event_sched_in+0xb6/0x17a [ 12.388035] [<8108275c>] group_sched_in+0x44/0x122 [ 12.388035] [<810828d7>] ctx_sched_in.isra.67+0x9d/0x11f [ 12.388035] [<81082980>] perf_event_sched_in.isra.70+0x27/0x4b [ 12.388035] [<81082cb0>] __perf_install_in_context+0x8b/0xa3 [ 12.388035] [<8107ec48>] remote_function+0x12/0x2a [ 12.388035] [<8105f669>] smp_call_function_single+0x2d/0x53 [ 12.388035] [<8107e237>] task_function_call+0x30/0x36 [ 12.388035] [<8107fc3c>] perf_install_in_context+0x87/0xbb [ 12.388035] [<81085383>] SYSC_perf_event_open+0x5c6/0x701 [ 12.388035] [<810857b3>] SyS_perf_event_open+0x17/0x19 [ 12.388035] [<8142fa26>] syscall_call+0x7/0xb [ 12.388035] [ 12.388035] other info that might help us debug this: [ 12.388035] [ 12.388035] Chain exists of: hrtimer_bases.lock --> &rq->lock --> &ctx->lock [ 12.388035] Possible unsafe locking scenario: [ 12.388035] [ 12.388035] CPU0 CPU1 [ 12.388035] ---- ---- [ 12.388035] lock(&ctx->lock); [ 12.388035] lock(&rq->lock); [ 12.388035] lock(&ctx->lock); [ 12.388035] lock(hrtimer_bases.lock); [ 12.388035] [ 12.388035] *** DEADLOCK *** [ 12.388035] [ 12.388035] 3 locks held by trinity-main/171: [ 12.388035] #0: (&ctx->mutex){+.+...}, at: [<81085365>] SYSC_perf_event_open+0x5a8/0x701 [ 12.388035] #1: (&cpuctx_lock){......}, at: [<8107e0f7>] perf_ctx_lock+0xe/0x1d [ 12.388035] #2: (&ctx->lock){......}, at: [<8107e103>] perf_ctx_lock+0x1a/0x1d [ 12.388035] [ 12.388035] stack backtrace: [ 12.388035] CPU: 0 PID: 171 Comm: trinity-main Not tainted 3.15.0-rc8-05968-g8091b89 #46 [ 12.388035] 00000000 81c45598 806bbcc0 8142709f 806bbcf0 81425bf9 8161f580 8161f47f [ 12.388035] 8161f447 8161f468 8161f447 806bbd24 80910110 00000003 80910524 80910110 [ 12.388035] 806bbd54 8104a67d 8091050c 00001759 00000002 00000000 81c566a8 00000003 [ 12.388035] Call Trace: [ 12.388035] [<8142709f>] dump_stack+0x16/0x18 [ 12.388035] [<81425bf9>] print_circular_bug+0x18f/0x19c [ 12.388035] [<8104a67d>] __lock_acquire+0x9ea/0xc6d [ 12.388035] [<8104a992>] lock_acquire+0x92/0x101 [ 12.388035] [<8103c968>] ? __hrtimer_start_range_ns+0x1c/0x197 [ 12.388035] [<8142f255>] _raw_spin_lock_irqsave+0x2e/0x3e [ 12.388035] [<8103c968>] ? __hrtimer_start_range_ns+0x1c/0x197 [ 12.388035] [<8103c968>] __hrtimer_start_range_ns+0x1c/0x197 [ 12.388035] [<8107ecda>] perf_swevent_start_hrtimer.part.41+0x7a/0x85 [ 12.388035] [<8107ed16>] cpu_clock_event_start+0x31/0x36 [ 12.388035] [<8107ed28>] cpu_clock_event_add+0xd/0x14 [ 12.388035] [<81082654>] event_sched_in+0xb6/0x17a [ 12.388035] [<8108275c>] group_sched_in+0x44/0x122 [ 12.388035] [<810828d7>] ctx_sched_in.isra.67+0x9d/0x11f [ 12.388035] [<81082980>] perf_event_sched_in.isra.70+0x27/0x4b [ 12.388035] [<81082cb0>] __perf_install_in_context+0x8b/0xa3 [ 12.388035] [<8107ec36>] ? perf_mmap_fault+0xe2/0xe2 [ 12.388035] [<8107ec48>] remote_function+0x12/0x2a [ 12.388035] [<8105f669>] smp_call_function_single+0x2d/0x53 [ 12.388035] [<8107e237>] task_function_call+0x30/0x36 [ 12.388035] [<81082c25>] ? perf_cpu_hrtimer_handler+0x10e/0x10e /kernel/i386-randconfig-ha2-0731/8091b895b76f690aa2f6689b6ed602f07525a938/dmesg-yocto-vp-58:20140801045612:i386-randconfig-ha2-0731:3.15.0-rc8-05968-g8091b89:46 103:1:1 all_good:bad:all_bad boots 2014-08-01 04:55:50 REPEAT COUNT: 300 # /c/boot-bisect/linux-2/obj-bisect/.repeat Bisecting: 137 revisions left to test after this (roughly 7 steps) [d53aea3d46d64e95da9952887969f7533b9ab25e] mm, compaction: return failed migration target pages back to freelist running /c/kernel-tests/bisect-test-boot-failure.sh /c/boot-bisect/linux-2/obj-bisect ls -a /kbuild-tests/run-queue/kvm/i386-randconfig-ha2-0731/kvmarm:next:d53aea3d46d64e95da9952887969f7533b9ab25e:bisect-linux-2 2014-08-01-04:55:51 d53aea3d46d64e95da9952887969f7533b9ab25e compiling Queued build task to /kbuild-tests/build-queue/i386-randconfig-ha2-0731-d53aea3d46d64e95da9952887969f7533b9ab25e Check for kernel in /kernel/i386-randconfig-ha2-0731/d53aea3d46d64e95da9952887969f7533b9ab25e waiting for completion of /kbuild-tests/build-queue/i386-randconfig-ha2-0731-d53aea3d46d64e95da9952887969f7533b9ab25e waiting for completion of /kbuild-tests/build-queue/jaketown-consumer/i386-randconfig-ha2-0731-d53aea3d46d64e95da9952887969f7533b9ab25e kernel: /kernel/i386-randconfig-ha2-0731/d53aea3d46d64e95da9952887969f7533b9ab25e/vmlinuz-3.15.0-rc8-05670-gd53aea3 2014-08-01-05:23:51 detecting boot state ... 6 7 12 18 20 24 39 42 51. 54 58 62 67 71 74 77 82 83 92 98 100 105 107 117 123 131 138 140 142.. 147 150 152. 153.. 156 162 164 167 176 178. 179 192 195 199 204 205 207 208 212 225 229 232 240 255 261 267 281 283 288 297 300 SUCCESS Bisecting: 68 revisions left to test after this (roughly 6 steps) [72d09633c9afa02bea317d65eb8b8a4ce7659a2a] mm/zswap: NUMA aware allocation for zswap_dstmem running /c/kernel-tests/bisect-test-boot-failure.sh /c/boot-bisect/linux-2/obj-bisect ls -a /kbuild-tests/run-queue/kvm/i386-randconfig-ha2-0731/kvmarm:next:72d09633c9afa02bea317d65eb8b8a4ce7659a2a:bisect-linux-2 2014-08-01-05:59:03 72d09633c9afa02bea317d65eb8b8a4ce7659a2a compiling Queued build task to /kbuild-tests/build-queue/i386-randconfig-ha2-0731-72d09633c9afa02bea317d65eb8b8a4ce7659a2a Check for kernel in /kernel/i386-randconfig-ha2-0731/72d09633c9afa02bea317d65eb8b8a4ce7659a2a waiting for completion of /kbuild-tests/build-queue/i386-randconfig-ha2-0731-72d09633c9afa02bea317d65eb8b8a4ce7659a2a kernel: /kernel/i386-randconfig-ha2-0731/72d09633c9afa02bea317d65eb8b8a4ce7659a2a/vmlinuz-3.15.0-rc8-06170-g72d0963 2014-08-01-06:01:03 detecting boot state . 6 8 16 20 28 31 39 42 47. 62 68 73 76 80 90 95 102. 109 122 124 126 133 136 139 144 149 155 160 166 168 175 192. 198 207 210. 220 223 227 228 233.. 239 247 248. 251 256 258 271 278 280 293 295 300 SUCCESS Bisecting: 34 revisions left to test after this (roughly 5 steps) [0046dd9fed0c9313cbb4fb860324476cd298dc9f] lib/string.c: use the name "C-string" in comments running /c/kernel-tests/bisect-test-boot-failure.sh /c/boot-bisect/linux-2/obj-bisect ls -a /kbuild-tests/run-queue/kvm/i386-randconfig-ha2-0731/kvmarm:next:0046dd9fed0c9313cbb4fb860324476cd298dc9f:bisect-linux-2 2014-08-01-06:31:06 0046dd9fed0c9313cbb4fb860324476cd298dc9f compiling Queued build task to /kbuild-tests/build-queue/i386-randconfig-ha2-0731-0046dd9fed0c9313cbb4fb860324476cd298dc9f Check for kernel in /kernel/i386-randconfig-ha2-0731/0046dd9fed0c9313cbb4fb860324476cd298dc9f waiting for completion of /kbuild-tests/build-queue/i386-randconfig-ha2-0731-0046dd9fed0c9313cbb4fb860324476cd298dc9f kernel: /kernel/i386-randconfig-ha2-0731/0046dd9fed0c9313cbb4fb860324476cd298dc9f/vmlinuz-3.15.0-rc8-06204-g0046dd9 2014-08-01-06:33:06 detecting boot state . 10 28 37 42 TEST FAILURE [main] 375 sockets created based on info from socket cachefile. [ 14.006191] [ 14.006415] ====================================================== [ 14.007199] [ INFO: possible circular locking dependency detected ] [ 14.007986] 3.15.0-rc8-06204-g0046dd9 #126 Not tainted [ 14.008050] ------------------------------------------------------- [ 14.008050] trinity-main/176 is trying to acquire lock: [ 14.008050] (hrtimer_bases.lock){-.-...}, at: [<8103c918>] __hrtimer_start_range_ns+0x1c/0x197 [ 14.008050] [ 14.008050] but task is already holding lock: [ 14.008050] (&ctx->lock){......}, at: [<8107e0b3>] perf_ctx_lock+0x1a/0x1d [ 14.008050] [ 14.008050] which lock already depends on the new lock. [ 14.008050] [ 14.008050] [ 14.008050] the existing dependency chain (in reverse order) is: [ 14.008050] -> #5 (&ctx->lock){......}: [ 14.008050] [<8104a942>] lock_acquire+0x92/0x101 [ 14.008050] [<8142f084>] _raw_spin_lock+0x21/0x30 [ 14.008050] [<81081e5d>] __perf_event_task_sched_out+0x1dc/0x34f [ 14.008050] [<8142cb04>] __schedule+0x4c6/0x4cb [ 14.008050] [<8142cb18>] schedule+0xf/0x11 [ 14.008050] [<8142f9de>] work_resched+0x5/0x30 [ 14.008050] -> #4 (&rq->lock){-.-.-.}: [ 14.008050] [<8104a942>] lock_acquire+0x92/0x101 [ 14.008050] [<8142f084>] _raw_spin_lock+0x21/0x30 [ 14.008050] [<81040873>] __task_rq_lock+0x33/0x3a [ 14.008050] [<8104184c>] wake_up_new_task+0x25/0xc2 [ 14.008050] [<8102474b>] do_fork+0x15c/0x2a0 [ 14.008050] [<810248a9>] kernel_thread+0x1a/0x1f [ 14.008050] [<81423302>] rest_init+0x1a/0x10e [ 14.008050] [<817af949>] start_kernel+0x303/0x308 [ 14.008050] [<817af2ab>] i386_start_kernel+0x79/0x7d [ 14.008050] -> #3 (&p->pi_lock){-.-...}: [ 14.008050] [<8104a942>] lock_acquire+0x92/0x101 [ 14.008050] [<8142f155>] _raw_spin_lock_irqsave+0x2e/0x3e [ 14.008050] [<810413dd>] try_to_wake_up+0x1d/0xd6 [ 14.008050] [<810414cd>] default_wake_function+0xb/0xd [ 14.008050] [<810461f3>] __wake_up_common+0x39/0x59 [ 14.008050] [<81046346>] __wake_up+0x29/0x3b [ 14.008050] [<811b8793>] tty_wakeup+0x49/0x51 [ 14.008050] [<811c35c8>] uart_write_wakeup+0x17/0x19 [ 14.008050] [<811c5e21>] serial8250_tx_chars+0xbc/0xfb [ 14.008050] [<811c5f88>] serial8250_handle_irq+0x54/0x6a [ 14.008050] [<811c5fb7>] serial8250_default_handle_irq+0x19/0x1c [ 14.008050] [<811c5738>] serial8250_interrupt+0x38/0x9e [ 14.008050] [<81051151>] handle_irq_event_percpu+0x5f/0x1e2 [ 14.008050] [<81051300>] handle_irq_event+0x2c/0x43 [ 14.008050] [<81052d58>] handle_level_irq+0x57/0x80 [ 14.008050] [<81002a72>] handle_irq+0x46/0x5c [ 14.008050] [<810027df>] do_IRQ+0x32/0x89 [ 14.008050] [<8143036e>] common_interrupt+0x2e/0x33 [ 14.008050] [<8142f274>] _raw_spin_unlock_irqrestore+0x3f/0x49 [ 14.008050] [<811c2604>] uart_start+0x2d/0x32 [ 14.008050] [<811c2c64>] uart_write+0xc7/0xd6 [ 14.008050] [<811bc756>] n_tty_write+0xb8/0x35e [ 14.008050] [<811b9c4b>] tty_write+0x163/0x1e4 [ 14.008050] [<811b9d39>] redirected_tty_write+0x6d/0x75 [ 14.008050] [<810b6f40>] vfs_write+0x75/0xb0 [ 14.008050] [<810b72cf>] SyS_write+0x44/0x77 [ 14.008050] [<8142f926>] syscall_call+0x7/0xb [ 14.008050] -> #2 (&tty->write_wait){-.-...}: [ 14.008050] [<8104a942>] lock_acquire+0x92/0x101 [ 14.008050] [<8142f155>] _raw_spin_lock_irqsave+0x2e/0x3e [ 14.008050] [<81046332>] __wake_up+0x15/0x3b [ 14.008050] [<811b8793>] tty_wakeup+0x49/0x51 [ 14.008050] [<811c35c8>] uart_write_wakeup+0x17/0x19 [ 14.008050] [<811c5e21>] serial8250_tx_chars+0xbc/0xfb [ 14.008050] [<811c5f88>] serial8250_handle_irq+0x54/0x6a [ 14.008050] [<811c5fb7>] serial8250_default_handle_irq+0x19/0x1c [ 14.008050] [<811c5738>] serial8250_interrupt+0x38/0x9e [ 14.008050] [<81051151>] handle_irq_event_percpu+0x5f/0x1e2 [ 14.008050] [<81051300>] handle_irq_event+0x2c/0x43 [ 14.008050] [<81052d58>] handle_level_irq+0x57/0x80 [ 14.008050] [<81002a72>] handle_irq+0x46/0x5c [ 14.008050] [<810027df>] do_IRQ+0x32/0x89 [ 14.008050] [<8143036e>] common_interrupt+0x2e/0x33 [ 14.008050] [<8142f274>] _raw_spin_unlock_irqrestore+0x3f/0x49 [ 14.008050] [<811c2604>] uart_start+0x2d/0x32 [ 14.008050] [<811c2c64>] uart_write+0xc7/0xd6 [ 14.008050] [<811bc756>] n_tty_write+0xb8/0x35e [ 14.008050] [<811b9c4b>] tty_write+0x163/0x1e4 [ 14.008050] [<811b9d39>] redirected_tty_write+0x6d/0x75 [ 14.008050] [<810b6f40>] vfs_write+0x75/0xb0 [ 14.008050] [<810b72cf>] SyS_write+0x44/0x77 [ 14.008050] [<8142f926>] syscall_call+0x7/0xb [ 14.008050] -> #1 (&port_lock_key){-.-...}: [ 14.008050] [<8104a942>] lock_acquire+0x92/0x101 [ 14.008050] [<8142f155>] _raw_spin_lock_irqsave+0x2e/0x3e [ 14.008050] [<81046bd0>] down_trylock+0xc/0x27 [ 14.008050] [<8104f1c4>] console_trylock+0x12/0x80 [ 14.008050] [<8104fbca>] vprintk_emit+0x404/0x421 [ 14.008050] [<81425fd6>] printk+0x17/0x19 [ 14.008050] [<8105c00a>] clockevents_program_min_delta+0x104/0x116 [ 14.008050] [<8105c5b2>] clockevents_program_event+0xe7/0xf3 [ 14.008050] [<8105cc86>] tick_program_event+0x1e/0x23 [ 14.008050] [<8103c43c>] hrtimer_force_reprogram+0x88/0x8f [ 14.008050] [<8103c8f0>] retrigger_next_event+0x36/0x42 [ 14.008050] [<8103d0d3>] hrtimer_run_pending+0xe4/0x108 [ 14.008050] [<8102c70f>] run_timer_softirq+0x14/0x19c [ 14.008050] [<810281dc>] __do_softirq+0x111/0x2c4 [ 14.008050] [<81002a26>] do_softirq_own_stack+0x1c/0x22 [ 14.008050] [<81028570>] irq_exit+0x44/0x5d [ 14.008050] [<81002823>] do_IRQ+0x76/0x89 [ 14.008050] [<8143036e>] common_interrupt+0x2e/0x33 [ 14.008050] [<8142d562>] mutex_lock_nested+0x26e/0x2cc [ 14.008050] [<810f34fd>] __create_file+0x82/0x1aa [ 14.008050] [<810f364b>] debugfs_create_file+0x26/0x2b [ 14.008050] [<81071aa8>] trace_create_file+0x15/0x33 [ 14.008050] [<81076755>] event_create_dir+0x2bd/0x36e [ 14.008050] [<817c05d3>] event_trace_init+0x125/0x181 [ 14.008050] [<81000439>] do_one_initcall+0x96/0x116 [ 14.008050] [<817afa1a>] kernel_init_freeable+0xcc/0x144 [ 14.008050] [<814233fe>] kernel_init+0x8/0xb3 [ 14.008050] [<8142fe40>] ret_from_kernel_thread+0x20/0x30 [ 14.008050] -> #0 (hrtimer_bases.lock){-.-...}: [ 14.008050] [<8104a62d>] __lock_acquire+0x9ea/0xc6d [ 14.008050] [<8104a942>] lock_acquire+0x92/0x101 [ 14.008050] [<8142f155>] _raw_spin_lock_irqsave+0x2e/0x3e [ 14.008050] [<8103c918>] __hrtimer_start_range_ns+0x1c/0x197 [ 14.008050] [<8107ec8a>] perf_swevent_start_hrtimer.part.41+0x7a/0x85 [ 14.008050] [<8107ecc6>] cpu_clock_event_start+0x31/0x36 [ 14.008050] [<8107ecd8>] cpu_clock_event_add+0xd/0x14 [ 14.008050] [<81082604>] event_sched_in+0xb6/0x17a [ 14.008050] [<8108270c>] group_sched_in+0x44/0x122 [ 14.008050] [<81082887>] ctx_sched_in.isra.67+0x9d/0x11f [ 14.008050] [<81082930>] perf_event_sched_in.isra.70+0x27/0x4b [ 14.008050] [<81082c60>] __perf_install_in_context+0x8b/0xa3 [ 14.008050] [<8107ebf8>] remote_function+0x12/0x2a [ 14.008050] [<8105f619>] smp_call_function_single+0x2d/0x53 [ 14.008050] [<8107e1e7>] task_function_call+0x30/0x36 [ 14.008050] [<8107fbec>] perf_install_in_context+0x87/0xbb [ 14.008050] [<81085333>] SYSC_perf_event_open+0x5c6/0x701 [ 14.008050] [<81085763>] SyS_perf_event_open+0x17/0x19 [ 14.008050] [<8142f926>] syscall_call+0x7/0xb [ 14.008050] [ 14.008050] other info that might help us debug this: [ 14.008050] [ 14.008050] Chain exists of: hrtimer_bases.lock --> &rq->lock --> &ctx->lock [ 14.008050] Possible unsafe locking scenario: [ 14.008050] [ 14.008050] CPU0 CPU1 [ 14.008050] ---- ---- [ 14.008050] lock(&ctx->lock); [ 14.008050] lock(&rq->lock); [ 14.008050] lock(&ctx->lock); [ 14.008050] lock(hrtimer_bases.lock); [ 14.008050] [ 14.008050] *** DEADLOCK *** [ 14.008050] [ 14.008050] 3 locks held by trinity-main/176: [ 14.008050] #0: (&ctx->mutex){+.+...}, at: [<81085315>] SYSC_perf_event_open+0x5a8/0x701 [ 14.008050] #1: (&cpuctx_lock){......}, at: [<8107e0a7>] perf_ctx_lock+0xe/0x1d [ 14.008050] #2: (&ctx->lock){......}, at: [<8107e0b3>] perf_ctx_lock+0x1a/0x1d [ 14.008050] [ 14.008050] stack backtrace: [ 14.008050] CPU: 0 PID: 176 Comm: trinity-main Not tainted 3.15.0-rc8-06204-g0046dd9 #126 [ 14.008050] 00000000 81c446a8 92533cc0 81426f9f 92533cf0 81425af9 8161f47d 8161f37c [ 14.008050] 8161f344 8161f365 8161f344 92533d24 910fb250 00000003 910fb664 910fb250 [ 14.008050] 92533d54 8104a62d 910fb64c 00001716 00000002 00000000 81c558c8 00000003 [ 14.008050] Call Trace: [ 14.008050] [<81426f9f>] dump_stack+0x16/0x18 [ 14.008050] [<81425af9>] print_circular_bug+0x18f/0x19c [ 14.008050] [<8104a62d>] __lock_acquire+0x9ea/0xc6d [ 14.008050] [<81062fdd>] ? is_module_text_address+0xe/0x1b [ 14.008050] [<8104a942>] lock_acquire+0x92/0x101 [ 14.008050] [<8103c918>] ? __hrtimer_start_range_ns+0x1c/0x197 [ 14.008050] [<8142f155>] _raw_spin_lock_irqsave+0x2e/0x3e [ 14.008050] [<8103c918>] ? __hrtimer_start_range_ns+0x1c/0x197 [ 14.008050] [<8103c918>] __hrtimer_start_range_ns+0x1c/0x197 [ 14.008050] [<8107ec8a>] perf_swevent_start_hrtimer.part.41+0x7a/0x85 [ 14.008050] [<8107ecc6>] cpu_clock_event_start+0x31/0x36 [ 14.008050] [<8107ecd8>] cpu_clock_event_add+0xd/0x14 [ 14.008050] [<81082604>] event_sched_in+0xb6/0x17a [ 14.008050] [<8108270c>] group_sched_in+0x44/0x122 [ 14.008050] [<81082887>] ctx_sched_in.isra.67+0x9d/0x11f [ 14.008050] [<81082930>] perf_event_sched_in.isra.70+0x27/0x4b [ 14.008050] [<81082c60>] __perf_install_in_context+0x8b/0xa3 [ 14.008050] [<8107ebe6>] ? perf_mmap_fault+0xe2/0xe2 [ 14.008050] [<8107ebf8>] remote_function+0x12/0x2a [ 14.008050] [<8105f619>] smp_call_function_single+0x2d/0x53 [ 14.008050] [<8107e1e7>] task_function_call+0x30/0x36 [ 14.008050] [<81082bd5>] ? perf_cpu_hrtimer_handler+0x10e/0x10e [ 14.008050] [<8107fbec>] perf_install_in_context+0x87/0xbb [ 14.008050] [<81085333>] SYSC_perf_event_open+0x5c6/0x701 [ 14.008050] [<8101ae00>] ? __do_page_fault+0x21e/0x314 [ 14.008050] [<81085763>] SyS_perf_event_open+0x17/0x19 [ 14.008050] [<8142f926>] syscall_call+0x7/0xb [ 22.731298] random: nonblocking pool is initialized [ 60.588098] spin_lock-torture: Writes: Total: 2 Max/Min: 0/0 Fail: 0 lsmod: can't open '/proc/modules': No such file or directory /kernel/i386-randconfig-ha2-0731/0046dd9fed0c9313cbb4fb860324476cd298dc9f/dmesg-yocto-ivb44-111:20140801062720:i386-randconfig-ha2-0731:: 42:1:1 all_good:bad:all_bad boots 2014-08-01 06:35:37 REPEAT COUNT: 300 # /c/boot-bisect/linux-2/obj-bisect/.repeat Bisecting: 16 revisions left to test after this (roughly 4 steps) [0a581694ab7a5bc083d710df8a552a6a055b005f] printk: split code for making free space in the log buffer running /c/kernel-tests/bisect-test-boot-failure.sh /c/boot-bisect/linux-2/obj-bisect ls -a /kbuild-tests/run-queue/kvm/i386-randconfig-ha2-0731/kvmarm:next:0a581694ab7a5bc083d710df8a552a6a055b005f:bisect-linux-2 2014-08-01-06:35:38 0a581694ab7a5bc083d710df8a552a6a055b005f compiling Queued build task to /kbuild-tests/build-queue/i386-randconfig-ha2-0731-0a581694ab7a5bc083d710df8a552a6a055b005f Check for kernel in /kernel/i386-randconfig-ha2-0731/0a581694ab7a5bc083d710df8a552a6a055b005f waiting for completion of /kbuild-tests/build-queue/i386-randconfig-ha2-0731-0a581694ab7a5bc083d710df8a552a6a055b005f kernel: /kernel/i386-randconfig-ha2-0731/0a581694ab7a5bc083d710df8a552a6a055b005f/vmlinuz-3.15.0-rc8-06187-g0a58169 2014-08-01-06:37:38 detecting boot state .. 1. 14 16. 17 18 29 40 49 57 66 69 87 97 108 122 135 154 166 174 186 205 214 220 233 248 256 289 299 300 SUCCESS Bisecting: 8 revisions left to test after this (roughly 3 steps) [939f04bec1a4ef6ba4370b0f34b01decc844b1b1] printk: enable interrupts before calling console_trylock_for_printk() running /c/kernel-tests/bisect-test-boot-failure.sh /c/boot-bisect/linux-2/obj-bisect ls -a /kbuild-tests/run-queue/kvm/i386-randconfig-ha2-0731/kvmarm:next:939f04bec1a4ef6ba4370b0f34b01decc844b1b1:bisect-linux-2 2014-08-01-06:54:46 939f04bec1a4ef6ba4370b0f34b01decc844b1b1 compiling Queued build task to /kbuild-tests/build-queue/i386-randconfig-ha2-0731-939f04bec1a4ef6ba4370b0f34b01decc844b1b1 Check for kernel in /kernel/i386-randconfig-ha2-0731/939f04bec1a4ef6ba4370b0f34b01decc844b1b1 waiting for completion of /kbuild-tests/build-queue/i386-randconfig-ha2-0731-939f04bec1a4ef6ba4370b0f34b01decc844b1b1 kernel: /kernel/i386-randconfig-ha2-0731/939f04bec1a4ef6ba4370b0f34b01decc844b1b1/vmlinuz-3.15.0-rc8-06195-g939f04b 2014-08-01-06:56:46 detecting boot state 6 12 25 46 TEST FAILURE [ 2.168229] tsc: Refined TSC clocksource calibration: 2693.508 MHz [ 12.242554] sock: process `trinity-main' is using obsolete setsockopt SO_BSDCOMPAT BUG: kernel boot hang Elapsed time: 35 qemu-system-x86_64 -cpu kvm64 -enable-kvm -kernel /kernel/i386-randconfig-ha2-0731/939f04bec1a4ef6ba4370b0f34b01decc844b1b1/vmlinuz-3.15.0-rc8-06195-g939f04b -append 'hung_task_panic=1 earlyprintk=ttyS0,115200 debug apic=debug sysrq_always_enabled rcupdate.rcu_cpu_stall_timeout=100 panic=10 softlockup_panic=1 nmi_watchdog=panic load_ramdisk=2 prompt_ramdisk=0 console=ttyS0,115200 console=tty0 vga=normal root=/dev/ram0 rw link=/kbuild-tests/run-queue/kvm/i386-randconfig-ha2-0731/kvmarm:next:939f04bec1a4ef6ba4370b0f34b01decc844b1b1:bisect-linux-2/.vmlinuz-939f04bec1a4ef6ba4370b0f34b01decc844b1b1-20140801145621-126-ivb44 branch=kvmarm/next BOOT_IMAGE=/kernel/i386-randconfig-ha2-0731/939f04bec1a4ef6ba4370b0f34b01decc844b1b1/vmlinuz-3.15.0-rc8-06195-g939f04b drbd.minor_count=8' -initrd /kernel-tests/initrd/quantal-core-i386.cgz -m 320 -smp 2 -net nic,vlan=1,model=e1000 -net user,vlan=1 -boot order=nc -no-reboot -watchdog i6300esb -rtc base=localtime -pidfile /dev/shm/kboot/pid-quantal-ivb44-3 -serial file:/dev/shm/kboot/serial-quantal-ivb44-3 -daemonize -display none -monitor null /kernel/i386-randconfig-ha2-0731/939f04bec1a4ef6ba4370b0f34b01decc844b1b1/dmesg-quantal-kbuild-20:20140801065622:i386-randconfig-ha2-0731:3.15.0-rc8-06195-g939f04b:2 45:1:2 all_good:bad:all_bad boots 2014-08-01 06:58:47 REPEAT COUNT: 300 # /c/boot-bisect/linux-2/obj-bisect/.repeat Bisecting: 3 revisions left to test after this (roughly 2 steps) [034633ccb24d675850f99bf85c1c5880c831e4b6] printk: return really stored message length running /c/kernel-tests/bisect-test-boot-failure.sh /c/boot-bisect/linux-2/obj-bisect ls -a /kbuild-tests/run-queue/kvm/i386-randconfig-ha2-0731/kvmarm:next:034633ccb24d675850f99bf85c1c5880c831e4b6:bisect-linux-2 2014-08-01-06:58:47 034633ccb24d675850f99bf85c1c5880c831e4b6 compiling Queued build task to /kbuild-tests/build-queue/i386-randconfig-ha2-0731-034633ccb24d675850f99bf85c1c5880c831e4b6 Check for kernel in /kernel/i386-randconfig-ha2-0731/034633ccb24d675850f99bf85c1c5880c831e4b6 waiting for completion of /kbuild-tests/build-queue/i386-randconfig-ha2-0731-034633ccb24d675850f99bf85c1c5880c831e4b6 waiting for completion of /kbuild-tests/build-queue/jaketown-consumer/i386-randconfig-ha2-0731-034633ccb24d675850f99bf85c1c5880c831e4b6 kernel: /kernel/i386-randconfig-ha2-0731/034633ccb24d675850f99bf85c1c5880c831e4b6/vmlinuz-3.15.0-rc8-05760-g034633c 2014-08-01-07:03:47 detecting boot state . 2 8 15 20 40 47 49 66 87 88 100 109 118 125 152 168 179 190 210 228 259 265 281 295 300 SUCCESS Bisecting: 1 revision left to test after this (roughly 1 step) [608873cacb9d0d2811586fcc79a38b64eabd6d32] printk: release lockbuf_lock before calling console_trylock_for_printk() running /c/kernel-tests/bisect-test-boot-failure.sh /c/boot-bisect/linux-2/obj-bisect ls -a /kbuild-tests/run-queue/kvm/i386-randconfig-ha2-0731/kvmarm:next:608873cacb9d0d2811586fcc79a38b64eabd6d32:bisect-linux-2 2014-08-01-07:16:50 608873cacb9d0d2811586fcc79a38b64eabd6d32 compiling Queued build task to /kbuild-tests/build-queue/i386-randconfig-ha2-0731-608873cacb9d0d2811586fcc79a38b64eabd6d32 Check for kernel in /kernel/i386-randconfig-ha2-0731/608873cacb9d0d2811586fcc79a38b64eabd6d32 waiting for completion of /kbuild-tests/build-queue/i386-randconfig-ha2-0731-608873cacb9d0d2811586fcc79a38b64eabd6d32 waiting for completion of /kbuild-tests/build-queue/lkp-hsx01-consumer/i386-randconfig-ha2-0731-608873cacb9d0d2811586fcc79a38b64eabd6d32 kernel: /kernel/i386-randconfig-ha2-0731/608873cacb9d0d2811586fcc79a38b64eabd6d32/vmlinuz-3.15.0-rc8-06193-g608873c 2014-08-01-07:22:50 detecting boot state .. 7 18 53 103 118 144 190 237 245 258 299 300 SUCCESS Bisecting: 0 revisions left to test after this (roughly 0 steps) [bd8d7cf5b8410fe98eba06a9aaa90efe88815d8a] printk: fix lockdep instrumentation of console_sem running /c/kernel-tests/bisect-test-boot-failure.sh /c/boot-bisect/linux-2/obj-bisect ls -a /kbuild-tests/run-queue/kvm/i386-randconfig-ha2-0731/kvmarm:next:bd8d7cf5b8410fe98eba06a9aaa90efe88815d8a:bisect-linux-2 2014-08-01-07:29:51 bd8d7cf5b8410fe98eba06a9aaa90efe88815d8a compiling Queued build task to /kbuild-tests/build-queue/i386-randconfig-ha2-0731-bd8d7cf5b8410fe98eba06a9aaa90efe88815d8a Check for kernel in /kernel/i386-randconfig-ha2-0731/bd8d7cf5b8410fe98eba06a9aaa90efe88815d8a waiting for completion of /kbuild-tests/build-queue/i386-randconfig-ha2-0731-bd8d7cf5b8410fe98eba06a9aaa90efe88815d8a kernel: /kernel/i386-randconfig-ha2-0731/bd8d7cf5b8410fe98eba06a9aaa90efe88815d8a/vmlinuz-3.15.0-rc8-06194-gbd8d7cf 2014-08-01-07:32:51 detecting boot state . 2 28 38 47 69 79 88 101 122 137 148 167 178 207 231 240 266 290 300 SUCCESS 939f04bec1a4ef6ba4370b0f34b01decc844b1b1 is the first bad commit commit 939f04bec1a4ef6ba4370b0f34b01decc844b1b1 Author: Jan Kara Date: Wed Jun 4 16:11:37 2014 -0700 printk: enable interrupts before calling console_trylock_for_printk() We need interrupts disabled when calling console_trylock_for_printk() only so that cpu id we pass to can_use_console() remains valid (for other things console_sem provides all the exclusion we need and deadlocks on console_sem due to interrupts are impossible because we use down_trylock()). However if we are rescheduled, we are guaranteed to run on an online cpu so we can easily just get the cpu id in can_use_console(). We can lose a bit of performance when we enable interrupts in vprintk_emit() and then disable them again in console_unlock() but OTOH it can somewhat reduce interrupt latency caused by console_unlock() especially since later in the patch series we will want to spin on console_sem in console_trylock_for_printk(). Signed-off-by: Jan Kara Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds :040000 040000 2f8e19533e42ddf1898215a1f79092516b898914 8d781ddb8b3f85930911a4fad096d8cd5408986f M kernel bisect run success HEAD is now at bd8d7cf... printk: fix lockdep instrumentation of console_sem ls -a /kbuild-tests/run-queue/kvm/i386-randconfig-ha2-0731/kvmarm:next:bd8d7cf5b8410fe98eba06a9aaa90efe88815d8a:bisect-linux-2 2014-08-01-07:43:19 bd8d7cf5b8410fe98eba06a9aaa90efe88815d8a reuse /kernel/i386-randconfig-ha2-0731/bd8d7cf5b8410fe98eba06a9aaa90efe88815d8a/vmlinuz-3.15.0-rc8-06194-gbd8d7cf 2014-08-01-07:43:20 detecting boot state .. 6 23 30 53 82 103 113 138 170 172 185 200 208 217 227 240 251 260 270 279 288 303 325 336 346 356 366 372 379 384 389 396 408 417 422 435 444 451 471 498 510 521 533 544 559 574 594 604 615 624 647 654 672 680 694 705 713 735 756 763 770 787 798 807 823 835 845 855 869 877 883 896 900 SUCCESS Previous HEAD position was bd8d7cf... printk: fix lockdep instrumentation of console_sem HEAD is now at fb3ec67... KVM: arm64: GICv3: mandate page-aligned GICV region ls -a /kbuild-tests/run-queue/kvm/i386-randconfig-ha2-0731/kvmarm:next:fb3ec67942e92e5713e05b7691b277d0a0c0575d:bisect-linux-2 TEST FAILURE /bin/sh: /proc/self/fd/9: No such file or directory [ 13.341932] sock: process `trinity-main' is using obsolete setsockopt SO_BSDCOMPAT BUG: kernel boot hang Elapsed time: 35 qemu-system-x86_64 -enable-kvm -cpu Haswell,+smep,+smap -kernel /kernel/i386-randconfig-ha2-0731/fb3ec67942e92e5713e05b7691b277d0a0c0575d/vmlinuz-3.16.0-rc1-00133-gfb3ec67 -append 'hung_task_panic=1 earlyprintk=ttyS0,115200 debug apic=debug sysrq_always_enabled rcupdate.rcu_cpu_stall_timeout=100 panic=10 softlockup_panic=1 nmi_watchdog=panic prompt_ramdisk=0 console=ttyS0,115200 console=tty0 vga=normal root=/dev/ram0 rw link=/kbuild-tests/run-queue/kvm/i386-randconfig-ha2-0731/kvmarm:next:fb3ec67942e92e5713e05b7691b277d0a0c0575d:bisect-linux-2/.vmlinuz-fb3ec67942e92e5713e05b7691b277d0a0c0575d-20140731232848-4-kbuild branch=kvmarm/next BOOT_IMAGE=/kernel/i386-randconfig-ha2-0731/fb3ec67942e92e5713e05b7691b277d0a0c0575d/vmlinuz-3.16.0-rc1-00133-gfb3ec67 drbd.minor_count=8' -initrd /kernel-tests/initrd/quantal-core-i386.cgz -m 320 -smp 2 -net nic,vlan=1,model=e1000 -net user,vlan=1 -boot order=nc -no-reboot -watchdog i6300esb -rtc base=localtime -pidfile /dev/shm/kboot/pid-quantal-kbuild-22 -serial file:/dev/shm/kboot/serial-quantal-kbuild-22 -daemonize -display none -monitor null /kernel/i386-randconfig-ha2-0731/fb3ec67942e92e5713e05b7691b277d0a0c0575d/dmesg-quantal-kbuild-23:20140731233411:i386-randconfig-ha2-0731:3.16.0-rc1-00133-gfb3ec67:241 /kernel/i386-randconfig-ha2-0731/fb3ec67942e92e5713e05b7691b277d0a0c0575d/dmesg-vm-kbuild-yocto-i386-47:20140731231924:i386-randconfig-ha2-0731:3.16.0-rc1-00133-gfb3ec67:241 41:2:5 all_good:bad:all_bad boots HEAD is now at fb3ec67 KVM: arm64: GICv3: mandate page-aligned GICV region ========= linus/master ========= From git://gitmirror/linus 3a1122d..6f09280 master -> linus/master Previous HEAD position was fb3ec67... KVM: arm64: GICv3: mandate page-aligned GICV region HEAD is now at 6f09280... Merge tag 'pm+acpi-3.16-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm ls -a /kbuild-tests/run-queue/kvm/i386-randconfig-ha2-0731/linus:master:6f0928036bcbd8dd2ebee9201580da8bcc0a81af:bisect-linux-2 2014-08-01-08:21:20 6f0928036bcbd8dd2ebee9201580da8bcc0a81af reuse /kernel/i386-randconfig-ha2-0731/6f0928036bcbd8dd2ebee9201580da8bcc0a81af/vmlinuz-3.16.0-rc7-00083-g6f09280 2014-08-01-08:21:21 detecting boot state .. 12 24 27 52 59 76 86 105 112 131 141 163 182 200 216 245 256 285 300 319 329 348 363 375 397. 421 440 449 464 484 496 517 531 568 584 612 641 669 702 707 745 788 806 830 859 882 892 895 896. 900 SUCCESS ========= next/master ========= Previous HEAD position was 6f09280... Merge tag 'pm+acpi-3.16-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm HEAD is now at 5c15978... Add linux-next specific files for 20140731 ls -a /kbuild-tests/run-queue/kvm/i386-randconfig-ha2-0731/next:master:5c159783e8086645dd7aa42e35c531ad0e8dd16d:bisect-linux-2 2014-08-01-08:50:20 5c159783e8086645dd7aa42e35c531ad0e8dd16d compiling Queued build task to /kbuild-tests/build-queue/i386-randconfig-ha2-0731-5c159783e8086645dd7aa42e35c531ad0e8dd16d Check for kernel in /kernel/i386-randconfig-ha2-0731/5c159783e8086645dd7aa42e35c531ad0e8dd16d waiting for completion of /kbuild-tests/build-queue/i386-randconfig-ha2-0731-5c159783e8086645dd7aa42e35c531ad0e8dd16d waiting for completion of /kbuild-tests/build-queue/jaketown-consumer/i386-randconfig-ha2-0731-5c159783e8086645dd7aa42e35c531ad0e8dd16d status: FAIL: build error 2014-08-01 08:54:20 Kernel build fail or timeout 2014-08-01-08:54:20 5c159783e8086645dd7aa42e35c531ad0e8dd16d SKIP BROKEN BUILD Check /kbuild-tests/build-served/i386-randconfig-ha2-0731-5c159783e8086645dd7aa42e35c531ad0e8dd16d