uncore constraint lockdep

Severity

Message

Found by

perf_fuzzer: Jiri Olsa

First Seen

4.9-rc1

Most recently Seen

4.9-rc1

Reproducible

?

Found On

?

Linux-kernel Mailing List Report

17 November 2016 -- [PATCH] perf/x86/uncore: Allow single pmu/box within events group

Introduced by

Fixed by

Kernel Splat

  1.   # perf stat -vv -e '{uncore_cbox_0/config=0x0334/,uncore_qpi_0/event=1/}'
    -a sleep 1
    
    INFO: trying to register non-static key.
    the code is fine but needs lockdep annotation.
    turning off the locking correctness validator.
    CPU: 12 PID: 3727 Comm: perf_fuzzer Tainted: G        W       4.9.0-rc1+ #10
    Hardware name: IBM System x3650 M4 : -[7915E2G]-/00Y7683, BIOS
    -[VVE124AUS-1.30]- 11/21/2012
     ffffc90002ca3ae0 ffffffff81399565 0000000000000000 0000000000000000
     ffffc90002ca3b50 ffffffff810d0a3a 0000000000000006 ffff880276285eb8
     ffffc90002ca3bc8 ffff8802711a8b98 ffff8802711a8000 ffff8802711a8b98
    Call Trace:
     [] dump_stack+0x68/0x93
     [] register_lock_class+0x50a/0x510
     [] __lock_acquire+0x88/0x12a0
     [] ? ___perf_sw_event+0x16c/0x280
     [] ? debug_lockdep_rcu_enabled+0x1d/0x20
     [] lock_acquire+0xe9/0x1d0
     [] ? uncore_get_constraint+0x59/0x100 [intel_uncore]
     [] _raw_spin_lock_irqsave+0x43/0x60
     [] ? uncore_get_constraint+0x59/0x100 [intel_uncore]
     [] uncore_get_constraint+0x59/0x100 [intel_uncore]
     [] uncore_assign_events+0x6d/0x250 [intel_uncore]
     [] uncore_pmu_event_init+0x187/0x220 [intel_uncore]
     [] perf_try_init_event+0x43/0x90
     [] perf_event_alloc+0x55e/0xc50
     [] ? perf_event_alloc+0x468/0xc50
     [] SYSC_perf_event_open+0x40b/0xf90
     [] SyS_perf_event_open+0x9/0x10
     [] do_syscall_64+0x66/0x1d0
     [] entry_SYSCALL64_slow_path+0x25/0x25
    

Back to perf_fuzzer bugs found